Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5701698
  • 博文数量: 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:24:17

The following task map identifies the procedures that are needed to manage solaris volume manager's 5 volumes:
1,create RAID-5 volumes:use the solaris volume manager GUI or the metainit command to create RAID-5 volumes
2,check the status of RAID-5 volumes:use the solaris volume manager GUI or the metastat command to check the status of RAID-5 volumes
3,expand a RAID-5 volume:use the solaris volume manager GUI or the metattach command to expand RAID-5 volumes
4,enable a slice in a RAID-5 volume:use the solaris volume manager GUI or the metareplace command to enable slices in RAID-5 volumes
5,replace a slice in a RAID-5 volume:use the solaris volume manager GUI or the metareplace command to replace slices in RAID-5 volumes

创建RAID-5卷的步骤:
# metainit volume-name -r component component component -i interlace-value
例如:
# metainit d45 -r c2t3d0s2 c3t0d0s2 c4t0d0s2

检查一个RAID-5卷的状态的步骤:
# metastat [-s diskset] [volume]

扩展一个RAID-5卷的步骤:
# metattach volume-name name-of-component-to-add
例如:
# metattach d2 c2t1d0s2

HOW TO ENABLE A COMPONENT IN A RAID-5 VOLUME:
# metareplace -e volume-name component-name
例如:
# metareplace -e d20 c2t0d0s2

HOW TO REPLACE A COMPONENT IN A RAID-5 VOLUME:
1,确保当前的所有数据都已经做好备份
2,查看卷的状态来判断卷的哪个分区需要被移除
# metastat volume
3,用新的分区替换坏的分区
# metareplace volume-name failed-component new-component
4,用命令metastat查看新更换的分区是否运行良好
# metastat volume
例如:
# metastat d1
d1: RAID
State: Needs Maintenance
Invoke: metareplace d1 c0t14d0s6
Interlace: 32 blocks
Size: 8087040 blocks
Original device:
Size: 8087520 blocks
Device Start Block Dbase State Hot Spare
c0t9d0s6 330 No Okay
c0t13d0s6 330 No Okay
c0t10d0s6 330 No Okay
c0t11d0s6 330 No Okay
c0t12d0s6 330 No Okay
c0t14d0s6 330 No Maintenance
# metareplace d1 c0t14d0s6 c0t4d0s6
d1: device c0t14d0s6 is replaced with c0t4d0s6
# metastat d1
d1: RAID
State: Resyncing
Resync in progress: 98% done
Interlace: 32 blocks
Size: 8087040 blocks
Original device:
Size: 8087520 blocks
Device Start Block Dbase State Hot Spare
c0t9d0s6 330 No Okay
c0t13d0s6 330 No Okay
c0t10d0s6 330 No Okay
c0t11d0s6 330 No Okay
c0t12d0s6 330 No Okay
c0t4d0s6 330 No Resyncing

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