From: "F-D. Cami" <fcami@winsoft.fr>
To: linux-lvm@redhat.com
Subject: [linux-lvm] starting LVs on RAID stripe boundaries
Date: Tue, 20 Jan 2009 18:11:12 +0100 [thread overview]
Message-ID: <20090120181112.5523a424@winsoft.fr> (raw)
Hi Linux-LVM,
I'm searching for some definitive information about how to make sure that logical
volumes start exactly at the beginning of a RAID stripe.
My hardware is an EMC Clariion CX3-40F array with a RHEL5 host.
The default stripe element size is 64 KB (128 blocks) on the CX3.
Both EMC and Red Hat recommend using fdisk or parted to align the first partition
to the start of a stripe boundary (128th block, 128x512=64KB) :
Red Hat : http://kbase.redhat.com/faq/docs/DOC-2893
EMC : "EMC CLARiiON Best Practices", PDF available on emc.com
After doing that. the first partition is now aligned, next I need to make sure my logical
volumes are similarly aligned. However, after reading the LVM Howto on tldp.org,
the LVM wiki at redhat.com, and Alasdair Kergon's LinuxTag presentation at :
http://people.redhat.com/agk/talks/LVM2-LinuxTag2006/
I found no information on how to do that.
I'll now use some reasonable (?) assumptions :
* the physical extent size is a multiple of 64K (vgcreate's default is 4MB) ;
* if physical extents are aligned, logical volumes are themselves aligned
(lvcreate -l, --extents LogicalExtentsNumber) ;
* since PV, VG and LV infos are stored in PV metadata, the only possible PE
misalignment culprit is PV metadata ;
* PV metadata size is a multiple of 64KB
( http://orezpraw.com/orezpraw.php/blogosphere/your-filesystem-starts-where )
Since 64KB is my stripe size, and metadata size is a multiple of 64KB,
pvcreate should do the RightThing(tm) with default options, i.e. start the
first PE at a multiple of the stripe size.
In other words, aligning the partition the PV uses to the stripe boundary and
using a PE size multiple of the stripe size insure that LVs get themselves created
on stripe boundaries.
Comments, please ?
Thanks,
François Cami
next reply other threads:[~2009-01-20 17:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-20 17:11 F-D. Cami [this message]
2009-01-26 17:51 ` [linux-lvm] starting LVs on RAID stripe boundaries unlisted
2009-01-26 22:15 ` Francois Cami
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=20090120181112.5523a424@winsoft.fr \
--to=fcami@winsoft.fr \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.