Bug 1400021 - failed to create mirror logical volume by lvcreate on RHEL7.x
Summary: failed to create mirror logical volume by lvcreate on RHEL7.x
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.3
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: LVM and device-mapper development team
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-30 10:05 UTC by Zhang Xiaotian
Modified: 2021-09-03 12:48 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-01 11:19:37 UTC
Target Upstream Version:


Attachments (Terms of Use)

Comment 2 Zdenek Kabelac 2016-11-30 10:15:23 UTC
It's rather unfortunate error message.

Mirrored mirror log is ONLY supported with the old DM mirror target.

With new 'raid1' mirroring (kernel code shared with mdraid) - logs are handled differently - every leg has its own log device (typically on the same device as the leg itself).

So there is no need to mirror the log in this case. 

The message just likely needs to emphasize  '--type mirror'  in the message.

But these days you get automatically a better --type raid1 mirror.

If you wish to change back to the old mirror type 'mirror' - please change lvm.conf setting  mirror_segtype_default="mirror"  or just use:

lvcreate --type mirror --mirrors 1.....

There is no plan to support mirroring of new 'raid1' log device.

Comment 4 Zdenek Kabelac 2016-12-01 09:13:43 UTC
There is already a whole new man page:  'man lvmraid'  describing features and usage of new 'mirroring/raid' system used by lvm2.

Original lvcreate man page quite explicitly mentions legacy "mirror" segment type with --mirrorlog option.

So what other changes do you propose here ?


Note You need to log in before you can comment on or make changes to this bug.