From: Mike Snitzer <snitzer@redhat.com>
To: Phillip Susi <psusi@ubuntu.com>
Cc: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Data alignment
Date: Tue, 12 Feb 2013 10:10:46 -0500 [thread overview]
Message-ID: <20130212151046.GB10702@redhat.com> (raw)
In-Reply-To: <511A58B0.3080509@ubuntu.com>
On Tue, Feb 12 2013 at 9:58am -0500,
Phillip Susi <psusi@ubuntu.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I have been getting warnings from mke2fs lately that my logical
> volumes are not aligned properly. I am using a raid5 array as a pv
> and it has a 1.5 MB stripe width, so logical volumes should be aligned
> to that, but it appears lvm is not doing this.
>
> It looks like you can specify this alignment at pvcreate time, but I
> don't think I did and it doesn't seem to have been picked up
> automatically. Is there a way to change this without rebuilding the vg?
Please provide the version of lvm2 that you're using.
For MD raid5, lvm2 should pick up the alignment without any manual flags
being required. The manual flags are only required for users who have
hardware raid where the minimum_io_size and optimal_io_size isn't
populated in /sys/block/<dev>/queue/
But MD does populate those and lvm2 should definitely consume them when
laying out the data area of a PV. You should be able to see what
pvcreate determines the {minimum,optimal}_io_size to be by running:
pvcreate -vvvv <args>
But no, after the data area is established there is no way to change the
alignment after the fact.
next prev parent reply other threads:[~2013-02-12 15:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-12 14:58 [linux-lvm] Data alignment Phillip Susi
2013-02-12 15:10 ` Mike Snitzer [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-03-19 18:13 Phillip Susi
2010-03-19 18:36 ` Eugene Vilensky
2010-03-19 18:54 ` Phillip Susi
2010-03-19 19:54 ` Ray Morris
2010-03-19 21:20 ` Phillip Susi
2010-03-20 7:32 ` Luca Berra
2010-03-19 19:25 ` Mike Snitzer
2010-03-19 21:27 ` Phillip Susi
2010-03-19 22:21 ` Mike Snitzer
2010-03-19 23:11 ` Mike Snitzer
2010-03-20 23:02 ` Stuart D. Gathman
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=20130212151046.GB10702@redhat.com \
--to=snitzer@redhat.com \
--cc=linux-lvm@redhat.com \
--cc=psusi@ubuntu.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).