Bug#596028: partman-lvm: should set metadata area size on pvcreate so that the LVs will be aligned
d-i now creates aligned partitons (at least for msdos disk labels),
using a 1MiB granularity.
Unfortunately, d-i is letting LVM2 use its default metadata size for the
PVs, which is 192KiB. This causes the first usable PE to be
out-of-aligment on anything but 64KiB and smaller stripes (and erase
blocks). The end result is that LVs are created out-of-alignment, and
thus anything that uses that LV will also be out-of-alignment.
Please force pvcreate to alocate enough metadata to align the first PE
to a 1MiB boundary, to match what the d-i partitioner is doing.
Note: it would be better if we could tell d-i what target to align for
(for partitions, LVM PVs *and* filesystems), which would allow one to
waste less space to alignment.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 184.108.40.206 (SMP w/8 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash