On Fri, 2007-05-11 at 19:02 -0700, Andreas Dilger wrote: > What would be rather convenient is to store the RAID stride value in the > superblock. > There is also a library used in the XFS tools that knows how to probe various > kinds of block devices (e.g. MD RAID, LVM/DM, etc) to get their storage > layout that would avoid the need for the user to specify anything. > > Any thoughts on this? It's late at night here so my thoughts are a little fuzzy. Nonetheless: The concept is really tempting. RAID is good, and not asking the user for information that the system can find out for itself is good too. In the unlikely event that the RAID stride were to change, I think the autodetect-each-time method would be superior to the store-in-superblock method. Doubly so if the code to detect MD and LVM stride is lean and clean. I wonder if, in a RAID 0 configuration, deliberately misaligning data structures smaller than (size of stride * number of disks in array) would yield a performance benefit. Cheers, Eric
Attachment:
signature.asc
Description: This is a digitally signed message part