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.
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 |
Specifies the name of a disk set on which the metaset command will work.
Deletes a host from a disk set.
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.
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 |
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 |
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 |