Check Prerequisites for Creating Solaris Volume Manager Elements.
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 and Attach HSP. For more information, see the online help.
Use the following form of the metaparam command:
metaparam -h hot-spare-pool component |
Specifies to modify the hot spare pool named.
Is the name of the hot spare pool.
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.
# 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 ... |
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 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.
Check Prerequisites for Creating Solaris Volume Manager Elements.
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 |
Specifies to modify the hot spare pool named.
Is the name of the new hot spare pool, or the special keyword none to remove hot spare pool associations.
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.
# 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.
# 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.