On 07/07/2013 10:51 PM, Christoph Anton Mitterer wrote: > On Sun, 2013-07-07 at 20:50 +0200, Milan Broz wrote: >> For LUKS is it trivial, LVM is more complex >> but should align to MD chunk/stripe properly as well. > Shouldn't one get that automatically by simply setting the > --dataalignment of the PVs to a multiple of the chunk size (or even > better of the stripe size)... and shouldn't the default alignment > against the 1MiB boundary (as in LUKS) work just well? Try to not use --dataalignment explicitly. It should be detected automatically through topology ioctl (both for LVM and LUKS). (You can verify that itopology info propagates correctly through stack by using lsblk -t). Only if you know that something is wrong overwrite it (and perhaps report bug to LVM, it should detect it properly now). Default 1MiB alignment should work even for LVM IIRC. IOW I am saying that for newly created array (e.g. like MD->dmcrypt->LVM) you should get optimal alignment for performance without black magic. (Also LVM can use MD RAID internally now but let's not complicate already too complex device stack :) Milan -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html