Janek Kozicki wrote:
And because LVM is putting its own metadata on /dev/md1, the ext3
partition is shifted by some (unknown for me) amount of bytes from
the beginning of /dev/md1.
It seems to be multiply of 64KiB. You can specify it during pvcreate, with
--metadatasize option. It will be rounded to multiply of 64 KiB, and will
add another 64 KiB on its own. Extents will follow directly after that. 4
sectors mentioned in pcvreate's man page are covered by that option as well.
So i.e. if you have chunk 1MiB, then pvcreate ... --metadatasize 960K ...
should give you chunk-aligned logical volumes, assuming you have actual
extent size set appropriately as well. If you use default chunk size, you
shouldn't need any extra options.
Make sure if it really is this way, after pv/vg/first lv creation. I found
it experimentally, so ymmv.
-
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