I want to install a new SSD and use the the whole device as a PV for LVM - in other words: i don't plan to put even one partition on this device. So aligning partitions on the erase blocks is not needed.
Question(s)
Is it sufficient to set --dataalignment
to the erase block size when pvcreate
ing and --physicalextentsize
to a multiple of the erase block size when vgcreate
ing?
So, assuming my SSD has an erase block size of 1024k, is it ok to
pvcreate --dataalignment 1024k /dev/ssd
vgcreate --physicalextentsize $(( x * 1024 ))k ...
Anything else to take into account?
Assuming i'd put ext4-filesystems on the LVs in this VG, it would be a good idea to align the ext4-extents to the LVM-PE-size, right? So ext4-extents should be of same size as or a multiple of LVM-PE-size?
Thanks for any clarification!