[mythtv-users] OT: RAID rebuild with the wrong partition

John Drescher drescherjm at gmail.com
Sun Sep 12 03:17:51 UTC 2010


> Before I ask my question here is my layout, using linux software raid
>
> RAID1:
> md1: sda1 & sdb1
> md2: sda2 & sdb2
> md3: sda3 & sdb3
> md4: sda4 & sdb4
>
> RAID6:
> md5: sd[c-h]1
> md6: sd[c-h]2
> md7: sd[c-h]3
>
> So I had some sort of I/O issue going on, things were locked up and I
> rebooted.  When I rebooted the system started to rebuild md3 using
> sda3, and sdc3!

Without using the --force parameter you should have not been able to do that.

> I checked the UUIDs on the partitions and they were
> all correct, but for some reason it tried to redo the mirror using the
> wrong partition.  I have no idea why or how it did that, but now I
> have a bunch of corrupt data in /

I would issue a fail on the /dev/sdc

mdadm  /dev/md3 --fail /dev/sdc3

That should get the wrong member out of the md3 raid 1. And you should
be fine except possibly for files written after mounting.

-- 
John M. Drescher


More information about the mythtv-users mailing list