RAID 0+1
C1t0d0s0 c1t1d0s0 /
C1t0d0s1 c1t1d0s1 /var
C1t0d0s6 c1t1d0s6 /usr
C1t0d0s5 c1t1d0s5 /opt
C1t0d0s7 c1t1d0s7 /export/home
C1t0d0s3 c1t1d0s3 swap
“/”的RAID 1:
metainit –f d11 1 1 c1t0d0s0
metainit d12 1 1 c1t1d0s0
metainit d10 –m d11
metaroot d10
init 6 (很重要!)
metattach d10 d12
“/var”的RAID 1:
metainit –f d21 1 1 c1t0d0s1
metainit d22 1 1 c1t1d0s1
metainit d20 –m d21
vi /etc/vfstab
/dev/md/dsk/d20 /dev/md/rdsk/d20
init 6 (很重要!)
metattach d20 d22
“/usr”的RAID 1:
metainit –f d31 1 1 c1t0d0s6
metainit d32 1 1 c1t1d0s6
metainit d30 –m d31
vi /etc/vfstab
/dev/md/dsk/d30 /dev/md/rdsk/d30
init 6 (很重要!)
metattach d30 d32
“swap”的RAID 5:
metainit –f d41 1 1 c1t0d0s3
metainit d42 1 1 c1t1d0s3
metainit d40 –m d41
vi /etc/vfstab
/dev/md/dsk/d40 /dev/md/rdsk/d40
init 6 (很重要!)
metattach d40 d42
“/opt”的RAID 1:
metainit –f d51 1 1 c1t0d0s5
metainit d52 1 1 c1t1d0s5
metainit d50 –m d41
vi /etc/vfstab
/dev/md/dsk/d50 /dev/md/rdsk/d50
metattach d50 d52
“/export/home”的RAID 1:
metainit –f d61 1 1 c1t0d0s7
metainit d62 1 1 c1t1d0s7
metainit d60 –m d61
vi /etc/vfstab
/dev/md/dsk/d60 /dev/md/rdsk/d60
metattach d60 d62
RAID 5:
C1t2d0s2 c1t3d0s2 c1t4d0s2 c1t5d0s2为整个硬盘,s0用于存放metadb,s1是除s0以外的空间。C1t5d0s2为hotspare。
Metadb –a –c 3 –f c1t2d0s0 c1t3d0s0 c1t4d0s0 c1t5d0s0 (hotspare的s0也存放metadb)
Metainit d75 –r c1t2d0s1 c1t3d0s1 c1t4d0s1
若坏c1t3d0s1,则可以使用以下命令(在插入新硬盘到原来槽位后):
metareplace –e d75 c1t3d0s1
HOTSPARE:
Metainit hsp001 c1t0d0s1
Metaparam –h hsp001 d75