Date: Fri, 21 Jan 2005 16:09:13 +0100 From: Jens Beyer Subject: Re: [linux-lvm] Data corruption on large, multi-device filesystem Message-ID: <20050121150913.GA16975@pcnocjb.dlan.cinetic.de> References: <20050118091059.GC27553@pcnocjb.dlan.cinetic.de> <1106172883.41eedbd386498@www.eiler.net> <41EFBAF4.5030403@svs.gsfc.nasa.gov> <20050120175900.GE14093@agk.surrey.redhat.com> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <20050120175900.GE14093@agk.surrey.redhat.com> Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: LVM general discussion and development , dm-devel@redhat.com 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