Solaris Volume Manager Administration Guide

Creating Disk Sets

ProcedureHow to Create a Disk Set

Steps
  1. Check Guidelines for Working With Disk Sets.

  2. To create a disk set, use one of the following methods:

    • From the Enhanced Storage tool within the Solaris Management Console, open the Disk Sets node. Choose Action->Create Disk Set, then follow the instructions in the wizard. For more information, see the online help.

    • To create a disk set from scratch from the command line, use the following form of the metaset command:


      metaset -s diskset-name -a -h -M hostname
      
      -s diskset-name

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

      -a

      Adds hosts to the named disk set. Solaris Volume Manager supports up to eight hosts per shared disk set. Multi-owner disk sets are limited by the number of hosts supported by the application.

      -M

      Specifies that the disk set being created is a multi-owner disk set.


      Note –

      Multi-owner disk sets work with Sun Cluster and Oracle9i Real Application Clusters. For information about compatible releases of Sun Cluster, see http://wwws.sun.com/software/cluster.


      -h hostname

      Specifies one or more hosts to be added to a disk set. Adding the first host creates the set. The second host can be added later, but it is not accepted if all the disks within the set cannot be found on the specified hostname. hostname is the same name found in the /etc/nodename file.

      See metaset(1M) for more information.

  3. Check the status of the new disk set by using the metaset command.


    # metaset
    

Example 21–1 Creating a Disk Set


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

Host                Owner
  lexicon                

In this example, you create a shared disk set called blue, from the host lexicon. The metaset command shows the status. At this point, the set has no owner. The host that adds disks to the set will become the owner by default.



Example 21–2 Creating a Multi-Owner Disk Set


# metaset -s red -a -M -h nodeone
# metaset
Multi-owner Set name = red, Set number = 1, Master = 

Host                Owner          Member
  nodeone                          Yes 

In this example, you create a multi-owner disk set called red from the host nodeone. Each host added becomes a member of the disk set. The host that adds the first disk to the set becomes the master node by default.