Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 212266

Summary: lvm'd multipath'd iscsi luns don't shutdown properly
Product: Red Hat Enterprise Linux 4 Reporter: Josh Hildebrand <josh>
Component: device-mapper-multipathAssignee: Alasdair Kergon <agk>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4CC: agk, bmarzins, christophe.varoqui, dwysocha, egoggin, josh, junichi.nomura, kueda, lmb, mbroz, tranlan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-11-01 18:36:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screen shot of reboot process 1/3 none

Description Josh Hildebrand 2006-10-25 22:07:46 UTC
Description of problem:
When a NetApp LUN is mounted via iscsi, and then device-mapper-multipath maps 
it to /dev/dm-#, and then lvm2 uses it as a physical device and subsequently 
in a logical volume and volume group, it seems to complicate the 
standard "shutdown -rf" reboot process.

I've taken a few snapshots of the console while my machine reboots in order to 
catch the errors.  But I'll do my best to retype them below.



Luckily, it doesn't HANG, but I do wonder how good it is on the 
data/filesystem of this LUN.


Version-Release number of selected component (if applicable):
device-mapper-multipath-0.4.5-16.1.RHEL4
iscsi-initiator-utils-4.0.3.0-4
lvm2-2.02.06-6.0.RHEL4
kernel-smp-2.6.9-42.0.3.EL

How reproducible:
Every time

Steps to Reproduce:
1. Mount up a Netapp LUN over iSCSI using multipath-dm
2. Add it to a LVM
3. shutdown -rf
  
Actual results:
Stopping multipathd daemon: device-mapper: waitevent ioctl failed: Interrupted 
system call
....
Searching for iscsi-based multipath maps
Found 1 maps
Flushing iscsi-based multipath map, mpath60
mpath60: map in use     (I imagine because of LVM)
Stopping iscsid:            [OK]
iscsi-sfnet:host1: Session dropped
iscsi-sfnet:host2: Session dropped
iscsi-sfnet:host3: Session dropped
iscsi-sfnet:host4: Session dropped
Removing iscsi driver: ERROR: Module iscsi_sfnet is in use   [FAILED]
.....
(i may have missed something important here)
....
scsi4 (0:9): rejecting I/O to dead device
device-mapper: dm-multipath: Failing path 8:32.
scsi3 (0:9): rejecting I/O to dead device
device-mapper: dm-multipath: Failing path 8:16.
Buffer I/O error on device dm-1, logical blcok 13098993
Buffer I/O error on device dm-1, logical blcok 13098994
Buffer I/O error on device dm-1, logical blcok 13098995
....etc,etc...
Restarting system.

Expected results:
A good clean shutdown, w/o all the warnings.

Additional info:
I haven't tested this scenario W/O lvm2 being involved.

Comment 1 Josh Hildebrand 2006-10-25 22:07:47 UTC
Created attachment 139414 [details]
screen shot of reboot process 1/3

Comment 2 Josh Hildebrand 2006-10-25 22:13:44 UTC
sorry about the duplicate of 212265.. i kept getting this error after 
resubmitting it:

Invalid Product Name
The product name '' is invalid or does not exist.


Comment 3 Alasdair Kergon 2006-11-01 18:34:03 UTC
*** Bug 212267 has been marked as a duplicate of this bug. ***

Comment 4 Alasdair Kergon 2006-11-01 18:36:55 UTC
*** This bug has been marked as a duplicate of 212265 ***

*** This bug has been marked as a duplicate of 212265 ***