Software RAID 5 and crashes

From: Xuân Baldauf
Date: Sun Aug 01 2004 - 05:25:04 EST


Hello,

I have been extensively searching for documentation and mailing lists, but was yet unable to answer this question:

Does Linux software RAID 5 (or RAID 4) do ordered writes? (data stripes first, then parity stripes)

Because if the writes are not ordered, parity stripes could be written before data stripes. If the system crashes at this time, reconstruction will try to reconstruct the parity stripes by using the wrong (old) data stripes.

If the writes are ordered, crashes after the write of the data stripe but before the write to the parity stripe do not harm.

Thanks,

Xuân Baldauf.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/