Solaris Volume Manager Administration Guide

ProcedureHow to Add Additional Slices to a Hot Spare Pool

Before You Begin

Check Prerequisites for Creating Solaris Volume Manager Components.

  1. Become superuser.

  2. To add a slice to an existing hot spare pool, use one of the following methods:

    • From the Enhanced Storage tool within the Solaris Management Console, open the Hot Spare Pools node. Choose the hot spare pool you want to change. Choose Action⇒Properties. Then, choose the Hot Spares panel. For more information, see the online help.

    • Use one of the following forms of the metahs command:


      # metahs -a hot-spare-pool-name slice-to-add
      

      # metahs -a -all hot-spare-pool-name slice-to-add
      
      -a hot-spare-pool-name

      Specifies to add the slice to the specified hot spare pool.

      -a all

      Specifies to add the slice to all hot spare pools.

      slice-to-add

      Specifies the slice to add to the hot spare pool.

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


    Note –

    You can add a hot spare to one or more hot spare pools. When you add a hot spare to a hot spare pool, the hot spare is added to the end of the list of slices in the hot spare pool.



Example 17–2 Adding a Hot Spare Slice to One Hot Spare Pool

In this example, the -a option adds the slice /dev/dsk/c3t0d0s2 to hot spare pool hsp001. The system verifies that the slice has been added to the hot spare pool.


# metahs -a hsp001 /dev/dsk/c3t0d0s2
hsp001: Hotspare is added


Example 17–3 Adding a Hot Spare Slice to All Hot Spare Pools

In this example, the -a option used with all adds the slice /dev/dsk/c3t0d0s2 to all hot spare pools configured on the system. The system verifies that the slice has been added to all hot spare pools.


# metahs -a -all /dev/dsk/c3t0d0s2
hsp001: Hotspare is added
hsp002: Hotspare is added
hsp003: Hotspare is added