NFS mounts often missing after reboot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sysvinit (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: initscripts
With initscripts-
By "missing" I mean that the directory is not reported when running "mount". Weirdly, however, the actual remote files *are* often, but not always, visible to ls etc, even though the mount is not listed. This "weird case" seems to happen to NFSv3 mounts only.
This sounds like a combination of two bugs: NFS exports are sometimes not mounted, and mount sometimes does not update mtab even when the directories are mounted.
When there are mounts missing, executing "sudo mount -a" usually fixes it, as one would expect.
Sometimes, however, "sudo mount -a" prints the error "mount: <server>
As a wild guess, this bug might be related to the following behaviour: when executing the following all as one command:
umount -a -t nfs,nfs4; \
/etc/init.
rmmod tg3; \
/etc/init.d/udev restart; \
/etc/init.
ifconfig eth0; mount -t nfs,nfs4; \
sleep 3s; \
ifconfig eth0; mount -t nfs,nfs4
At the time of the first ifconfig, eth0 has obtained no IP from DHCP yet and no nfs mounts are listed. The DHCP request seems to happen in the background. After the 3s sleep, eth0 has an IP and mounts *are* listed. This means that there is a window during which scripts such as /etc/network/
The "rmmod tg3" is intended to emulate boot-time behaviour when the network module is not yet loaded. Without it, everything works. It's as if the tg3 module is not immediately "ready" after having been insmodded, which forces dhclient to obtain the DHCP IP in the background, which delays the execution of /etc/network/
I have the same problem here after doing a dist-upgrade to Dapper from Breezy. fstab hasn't changed and was working fine in Breezy last night.
I have only rebooted 3 times and all times NFS mounts weren't mounted but could be (I use Kwidisk).
I will do some more investigating with thise info at hand.
I have previously been digging around in my rc folders to see if NFS mounts are attemtped to be mounted BEFORE the network is brought up. So far no luck as I am no expert on RC scripts.