Bug#664604: open-iscsi: No auto-mounting of iscsi devices tagged as _netdev in /etc/fstab

March 19th, 2012 - 05:20 am ET by Philipp Gysin | Report spam
Package: open-iscsi
Version: 2.0.871.3-2squeeze1
Severity: important
Tags: squeeze patch


I noticed that the init.d script is not mounting my iscsi device listed in fstab as a _netdev.
The problem seems to be that the properly contacted target is not yet in the /dev tree when mount is called

I added a tiny sleep 0.1 before the mount call and got rid of my problem

Here the patch for /etc/init.d/open-iscsi:
128c128
< if mount -a -O _netdev >/dev/null 2>&1; then


if sleep 0.1 && mount -a -O _netdev >/dev/null 2>&1; then



Greetings,
Philipp


Debian Release: 6.0.4
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/24 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages open-iscsi depends on:
ii libc6 2.11.3-2 Embedded GNU C Library: Shared lib
ii udev 164-3 /dev/ and hotplug management daemo

open-iscsi recommends no packages.

open-iscsi suggests no packages.

/etc/init.d/open-iscsi changed [not included]
/etc/iscsi/initiatorname.iscsi changed [not included]
/etc/iscsi/iscsid.conf changed [not included]




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 2 repliesReplies Make a reply

Similar topics

Replies

#1 Ritesh Raj Sarraf
March 20th, 2012 - 02:50 am ET | Report spam
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)

On Monday 19 March 2012 03:46 PM, Philipp Gysin wrote:
I noticed that the init.d script is not mounting my iscsi device listed in fstab as a _netdev.
The problem seems to be that the properly contacted target is not yet in the /dev tree when mount is called

I added a tiny sleep 0.1 before the mount call and got rid of my problem

Here the patch for /etc/init.d/open-iscsi:
128c128
< if mount -a -O _netdev >/dev/null 2>&1; then

> if sleep 0.1 && mount -a -O _netdev >/dev/null 2>&1; then





That's an okay workaround but not the best solution. Do you have
/dev/.udev ?

I ask because the check we do in Squeeze is based on the presence of
/dev/.udev. Not the best one. If that path is not existent, we do not
settle for devices. Apart from that, I cannot see anything else causing
the issue.

Do you have the resources to check the same on the current version in
Wheezy / Sid ?

Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."








To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Replies Reply to this message
#2 Philipp Gysin
March 20th, 2012 - 05:30 am ET | Report spam

Hi Ritesh,

On Tue, Mar 20, 2012 at 8:37 AM, Ritesh Raj Sarraf wrote:


That's an okay workaround but not the best solution. Do you have
/dev/.udev ?

I do have /dev/.udev - I manually tried to reproduce what is going on and


called "udevdam settle" manually. This one returns but the dev tree is
still not complete, i.e. /dev/sdb does not exist yet when it's time to mount

BTW, sleep 1 is more reliable than sleep 0.1 I found out - and yes, I agree
that this is not the best solution

Greetings,
Philipp


I ask because the check we do in Squeeze is based on the presence of
/dev/.udev. Not the best one. If that path is not existent, we do not
settle for devices. Apart from that, I cannot see anything else causing
the issue.

Do you have the resources to check the same on the current version in
Wheezy / Sid ?




Unfortunately not


Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."







Hi Ritesh,<br><br><div class="gmail_quote">On Tue, Mar 20, 2012 at 8:37 AM, Ritesh Raj Sarraf <span dir="ltr">&lt;<a href="mailto:"></a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
</div>That&#39;s an okay workaround but not the best solution. Do you have<br>
/dev/.udev ?<br>
<br></blockquote><div>I do have /dev/.udev - I manually tried to reproduce what is going on and called &quot;udevdam settle&quot; manually. This one returns but the dev tree is still not complete, i.e. /dev/sdb does not exist yet when it&#39;s time to mount</div>
<div><br></div><div>BTW, sleep 1 is more reliable than sleep 0.1 I found out - and yes, I agree that this is not the best solution</div><div><br></div><div>Greetings,</div><div>Philipp</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I ask because the check we do in Squeeze is based on the presence of<br>
/dev/.udev. Not the best one. If that path is not existent, we do not<br>
settle for devices. Apart from that, I cannot see anything else causing<br>
the issue.<br>
<br>
Do you have the resources to check the same on the current version in<br>
Wheezy / Sid ?<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>Unfortunately not</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888">
Ritesh Raj Sarraf<br>
RESEARCHUT - <a href="http://www.researchut.com" target="_blank">http://www.researchut.com</a><br>
&quot;Necessity is the mother of invention.&quot;<br>
<br>
<br>
</font></span></blockquote></div><br>




To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search