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
John R Pierce wrote:> 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.<snip>> # 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.<snip> If *anyone* has the answer to this, I want to know. Or maybe we should just file a bug against parted, which ABSOLUTELY, POSITIVELY does *not* want to a) align it for best performance, or b) *TELL* you what you need to align it. Using gparted (GUIs, why did it have to be GUIs), you at least don't get that idiot warning. mark
On Monday, January 09, 2012 02:03:23 PM John R Pierce wrote:> Is there another tool I can use for GPT partitions over 2TB ?Hmm, I have an EL6.2 installation (i386) with four mounted volumes over 2TB; IIRC parted was used to make them. I don't recall doing anything special to get the partitions aligned, either. That doesn't mean I didn't do anything; I just don't recall doing anything..... :-) There is gdisk, though, if you want to go that route, but I haven't tried it with >2TB LUN's. The EPEL repo for 6 has gdisk.