All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Berra <bluca@comedia.it>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Volume alignment over RAID
Date: Fri, 21 May 2010 07:10:21 +0200	[thread overview]
Message-ID: <20100521051021.GA1412@maude.comedia.it> (raw)
In-Reply-To: <4BF5A883.7060503@tlinx.org>

On Thu, May 20, 2010 at 02:24:19PM -0700, Linda A. Walsh wrote:
> I'm a bit unclear as to where some units are applied in my RAID setup, but
> was wondering how LVM interacted, could be, or should be setup so that
> created volumes would be aligned properly on top of a RAID disk.
note that if your rig uses fairly recent software data alignment should
happen automagically.

> I'm using a RAID 'chunk' size of 64k as suggested by the RAID documentation
> and am using 6 disks to create a RAID6, giving 4 units of data/stripe.  Does
I suppose by raid you mean md, so i wonder what documentation you were
looking at?
I think 64k might be small as a chunk size, depending on your array size
you probably want a bigger size.

Then, since with a six drive raid 6 stripe size is always a power of 2,
answers are easy :)

> this mean my logical volume needs to be aligned on a 64K boundary, or a 256k
> boundary? I.e. does 64k usually specify chunk/unit, or chunk/stripe?
align to stripe size

> What do I need to do to make sure my logical volumes always line up on RAID
> stripe boundaries?
make the volume group with pe size multiple of stripe size

> I've been using default logical volume parameters, which I think use an
> allocation size measured in Megabytes, so does that imply I'm automatically
> aligned (as 64k and 256k both divide into 1 Meg)?  Or is some offset
> involved?
run:
pvs -o pv_name,pe_start

-- 
Luca Berra -- bluca@comedia.it
         Communication Media & Services S.r.l.
  /"\
  \ /     ASCII RIBBON CAMPAIGN
   X        AGAINST HTML MAIL
  / \

  reply	other threads:[~2010-05-21  5:10 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-20 21:24 [linux-lvm] Volume alignment over RAID Linda A. Walsh
2010-05-21  5:10 ` Luca Berra [this message]
2010-05-21  6:48   ` Linda A. Walsh
2010-05-21  7:19     ` Lyn Rees
2010-05-21 18:50       ` Linda A. Walsh
2010-05-22  7:36         ` Luca Berra
2010-05-22  7:23     ` Luca Berra
2010-05-27 16:40       ` Doug Ledford
2010-06-21  4:26         ` [linux-lvm] RAID chunk size & LVM 'offset' affecting RAID stripe alignment Linda A. Walsh
2010-06-23 18:59           ` Doug Ledford
2010-06-25  8:36             ` Linda A. Walsh
2010-06-26  1:50               ` Doug Ledford
2010-06-28 18:56               ` Charles Marcus
2010-06-29 21:33                 ` Linda A. Walsh

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=20100521051021.GA1412@maude.comedia.it \
    --to=bluca@comedia.it \
    --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.