linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] logical volumes and raid alignment
@ 2010-05-02 20:33 Alexander 'Leo' Bergolth
  2010-05-02 22:12 ` Stuart D. Gathman
  2010-05-03  5:38 ` Luca Berra
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander 'Leo' Bergolth @ 2010-05-02 20:33 UTC (permalink / raw)
  To: linux-lvm

Hi!

I am using LVM on a hardware RAID 5 and I'd like to tune the alignment
of lvm extents to match the raid stripe size.

My raid chunk size is 64k and I am using 5 data-bearing discs (raid 5
with 6 discs), so the raid stripe size should be 64k * 5 = 320k.

I have already managed to properly align the partition to a multiple of
this value and I am able to align the beginning of the first extent by
specifying --dataalignment 320k to pvcreate.

But unfortunately the --physicalextentsize must be a power of 2, so I
cannot use a multiple of 320k as the physical extent size.

What are your experiences with tuning and properly aligning lvm + raid?
Does anyone know a workaround?

Thanks,
--leo
-- 
e-mail   ::: Leo.Bergolth (at) wu.ac.at
fax      ::: +43-1-31336-906050
location ::: IT-Services | Vienna University of Economics | Austria

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] logical volumes and raid alignment
  2010-05-02 20:33 [linux-lvm] logical volumes and raid alignment Alexander 'Leo' Bergolth
@ 2010-05-02 22:12 ` Stuart D. Gathman
  2010-05-03  5:38 ` Luca Berra
  1 sibling, 0 replies; 3+ messages in thread
From: Stuart D. Gathman @ 2010-05-02 22:12 UTC (permalink / raw)
  To: LVM general discussion and development

On Sun, 2 May 2010, Alexander 'Leo' Bergolth wrote:

> My raid chunk size is 64k and I am using 5 data-bearing discs (raid 5
> with 6 discs), so the raid stripe size should be 64k * 5 = 320k.
> 
> But unfortunately the --physicalextentsize must be a power of 2, so I
> cannot use a multiple of 320k as the physical extent size.
> 
> What are your experiences with tuning and properly aligning lvm + raid?
> Does anyone know a workaround?

Use 4 data bearing disks.  Let #6 be a spare.  You're supposed to have
a spare anyway.

-- 
	      Stuart D. Gathman <stuart@bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] logical volumes and raid alignment
  2010-05-02 20:33 [linux-lvm] logical volumes and raid alignment Alexander 'Leo' Bergolth
  2010-05-02 22:12 ` Stuart D. Gathman
@ 2010-05-03  5:38 ` Luca Berra
  1 sibling, 0 replies; 3+ messages in thread
From: Luca Berra @ 2010-05-03  5:38 UTC (permalink / raw)
  To: linux-lvm

On Sun, May 02, 2010 at 10:33:03PM +0200, Alexander 'Leo' Bergolth wrote:
>Hi!
>
>I am using LVM on a hardware RAID 5 and I'd like to tune the alignment
>of lvm extents to match the raid stripe size.
>
>My raid chunk size is 64k and I am using 5 data-bearing discs (raid 5
>with 6 discs), so the raid stripe size should be 64k * 5 = 320k.
>
>I have already managed to properly align the partition to a multiple of
>this value and I am able to align the beginning of the first extent by
>specifying --dataalignment 320k to pvcreate.
>
>But unfortunately the --physicalextentsize must be a power of 2, so I
>cannot use a multiple of 320k as the physical extent size.
>
>What are your experiences with tuning and properly aligning lvm + raid?
>Does anyone know a workaround?
I had a similar issue, and best thing i came up with was creating volume
group with PE Size == chunk_size, and create/extend all logical volumes
to a multiple of data_disks PE.

L.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-03  5:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-02 20:33 [linux-lvm] logical volumes and raid alignment Alexander 'Leo' Bergolth
2010-05-02 22:12 ` Stuart D. Gathman
2010-05-03  5:38 ` Luca Berra

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).