Bug 879693

Summary: lvm lvcreate rejects the --mirrorlog option for mirrored logical volumes
Product: [openSUSE] openSUSE 13.1 Reporter: Forgotten User 7XRNh5WElB <forgotten_7XRNh5WElB>
Component: BasesystemAssignee: Dong Mao Zhang <dmzhang>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE 13.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User 7XRNh5WElB 2014-05-23 16:49:15 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0

According to the lvcreate manpage, the --mirrorlog option is expressly meant to be used while creating a mirrored logical volume.  If done so, however, lvcreate fails.


Reproducible: Always

Steps to Reproduce:
call the attached script
(this script is identical to the one attached to Bug 779445 Comment 1).
Actual Results:  
Log options not applicable to raid1 segtype
Run `lvcreate --help' for more information.


According to my experiments with different versions of the lvm2 package, the
bug got introduced by the upgrade from 2.02.98-0.28.1.5 to 2.02.98-0.28.14.1. 
It still exists in the current version 2.02.98-0.28.18.1.
Comment 1 Dong Mao Zhang 2014-05-26 04:47:13 UTC
lvm2 now use md-raid1 as default for mirrored device.
use:
lvcreate -L 512m -n testlv -m 1 --nosync  testvg $a $b
to create a md-raid1 mirrored device.

use:

lvcreate -L 512m -n testlv -m 1 --nosync --type mirror --mirrorlog core testvg $a $b

to create a dm-mirror device.
Comment 2 Forgotten User 7XRNh5WElB 2014-05-26 20:50:09 UTC
Aha, thanks, Dong Mao Zhang!  I didn't expect such a change.

Sorry for reporting a non-bug.  I'll close it as invalid, hope that's ok.