https://bugzilla.novell.com/show_bug.cgi?id=726375 https://bugzilla.novell.com/show_bug.cgi?id=726375#c0 Summary: lvm lvconvert cannot handle mirror logs (on disk) larger than 4KiB Classification: openSUSE Product: openSUSE 12.1 Version: RC 1 Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: Yarny@public-files.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 When I create a mirrored logical volume with lvcreate, which is large enough such that the mirror log is larger than 4KiB, it cannot be stored on disk. Using lvconvert to move it to disk results in "device-mapper: reload ioctl failed: Invalid argument Failed to lock ${NAME_OF_LV}" Reproducible: Always Steps to Reproduce: I tried it with the current KDE Live CD (12.1 Build0379 x86_64) inside a VirtualBox, which runs on openSUSE 11.4. * Boot said Live CD (e.g. in VBox) with a hard disk with 200 MiB free space (or more). This disk will store some loop-devices which will hold LVM physical volumes. * Login as root. * Mount your temporary disk space to /mnt. * Execute the following commands in a shell: ################################################################ # Set some dir where you have 100MiB free TMPDIR=/mnt ## Prepare 3 disks (loop devices) with 48GiB each for k in a b c do dd if=/dev/null of=$TMPDIR/$k.loop bs=1G seek=48 count=0 done a=$(losetup -f --show $TMPDIR/a.loop) b=$(losetup -f --show $TMPDIR/b.loop) c=$(losetup -f --show $TMPDIR/c.loop) ## Create LVM volume group pvcreate \ --metadatasize 1M \ $a $b $c vgcreate \ --metadatatype 2 \ --physicalextentsize 4k \ --clustered n \ testvg \ $a $b $c ## Create a mirrored 40GiB logical volume with 2 mirror legs # The "mirror log" is kept in RAM for now. lvcreate \ --extents 10485760 \ --name testlv \ --mirrors 1 \ --nosync \ --regionsize 1M \ --mirrorlog core \ testvg \ $a $b # Move the "mirror log" to disk, into the third loop device lvconvert \ --mirrorlog disk \ testvg/testlv \ $c ################################################################ Variations that do /not/ fail: * Change region size to 2M or * Change number of extents to 524288 (e.g. LV size to 20GiB) Actual Results: device-mapper: reload ioctl failed: Invalid argument Failed to lock testlv Expected Results: Logical volumen testlv converted. I remember that this problem existed in earlier version of openSUSE. When testing this, I'm booting the LiveCD with "splash=verbose 3" to prevent KDE from starting up (I guess that's not really relevant). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.