Sun Cluster 3.0 Installation Guide

How to Activate Metadevices

  1. Ensure that you meet the following requirements.

    • You have ownership of the diskset on the node where the command will be executed.

    • The md.tab files are located in the /etc/lvm directory.

  2. Become superuser on the cluster node.

  3. Take ownership of the diskset.


    # metaset -s setname -t
    
    -s setname

    Specifies the diskset name

    -t

    Takes ownership of the diskset

  4. Activate the diskset's metadevices, which are defined in the md.tab file.


    # metainit -s setname -a
    
    -a

    Activates all metadevices in the md.tab file

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

    When the metadevices 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
    
  6. Repeat Step 4 and Step 5 for each diskset in the cluster.

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

  7. Check the status of the metadevices.


    # metastat -s setname
    

Example--Activating Metadevices in the md.tab File

In the following example, all metadevices 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

Where to Go From Here

If your cluster contains disksets configured with exactly two disk enclosures and two nodes, those disksets require mediators. To add mediator hosts, go to "Mediators Overview". Otherwise, to create a cluster file system, go to "How to Add Cluster File Systems".