Comment 16 for bug 345957

Revision history for this message
theterran (daniel-mann) wrote : 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
<email address hidden>
850.807.4900

On Wed, Dec 23, 2009 at 13:39, Peter Matulis <email address hidden>wrote:

> 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
>