以下只是举例方式说明如何通过Volume Manager 3.5建立各种vol,
#format ------------看到如下4块硬盘
c3t10d0
c3t11d0
c3t12d0
c3t13d0
#vxdisk list
DEVICE TYPE DISK GROUP STATUS
c3t10d0s2 sliced - - online
c3t11d0s2 sliced - - online
c3t12d0s2 sliced - - online
c3t13d0s2 sliced - - online
1.初始化磁盘
#vxdisksetup -i c3t10d0
#vxdisksetup -i c3t11d0
#vxdisksetup -i c3t12d0
#vxdisksetup -i c3t13d0
2.建立device group
#vxdg init datadg datadg01=c3t10d0
#vxdg -g datadg adddisk datadg02=c3t11d0
#vxdg -g datadg adddisk datadg03=c3t12d0
#vxdg -g datadg adddisk datadg04=c3t13d0
3.设置c3t13d0为hotspare 磁盘
#vxedit -g datadg set spare=on datadg04
4.在次查看磁盘状态
#vxdisk list
DEVICE TYPE DISK GROUP STATUS
c3t10d0s2 sliced datadg01 datadg online
c3t11d0s2 sliced datadg02 datadg online
c3t12d0s2 sliced datadg03 datadg online
c3t13d0s2 sliced datadg04 datadg online spare
5.下列步骤是建立raid0,raid1,raid5卷举例
5.1建立raid0卷
#vxassist -g datadg make vol1 200m layout=stripe datadg01 datadg02 datadg03
5.2建立raid1卷
#vxassist -g datadg make vol2 200m layout=mirror datadg01 datadg02 datadg03
5.3建立raid5卷
#vxassist -g datadg make vol3 200m layout=raid5 datadg01 datadg02 datadg03
5.4建立0+1卷
#vxassist -g datadg make vol4 200m layout=mirror-stripe datadg01 datadg02 datadg03
5.5建立1+0卷
#vxassist -g datadg make vol5 200m layout=stripe-mirror datadg01 datadg02 datadg03
具体的建立卷的类型要看你们的需要了!
阅读(3913) | 评论(0) | 转发(1) |