From: joe@eiler.net
To: LVM general discussion and development <linux-lvm@redhat.com>,
Alasdair G Kergon <agk@redhat.com>
Subject: Re: [linux-lvm] Data corruption on large, multi-device filesystem
Date: Thu, 20 Jan 2005 18:38:41 -0800 [thread overview]
Message-ID: <1106275121.41f06b3135b75@www.eiler.net> (raw)
In-Reply-To: <20050120165317.GA14093@agk.surrey.redhat.com>
Thanks, I'll give it(the patch you sent) a try and let you know what I see.
When you say "chunk size" what lvcreate arg does that map to? the stripe
size(-I) or the chunk size(-c) that goes along with snapshots?
Joe
Quoting Alasdair G Kergon <agk@redhat.com>:
> 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
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
next prev parent reply other threads:[~2005-01-21 2:38 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
2005-01-21 2:38 ` joe [this message]
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=1106275121.41f06b3135b75@www.eiler.net \
--to=joe@eiler.net \
--cc=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