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

freedenizen freedenizen at gmail.com
Sun Sep 12 01:10:52 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!  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 /
The system is currently up and running now, but obviously some things
aren't working, it can't find vi for example, and I have no idea how
much other stuff is messed up.  Currently the arrays are all rebuilt
using the correct partitions, but I'm scared to reboot.  Any thoughts
as to how this could even happen?  I checked /etc/mdadm.conf and
confirmed it has the right UUID data in it.  Any idea how I should
move forward from here.  / is running xfs.  My thought is to boot off
a live cd, do an xfs_repair, and go forward from there.


More information about the mythtv-users mailing list