Bug 2204467
| Summary: | multisegment RAID1, allocator uses one disk for both legs | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Marian Csontos <mcsontos> |
| Component: | lvm2 | Assignee: | LVM Team <lvm-team> |
| lvm2 sub component: | Mirroring and RAID | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | high | ||
| Priority: | high | CC: | agk, cmarthal, heinzm, jbrassow, msnitzer, prajnoha, steved424, zkabelac |
| Version: | 9.3 | Keywords: | Triaged |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | lvm2-2.03.21-3.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1518121 | Environment: | |
| Last Closed: | 2023-11-07 08:53:33 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1518121, 2204480 | ||
| Bug Blocks: | |||
|
Description
Marian Csontos
2023-05-15 15:46:12 UTC
Marking Verified:Tested in the latest rpms. WITHOUT FIX: lvm2-2.03.21-2.el9 BUILT: Thu May 25 12:03:04 AM CEST 2023 SCENARIO (raid1) - [create_raid_on_limited_contig_space_on_both_legs] Create a raid with limited but contiguous PV space on both leg devices, and verify the creation took place on the proper devices Recreating PVs/VG with smaller 8G size virt-004.cluster-qe.lab.eng.brq.redhat.com: pvcreate --yes --setphysicalvolumesize 8G /dev/sdc /dev/sdd /dev/sdb virt-004.cluster-qe.lab.eng.brq.redhat.com: vgcreate raid_sanity /dev/sdc /dev/sdd /dev/sdb Placing a spacer linear on the two devices so that the raid creation will be constrained lvcreate --yes --type linear -n spacer1 -L 4G raid_sanity /dev/sdc lvcreate --yes --type linear -n spacer2 -L 4G raid_sanity /dev/sdd Create the constrained allocation raid volume lvcreate --yes --type raid1 -n proper_alloc -L 6G raid_sanity /dev/sdb shows up as a device in *both* _image0 and _image1 Possible regression of bugs 1518121/2204467 [root@virt-004 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices proper_alloc raid_sanity rwi-a-r--- 6.00g 100.00 proper_alloc_rimage_0(0),proper_alloc_rimage_1(0) [proper_alloc_rimage_0] raid_sanity iwi-aor--- 6.00g /dev/sdb(1) [proper_alloc_rimage_0] raid_sanity iwi-aor--- 6.00g /dev/sdd(1024) [proper_alloc_rimage_1] raid_sanity iwi-aor--- 6.00g /dev/sdc(1025) [proper_alloc_rimage_1] raid_sanity iwi-aor--- 6.00g /dev/sdb(1023) [proper_alloc_rmeta_0] raid_sanity ewi-aor--- 4.00m /dev/sdb(0) [proper_alloc_rmeta_1] raid_sanity ewi-aor--- 4.00m /dev/sdc(1024) spacer1 raid_sanity -wi-a----- 4.00g /dev/sdc(0) spacer2 raid_sanity -wi-a----- 4.00g /dev/sdd(0) WITH FIX: lvm2-2.03.21-3.el9 BUILT: Thu Jul 13 08:50:26 PM CEST 2023 SCENARIO (raid1) - [create_raid_on_limited_contig_space_on_both_legs] Create a raid with limited but contiguous PV space on both leg devices, and verify the creation took place on the proper devices Recreating PVs/VG with smaller 8G size virt-009.cluster-qe.lab.eng.brq.redhat.com: pvcreate --yes --setphysicalvolumesize 8G /dev/sdb /dev/sde /dev/sdf virt-009.cluster-qe.lab.eng.brq.redhat.com: vgcreate raid_sanity /dev/sdb /dev/sde /dev/sdf Placing a spacer linear on the two devices so that the raid creation will be constrained lvcreate --yes --type linear -n spacer1 -L 4G raid_sanity /dev/sdb lvcreate --yes --type linear -n spacer2 -L 4G raid_sanity /dev/sde Create the constrained allocation raid volume lvcreate --yes --type raid1 -n proper_alloc -L 6G raid_sanity LV raid_sanity/proper_alloc_rimage_1 using PV /dev/sdf is not redundant. Insufficient suitable allocatable extents for logical volume raid_sanity/proper_alloc 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-2023:6633 |