linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michal Soltys <nozo@ziu.info>
To: linux-raid@vger.kernel.org
Cc: Janek Kozicki <janek_listy@wp.pl>
Subject: Re: stride / stripe alignment on LVM ?
Date: Fri, 02 Nov 2007 13:10:07 +0100	[thread overview]
Message-ID: <472B139F.9060903@ziu.info> (raw)
In-Reply-To: <20071101101037.63b523f8@absurd>

Janek Kozicki wrote:
> 
> And because LVM is putting its own metadata on /dev/md1, the ext3
> partition is shifted by some (unknown for me) amount of bytes from
> the beginning of /dev/md1.
> 

It seems to be multiply of 64KiB. You can specify it during pvcreate, with 
--metadatasize option. It will be rounded to multiply of 64 KiB, and will 
add another 64 KiB on its own. Extents will follow directly after that. 4 
sectors mentioned in pcvreate's man page are covered by that option as well.

So i.e. if you have chunk 1MiB, then pvcreate ... --metadatasize 960K ...
should give you chunk-aligned logical volumes, assuming you have actual 
extent size set appropriately as well. If you use default chunk size, you 
shouldn't need any extra options.

Make sure if it really is this way, after pv/vg/first lv creation. I found 
it experimentally, so ymmv.

      parent reply	other threads:[~2007-11-02 12:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-01  9:10 stride / stripe alignment on LVM ? Janek Kozicki
2007-11-01 23:27 ` Neil Brown
2007-11-02 13:01   ` Bill Davidsen
2007-11-02 22:16     ` Janek Kozicki
2007-11-03 18:40       ` Doug Ledford
2007-11-03 20:21         ` Janek Kozicki
2007-11-04  1:02           ` Doug Ledford
2007-11-07  9:00           ` Goswin von Brederlow
2007-11-11 23:53             ` Alasdair G Kergon
2007-11-07  9:04   ` Goswin von Brederlow
2007-11-02 12:10 ` 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=472B139F.9060903@ziu.info \
    --to=nozo@ziu.info \
    --cc=janek_listy@wp.pl \
    --cc=linux-raid@vger.kernel.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).