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. Click the right mouse on the disk set you want to take. Then, hen 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 -f 
      
    -s diskset-name

    Specifies the name of a disk set to take.

    -t

    Specifies to take the disk set.

    -f

    Specifies to take the disk set forcibly.

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

    Only one host at a time can own a disk set. When one host in a disk set takes the disk set, the other host in the disk set cannot access data on the disks in the disk set.

    The default behavior of the metaset command is to allow your host to take the disk set only if a release is possible on the host that has ownership of the disk set. 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 on the disk set.


    Note –

    Disk set ownership is only shown on the owning host.



Example 19–8 Taking a Disk Set

In the following example, the host, host1, communicates with the host, host2. This communication ensures that the host host2 has released the disk set before the host, host1, attempts to take the disk set.


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

If host2 owned the disk set, blue, the “Owner” column in the preceding output would still have been blank. The metaset command only shows whether the host issuing the command owns the disk set.



Example 19–9 Taking a Disk Set Forcibly

In the following example, the host that is taking the disk set does not communicate with the other host. Instead, the -f option allows the disks in the disk set to be forcibly taken without warning. If the other host had owned the disk set, that host would panic when it attempted an I/O operation on the disk set.


# metaset -s blue -t -f