Sun Cluster Software Installation Guide for Solaris OS

How to Create State Database Replicas


Note –

If you used SunPlex Manager to install Solstice DiskSuite software, do not perform this procedure. Instead, go to Mirroring the Root Disk.


Perform this procedure on each node in the cluster.

  1. Become superuser on the cluster node.

  2. Create state database replicas on one or more local disks for each cluster node by using the metadb command.

    Use the physical name (cNtXdYsZ), not the device-ID name (dN), to specify the slices to use.


    # metadb -af slice-1 slice-2 slice-3
    


    Tip –

    To provide protection of state data, which is necessary to run Solstice DiskSuite/Solaris Volume Manager software, create at least three replicas for each node. Also, you can place replicas on more than one disk to provide protection if one of the disks fails.


    See the metadb(1M) man page and your Solstice DiskSuite/Solaris Volume Manager documentation for details.

  3. Verify the replicas.


    # metadb
    

    The metadb command displays the list of replicas.

  4. Do you intend to mirror file systems on the root disk?

Example—Creating State Database Replicas

The following example shows three Solstice DiskSuite state database replicas. Each replica is created on a different disk. For Solaris Volume Manager, the replica size would be larger.


# metadb -af c0t0d0s7 c0t1d0s7 c1t0d0s7
# metadb
flags            first blk      block count
    a       u       16          1034         /dev/dsk/c0t0d0s7
    a       u       16          1034         /dev/dsk/c0t1d0s7
    a       u       16          1034         /dev/dsk/c1t0d0s7