On Sun, Jan 15, 2012 at 10:56:22PM -0600, Stan Hoeppner wrote:
> On 1/15/2012 6:27 PM, MikeJeezy wrote:
> > I would like to align the partiton as well, but I am not sure how to acheive
> > this using parted. This will be the only partition on the LUN, so not sure
> > if I even need to create one (although I do like to stay consistent with my
> > other volumes).
> If your drives have 512 byte physical sectors (not advanced format
> drives with 4096 byte sectors) then there is no need to worry about
> partition alignment.
That is incorrect. Partitions need to be aligned to the underlying
stripe configuration, regardless of the sector size of the drives
that make up the stripe. If you do not align the partition to the
stripe, then the filesystem will be unaligned no matter how you
configure it. Every layer of the storage stack under the filesystem
needs to be correctly aligned and sized for filesystem alignment to
make any difference to performance.
> > Any thoughts on partition alignment or
> > other thoughts in general? Thank you.
> Yes, don't use partitions if you don't need to divide your disk device
> (LUN/virtual disk) into multiple pieces. Now, if you need to make use
> of snapshots or other volume management features, you may want to create
> an LVM device on top of the disk device (LUN) and then make your XFS on
> top of the LVM device. If you have no need for LVM features, I'd say
> directly format the LUN with XFS, no partition table necessary.
If you use LVM, then you need to ensure that it is slicing up the
device in a manner that is aligned correctly to the underlying
stripe, just like if you are using partitions to provide the same
functionality. Different technologies, same problem.