After checking the prerequisites ("Prerequisites for Creating DiskSuite Objects"), and the preliminary information ("Preliminary Information for Creating Hot Spare Pools"), use the metaparam(1M) command to change the metadevice's associated hot spare pool. For more information, refer to the metaparam(1M) man page.
# 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 currently associated with a RAID5 metadevice named d4. The hot spare pool association is changed to hsp002. The metastat command shows the hot spare pool association before and after.