From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 20 Jan 2005 17:59:00 +0000 From: Alasdair G Kergon Subject: Re: [linux-lvm] Data corruption on large, multi-device filesystem Message-ID: <20050120175900.GE14093@agk.surrey.redhat.com> References: <20050118091059.GC27553@pcnocjb.dlan.cinetic.de> <1106172883.41eedbd386498@www.eiler.net> <41EFBAF4.5030403@svs.gsfc.nasa.gov> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <41EFBAF4.5030403@svs.gsfc.nasa.gov> 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 Cc: dm-devel@redhat.com 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? 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; } Alasdair -- agk@redhat.com