Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
16.  Hot Spare Pools (Tasks) Maintaining Hot Spare Pools How to Replace a Hot Spare in a Hot Spare Pool  Previous   Contents   Next 
   
 

Example--Replacing a Hot Spare in One Hot Spare Pool

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

Example--Replacing a Hot Spare in All Associated Hot Spare Pools

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

How to Delete a Hot Spare from a Hot Spare Pool

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

  2. 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 
      -d

      Specifies to delete a hot spare from the hot spare pool named.

      hot-spare-pool

      Is the name of the hot spare pool, or the special keyword all to delete from all hot spare pools.

      current-hot-spare

      Is the name of the current hot spare that will be deleted.

      See the metahs(1M) man page for more information.

Example--Deleting a Hot Spare from One Hot Spare Pool

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

How to Enable a Hot Spare

  1. 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
      -e

      Specifies to enable a hot spare.

      hot-spare-slice

      Is the name of the slice to enable.

      For more information, see the metahs(1M) man page.

Example--Enabling a Hot Spare

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

 
 
 
  Previous   Contents   Next