Solaris 10 镜像同步维护
欢迎来到 来到大浪涛天的博客 !
solaris 10镜像同步维护
- 查看镜像发现有镜像块需要被维护
root@WEBServer # metastat d20: Mirror Submirror 0: d21 State: Okay Submirror 1: d22 State: Needs maintenance Resync in progress: 0 % done Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size: 277764096 blocks
- 对需要维护的镜像做重新同步操作
#metareplace -e d20 c0t0d0s0
查看mirror状态,看到同步过程Resyncing。
root@WEBServer # metastat d20: Mirror Submirror 0: d21 State: Resyncing Submirror 1: d22 State: Needs maintenance Resync in progress: 0 % done Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size: 277764096 blocks d21: Submirror of d20 State: Resyncing Size: 277764096 blocks Stripe 0: Device Start Block Dbase State Hot Spare c0t0d0s0 0 No Resyncing d22: Submirror of d20 State: Needs maintenance Size: 277764096 blocks Stripe 0: Device Start Block Dbase State Hot Spare c0t1d0s0 0 No Last Erred
- 等d21完成后,再同步d22。时间很长,每步要等4-5小时。
#metareplace -e d20 c0t1d0s0
- 最后执行metastat查看状态正常
root@WEBServer # metastat d20: Mirror Submirror 0: d21 State: Okay Submirror 1: d22 State: Okay Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size: 277764096 blocks d21: Submirror of d20 State: Okay Size: 277764096 blocks Stripe 0: Device Start Block Dbase State Hot Spare c0t0d0s0 0 No Okay