system hangs in shutdown if open-iscsi is working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
open-iscsi (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: open-iscsi
With open-iscsi 2.0.871-0ubuntu4 in Ubuntu lucid beta 1, the system hangs in shutdown process with the following message.
--------
init: Disconnected from system bus
[ 5184.361085] connection1:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4295455639, last ping 4295456139, now 4295456639
[ 5392.060481] INFO: task sync:4155 blocked for more than 120 seconds.
[ 5392.060802] "echo 0 > /proc/sys/
[ 5511.846759] INFO: task sync:4155 blocked for more than 120 seconds.
[ 5511.847078] "echo 0 > /proc/sys/
(2 lines repeated)
--------
When I stop open-iscsi by '/etc/init.
I'm using 1 iSCSI target by 'node.startup = automatic' in iscsid.conf. The iSCSI connection itself works well in operation.
The target is connected via 'br1v100' network interface, which is a bridge device on 'bond1.100', which is VLAN#100 on 'bond1', which uses eth2 and eth6.
Changed in open-iscsi (Ubuntu): | |
status: | New → Confirmed |
I found a one-liner fix for /etc/init. d/open- iscsi.
-------- d/open- iscsi.org 2010-02-05 20:47:23.000000000 +0000 d/open- iscsi 2010-04-22 02:36:57.264590495 +0000
log_end_ msg $RETVAL
# during system shutdown rw/sendsigs. omit.d rw/sendsigs. omit.d/ || true
--- /etc/init.
+++ /etc/init.
@@ -69,6 +69,7 @@
# Don't kill the iscsi daemon when killing all processes
+ mkdir -p /lib/init/
ln -sf $PIDFILE /lib/init/
fi
}
--------
The open-iscsi script tries to register its PID to the 'omit' directory at start-up, but the directory does not exist. So the sendsigs script kills iscsid at shutdown without giving grace, and something goes wrong...
I'm not sure whether I should put mkdir in open-iscsi or in some common script.