RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1774696 - mirror type leg conversion needs warning if mirror "already has image count" of request like raid1
Summary: mirror type leg conversion needs warning if mirror "already has image count" ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.8
Hardware: x86_64
OS: Linux
medium
low
Target Milestone: rc
: ---
Assignee: Heinz Mauelshagen
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-20 18:11 UTC by Corey Marthaler
Modified: 2021-09-03 12:50 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-18 15:29:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Corey Marthaler 2019-11-20 18:11:36 UTC
Description of problem:
### MIRROR
[root@hayes-01 ~]# lvcreate -m 2 --type mirror -n foo -L 100M centipede2
  Logical Volume "foo" already exists in volume group "centipede2"
[root@hayes-01 ~]# lvs -a -o +devices
  LV             VG         Attr       LSize   Pool Origin Data%  Meta%  Move Log        Cpy%Sync Convert Devices
  foo            centipede2 mwi-a-m--- 100.00m                                [foo_mlog] 100.00           foo_mimage_0(0),foo_mimage_1(0),foo_mimage_2(0)
  [foo_mimage_0] centipede2 iwi-aom--- 100.00m                                                            /dev/sdg1(0)
  [foo_mimage_1] centipede2 iwi-aom--- 100.00m                                                            /dev/sde1(0)
  [foo_mimage_2] centipede2 iwi-aom--- 100.00m                                                            /dev/sdb1(0)
  [foo_mlog]     centipede2 lwi-aom---   4.00m                                                            /dev/sdf1(0)
# No warning/output
[root@hayes-01 ~]# lvconvert --yes  -m 2 centipede2/foo
[root@hayes-01 ~]# 


### RAID1
[root@hayes-01 ~]# lvcreate -m 2 --type raid1 -n bar -L 100M centipede2
  Logical volume "bar" created.
[root@hayes-01 ~]# lvs -a -o +devices
  LV             VG         Attr       LSize   Pool Origin Data%  Meta%  Move Log        Cpy%Sync Convert Devices                                        
  bar            centipede2 rwi-a-r--- 100.00m                                           100.00           bar_rimage_0(0),bar_rimage_1(0),bar_rimage_2(0)
  [bar_rimage_0] centipede2 iwi-aor--- 100.00m                                                            /dev/sdg1(26)                                  
  [bar_rimage_1] centipede2 iwi-aor--- 100.00m                                                            /dev/sde1(26)                                  
  [bar_rimage_2] centipede2 iwi-aor--- 100.00m                                                            /dev/sdb1(26)                                  
  [bar_rmeta_0]  centipede2 ewi-aor---   4.00m                                                            /dev/sdg1(25)                                  
  [bar_rmeta_1]  centipede2 ewi-aor---   4.00m                                                            /dev/sde1(25)                                  
  [bar_rmeta_2]  centipede2 ewi-aor---   4.00m                                                            /dev/sdb1(25)                                  
[root@hayes-01 ~]# lvconvert --yes  -m 2 centipede2/bar
  WARNING: centipede2/bar already has image count of 3.
  Logical volume centipede2/bar successfully converted.


Version-Release number of selected component (if applicable):
3.10.0-1109.el7.x86_64

lvm2-2.02.186-3.el7    BUILT: Fri Nov  8 07:07:01 CST 2019
lvm2-libs-2.02.186-3.el7    BUILT: Fri Nov  8 07:07:01 CST 2019
lvm2-cluster-2.02.186-3.el7    BUILT: Fri Nov  8 07:07:01 CST 2019
lvm2-lockd-2.02.186-3.el7    BUILT: Fri Nov  8 07:07:01 CST 2019
device-mapper-1.02.164-3.el7    BUILT: Fri Nov  8 07:07:01 CST 2019
device-mapper-libs-1.02.164-3.el7    BUILT: Fri Nov  8 07:07:01 CST 2019
device-mapper-event-1.02.164-3.el7    BUILT: Fri Nov  8 07:07:01 CST 2019
device-mapper-event-libs-1.02.164-3.el7    BUILT: Fri Nov  8 07:07:01 CST 2019
device-mapper-persistent-data-0.8.5-1.el7    BUILT: Mon Jun 10 03:58:20 CDT 2019


How reproducible:
Everytime

Comment 2 Heinz Mauelshagen 2020-07-20 13:44:21 UTC
Commit IDs:
master      -> 3c9177fdc0b8f94c0ae335790a485477901b685d
stable-2.02 -> 7f41d49f497e2b886f197121551db585dff29b6e

Comment 3 Heinz Mauelshagen 2020-09-28 15:22:15 UTC
Reverted on both branches as of https://bugzilla.redhat.com/show_bug.cgi?id=1872130.


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