From: Mike Snitzer <snitzer@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] LVM Alignement
Date: Fri, 22 Jul 2011 20:25:02 -0400 [thread overview]
Message-ID: <20110723002502.GA27245@redhat.com> (raw)
In-Reply-To: <59730.213.157.4.156.1311359179.squirrel@nimrod.dscd.de>
On Fri, Jul 22 2011 at 2:26pm -0400,
Alexander Dalloz <ad+lists@uni-x.org> wrote:
> > Hey all,
> >
> > i have a question about Lun / Partition alignment.
> > If I use LVM in a Linux guest OS on a VMFS Datastore i can align my
> > Partitions with mbralign.
> > But the tool failes if I will try to use it on a LVM only VDisk. For
> > example the second Disk of this guest OS.
> >
> > Did I need to align the second disk or did LVM take care of alignment ? I
> > just mean a single VDisk with a single LVM VG.
More recent versions of lvm will take care of alignment (e.g. that found
in fedora 14, 15 or RHEL6).
> By default LVM uses an offset of 192k, see:
>
> # vgs -o +pe_start
> VG #PV #LV #SN Attr VSize VFree 1st PE
> VolGroup00 1 1 0 wz--n- 8,78G 0 192,00K
That was the old default. That is not the case any more.
The default alignment (for storage that doesn't export topology
information) is now 1MB. But that may be overriden with lvm.conf's
'default_data_alignment'.
Also see 'data_alignment_detection' in lvm.conf.
Mike
prev parent reply other threads:[~2011-07-23 0:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-21 11:36 [linux-lvm] LVM Alignement Matecki, Lukas
2011-07-22 18:26 ` Alexander Dalloz
2011-07-23 0:25 ` Mike Snitzer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110723002502.GA27245@redhat.com \
--to=snitzer@redhat.com \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).