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 1579438 - raid1 tracked split off raid|mirror images should not be allowed to be converted
Summary: raid1 tracked split off raid|mirror images should not be allowed to be converted
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.5
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Heinz Mauelshagen
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-17 16:08 UTC by Corey Marthaler
Modified: 2021-09-03 12:36 UTC (History)
7 users (show)

Fixed In Version: lvm2-2.02.180-2.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-30 11:02:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3193 0 None None None 2018-10-30 11:03:20 UTC

Description Corey Marthaler 2018-05-17 16:08:57 UTC
Description of problem:
This is similar to bug 1579072, but here I learned that the tracked split off images themselves can also be converted, and as a result are no longer eligible for being merged back.


# lvconvert --yes --splitmirrors 1 --trackchanges split_image/split_tracking

[root@host-073 ~]# lvs -a -o +devices
  LV                        VG            Attr       LSize   Log Cpy%Sync Devices
  split_tracking            split_image   rwi-a-r--- 500.00m     100.00   split_tracking_rimage_0(0),split_tracking_rimage_1(0),split_tracking_rimage_2(0)
  [split_tracking_rimage_0] split_image   iwi-aor--- 500.00m              /dev/sdb3(1)
  [split_tracking_rimage_1] split_image   iwi-aor--- 500.00m              /dev/sdb2(1)
  split_tracking_rimage_2   split_image   Iri-a-r--- 500.00m              /dev/sdb1(1)
  [split_tracking_rmeta_0]  split_image   ewi-aor---   4.00m              /dev/sdb3(0)
  [split_tracking_rmeta_1]  split_image   ewi-aor---   4.00m              /dev/sdb2(0)
  [split_tracking_rmeta_2]  split_image   ewi-a-r---   4.00m              /dev/sdb1(0)

# An attempt to convert the tracked split image should probably fail
[root@host-073 ~]# lvconvert --type mirror -m 2 split_image/split_tracking_rimage_2
  Logical volume split_image/split_tracking_rimage_2 being converted.
  split_image/split_tracking_rimage_2: Converted: 0.00%
  split_image/split_tracking_rimage_2: Converted: 50.40%
  split_image/split_tracking_rimage_2: Converted: 100.00%

[root@host-073 ~]# lvs -a -o +devices
  LV                                 VG            Attr       LSize   Log                            Cpy%Sync Devices
  split_tracking                     split_image   rwi-a-r--- 500.00m                                100.00   split_tracking_rimage_0(0),split_tracking_rimage_1(0),split_tracking_rimage_2(0)                           
  [split_tracking_rimage_0]          split_image   iwi-aor--- 500.00m                                         /dev/sdb3(1)
  [split_tracking_rimage_1]          split_image   iwi-aor--- 500.00m                                         /dev/sdb2(1)
  split_tracking_rimage_2            split_image   mri-a-r--- 500.00m [split_tracking_rimage_2_mlog] 100.00   split_tracking_rimage_2_mimage_0(0),split_tracking_rimage_2_mimage_1(0),split_tracking_rimage_2_mimage_2(0)
  [split_tracking_rimage_2_mimage_0] split_image   iri-aom--- 500.00m                                         /dev/sdb1(1)
  [split_tracking_rimage_2_mimage_1] split_image   iwi-aom--- 500.00m                                         /dev/sdb3(126)
  [split_tracking_rimage_2_mimage_2] split_image   iwi-aom--- 500.00m                                         /dev/sdb2(126)
  [split_tracking_rimage_2_mlog]     split_image   lwi-aom---   4.00m                                         /dev/sda1(0)
  [split_tracking_rmeta_0]           split_image   ewi-aor---   4.00m                                         /dev/sdb3(0)
  [split_tracking_rmeta_1]           split_image   ewi-aor---   4.00m                                         /dev/sdb2(0)
  [split_tracking_rmeta_2]           split_image   ewi-a-r---   4.00m                                         /dev/sdb1(0)

# Now it can't be merge back since it's of type mirror
[root@host-073 ~]# lvconvert --yes --merge split_image/split_tracking_rimage_2
  Command on LV split_image/split_tracking_rimage_2 does not accept LV type mirror.
  Command not permitted on LV split_image/split_tracking_rimage_2.



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

lvm2-2.02.177-4.el7    BUILT: Fri Feb 16 06:22:31 CST 2018
lvm2-libs-2.02.177-4.el7    BUILT: Fri Feb 16 06:22:31 CST 2018
lvm2-cluster-2.02.177-4.el7    BUILT: Fri Feb 16 06:22:31 CST 2018
cmirror-2.02.177-4.el7    BUILT: Fri Feb 16 06:22:31 CST 2018
device-mapper-1.02.146-4.el7    BUILT: Fri Feb 16 06:22:31 CST 2018
device-mapper-libs-1.02.146-4.el7    BUILT: Fri Feb 16 06:22:31 CST 2018
device-mapper-event-1.02.146-4.el7    BUILT: Fri Feb 16 06:22:31 CST 2018
device-mapper-event-libs-1.02.146-4.el7    BUILT: Fri Feb 16 06:22:31 CST 2018
device-mapper-persistent-data-0.7.3-3.el7    BUILT: Tue Nov 14 05:07:18 CST 2017

Comment 2 Heinz Mauelshagen 2018-07-26 00:08:35 UTC
lvm upstream commit 8b0729af0fd357e66e95834e92913ea2a42d4e93
to reject conversions on split trackchanges raid1 SubLVs.

Comment 4 Corey Marthaler 2018-08-08 20:20:44 UTC
Fix verified in the latest rpms.

3.10.0-931.el7.x86_64

lvm2-2.02.180-2.el7    BUILT: Wed Aug  1 11:22:48 CDT 2018
lvm2-libs-2.02.180-2.el7    BUILT: Wed Aug  1 11:22:48 CDT 2018
device-mapper-1.02.149-2.el7    BUILT: Wed Aug  1 11:22:48 CDT 2018
device-mapper-libs-1.02.149-2.el7    BUILT: Wed Aug  1 11:22:48 CDT 2018
device-mapper-event-1.02.149-2.el7    BUILT: Wed Aug  1 11:22:48 CDT 2018
device-mapper-event-libs-1.02.149-2.el7    BUILT: Wed Aug  1 11:22:48 CDT 2018



  split_tracking            split_image   rwi-a-r--- 500.00m                                      100.00           split_tracking_rimage_0(0),split_tracking_rimage_1(0),split_tracking_rimage_2(0)
  [split_tracking_rimage_0] split_image   iwi-aor--- 500.00m                                                       /dev/sdb1(1)                                                                    
  [split_tracking_rimage_1] split_image   iwi-aor--- 500.00m                                                       /dev/sde1(1)                                                                    
  split_tracking_rimage_2   split_image   Iri---r--- 500.00m                                                       /dev/sdd1(1)                                                                    
  [split_tracking_rmeta_0]  split_image   ewi-aor---   4.00m                                                       /dev/sdb1(0)                                                                    
  [split_tracking_rmeta_1]  split_image   ewi-aor---   4.00m                                                       /dev/sde1(0)                                                                    
  [split_tracking_rmeta_2]  split_image   ewi---r---   4.00m                                                       /dev/sdd1(0)                                                                    

[root@host-073 ~]# lvconvert --yes --type mirror -m 1 split_image/split_tracking_rimage_2
  Conversion of tracked raid1 subvolume split_image/split_tracking_rimage_2 is not supported.
[root@host-073 ~]# lvconvert --yes --type raid1 split_image/split_tracking_rimage_2
  Conversion of tracked raid1 subvolume split_image/split_tracking_rimage_2 is not supported.

Comment 6 errata-xmlrpc 2018-10-30 11:02:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3193


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