mount of nfs fails at boot - Karmic beta

Bug #445181 reported by Elfy
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nfs-utils (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Asked to provide the following with this bug

- your /etc/fstab contents (for reference)
- any error messages you see at boot time about mounting when booting without the 'splash' option
- the results of 'sudo killall -USR1 mountall && mount', run on your system after boot when the network is up but without having mounted the filesystems by hand
- the output of 'sudo status statd'

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sdb1 during installation
UUID=71cf49aa-1dd1-4617-a524-96d2d413cedd / ext4 errors=remount-ro 0 1
# /home was on /dev/sda3 during installation
UUID=9636a7bc-a04e-49f8-b5ca-876c55e6b732 /home ext4 defaults 0 2
# swap was on /dev/sda1 during installation
UUID=8061c173-29bb-4de2-8d4e-f23593cfcdd0 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

##Media drives
192.168.0.2:/mnt/data /mnt/data nfs rsize=8192,wsize=8192,noexec,nosuid
192.168.0.2:/mnt/media /mnt/media nfs rsize=8192,wsize=8192,noexec,nosuid
192.168.0.2:/mnt/music /mnt/music nfs rsize=8192,wsize=8192,noexec,nosuid
192.168.0.2:/mnt/10Gb /mnt/10Gb nfs rsize=8192,wsize=8192,noexec,nosuid
192.168.0.2:/mnt/12Gb /mnt/12Gb nfs rsize=8192,wsize=8192,noexec,nosuid

UUID=60de7a78-0878-40b4-8f2d-f4f1083cefbf /mnt/30Gb ext4 defaults 0 2

errors during boot read as

mount.nfs : DNS resolution failed for 192.168.0.2 Name or service not known
mountall: mount /mnt/data [748] terminated with status 32
mountal : Filesystem could not be mounted /mnt/data

Get the same for each one

sudo killall -USR1 mountall && mount
[sudo] password for kevin:
/dev/sdb1 on / type ext4 (rw,errors=remount-ro)
none on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /dev/.bootchart/proc type proc (rw)
/dev/sdb2 on /mnt/30Gb type ext4 (rw)
/dev/sda3 on /home type ext4 (rw)
192.168.0.2:/mnt/media on /mnt/media type nfs (rw,noexec,nosuid,rsize=8192,wsize=8192,addr=192.168.0.2)
192.168.0.2:/mnt/12Gb on /mnt/12Gb type nfs (rw,noexec,nosuid,rsize=8192,wsize=8192,addr=192.168.0.2)
192.168.0.2:/mnt/music on /mnt/music type nfs (rw,noexec,nosuid,rsize=8192,wsize=8192,addr=192.168.0.2)
192.168.0.2:/mnt/data on /mnt/data type nfs (rw,noexec,nosuid,rsize=8192,wsize=8192,addr=192.168.0.2)
192.168.0.2:/mnt/10Gb on /mnt/10Gb type nfs (rw,noexec,nosuid,rsize=8192,wsize=8192,addr=192.168.0.2)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/kevin/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=kevin)
kevin@kevin:~$sudo status statd
statd start/running, process 849

ProblemType: Bug
Architecture: i386
Date: Wed Oct 7 07:18:24 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: nfs-common 1:1.2.0-2ubuntu4
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
SourcePackage: nfs-utils
Uname: Linux 2.6.31-11-generic i686

Revision history for this message
Elfy (elfy) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

Hello,

Can you also confirm that the NFS filesystems are *not* mounted, before you call 'killall -USR1 mountall'? It's possible to still have the error messages on console but have the mount succeed later once the network interface comes up. What is the output of 'ifconfig'? How is your primary network interface managed - configured in /etc/network/interfaces, managed with network-manager, or managed with something else?

Changed in nfs-utils (Ubuntu):
importance: Undecided → High
Revision history for this message
Elfy (elfy) wrote :

some mount - but never all of the, this time the ones mounted are
192.168.0.2:/mnt/12Gb 13G 9.9G 1.6G 87% /mnt/12Gb
192.168.0.2:/mnt/10Gb 11G 8.8G 930M 91% /mnt/10Gb
192.168.0.2:/mnt/data 54G 52G 2.1G 97% /mnt/data
192.168.0.2:/mnt/music 126G 119G 6.0G 96% /mnt/music

killall -USR1 mountall resulted in all being mounted as I want.

Result of ifconfig

eth0 Link encap:Ethernet HWaddr 00:16:17:13:80:ca
          inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
          inet6 addr: fe80::216:17ff:fe13:80ca/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:900 errors:0 dropped:0 overruns:0 frame:0
          TX packets:953 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:650065 (650.0 KB) TX bytes:144648 (144.6 KB)
          Interrupt:23 Base address:0xda00

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:70 errors:0 dropped:0 overruns:0 frame:0
          TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5568 (5.5 KB) TX bytes:5568 (5.5 KB)

Not really sure what you want from the "How is your primary network interface managed -" I did nothing other than install nfs-client, I certainly haven't edited any config files.

This is my /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
#iface eth0 inet dhcp

Any other information I would be delighted to provide, thanks for looking :)

Revision history for this message
Steve Langasek (vorlon) wrote :

Ok, your network config looks perfectly normal, so I would expect this to work at this point. Please make sure you've updated to the latest mountall, nfs-common packages in karmic, and edit /etc/init/mountall.conf to change this line:

    exec mountall --daemon $force_fsck $fsck_fix $tmptime

to this:

    exec mountall --debug --daemon $force_fsck $fsck_fix $tmptime > /dev/.udev/mountall.log 2>&1

then reboot, and send the resulting mountall.log file.

Revision history for this message
Elfy (elfy) wrote :

Attached is the log file.

Revision history for this message
Elfy (elfy) wrote :

I've had a couple of reboots since the updates earlier which included mountall and nfs-common and it appears that the partitions are all being mounted now by the time the desktop is up.

I still get the error messages during boot however.

Revision history for this message
Steve Langasek (vorlon) wrote :

From the log:

[...]
usr1_handler: Received SIGUSR1 (network device up)
[...]
queue_fsck: /mnt/music: no check required
mounting /mnt/music
spawn: mount -a -t nfs -o rsize=8192,wsize=8192,noexec,nosuid 192.168.0.2:/mnt/music /mnt/music
spawn: mount /mnt/music [1320]
[...]
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mountall: mount /mnt/music [1320] terminated with status 32
mountall: Filesystem could not be mounted: /mnt/music

What version of nfs-common did you have installed when generating this log? This should have been fixed in nfs-common 1:1.2.0-2ubuntu5:

  nfs-utils (1:1.2.0-2ubuntu5) karmic; urgency=low

    * Set upstart jobs to also start on mount attempt, in the event that
      mountall gets to them before the daemons are done starting. Really-fixes
      LP: #431248.

If these error messages are showing up in your latest mountall log, and you're running nfs-common 1:1.2.0-2ubuntu5 or later, then we still have a bug even if your shares all get mounted in the end.

(It's also a bug that the error messages are visible on console, but that's not a bug in nfs-utils; other packages are supposed to take care of hiding those for us during a normal boot.)

Revision history for this message
Elfy (elfy) wrote :

nfs-common 1:1.2.0-2ubuntu6

I updated yesterday - including this then rebooted to get the mountall log.

Attached a new mountall.log

Revision history for this message
Elfy (elfy) wrote :

sigh - wish I had checked for updates before all of that

nfs-common now nfs-common 1:1.2.0-2ubuntu7

mountall2.log

Revision history for this message
Steve Langasek (vorlon) wrote :

Thanks for the updated logs. Everything looks as expected in the latest logs, so I think this bug can be closed. As mentioned, the error messages on console will be handled elsewhere.

Changed in nfs-utils (Ubuntu):
status: New → Fix Released
Revision history for this message
Elfy (elfy) wrote :

thank you :)

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.