Thanks Brian.
Yes, I replaced sdh because it showed read errors in dmesg and was
kicked out of the array.
But has the new sdh been rebuilt completely? If that case there should
be n-1 drives? Or does "spare" just means that it can be used but has
no data yet?
Also I have my old sdh with data on it but I don't know how current
that data is but perhaps I can use that somehow?
Thanks,
Peter
Quoting Brian Candler <b.candler@xxxxxxxxx>:
On 15/10/2013 13:40, peter@xxxxxxxxxxxx wrote:
Anyway, I'm still at loss what to do and what my next step should be...
Well, I'm not the world's authority on this, but from what I can see:
$ egrep '^/|UUID|State :|Events :' ert
/dev/sdd:
UUID : 61a6a879:adb7ac7b:86c7b55e:eb5cc2b6
State : clean
Events : 1288444
/dev/sde:
UUID : 61a6a879:adb7ac7b:86c7b55e:eb5cc2b6
State : clean
Events : 1288428
/dev/sdf:
UUID : 61a6a879:adb7ac7b:86c7b55e:eb5cc2b6
State : clean
Events : 1288444
/dev/sdg:
UUID : 61a6a879:adb7ac7b:86c7b55e:eb5cc2b6
State : clean
Events : 1288444
/dev/sdh:
UUID : 61a6a879:adb7ac7b:86c7b55e:eb5cc2b6
State : clean
Events : 1288444
So it looks like sde is stale with respect to the other drives
(which have a larger event count) and therefore is not being used.
But sdh is a spare (you said it was rebuilding onto this?), so you
have N-2 usable data disks, which is not enough to start RAID5.
DON'T do the following before someone else on the list confirms this
is the right course of action, but you can force the array to
assemble using:
mdadm --stop /dev/mdXXX
mdadm --assemble --force --run /dev/mdXXX /dev/sd{d,e,f,g,h}
But since the state of sde is old, I think there is a real risk that
data corruption has taken place. Do an fsck before mounting. It may
be better to restore from a trusted backup.
Regards,
Brian.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html