全部博文(31)
分类:
2006-04-11 12:52:28
解镜像
案例:一台SUN480,两块硬盘c1t0d0s2,c1t1d0s2。文件系统/和/zcbuff用disksuite做了镜像;
c1t0d0s0和c1t1d0s0为/分区,做了镜像d1,c1t0d0s7和c1t1d0s7为/zcbuff,做了镜像d7.
#metastat d7
d7: Mirror
Submirror 0: d17
State: Okay
Submirror 1: d27
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 20972736 blocks
d17: Submirror of d7
State: Okay
Size: 20972736 blocks
Stripe 0:
Device
c1t0d0s7 0 No Okay
d27: Submirror of d7
State: Okay
Size: 20972736 blocks
Stripe 0:
Device
c1t1d0s7 0 No Okay
# metastat d1
d1: Mirror
Submirror 0: d11
State: Okay
Submirror 1: d21
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 20972736 blocks
d11: Submirror of d1
State: Okay
Size: 20972736 blocks
Stripe 0:
Device
c1t0d0s0 0 No Okay
d21: Submirror of d1
State: Okay
Size: 20972736 blocks
Stripe 0:
Device
c1t1d0s0 0 No Okay
以下步骤对镜像D7进行解镜像:
(1)#metadetach d7 d27
d7: submirror d27 is detached
(2)修改vfstab文件
把/dev/md/dsk/d7 /dev/md/rdsk/d7 /zcbuff ufs 2 yes - 改为
/dev/dsk/c1t0d0s7 /dev/rdsk/c1t0d0s7 /zcbuff ufs 2 yes -
(3)重新启动机器
(4)#metaclear –r d7
d7: Mirror is cleared
d17: Concat/Stripe is cleared
# metaclear d27
d27: Concat/Stripe is cleared
(5)解镜像成功。
以下步骤对镜像d1进行解镜像:
(1)# metadetach d1 d21
d1: submirror d21 is detached
(2) metaroot /dev/dsk/c1t0d0s0
(3)重新启动机器reboot
(4) # metaclear -r d1
d1: Mirror is cleared
d11: Concat/Stripe is cleared
(5)# metaclear d21
d21: Concat/Stripe is cleared
root@s1 #
解完成