Solaris Volume Manager Administration Guide

ProcedureHow to Add Disks to a Disk Set


Caution – Caution –

Do not add disks larger than 1TB to disk sets if you expect to run the Solaris software with a 32–bit kernel or if you expect to use a version of the Solaris OS prior to Solaris 9 4/03. See Overview of Large Volume Support in Solaris Volume Manager for more information about large volume support in Solaris Volume Manager.


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

Steps
  1. Check Guidelines for Working With Disk Sets.

  2. To add disks 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 disks 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 disks to the named disk set.

      disk-name

      Specifies the disks to add to the disk set. Disk 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 disk 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 disks.


    # metaset
    

Example 21–3 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