Check Prerequisites for Creating Solaris Volume Manager Components.
Become superuser.
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 attach the new hot spare pool by following the onscreen 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.
Specifies the name of the new hot spare pool, or the special keyword none to remove hot spare pool associations.
Specifies 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.
In the following example, the hot spare pool, hsp001, is initially associated with a RAID-5 volume,d4. The hot spare pool association for the volume is then 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 hsp002 d4 # metastat d4 d4: RAID State: Okay Hot spare pool: hsp002 ... |
In the following example, the hot spare pool, hsp001, is initially associated with a RAID-5 volume, d4. The hot spare pool association is then changed to none, which indicates that no hot spare pool should be associated with this volume. 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: ... |