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]