分类:
2005-10-17 17:26:36
The following task map identifies the procedures that are needed to manage solaris volume manager hot spare pools:
1,create a hot spare pool:use the solaris volume manager GUI or the metainit command to create a hot spare pool
2,add slices to a hot spare pool:use the solaris volume manager GUI or the metahs command to add slices to a hot spare pool
3,associate a hot spare pool with a volume:use thesolaris volume manager GUI or the metaparam command to associate a hot spare pool with a volume
4,change which hot spare pool is associated with a volume:use the solaris volume manager GUI or the metaparam command to change which hot spare pool is associated with a volume
5,check the status of hot spares and hot spare pools:use the solaris volume manager GUI, the metastat command, or metahs -i command to check the status of a hot spare or hot spare pool
6,replace a hot spare in a hot spare pool:use the solaris volume manager GUI or the metahs command to replace a hot spare in a hot spare pool
7,delete a hot spare from a hot spare pool:use the solaris volume manager GUI or the metahs command to delete a hot spare from a hot spare pool
8,enable a hot spare:use the solaris volume manager GUI or the metahs command to enable a hot spare in a hot spare pool
创建一个hot spare pool:
# metainit hot-spare-pool-name ctds-for-slice
例如:
# metainit hsp001 c2t2d0s2 c3t2d0s2
增加附加的分区到一个hot spare pool:
# metahs -a hot-spare-name slice-to-add(添加一个分区到一个hot spare pool)
# metahs -a -all hot-spare-name slice-to-add(添加一个分区到所有的hot spare pool)
例如:
# metahs -a hsp001 /dev/dsk/c3t0d0s2
# metahs -a -all /dev/dsk/c3t0d0s2
将一个hot spare pool和卷相联系:
# metaparam -h hot-spare-pool component
例如:
# 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
...
改变相联系的hot spare pool:
# metaparam -h hot-spare-pool-name RAID5-volume-or-submirror-name
例如:
# metastat d4
# metaparam -h hsp002 d4
# metastat d4
查看hot spare和hot spare pools的状态:
# metastat hot-spare-pool-name
移除hot spare pool中的hot spare:
# metahs -r hot-spare-pool-name current-hot-spare replacement-hot-spare
例如:
# metastat hsp003
hsp003: 1 hot spare
c0t2d0s2 Broken 5600 blocks
# metahs -r hsp003 c0t2d0s2 c3t1d0s2
hsp003:Hotspare c0t2d0s2 is replaced with c3t1d0s2
从hot spare pool中删除一个hot spare:
# metahs -d hot-spare-pool-name current-hot-spare
使一个hot spare开始工作:
# metahs -e hot-spare-slice