From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx10.extmail.prod.ext.phx2.redhat.com [10.5.110.39]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3029419724 for ; Tue, 5 Mar 2019 00:12:34 +0000 (UTC) Received: from mail.gathman.org (mail.gathman.org [70.184.247.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9A15359441 for ; Tue, 5 Mar 2019 00:12:31 +0000 (UTC) Date: Mon, 4 Mar 2019 19:12:24 -0500 (EST) From: "Stuart D. Gathman" In-Reply-To: <325bbb01-1b67-eafb-025e-4bfde1b16b54@gmail.com> Message-ID: References: <253b63e7-e23b-9a0a-d677-a114c00a5134@linux.ibm.com> <2c295ce3-2766-ba41-4bba-575c799b3d46@gmail.com> <443f1e98-1dec-17e5-f38d-cbbd52cd541c@linux.ibm.com> <11dcbee0-ec65-d5d2-b07c-9937b99cc5b4@linux.ibm.com> <30346b34-c1e1-f7ba-be4e-a37d8ce8cf03@gmail.com> <1576db4f-1d7c-6894-d9b0-69c51852b11c@linux.ibm.com> <325bbb01-1b67-eafb-025e-4bfde1b16b54@gmail.com> MIME-Version: 1.0 Subject: Re: [linux-lvm] Filesystem corruption with LVM's pvmove onto a PV with a larger physical block size 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"; format="flowed" Content-Transfer-Encoding: 7bit To: LVM general discussion and development Cc: Ingo Franzki On Mon, 4 Mar 2019, Cesare Leonardi wrote: > Today I repeated all the tests and indeed in one case the mount failed: after > pvmoving from the 512/4096 disk to the 4096/4096 disk, with the LV ext4 using > 1024 block size. ... > The error happened where you guys expected. And also for me fsck showed no > errors. > > But doesn't look like a filesystem corruption: if you pvmove back the data, > it will become readable again: ... THAT is a crucial observation. It's not an LVM bug, but the filesystem trying to read 1024 bytes on a 4096 device. I suspect it could also happen with an unaligned filesystem on a 4096 device. -- Stuart D. Gathman "Confutatis maledictis, flamis acribus addictis" - background song for a Microsoft sponsored "Where do you want to go from here?" commercial.