10-24-05 08:49 PM
kaka.hui@gmail.com wrote:
>
> I have some bad disks on (d20: Submirror of d30). How do I detach that
> mirror? Thanks!
>
> [root@beta-norm01:/etc]# metastat
> d30: Mirror
> Submirror 0: d10
> State: Needs maintenance
> Submirror 1: d20
> State: Needs maintenance
> Pass: 1
> Read option: roundrobin (default)
> Write option: parallel (default)
> Size: 573315840 blocks
>
> d10: Submirror of d30
> State: Needs maintenance
> Invoke: metareplace d30 c1t34d0s6 <new device>
Look: It tells you how to fix it. Actually, you
need to add an extra switch to make it work (I
think -i, it's been several years).
> Size: 573315840 blocks
> Stripe 0: (interlace: 32 blocks)
> Device Start Block Dbase State Hot Spare
> c1t32d0s6 0 No Maintenance
> c1t33d0s6 10176 No Maintenance
> c1t34d0s6 10176 No Maintenance
Note that this one is the one marked bad.
> c1t35d0s6 10176 No Maintenance
>
> d20: Submirror of d30
> State: Needs maintenance
> Invoke: after replacing "Maintenance" components:
> metareplace d30 c1t38d0s6 <new device>
Uh-oh. Second bad one. See how it tells you the order
to do the replacements, that this one is to be done
second. It does indeed look like you have a bad drive
on each side of the mirror and it is using the
non-overlapping parts to keep running.
> Size: 573315840 blocks
> Stripe 0: (interlace: 32 blocks)
> Device Start Block Dbase State Hot Spare
> c1t36d0s6 0 No Last Erred
> c1t37d0s6 10176 No Okay
> c1t38d0s6 10176 No Last Erred
That's the sick one per the above lines.
> c1t39d0s6 10176 No Last Erred
When you add replacement drives, definitely add one more and
make it a hot spare. You're losing too many.
[ Post a follow-up to this message ]
|