Linux LVM users
 help / color / mirror / Atom feed
From: Alasdair G Kergon <agk@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Data corruption on large, multi-device filesystem
Date: Thu, 20 Jan 2005 16:53:17 +0000	[thread overview]
Message-ID: <20050120165317.GA14093@agk.surrey.redhat.com> (raw)
In-Reply-To: <1106172883.41eedbd386498@www.eiler.net>

On Wed, Jan 19, 2005 at 02:14:43PM -0800, joe@eiler.net wrote:
> I don't see any corruption on the files unless I specify the -i option to
> lvcreate.  
 
That's a useful observation: different code gets run when -i is used, and
I've taken a look and there are two 32-bit limits in that code.  

One appears to be intentional for performance reasons and can be worked 
around by increasing the chunk size (default 64K), though it really should
detect when the limit is exceeded and tell you!

The other unintentional limit (which is the one affecting you I think) 
leads to wrap-around at striped device offsets beyond ~2^32 sectors
i.e. 2^39 bytes into a PV, or ~2^40 bytes (2TB) into an LV in your
case of 2 stripes.  The fix for that is a basic exercise in C.  
[Ref.  stripe_map() in drivers/md/dm-stripe.c]

Alasdair
-- 
agk@redhat.com

  parent reply	other threads:[~2005-01-20 16:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-18  9:10 [linux-lvm] Data corruption on large, multi-device filesystem Jens Beyer
2005-01-19 22:14 ` joe
2005-01-20 14:06   ` Randall A. Jones
2005-01-20 17:59     ` Alasdair G Kergon
2005-01-21 15:09       ` Jens Beyer
2005-01-25 17:37         ` joe
2005-01-28  9:23           ` Jens Beyer
2005-01-28 14:01             ` Alasdair G Kergon
2005-01-20 16:53   ` Alasdair G Kergon [this message]
2005-01-21  2:38     ` joe
2005-04-29 16:00       ` Dan Pritts

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=20050120165317.GA14093@agk.surrey.redhat.com \
    --to=agk@redhat.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox