Bug#423851: open-iscsi: gets stopped too early on shutdown/reboot
Okay, I've still been working on this in my local open-iscsi package. It looks to me like the right solution on boot is: * Make a symlink /etc/rsS.d/S38open-iscsi to start the daemon * Put a script in /etc/network/if-up.d/000open-iscsi that calls /etc/init.d/open-iscsi starttargets, so that we get logged into iscsi targets in time to mount the filesystems * Specify the _netdev option in /etc/fstab for any iscsi-backed filesystems, so that they get mounted after networking is up On shutdown I still haven't figured out an ideal solution. We need to do the iscsi unmount and shutdown before /etc/rc{0,6}.d/S20sendsigs gets called, since iscsi stops working when iscsid is killed. What I have locally is a script in /etc/rc{0,6}.d/K95stop-open-iscsi.sh that unmounts _netdev filesystems and calls /etc/init.d/open-iscsi stop. That's fine for me, but it will break some NFS configurations. I can think of a few other approaches, none of which really appeal to me: * Instead of using _netdev, add an option _iscsi to /etc/fstab, and add scripts similar to the NFS scripts that handle those filesystems separately (so they can be stopped before /etc/init.d/sendsigs gets called). * Try to figure out programmatically what filesystems in /etc/fstab are iscsi-backed, and deal with them as above, but automatically. This is hard, because of LVM, UUID-identified filesystems, EVMS, and so on. * Somehow protect iscsid from being killed in /etc/init.d/sendsigs, and do the shutdown normally (this would also give us a prayer of handling LVM correctly, although the site administrator would still have to manually configure networking to get shut down after LVM). I'm getting interested in co-maintaining open-iscsi, basically just because I've spent so much time on this particular problem now :-). Once I get something packaged up that seems more or less solid, I'll show my packages to the maintainer and see how he feels about the idea. Cheers. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#423851: open-iscsi: gets stopped too early on shutdown/reboot
Package: open-iscsi Version: 2.0.865-1 Followup-For: Bug #423851 This bug is affecting me as well -- it's actually very difficult to come up with a good solution, it seems like. K20 is _way_ too early to shut down iscsi when shutting down the machine; if anything which gets shut down after that (e.g. postfix, samba, mysql, squid) is using a filesystem that's mounted from an iSCSI volume, that filesystem gets disappeared when open-iscsi gets shut down, and any further I/O to it just receives an error. The situation on boot is even trickier. A perfect solution would allow iSCSI-backed filesystems to be placed in /etc/fstab and for everything to just work, but /etc/rcS.d/S35mountall.sh comes before /etc/rcS.d/S40networking. What I have locally is dh_installinit -u 'start 45 S . stop 55 0 6 .', which gives me something sane on shutdown but not at startup (since I have to mount the filesystems somehow by hand midway through the boot process, since I have Perforce servers starting at /etc/rc2.d/S20 that are ultimately going to depend on iSCSI being started when they start). I'm not sure if the new dependency-based init scripts help with this at all, but short of doing an NFS-style mount all iSCSI filesystems at /etc/rcS.d/S46 hack, I don't see a good way to get iSCSI filesystems to mount on boot like it seems that they should. Cheers. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.24-1-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-8 GNU C Library: Shared libraries open-iscsi recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#423851: open-iscsi: gets stopped too early on shutdown/reboot
Package: open-iscsi Version: 2.0.730-1 Severity: important Hello, I am using Xen with backends via open-iscsi. The problem is that open-iscsi gets stopped before Xen thus making backend devices vanish too early. Problem might be fixed with: mv /etc/rc0.d/K20open-iscsi /etc/rc0.d/K30open-iscsi dpkg-divert --divert /etc/rc0.d/K20open-iscsi --rename /etc/rc0.d/K30open-iscsi mv /etc/rc1.d/K20open-iscsi /etc/rc1.d/K30open-iscsi dpkg-divert --divert /etc/rc1.d/K20open-iscsi --rename /etc/rc1.d/K30open-iscsi mv /etc/rc6.d/K20open-iscsi /etc/rc6.d/K30open-iscsi dpkg-divert --divert /etc/rc6.d/K20open-iscsi --rename /etc/rc6.d/K30open-iscsi Regards, Bjoern -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-xen-amd64 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages open-iscsi depends on: ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries open-iscsi recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]