Sun Cluster Software Installation Guide for Solaris OS

ProcedureHow to Create State Database Replicas

Note –

If you used SunPlex Installer 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 devices for each cluster node.

    Use the physical name (cNtXdY sZ), 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 or Solaris Volume Manager software, create at least three replicas for each node. Also, you can place replicas on more than one device to provide protection if one of the devices fails.

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

  3. Verify the replicas.

    # metadb

    The metadb command displays the list of replicas.

Example 3–1 Creating State Database Replicas

The following example shows three Solstice DiskSuite state database replicas. Each replica is created on a different device. 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

Next Steps

To mirror file systems on the root disk, go to Mirroring the Root Disk.

Otherwise, go to Creating Disk Sets in a Cluster to create Solstice DiskSuite or Solaris Volume Manager disk sets.