Metastat Needs Maintenance Metareplace

Guilty! Putting all those Metastat keywords on one subject, that’s me! ANyway, I don’t want to stale this blog so once in a while I’m going to be posting some bits and pieces of Unix tools/tips.. and here’s a new one about SVM… Responding to Disk Errors courtesy of BigAdmin!

Got a page.. something like “Fault found by metastat” in short description in Remedy…

# metastat | grep Need
State: Needs maintenance
State: Needs maintenance

Which disk?

# metastat d9
d9: Mirror
Submirror 0: d19
State: Needs maintenance
Submirror 1: d29
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 134221440 blocks (64 GB)

d19: Submirror of d9
State: Needs maintenance
Invoke: metareplace d9 c0t2d0s5
Size: 134221440 blocks (64 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t2d0s5 0 No Maintenance Yes

d29: Submirror of d9
State: Okay
Size: 134221440 blocks (64 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t3d0s5 0 No Okay Yes

Device Relocation Information:
Device Reloc Device ID
c0t2d0 Yes id1,sd@SSEAGATE_ST373307LSUN72G_3HZ6Y1EN000074312CVW
c0t3d0 Yes id1,sd@SSEAGATE_ST373307LSUN72G_3HZ6Y46Y0000743249BK

Check for hard errors to verify if this disk can really be replaced… if it passed (on your criteria), you can try re-syncing it…

c# metareplace -e d9 c0t2d0s5
d9: device c0t2d0s5 is enabled

Verify that it’s doing what it is expected..

# metastat d9
d9: Mirror
Submirror 0: d19
State: Resyncing
Submirror 1: d29
State: Okay
Resync in progress: 0 % done
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 134221440 blocks (64 GB)

And we wait…..

Leave a Reply

Your email address will not be published. Required fields are marked *