- 论坛徽章:
- 71
|
以下是我经过1天呕心沥血,做实验总结出来的成果:\r\n 解镜像\r\n\r\n\r\n案例:一台SUN480,两块硬盘c1t0d0s2,c1t1d0s2。文件系统/和/zcbuff用disksuite做了镜像;\r\nc1t0d0s0和c1t1d0s0为/分区,做了镜像d1,c1t0d0s7和c1t1d0s7为/zcbuff,做了镜像d7.\r\n\r\n#metastat d7\r\nd7: Mirror\r\n Submirror 0: d17\r\n State: Okay\r\n Submirror 1: d27\r\n State: Okay\r\n Pass: 1\r\n Read option: roundrobin (default)\r\n Write option: parallel (default)\r\n Size: 20972736 blocks\r\nd17: Submirror of d7\r\n State: Okay\r\n Size: 20972736 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n c1t0d0s7 0 No Okay\r\nd27: Submirror of d7\r\n State: Okay\r\n Size: 20972736 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n c1t1d0s7 0 No Okay\r\n# metastat d1\r\nd1: Mirror\r\n Submirror 0: d11\r\n State: Okay\r\n Submirror 1: d21\r\n State: Okay\r\n Pass: 1\r\n Read option: roundrobin (default)\r\n Write option: parallel (default)\r\n Size: 20972736 blocks\r\nd11: Submirror of d1\r\n State: Okay\r\n Size: 20972736 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n c1t0d0s0 0 No Okay\r\nd21: Submirror of d1\r\n State: Okay\r\n Size: 20972736 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n c1t1d0s0 0 No Okay\r\n\r\n以下步骤对镜像D7进行解镜像:\r\n(1)#metadetach d7 d27\r\nd7: submirror d27 is detached\r\n(2)修改vfstab文件\r\n把/dev/md/dsk/d7 /dev/md/rdsk/d7 /zcbuff ufs 2 yes - 改为\r\n/dev/dsk/c1t0d0s7 /dev/rdsk/c1t0d0s7 /zcbuff ufs 2 yes -\r\n(3)重新启动机器\r\n(4)#metaclear –r d7\r\n d7: Mirror is cleared\r\nd17: Concat/Stripe is cleared\r\n# metaclear d27\r\nd27: Concat/Stripe is cleared \r\n(5)解镜像成功。\r\n以下步骤对镜像d1进行解镜像:\r\n(1)# metadetach d1 d21\r\nd1: submirror d21 is detached\r\n(2) metaroot /dev/dsk/c1t0d0s0\r\n(3)重新启动机器reboot\r\n(4) # metaclear -r d1\r\nd1: Mirror is cleared\r\nd11: Concat/Stripe is cleared\r\n(5)# metaclear d21\r\nd21: Concat/Stripe is cleared\r\nroot@s1 #\r\n解完成 |
|