Bug 1036127

Summary: multipath: iSCSI multipath device are not restored after reboot
Product: Red Hat Enterprise Linux 7 Reporter: Bruno Goncalves <bgoncalv>
Component: device-mapper-multipathAssignee: LVM and device-mapper development team <lvm-team>
Status: CLOSED NOTABUG QA Contact: Bruno Goncalves <bgoncalv>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: agk, bmarzins, heinzm, msnitzer, prajnoha
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-29 14:33:35 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:

Description Bruno Goncalves 2013-11-29 14:07:47 UTC
Description of problem:
Sometimes after rebooting a server the iSCSI multipath device is not restored.

# multipath -l
360a980003246694a412b424f41624651 dm-3 NETAPP  ,LUN             
size=10G features='4 queue_if_no_path pg_init_retries 50 retain_attached_hw_handle' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=0 status=active
  |- 9:0:0:0 sdc 8:32 active undef running
  `- 8:0:0:0 sdd 8:48 active undef running

# multipath -l
#

# multipathd show paths format "%d %m"
dev multipath
sdc [orphan] 
sdd [orphan] 

## After reloading it manually it works

# multipath -r
create: 360a980003246694a412b424f41624651 undef NETAPP  ,LUN             
size=10G features='3 queue_if_no_path pg_init_retries 50' hwhandler='0' wp=undef
`-+- policy='service-time 0' prio=2 status=undef
  |- 8:0:0:0 sdd 8:48 undef ready running
  `- 9:0:0:0 sdc 8:32 undef ready running

# multipath -l
360a980003246694a412b424f41624651 dm-3 NETAPP  ,LUN             
size=10G features='4 queue_if_no_path pg_init_retries 50 retain_attached_hw_handle' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=0 status=active
  |- 8:0:0:0 sdd 8:48 active undef running
  `- 9:0:0:0 sdc 8:32 active undef running


Version-Release number of selected component (if applicable):
device-mapper-multipath-0.4.9-58.el7

How reproducible:
about 10% of the times

Steps to Reproduce:
1.Establishes a iSCSI session with multipath device
2.Reboot server
3.List multipath devices after reboot