[dm-devel] [PATCH] dm-raid: add RAID discard support

NeilBrown neilb at suse.de
Wed Oct 1 23:18:56 UTC 2014


On Wed, 1 Oct 2014 13:57:24 -0500 Brassow Jonathan <jbrassow at redhat.com>
wrote:

> 
> On Sep 30, 2014, at 9:56 PM, NeilBrown wrote:
> 
> > So that is probably what I would do:
> >  - new version for bitmap which has 2 bits per region and encodes 3 states
> >  - bitmap granularity matches chunk size (by default)
> >  - decouple region size of bitmap from region size for internal 'dirty'
> >    accounting
> >  - write to a 'state 3' region sets it to 'state 2' and kicks off resync
> >  - 'discard' sets state to '3'.
> 
> There are scenarios where we do not trust the bitmap and perform exhaustive searches (scrubbing).  When we do this, we assume that the bitmap has been correctly handled, but the data has been corrupted somehow.  When we scrub, we now could presumably use the bitmap to avoid those regions that have been discarded.  However, are there problems to be considered when the corruption is the other way around - i.e. when the bitmap/superblock are corrupted instead of the data area?  Do we consider problems like this unlikely because of the frequency of superblock writes?  (The bitrot that I am familiar with usually happens in areas that are not touched very often - especially if they exist near areas that /are/ touched very often.)
> 
>  brassow

Good question....

I suspect the frequent writes that you mention would reduce the chance of
bitrot - and would make it quickly disappear if it did happen.

Maybe we could compare bitmaps across all devices as the array is assembled
and take some action if there are differences(??).

NeilBrown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20141002/ac9a88c6/attachment.sig>


More information about the dm-devel mailing list