1、制作RAID0
#metadb -a -c 3 -f c2t0d0s3 c2t1d0s3 c2t2d0s3
#metainit d0 1 1 c2t0d0s0
#metattach c2t1d0s0
#metattach c2t2d0s3
#metastat
创建文件系统和挂接
#newfs /dev/md/rdsk/d0
#mkdir /raid0
#mount /dev/md/dsk/d0 /raid0
清除RAID
#umount /raid0
#metaclear d0
#metadb -d -f c2t0d0s3 c2t1d0s3 c2t2d0s3
2、制作RAID1
#metadb -a -c 3 -f c2t0d0s3 c2t1d0s3
#metainit d1 1 1 c2t0d0s0
#metainit d2 1 1 c2t1d0s0
#metainit d0 -m d1
#metattach d0 d2
#metastat
创建文件系统和挂接
#newfs /dev/md/rdsk/d0
#mkdir /raid1
#mount /dev/md/dsk/d0 /raid1
清除RAID
#umount /raid1
#metaclear d0
#metadb -d -f c2t0d0s3 c2t1d0s3
3、制作RAID5
#metadb -a -c 3 -f c2t0d0s3 c2t1d0s3 c2t2d0s3 c2t3d0s3
#metainit d0 -r c2t0d0s3 c2t1d0s3 c2t2d0s3 c2t3d0s3
#metastat
创建文件系统和挂接
#newfs /dev/md/rdsk/d0
#mkdir /raid5
#mount /dev/md/dsk/d0 /raid5
清除RAID
#umount /raid5
#metaclear d0
#metadb -d -f c2t0d0s3 c2t1d0s3 c2t2d0s3 c2t3d0s3
4、制作RAID 0+1
#metainit d1 1 2 c2t0d0s0 c2t1d0s0
#metainit d2 1 2 c2t2d0s0 c2t3d0s0
#metainit d0 -m d1
#metattach d0 d2
#metastat
5、热备盘的制作
#metainit hsp001
#metahs -a hsp001 c2t4d0s0
#metaparam -h hsp001 d0
如果是RAID1的情况,热备只能绑定在两个子镜像卷上而不能绑在主镜像卷:
#metaparam -h hsp001 d1
#metaparam -h hsp001 d2
#metastat
删除热备
#metaparam -h none d0
#metaclear hsp001
阅读(1450) | 评论(0) | 转发(0) |