Re: [Bug 345957] Re: iscsid is looking for targets prior to network being available
Hi Peter, I've forgotten my login for the bug tracking system on launchpad, but wanted to respond to you as I've been thinking and testing along similar lines... Only hours ago, I thought of trying the same thing on 9.04 that you just tried on 9.10. At the moment I'm stuck on 9.04 since that is the supported version for ColdFusion 9. We use iSCSI volumes for webfiles, and need for apache to be able to see the volumes automatically at boot time. Also, I would like to see iSCSI volumes unmounted and logged off cleanly at shutdown. That's why I considered these earlier: the proper shutdown sequence should be umount - open-iscsi stop - networking stop. For startup, I achieved the goal without changing any of the rc script orders by simply adding the following to rc.local: mount -a -O _netdev /etc/init.d/apache2 reload This since the iSCSI targets are eventually mounted during the boot process, even though they fail when attempting to mount before networking. Not sure why they succeed later, but the behavior is consistent. Mounting volumes that have the _netdev option works from rc.local, then apache can see the filesystems and reloads successfully. Not sure about shutdown, but I'll play with that more after the holidays on my dev server... Sorry that I couldn't put this in the official thread, but wanted you to have my feedback as I'm following your updates. Regards, Daniel Mann Terran Enterprises daniel.m...@terranhost.com 850.807.4900 On Wed, Dec 23, 2009 at 13:39, Peter Matulis peter.matu...@canonical.comwrote: So for fun I rejigged the startup commands and it made my local setup work. I doubt this is the proper way to go however. lrwxrwxrwx 1 root root 18 2009-12-17 19:25 S33umountfs - ../init.d/umountfs lrwxrwxrwx 1 root root 20 2009-12-17 19:29 S34open-iscsi - ../init.d/open-iscsi lrwxrwxrwx 1 root root 20 2009-12-17 19:25 S35networking - ../init.d/networking -- iscsid is looking for targets prior to network being available https://bugs.launchpad.net/bugs/345957 You received this bug notification because you are a direct subscriber of the bug. Status in “open-iscsi” package in Ubuntu: Incomplete Bug description: Binary package hint: open-iscsi Description:Ubuntu jaunty (development branch) Release:9.04 open-iscsi: Installed: 2.0.870.1-0ubuntu2 Candidate: 2.0.870.1-0ubuntu2 Version table: *** 2.0.870.1-0ubuntu2 0 500 http://us.archive.ubuntu.com jaunty/main Packages 100 /var/lib/dpkg/status I am trying to get a iscsi target to mount at boot time by setting node.startup = automatic and adding the _netdev option to fstab. However, it appears that the open-scsi initd script is trying to find devices prior to network being available (line 90 in /etc/init.d/open-iscsi). I have attached a screen shot of the system startup. To unsubscribe from this bug, go to: https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/345957/+subscribe -- iscsid is looking for targets prior to network being available https://bugs.launchpad.net/bugs/345957 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 345957] Re: iscsid is looking for targets prior to network being available
As of 2009.06.15 the issue remains in intrepid (2.6.28-11-server). Moving S25open-iscsi to S50open-iscsi does not resolve the issue. As a temporary workaround, I have added the following to /etc/rc.local so that iSCSI volumes/devices configured with the _netdev option in /etc/fstab are mounted after boot: mount -a -O _netdev Granted, the _netdev option is not currently effective during normal boot, but this does allow the (re-)mounting of only those devices. I have also found it helpful at this point to change the restart and shutdown order so that iSCSI targets are logged off prior to stopping networking, as follows: $ sudo mv /etc/rc0.d/S41open-iscsi /etc/rc0.d/S32open-iscsi $ sudo mv /etc/rc6.d/S41open-iscsi /etc/rc6.d/S32open-iscsi -- iscsid is looking for targets prior to network being available https://bugs.launchpad.net/bugs/345957 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to open-iscsi in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 345957] Re: iscsid is looking for targets prior to network being available
Ah, that should be issue remains in jaunty. I'm using 9.04; better with numbers... open-iscsi version 2.0-870 -- iscsid is looking for targets prior to network being available https://bugs.launchpad.net/bugs/345957 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to open-iscsi in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 345957] Re: iscsid is looking for targets prior to network being available
As of 2009.06.15 the issue remains in intrepid (2.6.28-11-server). Moving S25open-iscsi to S50open-iscsi does not resolve the issue. As a temporary workaround, I have added the following to /etc/rc.local so that iSCSI volumes/devices configured with the _netdev option in /etc/fstab are mounted after boot: mount -a -O _netdev Granted, the _netdev option is not currently effective during normal boot, but this does allow the (re-)mounting of only those devices. I have also found it helpful at this point to change the restart and shutdown order so that iSCSI targets are logged off prior to stopping networking, as follows: $ sudo mv /etc/rc0.d/S41open-iscsi /etc/rc0.d/S32open-iscsi $ sudo mv /etc/rc6.d/S41open-iscsi /etc/rc6.d/S32open-iscsi -- iscsid is looking for targets prior to network being available https://bugs.launchpad.net/bugs/345957 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 345957] Re: iscsid is looking for targets prior to network being available
Ah, that should be issue remains in jaunty. I'm using 9.04; better with numbers... open-iscsi version 2.0-870 -- iscsid is looking for targets prior to network being available https://bugs.launchpad.net/bugs/345957 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs