Solaris Volume Manager Administration Guide

ProcedureHow to Delete a Host or Disk Set

Deleting a disk set requires that the disk set contains no disks and that no other hosts are attached to the disk set. Deleting the last host destroys the disk set.

Steps
  1. Use one of the following methods to delete a host from a disk set, or to delete 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 release, then choose Delete from the menu. Follow the instructions in the online help.

    • To delete the host use the following form of the metaset command.


      metaset -s diskset-name -d -h hostname
      
      -s diskset-name

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

      -d

      Deletes a host from a disk set.

      -h hostname

      Specifies the name of the host to delete.

      Use the same form of the preceding metaset command to delete a disk set. Deleting a disk set requires that the disk set contains no disks and that no other hosts own the disk set. Deleting the last host destroys the disk set.

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

  2. Verify that the host has been deleted from the disk set by using the metaset command. Note that only the current (owning) host is shown. Other hosts have been deleted.


    # metaset -s disk-set
    

Example 19–11 Deleting a Host From a Disk Set

The following example shows the deletion of the host, host2 from the disk set, blue.


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

Host                Owner
  host1            Yes 
..host2

Drive               Dbase
  c1t2d0             Yes 
  c1t3d0             Yes 
  c1t4d0             Yes 
  c1t5d0             Yes 
  c1t6d0             Yes 
  c2t1d0             Yes

# metaset -s blue -d -h host2

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

Host                Owner
  host1            Yes 

Drive               Dbase
  c1t2d0             Yes 
  c1t3d0             Yes 
  c1t4d0             Yes 
  c1t5d0             Yes 
  c1t6d0             Yes 
  c2t1d0             Yes


Example 19–12 Deleting the Last Host from a Disk Set

The following example shows the deletion of the last host from the disk set, blue.


host1# metaset -s blue -d -h host1
host1# metaset -s blue
 
metaset: host: setname "blue": no such set