linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michal Soltys <soltys@ziu.info>
To: Tomasz Chmielewski <mangoo@wpkg.org>
Cc: Linux-Raid <linux-raid@vger.kernel.org>,
	LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: how to use mkfs.ext3 "stride=" on LVM on RAID correctly?
Date: Thu, 28 Feb 2008 20:23:51 +0100	[thread overview]
Message-ID: <47C70A47.3090907@ziu.info> (raw)
In-Reply-To: <47C68101.4020406@wpkg.org>

Tomasz Chmielewski wrote:

> Although the fine mkfs.ext3 manual gives some basic information on how 
> to do it if you place the whole filesystem on a RAID array, it is not 
> clear to me how it should be done correctly if I want to create a ext3 
> filesystem on LVM on RAID-5.
> 
> Any helpful hints?

You should be careful with all the alignemnts. Extents should be properly 
aligned with - at the very least - stripes, and preferably with whole stripe 
width (not always possible though). To check where lvm extents, you can use 
i.e.:

dmsetup table
pvs -o+pe_start --units s
losetup and hexedit experiments (silly, but I used to do it like that in the 
past, before I realised about other options :o )

If you don't need default 4M granularity, it's nice to increase it (vgcreate 
-s option ; I use 256M and 512M sized extents). You can alter the beginning 
of the extents with --metadatasize option of pvcreate (overally it always 
rounds up to the next 64K multiple). Be sure to verify with one of the 
commands above.

Moreover - if you use partitionable raid and create lvm in one of the 
partitions, make sure partition is properly aligned as well.


      parent reply	other threads:[~2008-02-28 19:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-28  9:38 how to use mkfs.ext3 "stride=" on LVM on RAID correctly? Tomasz Chmielewski
2008-02-28 13:48 ` Jon Nelson
2008-02-28 19:23 ` Michal Soltys [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=47C70A47.3090907@ziu.info \
    --to=soltys@ziu.info \
    --cc=linux-lvm@redhat.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=mangoo@wpkg.org \
    /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).