[dm-devel] How big should raid metadata device be?

Andy Grover agrover at redhat.com
Mon Nov 2 19:55:43 UTC 2015


Hi all,

In looking at md-raid one question I had was exactly how large does the 
metadata device need to be in comparison to the data device? It contains 
a padded-to-4Kbyte sized raid metadata struct, and then also a write 
intent bitmap that is sized based upon the number of stripes, with 16 
bits per stripe.

Is it correct to say the minimum size of the metadata device should be:

4096 + (2 * stripe_count)

bytes?

Thanks -- Andy

p.s. LVM2 allocates 1 extent (default 4MiB) for the raid meta device. 
But it's not clear if given a large enough raid dev, and configured with 
a much smaller extent size than the default, if one extent might not be 
enough.




More information about the dm-devel mailing list