Oneway mirror Need Maintenance state and connectivity lost issue in Storage

Wednesday, October 10, 2012 at 7:38 AM

If you encounter onway mirror issue with Storage disk. If the disk status is okay but problem to clear the Need maintenance state and to avoid this problem in future the below is the solution.


Configuration and the submirror status:



d8: Mirror

Submirror 2: d28
State: Needs maintenance
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 1715358144 blocks


d28: Submirror of d8


State: Needs maintenance


Invoke: after replacing "Maintenance" components:

metareplace d8 c2t0d1s0
Size: 1715365632 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c2t0d1s0 0 No Last Erred

# umount /local

# umount /test2


If the file systems cannot be unmounted then you will have to reboot into single user mode before continuing with the below commands.

# fsck -F ufs -y /dev/md/rdsk/d215

# fsck -F ufs -y /dev/md/rdsk/d230

# metaclear d215

# metaclear d230

# metaclear -rf d8


# metainit d8 1 1 c2t0d1s0

# metainit d215 -p d9 -o 87666101 -b 743486015 -o 853202938 -b 76379648 -o 930764284 -b 182452224 -o 1117410814 -b 85983232
# metainit d230 -p d9 -o 46833323 -b 3774156 -o 843685879 -b 3807232


# mount /local

# mount /test2


d8: Mirror

Submirror 2: d28
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 1715358144 blocks


d28: Submirror of d8

State: Okay
Size: 1715365632 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c2t0d1s7 0 No Okay

0 comments

Post a Comment

Solaris | Powered by Blogger | Entries (RSS) | Comments (RSS) | Designed by MB Web Design | XML Coded By Cahayabiru.com