Solaris Volume Manager Administration Guide

How to Add Drives to a Disk Set

Only drives that meet the following conditions can be added to a disk set:

  1. Check Background Information for Disk Sets.

  2. To add drives to a disk set, use one of the following methods:

    • From the Enhanced Storage tool within the Solaris Management Console, open the Disk Sets node. Select the disk set you want to modify, then right-click and choose Properties. Select the Disks tab, click Add Disk, then follow the instructions in the wizard. For more information, see the online help.

    • To add drives to a disk set from the command line, use the following form of the metaset command:

      metaset [-s diskset-name] [a] [disk-name]
      -s diskset-name

      Specifies the name of a disk set on which the metaset command will work.

      -a

      Adds drives to the named disk set.

      disk-name

      Specifies the drives to add to the disk set. Drive names are in the form cxtxdx; no “sx” slice identifiers are at the end of the name. They need to be the same as seen from all hosts in the disk set.

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

    The first host to add a drive to a disk set becomes the owner of the disk set.


    Caution – Caution –

    Do not add a disk with data; the process of adding it to the disk set might repartition the disk, destroying any data. For more information, see Example—Two Shared Disk Sets


  3. Use the metaset command to verify the status of the disk set and drives.


    # metaset
    

Example—Adding a Drive to a Disk Set


# metaset -s blue -a c1t6d0
# metaset
Set name = blue, Set number = 1

Host                Owner
  lexicon            Yes 

Drive               Dbase
  c1t6d0             Yes 

In this example, the host name is lexicon. The shared disk set is blue. At this point, only one disk has been added to the disk set blue.

Optionally, you could add multiple disks at once by listing each of them on the command line. For example, you could use the following:


# metaset -s blue -a c1t6d0 c2t6d0