User: Password:
|
|
Subscribe / Log in / New account

RAID 5/6 code merged into Btrfs

RAID 5/6 code merged into Btrfs

Posted Feb 6, 2013 18:26 UTC (Wed) by butlerm (guest, #13312)
In reply to: RAID 5/6 code merged into Btrfs by Jonno
Parent article: RAID 5/6 code merged into Btrfs

The purpose of a write intent bitmap is not to recover a failed drive, it is to recover from a lost write. In the event of a power failure or system crash, one or more of the writes may be lost (or partially completed), leaving the stripe parity in an inconsistent state.

Correct parity (sufficient to recover from a subsequent drive failure) can be trivially regenerated using the contents of the write intent bitmap. The data on the blocks actually being written to may be still be incomplete of course, but that doesn't matter for the purpose of protecting the data on other other blocks in the same stripe.

If a drive fails and the system crashes at the same time a stripe update is in progress, it is entirely possible of course that unrelated parts of the stripe being updated may become unrecoverable, for lack of consistent parity information. You can see the attraction of the ZFS full stripe minimum block size policy.


(Log in to post comments)


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds