Solstice DiskSuite 4.2.1 User's Guide

Removing Hot Spares and Hot Spare Pools

This section describes how to remove hot spares and hot spare pools from the system.

Preliminary Information for Removing Hot Spares and Hot Spare Pools

How to Remove a Hot Spare From a Hot Spare Pool (DiskSuite Tool)

  1. 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").

  2. Double-click the Hot Spare Pool object in the Objects list.

    The object appears on the canvas.

  3. Drag the hot spare slice that you want to remove from the Hot Spare Pool object to the canvas.

  4. Click inside the top rectangle of the Hot Spare Pool object then click Commit.

  5. To verify that the hot spare pool was committed, display the Configuration Log.

How to Remove a Hot Spare From a Hot Spare Pool (Command Line)

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.

Example -- Removing a Hot Spare From a Hot Spare Pool


# 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.

Example -- Removing a Hot Spare From All Hot Spare Pools


# 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.

How to Remove a Hot Spare Pool (DiskSuite Tool)

Before you can remove a hot spare pool you must remove all associations to submirrors and RAID5 metadevices.

  1. 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").

  2. Select Hot Spare Pools from the Browse menu to display the Hot Spare Pool Browser window.

  3. 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.

  4. Remove the hot spare pool association for each metadevice (submirror or RAID5 metadevice) in the Associated With list.

    1. One by one, double-click each metadevice in the Associated With list.

      The appropriate Information window appears.

    2. Click Remove. The Hot Spare Pool field becomes blank. Then click Close.

    3. Repeat 4a and 4b for each metadevice in the Associated With list.

    4. When finished removing the hot spare pool association for each metadevice, click Close on the Hot Spare Pool Information window.

  5. 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."

  6. Double-click the Hot Spare Pool object in the Objects list to display it on the canvas.

  7. Delete the hot spare pool.

    Display the object's pop-up window and choose Delete.

  8. To verify that the hot spare pool was deleted, display the Configuration Log.

How to Remove a Hot Spare Pool (Command Line)

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.

Example -- Removing a Hot Spare Pool


# 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.