Solaris Volume Manager Administration Guide

ProcedureHow to Associate a Hot Spare Pool With a Volume

Before You Begin

Check Prerequisites for Creating Solaris Volume Manager Components.

  1. Become superuser.

  2. To associate a hot spare pool with a RAID-5 volume or submirror, use one of the following methods:

    • From the Enhanced Storage tool within the Solaris Management Console, open the Volumes and choose a volume. Choose Action⇒Properties. Then, choose the Hot Spare Pool panel. Finally, choose Attach HSP. For more information, see the online help.

    • Use the following form of the metaparam command:


      # metaparam -h hot-spare-pool component
      
      -h

      Specifies to modify the named hot spare pooll.

      hot-spare-pool

      Specifies the name of the hot spare pool.

      component

      Specifies the name of the submirror or RAID-5 volume to which the hot spare pool is being associated.

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


Example 17–4 Associating a Hot Spare Pool With Submirrors

In the following example, the -h option associates a hot spare pool, hsp100, with two submirrors, d10 and d11, of mirror, d0. The metastat command shows that the hot spare pool is associated with the submirrors.


# metaparam -h hsp100 d10
# metaparam -h hsp100 d11
# metastat d0
d0: Mirror
    Submirror 0: d10
      State: Okay        
    Submirror 1: d11
      State: Okay        
...
 
d10: Submirror of d0
    State: Okay        
    Hot spare pool: hsp100
...
 
 
d11: Submirror of d0
    State: Okay        
    Hot spare pool: hsp100
...


Example 17–5 Associating a Hot Spare Pool With a RAID-5 Volume

In the following example, the -h option associates a hot spare, hsp001, with a RAID-5 volume,d10. The metastat command shows that the hot spare pool is associated with the RAID-5 volume.


# metaparam -h hsp001 d10
# metastat d10
d10: RAID
    State: Okay        
    Hot spare pool: hsp001
...