Automatic block alignment when partitioning from kickstart

Latest response

Ensure that the filesystem, lvm, partitions, etc. are aligned on the underlying storage block boundrys to prevent unnecessary performance loss.  Either autodetection of underlying storage or the ability to inquire the admin about raid stripe sizes, etc.  This should also work in a virtualized environment.


This should already work in Red Hat Enterprise Linux 6.0. Where do you not see this working?

If this is already in there, thourougly, even for LVM volumes than I can retract my request.

Please note both partitions beginning on very solid block-aligned boundaries (2048 / 1026048.)

Host is an EL6 build in a VMware Workstation VM.

[root@reverie ~]# fdisk /dev/sda

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').

Command (m for help): x

Expert command (m for help): p

Disk /dev/sda: 64 heads, 32 sectors, 20480 cylinders

Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
1 80 32 33 0 221 30 63 2048 1024000 83
Partition 1 does not end on cylinder boundary.
2 00 221 31 63 254 63 1023 1026048 40916992 8e
Partition 2 does not end on cylinder boundary.
3 00 0 0 0 0 0 0 0 0 00
4 00 0 0 0 0 0 0 0 0 00

In RHEL 5 you can set offset as a kickstart option, but that has been removed in RHEL6. To my knowledge its not possible to do that when installing via kickstart

If you have a RHEL6 testcase where partitions get misaligned by default, please do file a bug.  All tools should either align to storage-advertised boundaries, or to generically better defaults, in RHEL6.