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

Philipp Gysin philipp.gysin at cargomedia.ch
Mon Mar 19 10:16:22 UTC 2012


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


-- System Information:
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.

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

-- no debconf information





More information about the Pkg-iscsi-maintainers mailing list