GNU Parted 2.1 (available in Redhat 6+) has a very interesting option for storage engineers, sysadmins and DBAs:
2.4.1 align-check Command: align-check align-type n Determine whether the starting sector of partition n meets the disk’s selected alignment criteria. align-type must be ‘minimal’, ‘optimal’ or an abbreviation. When in script mode, if the partition does not meet the alignment requirement, exit with status 1; otherwise (including on older kernels for which alignment data is not available), continue processing any remaining commands. Without --script, print either ‘N aligned’ or ‘N not aligned’. Example: (parted) align-check minimal 1 1 aligned
Script to automatically partition a new disk and create LVM PV
1) fdisk can be used in scripts. people do that every day. 2) parted -a just reports if alignment is optimal, it doesn't align. So you need a loop or something to attempt an optimal alignment.