Bug 2109351
| Summary: | multipath_component_detection = 0 in lvm.conf does not have any effect | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Gopinath Marappan <marappan_gopinath> | |
| Component: | lvm2 | Assignee: | David Teigland <teigland> | |
| lvm2 sub component: | Configuration files | QA Contact: | cluster-qe <cluster-qe> | |
| Status: | CLOSED ERRATA | Docs Contact: | ||
| Severity: | urgent | |||
| Priority: | unspecified | CC: | agk, Ajaykumar.Rajappa, cmarthal, heinzm, jbrassow, madhu.tarikere, marappan_gopinath, mcsontos, msnitzer, prajnoha, teigland, wayne.berthiaume, yi.he, zkabelac | |
| Version: | 9.0 | Keywords: | Triaged | |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
|
| Target Release: | --- | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | lvm2-2.03.16-3.el9 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2111136 2111137 (view as bug list) | Environment: | ||
| Last Closed: | 2022-11-15 11:20:53 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: | ||||
| Bug Blocks: | 2111136, 2111137 | |||
|
Description
Gopinath Marappan
2022-07-21 03:25:44 UTC
I will look into applying the multipath_component_detection setting to the newly expanded detection features also. Thanks David! Btw, I have a patch that fixes this issue. But I couldn't raise a pull request at https://github.com/lvmteam/lvm2 as I dont have access. If you can add me as a contributor, I can do a pull request. I have also filed an issue for this in the github repo - https://github.com/lvmteam/lvm2/issues/86 . Please advise. Thanks. fix in main branch: https://sourceware.org/git/?p=lvm2.git;a=commit;h=99ce09ae778c2cc4aa2611e425bba5287b8b9513 # rm /run/lvm/hints # pvs PV VG Fmt Attr PSize PFree /dev/sda2 rhel_null-04 lvm2 a-- <464.76g 0 # rm /run/lvm/hints # pvs --config devices/multipath_component_detection=0 WARNING: Not using device /dev/sdj for PV CqOFo8-ozdc-4yiu-SFjd-jcH2-qFqs-V2KneR. WARNING: PV CqOFo8-ozdc-4yiu-SFjd-jcH2-qFqs-V2KneR prefers device /dev/sdi because device was seen first. PV VG Fmt Attr PSize PFree /dev/sda2 rhel_null-04 lvm2 a-- <464.76g 0 /dev/sdi lvm2 --- 100.00m 100.00m (In reply to Gopinath Marappan from comment #2) > Thanks David! > > Btw, I have a patch that fixes this issue. But I couldn't raise a pull > request at https://github.com/lvmteam/lvm2 as I dont have access. > > If you can add me as a contributor, I can do a pull request. Sorry, I'm afraid we largely ignore the github repo and primarily use sourceware. > I have also filed an issue for this in the github repo - > https://github.com/lvmteam/lvm2/issues/86 . OK, we also need a bz for the issue in order to get it released in RHEL. Thanks for the quick fix David. Will it be possible to backport the fix to RHEL9.0 and RHEL9.1? Marking Verified in the latest rpms.
kernel-5.14.0-138.el9 BUILT: Sun Jul 31 06:20:38 AM CDT 2022
lvm2-2.03.16-3.el9 BUILT: Mon Aug 1 04:42:35 AM CDT 2022
lvm2-libs-2.03.16-3.el9 BUILT: Mon Aug 1 04:42:35 AM CDT 2022
[root@hayes-03 ~]# /usr/tests/sts-rhel8.7/lvm2/bin/qe_lvmconf2 -Pe
Setting multipath_component_detection to enable
[root@hayes-03 ~]# grep multipath_component_detection /etc/lvm/lvm.conf
# Configuration option devices/multipath_component_detection.
# multipath_component_detection = 1
multipath_component_detection = 1 # edited by QA Thu Aug 4 16:18:10 2022
[root@hayes-03 ~]# grep multipath_wwids_file /etc/lvm/lvm.conf
# Configuration option devices/multipath_wwids_file.
# multipath_wwids_file = "/etc/multipath/wwids"
[root@hayes-03 ~]# multipath /dev/sdb
97959.552904 | mpathb: addmap [0 936640512 multipath 0 0 1 1 service-time 0 1 1 8:16 1]
create: mpathb (36d09466083d8e100233c17f9212bf63e) undef DELL,PERC H330 Adp
size=447G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
`- 0:2:3:0 sdb 8:16 undef ready running
[root@hayes-03 ~]# pvcreate /dev/mapper/mpathb1
Physical volume "/dev/mapper/mpathb1" successfully created.
[root@hayes-03 ~]# vgcreate test /dev/mapper/mpathb1
Volume group "test" successfully created
[root@hayes-03 ~]# lvcreate -L 10M test
Rounding up size to full physical extent 12.00 MiB
Logical volume "lvol0" created.
[root@hayes-03 ~]# pvscan
PV /dev/mapper/mpathb1 VG test lvm2 [446.62 GiB / <446.61 GiB free]
Total: 1 [446.62 GiB] / in use: 1 [446.62 GiB] / in no VG: 0 [0 ]
[root@hayes-03 ~]# /usr/tests/sts-rhel8.7/lvm2/bin/qe_lvmconf2 -Pd
Setting multipath_component_detection to disable
[root@hayes-03 ~]# grep multipath_component_detection /etc/lvm/lvm.conf
# Configuration option devices/multipath_component_detection.
# multipath_component_detection = 1
multipath_component_detection = 0 # edited by QA Thu Aug 4 16:22:25 2022
[root@hayes-03 ~]# grep multipath_wwids_file /etc/lvm/lvm.conf
# Configuration option devices/multipath_wwids_file.
# multipath_wwids_file = "/etc/multipath/wwids"
multipath_wwids_file = ""
[root@hayes-03 ~]# pvscan
PV /dev/mapper/mpathb1 VG test lvm2 [446.62 GiB / <446.61 GiB free]
Total: 1 [446.62 GiB] / in use: 1 [446.62 GiB] / in no VG: 0 [0 ]
[root@hayes-03 ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/mapper/mpathb1 test lvm2 a-- 446.62g <446.61g
[root@hayes-03 ~]# echo $?
0
[root@hayes-03 ~]# vgchange -ay test
1 logical volume(s) in volume group "test" now active
[root@hayes-03 ~]# echo $?
0
[root@hayes-03 ~]# lvs test
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lvol0 test -wi-a----- 12.00m
[root@hayes-03 ~]# echo $?
0
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-2022:8358 |