Perform this procedure to activate Solstice DiskSuite metadevices or Solaris Volume Manager volumes that are defined in md.tab files.
Become superuser on the cluster node.
Ensure that md.tab files are located in the /etc/lvm directory.
Ensure that you have ownership of the diskset on the node where the command will be executed.
Take ownership of the diskset.
# metaset -s setname -t |
Specifies the diskset name
Takes ownership of the diskset
Activate the diskset's metadevices or volumes, which are defined in the md.tab file.
# metainit -s setname -a |
Activates all metadevices in the md.tab file
For each master and log device, attach the second submirror (submirror2).
When the metadevices or volumes in the md.tab file are activated, only the first submirror (submirror1) of the master and log devices is attached, so submirror2 must be attached by hand.
# metattach mirror submirror2 |
Repeat Step 3 through Step 6 for each diskset in the cluster.
If necessary, run the metainit(1M) command from another node that has connectivity to the disk drives. This step is required for cluster-pair topologies, where the disk drives are not accessible by all nodes.
Check the status of the metadevices or volumes.
# metastat -s setname |
See the metastat(1M) man page for more information.
Does your cluster contain disksets that are configured with exactly two disk enclosures and two nodes?
If yes, those disksets require dual-string mediators. Go to Configuring Dual-String Mediators to add mediator hosts.
If no, go to How to Add Cluster File Systems to create a cluster file system.
In the following example, all metadevices that are defined in the md.tab file for diskset 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 |