Sun Cluster Software Installation Guide for Solaris OS

ProcedureHow to Activate Metadevices or Volumes

Perform this procedure to activate Solstice DiskSuite metadevices or Solaris Volume Manager volumes that are defined in files.

  1. Become superuser on the cluster node.

  2. Ensure that files are located in the /etc/lvm directory.

  3. Ensure that you have ownership of the disk set on the node where the command will be executed.

  4. Take ownership of the disk set.

    # scswitch -z setname -h node
    -z setname

    Specifies the disk set name

    -h node

    Specifies the node that takes ownership

  5. Activate the disk set's metadevices or volumes, which are defined in the file.

    # metainit -s setname -a
    -s setname

    Specifies the disk set name


    Activates all metadevices in the file

  6. For each master and log device, attach the second submirror (submirror2).

    When the metadevices or volumes in the file are activated, only the first submirror (submirror1) of the master and log devices is attached, so submirror2 must be attached manually.

    # metattach mirror submirror2
  7. Repeat Step 3 through Step 6 for each disk set in the cluster.

    If necessary, run the metainit(1M) command from another node that has connectivity to the drives. This step is required for cluster-pair topologies, where the drives are not accessible by all nodes.

  8. Check the status of the metadevices or volumes.

    # metastat -s setname

    See the metastat(1M) man page for more information.

Example 3–9 Activating Metadevices or Volumes in the File

In the following example, all metadevices that are defined in the file for disk set dg-schost-1 are activated. Then the second submirrors of master device dg-schost-1/d1 and log device dg-schost-1/d4 are activated.

# metainit -s dg-schost-1 -a
# metattach dg-schost-1/d1 dg-schost-1/d3
# metattach dg-schost-1/d4 dg-schost-1/d6

Next Steps

If your cluster contains disk sets that are configured with exactly two disk enclosures and two nodes, add dual-string mediators. Go to Configuring Dual-String Mediators.

Otherwise, go to How to Create Cluster File Systems to create a cluster file system.