Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
16.  Hot Spare Pools (Tasks) Associating a Hot Spare Pool With Volumes How to Associate a Hot Spare Pool With a Volume Example--Associating a Hot Spare Pool With Submirrors  Previous   Contents   Next 
   
 

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

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

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

How to Change the Associated Hot Spare Pool

  1. Check "Prerequisites for Creating Solaris Volume Manager Elements".

  2. To change a volume's associated hot spare pool, use one of the following methods:

    • From the Enhanced Storage tool within the Solaris Management Console, open the Volumes node and choose the volume. Choose Action->Properties, then choose the Hot Spare Pool panel. Detach the unwanted hot spare pool and detach the new hot spare pool by following the instructions. For more information, see the online help.

    • Use the following form of the metaparam command:

      metaparam -h hot-spare-pool-name RAID5-volume-or-submirror-name
      -h

      Specifies to modify the hot spare pool named.

      hot-spare-pool

      Is the name of the new hot spare pool, or the special keyword none to remove hot spare pool associations.

      component

      Is the name of the submirror or RAID 5 volume to which the hot spare pool is being attached.

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

Example--Changing the Hot Spare Pool Association

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

In this example, the hot spare pool hsp001 is initially associated with a RAID 5 volume named d4. The hot spare pool association is changed to hsp002. The metastat command shows the hot spare pool association before and after this change.

Example--Removing the Hot Spare Pool Association

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

In this example, the hot spare pool hsp001 is initially associated with a RAID 5 volume named d4. The hot spare pool association is changed to none, which indicates that no hot spare pool should be associated with this device. The metastat command shows the hot spare pool association before and after this change.

Maintaining Hot Spare Pools

How to Check Status of Hot Spares and Hot Spare Pools

  • 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

Note - The metahs command can also be used to check the status of hot spare pool.


Example--Viewing Hot Spare Pool Status

Here is sample output from the metastat command on a hot spare pool.

# metastat hsp001
hsp001: 1 hot spare
        c1t3d0s2                Available       16800 blocks

Hot Spare Pool States

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.

How to Replace a Hot Spare in 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 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
      -r

      Specifies to replace disks in the hot spare pool named.

      hot-spare-pool

      Is the name of the hot spare pool, or the special keyword all to change all hot spare pool associations.

      current-hot-spare

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

      replacement-hot-spare

      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.

 
 
 
  Previous   Contents   Next