[CentOS] centos6.2, parted and alignment

John R Pierce

pierce at hogranch.com
Mon Jan 9 18:29:23 UTC 2012


I have a large raid (lsi megaraid sas2 9261-8i card) and when I use 
parted to initialize it as the one big partition I want, it gives me a 
warning.

     # parted /dev/sda "mklabel gpt"
     Warning: The existing disk label on /dev/sda will be destroyed and 
all data on this
         disk will be lost. Do you want to continue?
     Yes/No? yes
     # parted -a optimal /dev/sda "mkpart primary 128s -1s"
     Warning: You requested a partition from 65.5kB to 81.0TB.
     The closest location we can manage is 65.5kB to 81.0TB.
     Is this still acceptable to you?
     Yes/No? yes
     Warning: The resulting partition is not properly aligned for best 
performance.
     Ignore/Cancel? i
     Information: You may need to update /etc/fstab.

The sector size is 512b actual, the raid stripe size is 64kB, hence 
starting the partition on sector 128.  I've tried various combinations 
of -a, nothing seems to help here.


-- 
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast




More information about the CentOS mailing list