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 1842712 - Additional RAID images can *NOT* be added to raid1 LV with integrity
Summary: Additional RAID images can *NOT* be added to raid1 LV with integrity
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: lvm2
Version: 8.3
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: 8.0
Assignee: David Teigland
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-01 22:03 UTC by Corey Marthaler
Modified: 2021-09-07 11:51 UTC (History)
8 users (show)

Fixed In Version: lvm2-2.03.09-4.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 02:00:38 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4546 0 None None None 2020-11-04 02:00:51 UTC

Description Corey Marthaler 2020-06-01 22:03:35 UTC
Description of problem:
[root@hayes-03 ~]# lvcreate  --type raid1 -m 1 -n test_raid -L 100M --raidintegrity y --raidintegritymode journal raid_sanity
  Creating integrity metadata LV test_raid_rimage_0_imeta with size 4.00 MiB.
  Logical volume "test_raid_rimage_0_imeta" created.
  Creating integrity metadata LV test_raid_rimage_1_imeta with size 4.00 MiB.
  Logical volume "test_raid_rimage_1_imeta" created.
  Logical volume "test_raid" created.

[root@hayes-03 ~]# lvs -a -o +devices,segtype
  LV                         VG          Attr       LSize   Origin                      Cpy%Sync Devices                                     Type     
  test_raid                  raid_sanity rwi-a-r--- 100.00m                             100.00   test_raid_rimage_0(0),test_raid_rimage_1(0) raid1    
  [test_raid_rimage_0]       raid_sanity gwi-aor--- 100.00m [test_raid_rimage_0_iorig]  100.00   test_raid_rimage_0_iorig(0)                 integrity
  [test_raid_rimage_0_imeta] raid_sanity ewi-ao----   4.00m                                      /dev/sdb1(26)                               linear   
  [test_raid_rimage_0_iorig] raid_sanity -wi-ao---- 100.00m                                      /dev/sdb1(1)                                linear   
  [test_raid_rimage_1]       raid_sanity gwi-aor--- 100.00m [test_raid_rimage_1_iorig]  100.00   test_raid_rimage_1_iorig(0)                 integrity
  [test_raid_rimage_1_imeta] raid_sanity ewi-ao----   4.00m                                      /dev/sdc1(26)                               linear   
  [test_raid_rimage_1_iorig] raid_sanity -wi-ao---- 100.00m                                      /dev/sdc1(1)                                linear   
  [test_raid_rmeta_0]        raid_sanity ewi-aor---   4.00m                                      /dev/sdb1(0)                                linear   
  [test_raid_rmeta_1]        raid_sanity ewi-aor---   4.00m                                      /dev/sdc1(0)                                linear   

 From lvmraid(7):

   Integrity limitations
       To work around some limitations, it is possible to remove integrity from the LV, make the change, then add integrity again.  (Integrity metadata would need to initialized when added again.)

       Additional RAID images can be added to raid1 LVs, but not to other raid levels.


# Attempt to add image to raid1 volume
[root@hayes-03 ~]# lvconvert --yes --type raid1 -m 2 raid_sanity/test_raid
  Command on LV raid_sanity/test_raid is invalid on LV with properties: lv_is_raid_with_integrity .
  Command not permitted on LV raid_sanity/test_raid.


Version-Release number of selected component (if applicable):
kernel-4.18.0-208.el8    BUILT: Thu May 28 09:44:03 CDT 2020
lvm2-2.03.09-2.el8    BUILT: Fri May 29 11:29:58 CDT 2020
lvm2-libs-2.03.09-2.el8    BUILT: Fri May 29 11:29:58 CDT 2020
lvm2-dbusd-2.03.09-2.el8    BUILT: Fri May 29 11:32:49 CDT 2020
lvm2-lockd-2.03.09-2.el8    BUILT: Fri May 29 11:29:58 CDT 2020
boom-boot-1.1-2.el8    BUILT: Tue May 26 08:45:48 CDT 2020
device-mapper-1.02.171-2.el8    BUILT: Fri May 29 11:29:58 CDT 2020
device-mapper-libs-1.02.171-2.el8    BUILT: Fri May 29 11:29:58 CDT 2020
device-mapper-event-1.02.171-2.el8    BUILT: Fri May 29 11:29:58 CDT 2020
device-mapper-event-libs-1.02.171-2.el8    BUILT: Fri May 29 11:29:58 CDT 2020
device-mapper-persistent-data-0.8.5-3.el8    BUILT: Wed Nov 27 07:05:21 CST 2019

Comment 1 David Teigland 2020-07-15 14:54:29 UTC
Drop the "--type raid1" and it works.  Will have a look at that other code path to see if it can be tweaked.

Comment 2 David Teigland 2020-07-15 16:01:28 UTC
Change to allow type raid1 to be specified:
https://sourceware.org/git/?p=lvm2.git;a=commit;h=119d5947881a8b99640d81592986e508e040766d

Comment 5 Corey Marthaler 2020-08-18 02:33:48 UTC
Fix verified in the latest rpms, both with and without the "--type raid1" argument.

kernel-4.18.0-232.el8    BUILT: Mon Aug 10 02:17:54 CDT 2020
lvm2-2.03.09-5.el8    BUILT: Wed Aug 12 15:51:50 CDT 2020
lvm2-libs-2.03.09-5.el8    BUILT: Wed Aug 12 15:51:50 CDT 2020
lvm2-dbusd-2.03.09-5.el8    BUILT: Wed Aug 12 15:49:44 CDT 2020
lvm2-lockd-2.03.09-5.el8    BUILT: Wed Aug 12 15:51:50 CDT 2020
boom-boot-1.2-2.el8    BUILT: Mon Jun 29 08:27:02 CDT 2020
device-mapper-1.02.171-5.el8    BUILT: Wed Aug 12 15:51:50 CDT 2020
device-mapper-libs-1.02.171-5.el8    BUILT: Wed Aug 12 15:51:50 CDT 2020
device-mapper-event-1.02.171-5.el8    BUILT: Wed Aug 12 15:51:50 CDT 2020
device-mapper-event-libs-1.02.171-5.el8    BUILT: Wed Aug 12 15:51:50 CDT 2020


[root@hayes-02 ~]# lvcreate  --type raid1 -m 1 -n test_raid -L 100M --raidintegrity y --raidintegritymode journal raid_sanity
  Creating integrity metadata LV test_raid_rimage_0_imeta with size 8.00 MiB.
  Logical volume "test_raid_rimage_0_imeta" created.
  Creating integrity metadata LV test_raid_rimage_1_imeta with size 8.00 MiB.
  Logical volume "test_raid_rimage_1_imeta" created.
  Logical volume "test_raid" created.

[root@hayes-02 ~]# lvconvert --yes --type raid1 -m 2 raid_sanity/test_raid
  Creating integrity metadata LV test_raid_rimage_2_imeta with size 8.00 MiB.
  Logical volume "test_raid_rimage_2_imeta" created.
  Using integrity block size 512 for unknown file system block size, logical block size 512, physical block size 512.
  Logical volume raid_sanity/test_raid successfully converted.

[root@hayes-02 ~]# lvconvert --yes  -m 3 raid_sanity/test_raid
  Creating integrity metadata LV test_raid_rimage_3_imeta with size 8.00 MiB.
  Logical volume "test_raid_rimage_3_imeta" created.
  Using integrity block size 512 for unknown file system block size, logical block size 512, physical block size 512.
  Logical volume raid_sanity/test_raid successfully converted.

[root@hayes-02 ~]# lvs -a -o +devices
  LV                         VG          Attr       LSize    Origin                      Cpy%Sync Devices
  test_raid                  raid_sanity rwi-a-r--- 100.00m                              100.00   test_raid_rimage_0(0),test_raid_rimage_1(0),test_raid_rimage_2(0),test_raid_rimage_3(0)
  [test_raid_rimage_0]       raid_sanity gwi-aor--- 100.00m  [test_raid_rimage_0_iorig]  100.00   test_raid_rimage_0_iorig(0)
  [test_raid_rimage_0_imeta] raid_sanity ewi-ao----   8.00m                                       /dev/sdb1(26)
  [test_raid_rimage_0_iorig] raid_sanity -wi-ao---- 100.00m                                       /dev/sdb1(1)
  [test_raid_rimage_1]       raid_sanity gwi-aor--- 100.00m  [test_raid_rimage_1_iorig]  100.00   test_raid_rimage_1_iorig(0)                                                            
  [test_raid_rimage_1_imeta] raid_sanity ewi-ao----   8.00m                                       /dev/sdc1(26)
  [test_raid_rimage_1_iorig] raid_sanity -wi-ao---- 100.00m                                       /dev/sdc1(1)
  [test_raid_rimage_2]       raid_sanity gwi-aor--- 100.00m  [test_raid_rimage_2_iorig]  100.00   test_raid_rimage_2_iorig(0)                                                            
  [test_raid_rimage_2_imeta] raid_sanity ewi-ao----   8.00m                                       /dev/sdd1(26)
  [test_raid_rimage_2_iorig] raid_sanity -wi-ao---- 100.00m                                       /dev/sdd1(1)
  [test_raid_rimage_3]       raid_sanity gwi-aor--- 100.00m  [test_raid_rimage_3_iorig]  100.00   test_raid_rimage_3_iorig(0)                                                            
  [test_raid_rimage_3_imeta] raid_sanity ewi-ao----   8.00m                                       /dev/sde1(26)
  [test_raid_rimage_3_iorig] raid_sanity -wi-ao---- 100.00m                                       /dev/sde1(1)
  [test_raid_rmeta_0]        raid_sanity ewi-aor---   4.00m                                       /dev/sdb1(0)
  [test_raid_rmeta_1]        raid_sanity ewi-aor---   4.00m                                       /dev/sdc1(0)
  [test_raid_rmeta_2]        raid_sanity ewi-aor---   4.00m                                       /dev/sdd1(0)
  [test_raid_rmeta_3]        raid_sanity ewi-aor---   4.00m                                       /dev/sde1(0)

Comment 8 errata-xmlrpc 2020-11-04 02:00:38 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 (lvm2 bug fix and enhancement update), 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-2020:4546


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