Sun Cluster Software Installation Guide for Solaris OS

ProcedureHow to Activate Volumes

Perform this procedure to activate Solaris Volume Manager volumes that are defined in md.tab files.

  1. Become superuser.

  2. Ensure that md.tab 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.


    phys-schost# cldevicegroup switch -n node devicegroup
    
    -n node

    Specifies the node that takes ownership.

    devicegroup

    Specifies the disk set name.

  5. Activate the disk set's volumes, which are defined in the md.tab file.


    phys-schost# metainit -s setname -a
    
    -s setname

    Specifies the disk set name.

    -a

    Activates all volumes in the md.tab file.

  6. Repeat Step 3 through Step 5 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.

  7. Check the status of the volumes.


    phys-schost# metastat -s setname
    

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

  8. (Optional) Capture the disk partitioning information for future reference.


    phys-schost# prtvtoc /dev/rdsk/cNtXdYsZ > filename
    

    Store the file in a location outside the cluster. If you make any disk configuration changes, run this command again to capture the changed configuration. If a disk fails and needs replacement, you can use this information to restore the disk partition configuration. For more information, see the prtvtoc(1M) man page.

  9. (Optional) Make a backup of your cluster configuration.

    An archived backup of your cluster configuration facilitates easier recovery of the your cluster configuration,

    For more information, see How to Back Up the Cluster Configuration in Sun Cluster System Administration Guide for Solaris OS.


Example 4–9 Activating Volumes in the md.tab File

In the following example, all volumes that are defined in the md.tab file for disk set dg-schost-1 are activated.


phys-schost# metainit -s dg-schost-1 -a

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.