Bug 584912 - iscsi hangs/errors when shutting down
iscsi hangs/errors when shutting down
Status: CLOSED DUPLICATE of bug 583218
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: iscsi-initiator-utils (Show other bugs)
All Linux
urgent Severity urgent
: rc
: ---
Assigned To: Mike Christie
Red Hat Kernel QE team
: Regression
Depends On:
  Show dependency treegraph
Reported: 2010-04-22 13:32 EDT by Bryn M. Reeves
Modified: 2014-01-17 07:26 EST (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-07-04 15:08:11 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Bryn M. Reeves 2010-04-22 13:32:50 EDT
Description of problem:
The fix for bug 511271 deleted the lines in the iscsi init script that disabled network shutdown:

> This is the diff of two versions of /etc/init.d/iscsid:
> $ diff iscsid.iscsi-initiator-utils- \
> iscsid. 
> 18a19,26
> > 	echo -n $"Turning off network shutdown. "
> > 	# we do not want iscsi or network to run during system shutdown
> > 	# incase there are RAID or multipath devices using
> > 	# iscsi disks
> > 	chkconfig --level 06 network off
> > 	rm /etc/rc0.d/*network
> > 	rm /etc/rc6.d/*network
> >    

This was done to avoid a conflict with readonly root environments but causes a regression of bug 209523, (I/O errors and hangs when shutting down a system using iSCSI).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Configure a system to use iscsi-initiator-utils to access storage
2. Shutdown the host while the iscsi storage is in use

Actual results:
Network shutdown scripts shut down the iSCSI interfaces before file systems are unmounted and the iSCSI service itself is shut down, leading to I/O errors.

Expected results:
System should not hang or produce I/O errors on shutdown.

Additional info:
Comment 4 Bryn M. Reeves 2010-05-27 05:11:58 EDT
Fix component.
Comment 5 Mike Christie 2010-05-27 19:24:51 EDT
This is a s dup of

Which bz do you want to use? The other one is not setup for z stream yet.

The fix is not easy when also supporting boot and existing solutions and the chkconfig read-only issue.
Comment 6 Mike Christie 2010-05-27 19:27:02 EDT
One question.

Should I be able to just run "chkconfig --level 06 network off" in the rpm install section? Then on later boots the network shutdown should be off or is there something that resets that on each boot?
Comment 11 Mike Christie 2010-07-04 15:08:11 EDT

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

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