Re: striped metadevice Needs Maintenance

From: Shivakanth Mundru (smundru_at_cox-internet.com)
Date: 02/06/04


Date: Thu, 05 Feb 2004 20:17:02 -0600


Lisa Koma wrote:
> How can I fix this metadevice error - it doesn't look like there
> is any scsi or harddrive error anymore, but the striped device
> needs maintenance. The drive is responding and is ok.
>
> # metastat d2
>
> d2: Mirror
> Submirror 0: d21
> State: Needs maintenance
> Submirror 1: d22
> State: Okay
> Pass: 1
> Read option: roundrobin (default)
> Write option: parallel (default)
> Size: 35353395 blocks
>
> d21: Submirror of d2
> State: Needs maintenance
> Invoke: metareplace d4 c1t9d0s7
> Size: 35353395 blocks
> Stripe 0: (interlace: 32 blocks)
> Device Start Block Dbase State Hot Spare
> c1t2d0s5 0 No Maintenance
> c0t3d0s5 3591 No Okay
>
> d22: Submirror of d2
> State: Okay
> Size: 35353395 blocks
> Stripe 0: (interlace: 32 blocks)
> Device Start Block Dbase State Hot Spare
> c1t4d0s5 0 No Okay
> c0t5d0s5 3591 No Okay
>
> # metastat -p
> d2 -m d21 d22 1
> d21 1 2 c1t2d0s5 c0t3d0s5
> d22 1 2 c1t4d0s7 c0t5d0s5
> #

You have to invoke metareplace as it said or you can detach,clear the
submirror or the mirror in question and initialize,attach the submirror
again and let it resync with the other mirror.

example in a 1 1 concat scenario
Replace mirror and submirror as per your requirement.

d3 is the mirror and d13 is the submirror that needs maintenance

metadetach -f d3 d13
d3: submirror d13 is detached

metaclear -f d13
d13: Concat/Stripe is cleared

metainit d13 1 1 c1t0d0s3
d13: Concat/Stripe is setup

metattach d3 d13
d3: submirror d13 is attached

Then do a

metastat d13 to observe the resync process.

HTH,
Shivakanth



Relevant Pages

  • strange disksuite problem e250
    ... producing the same messages as before - All disks in the mirror config ... Read option: roundrobin ... d10: Submirror of d0 ... State: Needs maintenance ...
    (comp.unix.solaris)
  • Disksuite Problem
    ... We recently used DiskSuite to Mirror the boot drive. ... d12: Submirror of d32 ... State: Needs maintenance ... Invoke: metasync d32 ...
    (SunManagers)
  • Disksuite SubMirror "Needs Maintenance"
    ... d30: Mirror ... Submirror 0: d10 ... State: Needs maintenance ... Stripe 0: ...
    (comp.unix.solaris)
  • metastat command
    ... d2: Mirror ... Read option: roundrobin ... d0: Submirror of d2 ... State: Needs maintenance ...
    (comp.unix.solaris)
  • Upgrade Solaris 9 with SVM Question
    ... d8: Mirror ... Submirror 0: d18 ... Stripe 0: ... o - replica active prior to last mddb configuration change ...
    (SunManagers)