Become superuser.
Verify whether the hot spare is currently being used by using one of the following methods:
From the Enhanced Storage tool within the Solaris Management Console, open the Hot Spare Pools node and select a hot spare pool. Choose Action⇒Properties. Then choose the Hot Spares panel. Follow the onscreen instructions. For more information, see the online help.
Use the following form of the metastat command to view the status of the hot spare pool:
# metastat hot-spare-pool-name |
See the metastat(1M) man page.
To delete the hot spare, use one of the following methods:
From the Enhanced Storage tool within the Solaris Management Console, open the Hot Spare Pools node and select a hot spare pool. Choose Action⇒Properties. Then choose the Hot Spares panel. Follow the onscreen instructions. For more information, see the online help.
Use the following form of the metahs command:
# metahs -d hot-spare-pool-name current-hot-spare |
Specifies to delete a hot spare from the named hot spare pool.
Specifies the name of the hot spare pool. You can also use the special keyword all to delete the hot spare from all hot spare pools.
Specifies the name of the current hot spare that will be deleted.
For more information, see the metahs(1M) man page.
In the following example, the metastat command shows that the hot spare is not in use. The metahs -d command deletes the hot spare, /dev/dsk/c0t2d0s2, in the hot spare pool, hsp003.
# metastat hsp003 hsp003: 1 hot spare c0t2d0s2 Broken 5600 blocks # metahs -d hsp003 c0t2d0s2 |