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 will destroy 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. Right-click the Disk Set you want to release, then choose Delete from the menu. Follow the instructions in the online help.

    • To delete the host and remove the disk set if the host removed is the last host on the disk set, 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.


      # metaset -s blue -d idiom
      

      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 blue
    Set name = blue, Set number = 1
    
    Host                Owner
      lexicon            Yes 
    
    Drive               Dbase
      c1t2d0             Yes 
      c1t3d0             Yes 
      c1t4d0             Yes 
      c1t5d0             Yes 
      c1t6d0             Yes 
      c2t1d0             Yes

Example 21–11 Deleting the Last Host from a Disk Set


lexicon# metaset -s blue -d lexicon
lexicon# metaset -s blue
 
metaset: lexicon: setname "blue": no such set 

This example shows the deletion of the last host from the disk set blue.