mdadm may fail to assemble clean raid5 array with failed drive

From
Eivind Sarto <hidden>
Date
2014-02-22 00:37:44
Mdadm may incorrecty fail to assemble a clean raid5 array if the array
had a failed drive with a dirty superblock at the time the array was
last stopped.
While assembling, mdadm will use the superblock of the failed drive
during assembly, if the failed drive is probed first.  If the failed drive's superblock
is active/dirty, mdadm may think that the entire array is dirty-degraded
instead of clean-degraded.  Mdadm will then not try and run the array unless 
a --force is specified.

This patch ensures that mdadm will always use the most recent superblock
before making desicions about running the array.

This bug appears in all recent version of mdadm.

-eivind

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help