Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5701568
  • 博文数量: 745
  • 博客积分: 10075
  • 博客等级: 上将
  • 技术积分: 7716
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-29 12:09
文章分类

全部博文(745)

文章存档

2019年(1)

2016年(1)

2010年(31)

2009年(88)

2008年(129)

2007年(155)

2006年(197)

2005年(143)

分类:

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

阅读(2501) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~