Solstice DiskSuite 4.2.1 User's Guide

Creating Additional State Database Replicas

This section describes how to create additional state database replicas on a system that is up and running.

Preliminary Information for Creating Additional State Database Replicas

How to Create Additional State Database Replicas (DiskSuite Tool)

After the initial state database replicas are created, you can create additional state database replicas as needed.

  1. Make sure you have met the prerequisites ("Prerequisites for Creating DiskSuite Objects"), and have read the preliminary information ("Preliminary Information for Creating Additional State Database Replicas").

  2. Double-click the MetaDB object in the Objects list.

    DiskSuite Tool displays the MetaDB object on the canvas.

  3. Click Slices to open the Slice Browser window.

  4. Select the slice(s) for the additional state database replica(s). Drag the slice(s) to the top rectangle of the MetaDB object.

    Use Control-click to select multiple slices.

  5. [Optional] To add multiple state database replicas to the same slice, display the MetaDB object's Info window, type the slice in the Slice field, type the number of replicas to add in the Replicas field, click Attach, then click Close.

    This method does not enable you to "change" the number of state database replicas on a slice, only to initially specify them.

  6. Make sure that the MetaDB object is selected then click Commit.

  7. To verify that the MetaDB object was committed, display the Configuration Log.

Example -- Committed MetaDB Object

This example shows a new state database replica added to a MetaDB object.

Graphic

The added slice that contains the state database replica, c1t2d0s0, appears at the bottom of the list of slices in the committed MetaDB object.

How to Create Additional State Database Replicas (Command Line)

After checking the prerequisites ("Prerequisites for Creating DiskSuite Objects"), and the preliminary information ("Preliminary Information for Creating Additional State Database Replicas"), use the metadb(1M) command to create additional state database replicas. Refer to the metadb(1M) man page for more information.

Example -- Adding a State Database Replica


# metadb -a c0t2d0s0
# metadb
        flags         first blk      block count
...
     a        u         16              1034            /dev/dsk/c0t2d0s0

The -a option adds the additional state database replica to the system. The metadb command checks that the replica is active, as indicated by the -a flag.

Example -- Adding Two State Database Replicas to the Same Slice


# metadb -a -c 2 c0t2d0s0
# metadb
        flags         first blk      block count
...
     a        u         16              1034            /dev/dsk/c0t2d0s0
     a        u         1050            1034            /dev/dsk/c0t2d0s0

The -a option adds additional state database replicas to the system. The -c 2 option places two replicas on the specified slice. The metadb command checks that the replicas are active, as indicated by the -a flag.