This section describes how to remove disksets from the system.
You can remove hosts from a diskset. However, the last host can be removed from a diskset only after all drives in the diskset have been removed.
Removing the last host from a diskset destroys the diskset.
When drives are removed from a diskset, DiskSuite re-balances the metadevice state database replicas across the remaining drives.
Make sure you have met the prerequisites ("Prerequisites for Removing DiskSuite Objects") and have read the preliminary information ("Preliminary Information for Removing Hosts and Disks From Disksets").
Remove a host from a diskset by using the metaset(1M) command.
# metaset -s diskset -d -h host |
In this command,
-s diskset |
Specifies the name of a diskset on which metaset will work. |
-d |
Deletes the specified host. |
-h host |
Specifies one or more hostnames to be deleted from the diskset. The hostname is the same name found in /etc/nodename. |
To verify that a host has been removed from the diskset, use the metaset(1M) command without any options.
# metaset |
red# metaset -s relo-red -d -h blue red# metaset Set name = relo-red, Set number = 1 Host Owner red Yes ... |
This example removes the host blue from the diskset relo-red.
Make sure you have met the prerequisites ("Prerequisites for Removing DiskSuite Objects") and have read the preliminary information ("Preliminary Information for Removing Hosts and Disks From Disksets").
Remove the drive from the diskset by using the metaset(1M) command.
# metaset -s diskset -d [-f] drive... |
In this command,
-s diskset |
Specifies the name of a diskset on which metaset will work. |
-d |
Deletes the specified drivename(s). |
-f |
Forces the deletion of the last drive in the diskset, because this drive would implicitly contain the last state database replica. |
drive |
Specifies the drive(s) to be deleted from the diskset. They must be in the form cxtxdx with no slice specified. |
Use the -f option to delete the last drive in the diskset.
To verify that a drive has been removed from the diskset, use the metaset(1M) command.
red# metaset -s relo-red -d c2t5d0 red# metaset ... Host Owner red Yes blue Drive Dbase c1t2d0 Yes c1t3d0 Yes c2t2d0 Yes c2t3d0 Yes c2t4d0 Yes |
This example removes drive c2t5d0 from diskset relo-red. The metaset command confirms that the deleted drive is no longer part of the diskset.
Removing a diskset completely means:
Removing all metadevices and hot spare pools in the diskset
Removing all but one host in the diskset
Removing all drives in the diskset
Removing the final host
After checking the prerequisites ("Prerequisites for Removing DiskSuite Objects"), and the preliminary information ("Preliminary Information for Removing Hosts and Disks From Disksets"), use the metaclear(1M) and metaset(1M) commands to completely remove a diskset. Refer to the metaclear(1M) and metaset(1M) man pages for more information.
red# metaclear -s relo-red -a red# metaset -s relo-red -d -h blue red# metaset -s relo-red -f -d c1t2d0 c1t3d0 c2t2d0 c2t3d0 c2t4d0 c2t5d0 red# metaset -s relo-red -d -h red |
The metaclear -a command clears (removes) all metadevices and hot spare pools from the relo-red diskset. Next, host blue is deleted from the diskset, followed by the shared disk drives. Finally, the last host in the set, in this case, red, is deleted from the diskset. This last command removes the diskset from the system.