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 1402092 - "chk_st dev_st" stays "ready running" after offline the device
Summary: "chk_st dev_st" stays "ready running" after offline the device
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: device-mapper-multipath
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Ben Marzinski
QA Contact: Lin Li
Steven J. Levine
URL:
Whiteboard:
Depends On: 1401769
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-06 18:17 UTC by Ben Marzinski
Modified: 2021-09-03 12:09 UTC (History)
9 users (show)

Fixed In Version: device-mapper-multipath-0.4.9-101.el7
Doc Type: Bug Fix
Doc Text:
Users no longer get potentially confusing stale data for multipath devices that are not being checked Previously, when a path device is orphaned (not a member of a multipath device), the device state and checker state displayed with the "show paths" command in the state of the device before it was orphaned. As a result, the "show paths" command showed out of date information on devices that was no longer checking. With this fix, the "show paths" command now displays `undef` as the checker state and `unknown` as the device state of orphaned paths and users no longer get potentially confusing stale data for devices that are not being checked.
Clone Of: 1401769
Environment:
Last Closed: 2017-08-01 16:34:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:1961 0 normal SHIPPED_LIVE device-mapper-multipath bug fix and enhancement update 2017-08-01 17:56:09 UTC

Comment 1 Ben Marzinski 2017-02-16 19:46:05 UTC
Fix Ported.

Comment 3 Steven J. Levine 2017-05-08 16:55:47 UTC
Ben:

Could you check my editing of your doc text into release note format to be sure it is still ok?  Thanks.

Steven

Comment 4 Ben Marzinski 2017-05-08 18:44:26 UTC
It looks good, except that `show pathsr` should obviously be `show paths`.

Comment 5 Lin Li 2017-05-22 09:25:19 UTC
Reproduced on device-mapper-multipath-0.4.9-99.el7
1. [root@storageqe-84 ~]# rpm -qa | grep multipath
device-mapper-multipath-libs-0.4.9-99.el7.x86_64
device-mapper-multipath-0.4.9-99.el7.x86_64

2. [root@storageqe-84 ~]# modprobe scsi_debug vpd_use_hostno=0 add_host=2 dev_size_mb=1024

3. [root@storageqe-84 ~]# lsblk
NAME                          MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
sda                             8:0    0   50G  0 disk  
└─mpatha                      253:0    0   50G  0 mpath 
  ├─mpatha1                   253:1    0    1G  0 part  /boot
  └─mpatha2                   253:2    0   49G  0 part  
    ├─rhel_storageqe--84-root 253:3    0   44G  0 lvm   /
    └─rhel_storageqe--84-swap 253:4    0    5G  0 lvm   [SWAP]
sdb                             8:16   0   50G  0 disk  
└─mpatha                      253:0    0   50G  0 mpath 
  ├─mpatha1                   253:1    0    1G  0 part  /boot
  └─mpatha2                   253:2    0   49G  0 part  
    ├─rhel_storageqe--84-root 253:3    0   44G  0 lvm   /
    └─rhel_storageqe--84-swap 253:4    0    5G  0 lvm   [SWAP]
sdc                             8:32   0    1G  0 disk  
└─mpathb                      253:5    0    1G  0 mpath 
sdd                             8:48   0    1G  0 disk  
└─mpathb                      253:5    0    1G  0 mpath 
sr0                            11:0    1 1024M  0 rom   
 
4.[root@storageqe-84 ~]# echo "offline" > /sys/block/sdb/device/state

5. multipath -ll
mpathb (353333330000007d0) dm-5 Linux   ,scsi_debug      
size=1.0G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=1 status=active
| `- 6:0:0:0 sdd 8:48 active ready  running
`-+- policy='service-time 0' prio=1 status=enabled
  `- 5:0:0:0 sdc 8:32 active ready  running
mpatha (360fff19abdd9552f8a36e5355226ba27) dm-0 EQLOGIC ,100E-00         
size=50G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=1 status=active
| `- 2:0:0:0 sda 8:0  active ready  running
`-+- policy='service-time 0' prio=0 status=enabled
  `- 4:0:1:0 sdb 8:16 active faulty offline

6. [root@storageqe-84 ~]# multipath -r
reload: mpatha (360fff19abdd9552f8a36e5355226ba27) undef EQLOGIC ,100E-00         
size=50G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
  `- 2:0:0:0 sda 8:0  active ready  running
reload: mpathb (353333330000007d0) undef Linux   ,scsi_debug      
size=1.0G features='0' hwhandler='0' wp=undef
|-+- policy='service-time 0' prio=1 status=undef
| `- 5:0:0:0 sdc 8:32 active ready  running
`-+- policy='service-time 0' prio=1 status=undef
  `- 6:0:0:0 sdd 8:48 active ready  running
 
7.[root@storageqe-84 ~]# multipathd show paths
hcil    dev dev_t pri dm_st  chk_st dev_st  next_check      
2:0:0:0 sda 8:0   1   active ready  running XX........ 5/20 
4:0:1:0 sdb 8:16  1   undef  faulty offline orphan           <----------------
6:0:0:0 sdd 8:48  1   active ready  running XXXXXXX... 15/20
5:0:0:0 sdc 8:32  1   active ready  running XXXXXXX... 15/20




Verified on device-mapper-multipath-0.4.9-111.el7
1.[root@storageqe-84 ~]# rpm -qa | grep multipath
device-mapper-multipath-debuginfo-0.4.9-111.el7.x86_64
device-mapper-multipath-libs-0.4.9-111.el7.x86_64
device-mapper-multipath-0.4.9-111.el7.x86_64
device-mapper-multipath-sysvinit-0.4.9-111.el7.x86_64
device-mapper-multipath-devel-0.4.9-111.el7.x86_64

2.[root@storageqe-84 ~]# modprobe scsi_debug vpd_use_hostno=0 add_host=2 dev_size_mb=1024

3.[root@storageqe-84 ~]# lsblk
NAME                          MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
sda                             8:0    0   50G  0 disk  
└─mpatha                      253:0    0   50G  0 mpath 
  ├─mpatha1                   253:1    0    1G  0 part  /boot
  └─mpatha2                   253:2    0   49G  0 part  
    ├─rhel_storageqe--84-root 253:3    0   44G  0 lvm   /
    └─rhel_storageqe--84-swap 253:4    0    5G  0 lvm   [SWAP]
sdb                             8:16   0   50G  0 disk  
sdc                             8:32   0    1G  0 disk  
└─mpathb                      253:5    0    1G  0 mpath 
sdd                             8:48   0    1G  0 disk  
└─mpathb                      253:5    0    1G  0 mpath 
sr0                            11:0    1 1024M  0 rom 

4.[root@storageqe-84 ~]# echo "offline" > /sys/block/sda/device/state

5. [root@storageqe-84 ~]# multipath -ll
mpathb (353333330000007d0) dm-5 Linux   ,scsi_debug      
size=1.0G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=1 status=active
| `- 5:0:0:0 sdc 8:32 active ready running
`-+- policy='service-time 0' prio=1 status=enabled
  `- 6:0:0:0 sdd 8:48 active ready running
mpatha (360fff19abdd9552f8a36e5355226ba27) dm-0 EQLOGIC ,100E-00         
size=50G features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=1 status=active
| `- 4:0:1:0 sdb 8:16 active ready running
`-+- policy='service-time 0' prio=0 status=enabled
  `- 2:0:0:0 sda 8:0  active faulty offline

6.[root@storageqe-84 ~]# multipath -r
reload: mpatha (360fff19abdd9552f8a36e5355226ba27) undef EQLOGIC ,100E-00         
size=50G features='0' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=1 status=undef
  `- 4:0:1:0 sdb 8:16 active ready running
reload: mpathb (353333330000007d0) undef Linux   ,scsi_debug      
size=1.0G features='0' hwhandler='0' wp=undef
|-+- policy='service-time 0' prio=1 status=undef
| `- 5:0:0:0 sdc 8:32 active ready running
`-+- policy='service-time 0' prio=1 status=undef
  `- 6:0:0:0 sdd 8:48 active ready running


7.[root@storageqe-84 ~]# multipathd show paths
hcil    dev dev_t pri dm_st  chk_st dev_st  next_check      
2:0:0:0 sda 8:0   1   undef  undef  unknown orphan         <---------------- 
4:0:1:0 sdb 8:16  1   active ready  running XXX....... 7/20 
5:0:0:0 sdc 8:32  1   active ready  running XXXXXXXXX. 18/20
6:0:0:0 sdd 8:48  1   active ready  running XXXXXXXX.. 17/20

Multipathd now prints "undef" as the checker state and "unknown" as the device state for orphaned paths.



Test result:Multipathd now prints "undef" as the checker state and "unknown" as the device state for orphaned paths.

Comment 6 errata-xmlrpc 2017-08-01 16:34:26 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, 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-2017:1961


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