To view the status of a hot spare pool and its hot spares, 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 to get detailed status information. For more information, see the online help.
Run the following form of the metastat command:
metastat hot-spare-pool-name |
The metahs command can also be used to check the status of hot spare pool.
Here is sample output from the metastat command on a hot spare pool.
# metastat hsp001 hsp001: 1 hot spare c1t3d0s2 Available 16800 blocks |
The following table explains hot spare pool states and possible actions to take.
Table 16–1 Hot Spare Pool States (Command Line)
State |
Meaning |
Action |
---|---|---|
Available |
The hot spares are running and ready to accept data, but are not currently being written to or read from. |
None. |
In-use |
This hot spare pool includes slices that have been used to replace failed components in a redundant volume. |
Diagnose how the hot spares are being used. Then, repair the slice in the volume for which the hot spare is being used. |
Broken |
There is a problem with a hot spare or hot spare pool, but there is no immediate danger of losing data. This status is also displayed if all the hot spares are in use or if any hot spares are broken. |
Diagnose how the hot spares are being used or why they are broken. You can add more hot spares to the hot spare pool, if desired. |
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 and follow the instructions. For more information, see the online help.
Use the following form of the metastat command:
metastat hot-spare-pool-name |
See the metastat(1M) man page.
To replace 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 and follow the instructions. For more information, see the online help.
Use the following form of the metahs command:
metahs -r hot-spare-pool-name current-hot-spare replacement-hot-spare |
Specifies to replace disks in the hot spare pool named.
Is the name of the hot spare pool, or the special keyword all to change all hot spare pool associations.
Is the name of the current hot spare that will be replaced.
Is the name of the slice to take the place of the current hot spare in the named pools.
See the metahs(1M) man page for more information.
# metastat hsp003 hsp003: 1 hot spare c0t2d0s2 Broken 5600 blocks # metahs -r hsp003 c0t2d0s2 c3t1d0s2 hsp003: Hotspare c0t2d0s2 is replaced with c3t1d0s2 |
In this example, the metastat command makes sure that the hot spare is not in use. The metahs -r command replaces hot spare /dev/dsk/c0t2d0s2 with /dev/dsk/c3t1d0s2 in the hot spare pool hsp003.
# metahs -r all c1t0d0s2 c3t1d0s2 hsp001: Hotspare c1t0d0s2 is replaced with c3t1d0s2 hsp002: Hotspare c1t0d0s2 is replaced with c3t1d0s2 hsp003: Hotspare c1t0d0s2 is replaced with c3t1d0s2 |
In this example, the keyword all replaces hot spare /dev/dsk/c1t0d0s2 with /dev/dsk/c3t1d0s2 in all its associated hot spare pools.
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 and follow the instructions. For more information, see the online help.
Use the following form of the metastat command:
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 and follow the 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 hot spare pool named.
Is the name of the hot spare pool, or the special keyword all to delete from all hot spare pools.
Is the name of the current hot spare that will be deleted.
See the metahs(1M) man page for more information.
# metastat hsp003 hsp003: 1 hot spare c0t2d0s2 Broken 5600 blocks # metahs -d hsp003 c0t2d0s2 |
In this example, the metastat command makes sure that the hot spare is not in use. The metahs -d command deletes hot spare /dev/dsk/c0t2d0s2 in the hot spare pool hsp003.
To return a hot spare to the “available” state, 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 the Hot Spares panel and follow the instructions. For more information, see the online help.
Use the following form of the metahs command:
metahs -e hot-spare-slice |
Specifies to enable a hot spare.
Is the name of the slice to enable.
For more information, see the metahs(1M) man page.
# metahs -e c0t0d0s2 |
In this example, the command places the hot spare /dev/dsk/c0t0d0s2 in the “Available” state after it has been repaired. It is unnecessary to specify a hot spare pool.