Filesystem on iSCSI should have the _netdev option in /etc/fstab

Bug #284107 reported by Etienne Goyer
4
Affects Status Importance Assigned to Milestone
partman-target (Ubuntu)
Invalid
Medium
Dustin Kirkland 

Bug Description

Binary package hint: debian-installer

When configuring a filesystem from an iSCSI target during installation (installer booted with iscsi=true), the resulting /etc/fstab entry should have the "_netdev" option set (see mount(8) for explanation of the _netdev option). I presume another one of the init script would have to mount filesystems residing on an iSCSI target afterward, or mountnfs.sh be modified to handle filesystem on iSCSI targets.

Revision history for this message
Colin Watson (cjwatson) wrote :

Dustin, what do you think?

Changed in debian-installer:
assignee: nobody → kirkland
Rick Clark (dendrobates)
Changed in partman-target:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Colin-

Here's my analysis:

When we rsync with debian open-iscsi for jaunty, there will be some significant improvements in terms of the boot procedures, including a blip of code in the init script that says:
        log_daemon_msg "Mounting network filesystems"
        MOUNT_RESULT=1
        if mount -a -O _netdev >/dev/null 2>&1; then
                MOUNT_RESULT=0
                break
        fi
        log_end_msg $MOUNT_RESULT

Since we don't have that conditional "mount all netdev filesystems" in Intrepid, I don't think we'd see any immediate benefit of this change. However, it could help on upgrades from Intrepid to Jaunty, in that the option would already be in place.

On the other hand, I'm not sure of any other consequences of adding "_netdev" to the /etc/fstab entry, or if there might be "mount -a -O _netdev" calls lurking about elsewhere in our init processes.

My initial reaction would be that this is too much of a change for Intrepid at this point. And that we could handle this at upgrade time with some code that examines /etc/fstab, looking for netdev iscsi devices and adds the netdev option at that time.

:-Dustin

Revision history for this message
Colin Watson (cjwatson) wrote :

The chunk of code you mention doesn't appear to be in current open-iscsi in jaunty yet. What's the status of this?

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Thanks for reminding me about this, Colin. Mathias and I worked on this a bit in December and solve this a completely different way. As such, _netdev should not be needed.

I'm marking this bug invalid.

:-Dustin

Changed in partman-target:
status: Confirmed → Invalid
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

As a point of clarification and further information about the implementation...

iscsi block devices are now brought up by udev and treated as local block devices. No need to note that they're network devices.

:-Dustin

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.