[linux-lvm] Filesystem corruption with LVM's pvmove onto a PV with a larger physical block size

Ingo Franzki ifranzki at linux.ibm.com
Wed Feb 27 17:05:06 UTC 2019


On 27.02.2019 15:59, Stuart D. Gathman wrote:
> On Wed, 27 Feb 2019, Ingo Franzki wrote:
> 
>> The good thing about the example with encrypted volumes on loopback
>> devices is that you can reproduce the problem on any platform, without
>> having certain hardware requirements.
> 
> The losetup command has a --sector-size option that sets the logical
> sector size.  I wonder if that is sufficient to reproduce the problem.
> 
Yes that should work: 

# losetup -fP loopbackfile.img --sector-size 4096
# blockdev --getpbsz /dev/loop0
4096


-- 
Ingo Franzki
eMail: ifranzki at linux.ibm.com  
Tel: ++49 (0)7031-16-4648
Fax: ++49 (0)7031-16-3456
Linux on IBM Z Development, Schoenaicher Str. 220, 71032 Boeblingen, Germany

IBM Deutschland Research & Development GmbH / Vorsitzender des Aufsichtsrats: Matthias Hartmann
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM DATA Privacy Statement: https://www.ibm.com/privacy/us/en/




More information about the linux-lvm mailing list