[linux-lvm] Data corruption on large, multi-device filesystem
Jens Beyer
jbe at webde-ag.de
Fri Jan 21 15:09:13 UTC 2005
Hi,
On Thu, Jan 20, 2005 at 05:59:00PM +0000, Alasdair G Kergon wrote:
> On Thu, Jan 20, 2005 at 09:06:44AM -0500, Randall A. Jones wrote:
> > To verify, this corruption you are seeing only happens when you have a
> > LV larger than 2TB
> > and when you use striping specifically with lvcreate -i.
> > Has anyone experienced data corruption with >2TB LV and no striping?
>
> Does this patch help?
>
No, it doesn't. I just checked multiple times in different setups.
To address the 'chunksize' Problem mentioned i used lvcreate -i 3 -I 256 .
Jens
>
> Missing cast causing data corruption on devices with stripes > ~1TB.
> --- diff/drivers/md/dm-stripe.c 2005-01-20 17:32:37.000000000 +0000
> +++ source/drivers/md/dm-stripe.c 2005-01-20 17:32:26.000000000 +0000
> @@ -179,7 +179,7 @@
>
> bio->bi_bdev = sc->stripe[stripe].dev->bdev;
> bio->bi_sector = sc->stripe[stripe].physical_start +
> - (chunk << sc->chunk_shift) + (offset & sc->chunk_mask);
> + ((sector_t) chunk << sc->chunk_shift) + (offset & sc->chunk_mask);
> return 1;
> }
>
>
--
Nur tote Fische schwimmen mit dem Strom
More information about the linux-lvm
mailing list