Skip to main content

Posts

Showing posts from July, 2013

Creating an optimally-aligned full-disk partition with parted

I wanted to create a full-disk partition, with optimal alignment, on a 4TB disk under CentOS 6.4 and use it as an LVM PV. fdisk doesn’t work on disks larger than 2TB so I used parted: parted -a optimal /dev/sda(parted) mklabelWarning: 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) mkpart primary ext2 0% 100%(parted) set 1 lvm on