[Bug 669142] Re: if-up.d/if-down.d scripts restart iSCSI inappropriately
Razique Mahroua
669142 at bugs.launchpad.net
Fri Jul 8 13:18:04 UTC 2011
I experienced the same issue.
I've modified the beginning of the script this way :
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/sbin/iscsid
ADM=/sbin/iscsiadm
PIDFILE=/var/run/iscsid.pid
NAMEFILE=/etc/iscsi/initiatorname.iscsi
ISCSI_INTERFACE="br1:0"
[ -x "$DAEMON" ] || exit 0
# Support for ifupdown script.
# Don't bother to restart when lo is configured.
if [ "$IFACE" != "$ISCSI_INTERFACE" ]; then
exit 0
fi
So now, appart from the explicitely interface specified, the open-iscsi daemon doesn't restart :)
Pay attention if you use some aliased interfaces though, you coud physically loose the connectivity.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to open-iscsi in Ubuntu.
https://bugs.launchpad.net/bugs/669142
Title:
if-up.d/if-down.d scripts restart iSCSI inappropriately
Status in “open-iscsi” package in Ubuntu:
Confirmed
Bug description:
Binary package hint: open-iscsi
When any interface that is not named "lo" is brought up or down, it
will cause open-iscsi to restart. This is regardless of if the
interface has anything to do with iSCSI traffic, which can cause
problems for LUNs still in use.
The fragment of the script /etc/init.d/open-iscsi that causes this is
near the top:
# Support for ifupdown script.
# Don't bother to restart when lo is configured.
if [ "$IFACE" = lo ]; then
exit 0
fi
Restricting restarts purely for the loopback interface is not
sufficient, although adequately determining if a restart is actually
required may be somewhat tricky. Sadly I have no suggestions for a
solution at the moment.
### System Information ###
Description: Ubuntu 10.04.1 LTS
Release: 10.04
open-iscsi 2.0.871-0ubuntu4
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/669142/+subscriptions
More information about the foundations-bugs
mailing list