Wednesday, May 14, 2008

Sun Volume Maintenance

1- Check volumes by metastat to see is there a mirror or submirror which contains not OK state(Last Erred|Needs Maintenance|Resyncing) like below:
metastat d5
d25: Submirror of d5
State: Resyncing
Size: 8395200 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t1d0s5 0 No Resyncing

2- Check disk needs maintenance with format analyze or fsck commands.

3- If error repaired re-enable submirror with metareplace command:
metareplace -e d5 c1t1d0s5

after the command, submirror state change to Resyncing and if there is no hard error it will become OK.
Complete Help @ Sun

No comments: