Solaris Volume Manager Administration Guide

ProcedureHow to Take a Disk Set


Note –

This option is not available for multi-owner disk sets.


Step

    Use one of the following methods to take a disk set.

    • From the Enhanced Storage tool within the Solaris Management Console, open the Disk Sets node. Right-click the Disk Set you want to take, then choose Take Ownership from the menu. For more information, see the online help.

    • Use the following form of the metaset command.


      metaset -s diskset-name -t
      
    -s diskset-name

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

    -t

    Specifies to take the disk set.

    -f

    Specifies to take the disk set forcibly.

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

    When one host in a disk set takes the disk set, the other host in the disk set cannot access data on disks in the disk set.

    The default behavior of the metaset command takes the disk set for your host only if a release is possible on the other host.

    Use the -f option to forcibly take the disk set. This option takes the disk set whether or not another host currently has the set. Use this method when a host in the disk set is down or not communicating. If the other host had the disk set taken at this point, it would panic when it attempts to perform an I/O operation to the disk set.


    Note –

    Disk set ownership is only shown on the owning host.



Example 21–8 Taking a Disk Set


lexicon# metaset
...
Set name = blue, Set number = 1
 
Host                Owner
  lexicon
  idiom
...
lexicon# metaset -s blue -t
lexicon# metaset
...
Set name = blue, Set number = 1
 
Host                Owner
  lexicon                Yes
  idiom
...

In this example, host lexicon communicates with host idiom and ensures that host idiom has released the disk set before host lexicon attempts to take the set.

In this example, if host idiom owned the set blue, the “Owner” column in the above output would still have been blank. The metaset command only shows whether the issuing host owns the disk set, and not the other host.



Example 21–9 Taking a Disk Set Forcibly


# metaset -s blue -t -f

In this example, the host that is taking the disk set does not communicate with the other host. Instead, the disks in the disk set are taken without warning. If the other host had the disk set, it would panic when it attempts an I/O operation to the disk set.