Package: open-iscsi
Version: 2.0.870~rc3-0.1
Severity: important
Tags: patch

Hi,

When open-iscsi stop is executed on system shutdown, it invokes the
stoptargets shell function, which logs out of all targets.  This breaks
systems where root is on iSCSI.  I decided to leave the job of killing
iscsid to sendsigs later in the boot process by

--- open-iscsi.orig     2008-10-08 14:47:16.562492743 +0200
+++ open-iscsi  2008-10-08 17:36:47.877662527 +0200
@@ -125,6 +125,10 @@
 }
 
 stop() {
+       if [ -f /etc/iscsi/iscsi.initramfs ]; then
+               log_warning_msg "/etc/iscsi/iscsi.initramfs present, not 
stopping iscsid yet"
+               return 0
+       fi
        stoptargets
        log_daemon_msg "Stopping iSCSI initiator service"
        start-stop-daemon --stop --quiet --pidfile $PIDFILE --signal KILL 
--exec $DAEMON

as that buys me a little more safety, but probably excluding stoptargets
would be enough.

Actually, I'm tempted to say that open-iscsi stop should NEVER execute
stoptargets.  That would also help upgrades (which currently break all
live iSCSI mounts).

Btw. why the above --signal KILL?  The default SIGTERM seemed to be
enough for me, just as iscsiadm --killiscsid=0.

Thanks,
Feri.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-xen-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages open-iscsi depends on:
ii  libc6                         2.7-13     GNU C Library: Shared libraries

open-iscsi recommends no packages.

open-iscsi suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to