This section describes how to remove hot spares and hot spare pools from the system.
Hot spares in the in use state cannot be deleted.
Before a hot spare pool can be deleted, first delete all of the hot spare pool's associations to submirrors and RAID5 metadevices.
Make sure you have met the prerequisites ("Prerequisites for Removing DiskSuite Objects") and have read the preliminary information ("Preliminary Information for Removing Hot Spares and Hot Spare Pools").
Double-click the Hot Spare Pool object in the Objects list.
The object appears on the canvas.
Drag the hot spare slice that you want to remove from the Hot Spare Pool object to the canvas.
Click inside the top rectangle of the Hot Spare Pool object then click Commit.
To verify that the hot spare pool was committed, display the Configuration Log.
After checking the prerequisites ("Prerequisites for Removing DiskSuite Objects") and the preliminary information ("Preliminary Information for Removing Hot Spares and Hot Spare Pools"), use the metahs(1M) command to remove the hot spare. Refer to the metahs(1M) man page for more information.
# metahs -d hsp003 /dev/dsk/c2t1d0s2 hsp003: Hotspare is deleted |
This example removes the hot spare /dev/dsk/c2t1d0s2 from the hot spare pool hsp003.
# metahs -d all /dev/dsk/c2t1d0s2 hsp003: Hotspare is deleted hsp004: Hotspare is deleted # metahs -i ... hsp003: 2 hot spares c1t3d0s6 Available 912800 blocks c0t0d0s4 Available 5600 blocks hsp004: 2 hot spares c1t3d0s6 Available 912800 blocks c0t0d0s4 Available 5600 blocks |
This example removes the hot spare /dev/dsk/c2t1d0s2 from all its associated hot spare pools. The metahs command with the -i option shows that the hot spare slice is no longer part of the hot spare pools from which it was deleted.
Before you can remove a hot spare pool you must remove all associations to submirrors and RAID5 metadevices.
Make sure you have met the prerequisites ("Prerequisites for Removing DiskSuite Objects") and have read the preliminary information ("Preliminary Information for Removing Hot Spares and Hot Spare Pools").
Select Hot Spare Pools from the Browse menu to display the Hot Spare Pool Browser window.
Double-click the hot spare pool in the scrolling list that you want to delete.
The Hot Spare Pool Information window for that hot spare pool appears. An "Associated With" listing displays all the metadevices using the hot spare pool.
Remove the hot spare pool association for each metadevice (submirror or RAID5 metadevice) in the Associated With list.
One by one, double-click each metadevice in the Associated With list.
The appropriate Information window appears.
Click Remove. The Hot Spare Pool field becomes blank. Then click Close.
Repeat 4a and 4b for each metadevice in the Associated With list.
When finished removing the hot spare pool association for each metadevice, click Close on the Hot Spare Pool Information window.
Commit each mirror or RAID5 device that had its hot spare pool association removed.
The "Use" status of the hot spare pool changes to "None."
Double-click the Hot Spare Pool object in the Objects list to display it on the canvas.
Delete the hot spare pool.
Display the object's pop-up window and choose Delete.
To verify that the hot spare pool was deleted, display the Configuration Log.
After checking the prerequisites ("Prerequisites for Removing DiskSuite Objects") and the preliminary information ("Preliminary Information for Removing Hot Spares and Hot Spare Pools"), use the metaparam(1M) and metahs(1M) commands to remove a hot spare pool. For more information, refer to the metaparam(1M) and metahs(1M) man pages.
# metastat ... d30: Mirror State: Okay ... d31: Submirror of d30 Hot spare pool: hsp001 ... d32: Submirror of d30 Hot spare pool: hsp001 ... # metaparam -h none d30 # metaparam -h none d31 # metahs -d hsp001 hsp001: Hotspare pool is cleared |
This example shows how the hot spare pool hsp001 is removed. To find out the hot spare pool associations, use the metastat command. The metastat output shows two submirrors, d31 and d32, using hot spare pool hsp001. The metaparam command with the -h and none options removes the association to the hot spare pool, first for submirror d31, then d32. When the hot spare pool has no more associations, it is removed with the metahs -d command.