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 2107162 - lvm ignores multipath blacklist configuration
Summary: lvm ignores multipath blacklist configuration
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: lvm2
Version: 9.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: LVM and device-mapper development team
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On: 2076262
Blocks: 2074765 2100133
TreeView+ depends on / blocked
 
Reported: 2022-07-14 13:16 UTC by Marian Csontos
Modified: 2022-11-15 13:17 UTC (History)
28 users (show)

Fixed In Version: lvm2-2.03.16-2.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2076262
Environment:
Last Closed: 2022-11-15 11:20:43 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-127714 0 None None None 2022-07-14 13:31:05 UTC
Red Hat Product Errata RHBA-2022:8358 0 None None None 2022-11-15 11:21:24 UTC

Comment 6 Corey Marthaler 2022-07-20 21:25:27 UTC
This behavior is different than what the 8.7 fix showed ( https://bugzilla.redhat.com/show_bug.cgi?id=2076262#c27 ), but it's still not what was listed as expected in https://bugzilla.redhat.com/show_bug.cgi?id=2076262#c18.


[root@hayes-03 tmp]#  pvcreate /dev/sdf
  Physical volume "/dev/sdf" successfully created.
[root@hayes-03 tmp]# pvs
  PV         VG Fmt  Attr PSize  PFree 
  /dev/sdf      lvm2 ---  <1.82t <1.82t

[root@hayes-03 tmp]# multipath /dev/sdf
93451.207798 | mpatha: addmap [0 3905945600 multipath 0 0 1 1 service-time 0 1 1 8:80 1]
create: mpatha (36d09466083d8e100233c180321c0e570) undef DELL,PERC H330 Adp
size=1.8T features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
  `- 0:2:5:0  sdf 8:80  undef ready running

# Unlike in 8.7, pvs here does seem to realize there's a pv on /dev/mapper/mpatha, are we actually supposed to do the 'lvmdevices --update'?
[root@hayes-03 tmp]# pvs
  WARNING: devices file is missing /dev/mapper/mpatha (253:0) using multipath component /dev/sdf.
  See lvmdevices --update for devices file update.

[root@hayes-03 tmp]# grep sdf /etc/lvm/devices/system.devices 
IDTYPE=sys_wwid IDNAME=naa.6d09466083d8e100233c180321c0e570 DEVNAME=/dev/sdf PVID=UTQiPfsSGvGMtz025sQtdo6FcwPTqBxW

[root@hayes-03 tmp]# cat /etc/multipath/wwids
# Multipath wwids, Version : 1.0
# NOTE: This file is automatically maintained by multipath and multipathd.
# You should not need to edit this file in normal circumstances.
#
# Valid WWIDs:
/36d09466083d8e100233c180321c0e570/

# add to /etc/multipath.conf
blacklist {
        wwid "36d09466083d8e100233c180321c0e570"
}

[root@hayes-03 tmp]# systemctl restart multipathd.service
[root@hayes-03 tmp]# multipath -F
[root@hayes-03 tmp]# multipath -v2
[root@hayes-03 tmp]# multipath -l

# pvs is back to see the device on /dev/sdf, not /dev/mapper/mpatha
[root@hayes-03 tmp]# pvs
  PV         VG Fmt  Attr PSize  PFree 
  /dev/sdf      lvm2 ---  <1.82t <1.82t

Comment 7 Corey Marthaler 2022-07-26 14:30:54 UTC
Marking Verified:Tested in the latest rpms.

kernel-5.14.0-130.el9    BUILT: Fri Jul 15 07:31:56 AM CDT 2022
lvm2-2.03.16-2.el9    BUILT: Thu Jul 14 11:45:18 AM CDT 2022
lvm2-libs-2.03.16-2.el9    BUILT: Thu Jul 14 11:45:18 AM CDT 2022



[root@hayes-03 ~]# grep use_devicesfile /etc/lvm/lvm.conf 
        # Configuration option devices/use_devicesfile.
        # use_devicesfile = 0
        use_devicesfile = 0     # edited by QA Thu Jul 21 13:40:20 2022
[root@hayes-03 ~]# pvscan
  No matching physical volumes found
[root@hayes-03 ~]# pvcreate /dev/sdn
  Physical volume "/dev/sdn" successfully created.
[root@hayes-03 ~]# pvs
  PV         VG Fmt  Attr PSize  PFree 
  /dev/sdn      lvm2 ---  <1.82t <1.82t
[root@hayes-03 ~]# multipath /dev/sdn
487683.290851 | mpathc: addmap [0 3905945600 multipath 0 0 1 1 service-time 0 1 1 8:208 1]
create: mpathc (36d09466083d8e100233c183624c8911b) undef DELL,PERC H330 Adp
size=1.8T features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
  `- 0:2:13:0 sdn 8:208 undef ready running
[root@hayes-03 ~]# pvs
  PV                 VG Fmt  Attr PSize  PFree 
  /dev/mapper/mpathc    lvm2 ---  <1.82t <1.82t
[root@hayes-03 ~]# cat /etc/multipath/wwids
# Multipath wwids, Version : 1.0
# NOTE: This file is automatically maintained by multipath and multipathd.
# You should not need to edit this file in normal circumstances.
#
# Valid WWIDs:
/36d09466083d8e100233c183624c8911b/

/etc/multipath.conf
blacklist {
        wwid "36d09466083d8e100233c183624c8911b"
}

[root@hayes-03 ~]# multipath -F
[root@hayes-03 ~]# multipath -v2
[root@hayes-03 ~]# multipath -l
[root@hayes-03 ~]# pvs
  PV         VG Fmt  Attr PSize  PFree 
  /dev/sdn      lvm2 ---  <1.82t <1.82t


/etc/multipath.conf
blacklist_exceptions {
        wwid "36d09466083d8e100233c183624c8911b"
}
blacklist {
        wwid "36d09466083d8e100233c183624c8911b"
}

[root@hayes-03 ~]# multipath -F
[root@hayes-03 ~]# multipath -v2
488607.328920 | mpathc: addmap [0 3905945600 multipath 0 0 1 1 service-time 0 1 1 8:208 1]
create: mpathc (36d09466083d8e100233c183624c8911b) undef DELL,PERC H330 Adp
size=1.8T features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
  `- 0:2:13:0 sdn 8:208 undef ready running
[root@hayes-03 ~]# multipath -l
mpathc (36d09466083d8e100233c183624c8911b) dm-0 DELL,PERC H330 Adp
size=1.8T features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=0 status=active
  `- 0:2:13:0 sdn 8:208 active undef running
[root@hayes-03 ~]#  pvs
  PV                 VG Fmt  Attr PSize  PFree 
  /dev/mapper/mpathc    lvm2 ---  <1.82t <1.82t

Comment 11 errata-xmlrpc 2022-11-15 11:20:43 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-2022:8358


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