Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1973592

Summary: RFE: Request for warning if multipathd is not running/active
Product: Red Hat Enterprise Linux 8 Reporter: Lin Li <lilin>
Component: device-mapper-multipathAssignee: Ben Marzinski <bmarzins>
Status: CLOSED ERRATA QA Contact: Lin Li <lilin>
Severity: high Docs Contact:
Priority: medium    
Version: 8.5CC: agk, bmarzins, heinzm, msnitzer, prajnoha, zkabelac
Target Milestone: betaKeywords: FutureFeature, Triaged
Target Release: 8.5Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: device-mapper-multipath-0.8.4-17.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 19:32:00 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:

Description Lin Li 2021-06-18 09:18:46 UTC
Description of problem:
RFE: Request for warning if multipathd is not running/active

Version-Release number of selected component (if applicable):
device-mapper-multipath-0.8.4-13.el8

How reproducible:
always

Steps to Reproduce:
1.# rpm -qa | grep multipath
device-mapper-multipath-libs-0.8.4-13.el8.ppc64le
device-mapper-multipath-0.8.4-13.el8.ppc64le
2.# mpathconf --enable
3.# service multipathd restart
Redirecting to /bin/systemctl restart multipathd.service
4.# multipath -ll
mpatha (3600601605e203f00d6ed8ff61e07eb11) dm-0 DGC,VRAID
size=8.0G features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='service-time 0' prio=10 status=enabled
| |- 1:0:0:0 sda 8:0  active ready running
| `- 2:0:0:0 sdc 8:32 active ready running
`-+- policy='service-time 0' prio=50 status=enabled
  |- 1:0:1:0 sdb 8:16 active ready running
  `- 2:0:1:0 sdd 8:48 active ready running

5.# service multipathd stop
Redirecting to /bin/systemctl stop multipathd.service
Warning: Stopping multipathd.service, but it can still be activated by:
  multipathd.socket

6.# multipath -ll
mpatha (3600601605e203f00d6ed8ff61e07eb11) dm-0 DGC,VRAID
size=8.0G features='0' hwhandler='1 alua' wp=rw
|-+- policy='service-time 0' prio=10 status=enabled
| |- 1:0:0:0 sda 8:0  active ready running
| `- 2:0:0:0 sdc 8:32 active ready running
`-+- policy='service-time 0' prio=50 status=enabled
  |- 1:0:1:0 sdb 8:16 active ready running
  `- 2:0:1:0 sdd 8:48 active ready running



Actual results:
List multipath devices while multipathd is stopped, but multipath doesn't  print a warning message.

Expected results:
List multipath devices while multipathd is stopped, multipath  prints a warning message. Similar as: multipath device maps are present, but 'multipathd' service is not running; IO failover/failback will not work without 'multipathd' service running

Additional info:
I reproduced it on IBM power server. But I guess I can reproduce it on all arch.

Comment 3 Ben Marzinski 2021-07-26 18:33:09 UTC
Multipath now warns if multipathd is not running.

Comment 7 Lin Li 2021-07-29 02:04:20 UTC
Verified on device-mapper-multipath-0.8.4-17.el8
1,[root@ibm-p9z-20-lp13 ~]# rpm -qa | grep multipath
device-mapper-multipath-libs-0.8.4-17.el8.ppc64le
device-mapper-multipath-0.8.4-17.el8.ppc64le

2,# mpathconf --enable

3.# service multipathd restart
Redirecting to /bin/systemctl restart multipathd.service

4.# multipath -ll
mpatha (3600601605e203f00d6ed8ff61e07eb11) dm-0 DGC,VRAID
size=8.0G features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='service-time 0' prio=10 status=enabled
| |- 1:0:0:0 sda 8:0  active ready running
| `- 2:0:0:0 sdc 8:32 active ready running
`-+- policy='service-time 0' prio=50 status=enabled
  |- 1:0:1:0 sdb 8:16 active ready running
  `- 2:0:1:0 sdd 8:48 active ready running

5,[root@ibm-p9z-20-lp13 ~]# service multipathd stop
Redirecting to /bin/systemctl stop multipathd.service

6,[root@ibm-p9z-20-lp13 ~]# service multipathd status
Redirecting to /bin/systemctl status multipathd.service
● multipathd.service - Device-Mapper Multipath Device Controller
   Loaded: loaded (/usr/lib/systemd/system/multipathd.service; enabled; vendor >
   Active: inactive (dead) since Wed 2021-07-28 21:58:26 EDT; 57s ago
Condition: start condition failed at Wed 2021-07-28 21:58:35 EDT; 48s ago
           └─ ConditionPathExists=/etc/multipath.conf was not met
  Process: 27000 ExecStart=/sbin/multipathd -d -s (code=exited, status=0/SUCCES>
  Process: 26998 ExecStartPre=/sbin/multipath -A (code=exited, status=0/SUCCESS)
  Process: 26996 ExecStartPre=/sbin/modprobe -a scsi_dh_alua scsi_dh_emc scsi_d>
 Main PID: 27000 (code=exited, status=0/SUCCESS)
   Status: "shutdown"

Jul 28 03:26:11 ibm-p9z-20-lp13.fs.lab.eng.bos.redhat.com multipathd[27000]: 8:>
Jul 28 03:26:11 ibm-p9z-20-lp13.fs.lab.eng.bos.redhat.com multipathd[27000]: mp>
Jul 28 03:26:11 ibm-p9z-20-lp13.fs.lab.eng.bos.redhat.com multipathd[27000]: mp>
Jul 28 03:26:11 ibm-p9z-20-lp13.fs.lab.eng.bos.redhat.com multipathd[27000]: 8:>
Jul 28 03:26:11 ibm-p9z-20-lp13.fs.lab.eng.bos.redhat.com multipathd[27000]: mp>
Jul 28 21:58:26 ibm-p9z-20-lp13.fs.lab.eng.bos.redhat.com systemd[1]: Stopping >
Jul 28 21:58:26 ibm-p9z-20-lp13.fs.lab.eng.bos.redhat.com multipathd[27000]: ex>
Jul 28 21:58:26 ibm-p9z-20-lp13.fs.lab.eng.bos.redhat.com multipathd[27000]: -->
Jul 28 21:58:26 ibm-p9z-20-lp13.fs.lab.eng.bos.redhat.com systemd[1]: multipath>
Jul 28 21:58:26 ibm-p9z-20-lp13.fs.lab.eng.bos.redhat.com systemd[1]: Stopped D>

7,[root@ibm-p9z-20-lp13 ~]# multipath -ll
mpatha (3600601605e203f00d6ed8ff61e07eb11) dm-0 DGC,VRAID
size=8.0G features='0' hwhandler='1 alua' wp=rw
|-+- policy='service-time 0' prio=10 status=enabled
| |- 1:0:0:0 sda 8:0  active ready running
| `- 2:0:0:0 sdc 8:32 active ready running
`-+- policy='service-time 0' prio=50 status=enabled
  |- 1:0:1:0 sdb 8:16 active ready running
  `- 2:0:1:0 sdd 8:48 active ready running
Jul 28 21:59:32 | multipath devices exist, but multipathd service is not running


Test result: Multipath now warns "multipath devices exist, but multipathd service is not running" if multipathd is not running.

Comment 10 errata-xmlrpc 2021-11-09 19:32:00 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 (device-mapper-multipath 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-2021:4367