Sun Cluster Software Installation Guide for Solaris OS

How to Add Drives to a Disk Set

  1. Become superuser on the node.

  2. Ensure that the disk set has been created.

    For instructions, see How to Create a Disk Set.

  3. List the DID mappings.


    # scdidadm -L
    

    • Choose drives that are shared by the cluster nodes that will master or potentially master the disk set.

    • Use the full device-ID path names when you add drives to a disk set.

    The first column of output is the DID instance number, the second column is the full physical path name, and the third column is the full device-ID path name (pseudo path). A shared drive has more than one entry for the same DID instance number.

    In the following example, the entries for DID instance number 2 indicate a drive that is shared by phys-schost-1 and phys-schost-2, and the full device-ID path name is /dev/did/rdsk/d2.


    1       phys-schost-1:/dev/rdsk/c0t0d0 /dev/did/rdsk/d1
    2       phys-schost-1:/dev/rdsk/c1t1d0 /dev/did/rdsk/d2
    2       phys-schost-2:/dev/rdsk/c1t1d0 /dev/did/rdsk/d2
    3       phys-schost-1:/dev/rdsk/c1t2d0 /dev/did/rdsk/d3
    3       phys-schost-2:/dev/rdsk/c1t2d0 /dev/did/rdsk/d3
    …

  4. Take ownership of the disk set.


    # metaset -s setname -t
    
    -s setname

    Specifies the disk set name

    -t

    Takes ownership of the disk set

  5. Add the drives to the disk set.

    Use the full device-ID path name.


    # metaset -s setname -a drivename
    

    -a

    Adds the drive to the disk set

    drivename

    Full device-ID path name of the shared drive


    Note –

    Do not use the lower-level device name (cNtXdY) when you add a drive to a disk set. Because the lower-level device name is a local name and not unique throughout the cluster, using this name might prevent the metaset from being able to switch over.


  6. Verify the status of the disk set and drives.


    # metaset -s setname
    

  7. (Optional) To repartition drives for use in metadevices or volumes, go to How to Repartition Drives in a Disk Set.

  8. Go to How to Create an md.tab File to define metadevices or volumes by using an md.tab file.