Bug 779445

Summary: lvm lvcreate fails to create mirrored volume
Product: [openSUSE] openSUSE 13.1 Reporter: Forgotten User 7XRNh5WElB <forgotten_7XRNh5WElB>
Component: BasesystemAssignee: Dong Mao Zhang <dmzhang>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: infos
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: SUSE Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Shell script to trigger the bug

Description Forgotten User 7XRNh5WElB 2012-09-09 17:59:28 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0

lvcreate refuses to create a mirrored logical volume

Reproducible: Always

Steps to Reproduce:
Run attached script
Actual Results:  
Can't process LV testlv: mirror target support missing from kernel?

Expected Results:  
Logical volume "testlv" created.

lvcreate's guess about missing kernel support is wrong: Creation of a mirrored device with dmsetup succeeds.

This is a regression: The attached script does not show the error with openSUSE 12.1.

I tested with openSUSE 12.2 LiveCD (KDE, final version), inside a VirtualBox hosted by openSUSE 12.1, on a x86_64 machine.
Comment 1 Forgotten User 7XRNh5WElB 2012-09-09 18:01:18 UTC
Created attachment 504966 [details]
Shell script to trigger the bug

...as promised in report.
Comment 2 Ismail Dönmez 2012-09-10 11:54:24 UTC
I am the llvm guy, not lvm :/
Comment 5 Thomas Fehr 2012-11-14 11:03:15 UTC
Reassigned to lvm2 maintainer
Comment 6 Forgotten User 7XRNh5WElB 2012-12-15 23:22:26 UTC
In the meantime this bug has also been reported, and fixed, in bnc#779965.

I hope I'm not exceeding my authority in marking this as a duplicate of said bug.

*** This bug has been marked as a duplicate of bug 779965 ***
Comment 7 Forgotten User 7XRNh5WElB 2013-11-02 22:53:23 UTC
This bug reappeared in openSUSE 13.1.  The script in comment 1 fails in RC1 and RC2 (tested with the KDE live CD in a VirtualBox environment).  I never observed this bug in openSUSE 12.3.  Somehow I recall that the bug did not exist in early versions of 13.1 (~Milestone 3 or 4), but I'm not sure and I already deleted those images, so I can't test.
Comment 9 stefan schallenberg 2013-12-20 18:48:25 UTC
In 13.1 GA I see two results of the bug:
- Creating a LVM Volume does not work until manually loading dm_raid or dm_snapshot kernel modules
- When booting with such volumes created the volumes are not available, until the kernel modules are manually loaded (modprobe) and the LVM activation is rerun.

Seems to be a Problem that dm_* kernel modules are not loaded, whyever.

Hope this Information helps to Analyse and fix this bug.
Comment 10 Forgotten User 7XRNh5WElB 2013-12-24 16:59:56 UTC
still in final release
Comment 11 Dong Mao Zhang 2013-12-25 11:31:33 UTC
It's like bnc#779965

Can you try this:

https://build.opensuse.org/package/show/Base:System/lvm2

to see if it was fixed in factory.
Comment 12 Forgotten User 7XRNh5WElB 2013-12-25 12:04:41 UTC
Just tested (with current oS 13.1, but lvm2 package from Factory repo):
It is fixed in Factory.
Comment 13 Dong Mao Zhang 2014-08-26 09:32:07 UTC
close this