[Bug 933575] Re: NFS not being mounted at boot time - rpc.statd is not running but is required for remote locking

Steve Langasek steve.langasek at canonical.com
Thu Feb 16 20:21:42 UTC 2012


Not disputing that it's a real problem, just saying that rc.local
doesn't get us closer to understanding it :)

> Apparently id doesn't resolve 192.168.88.252 (?)

This just means that mountall first tried to mount the share before the
network was fully up.  This is perfectly normal; and as you can see, it
tries again later in the log and gets a different error... specifically
the statd error.

Is there any chance you can test this with a daily build of the 12.04
server?  12.04 has support for better logging of upstart jobs, which
would enable us to see whether something is causing statd to fail to
start on boot.

The way this is supposed to work is that /etc/init/statd-mounting.conf
should trigger as soon as mountall tries to mount the nfs share, and
this will block the mount attempt while trying to start the statd job,
which in turn launches portmap and waits for it to come up before
running rpc.statd.  This has all shown itself to be rather reliable
since 11.04 when it landed, so I don't know what's causing the problem
in your case... we're really going to need some logging to figure it
out.

** Package changed: mountall (Ubuntu) => nfs-utils (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mountall in Ubuntu.
https://bugs.launchpad.net/bugs/933575

Title:
  NFS not being mounted at boot time - rpc.statd is not running but is
  required for remote locking

Status in “nfs-utils” package in Ubuntu:
  Incomplete

Bug description:
  Version: Ubuntu SERVER 11.04

  installed nfs-commons

  added this to /etc/fstab:

  192.168.88.252:/repo  /mnt/repos   nfs     rw,hard,intr  0     0

  but I also tried
  192.168.88.252:/repo  /mnt/repos   nfs      _netdev,rw,hard,intr
  192.168.88.252:/repo  /mnt/repos   nfs      defaults,_netdev,rw,hard,intr

  
  with
  mnt /mnt/repos

  it works.

  reboot.

  I don't get the NFS up at boot time.

  I access to the server with SSH, eth0 and network is fine
  no NetworkManager
  no gui

  mount -a

  it works...

  so to debug the issue I added this to /etc/rc.local (before exit 0)

   mount /mnt/repos > /tmp/mounting.$$ 2>&1

  rebooted and I got this in that file:

  
  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.
  mount.nfs: an incorrect mount option was specified


  I can't get NFS being mounted at boot time.
  --- 
  Architecture: amd64
  DistroRelease: Ubuntu 11.04
  InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Release amd64 (20110426)
  Package: mountall 2.25ubuntu1
  PackageArchitecture: amd64
  ProcEnviron:
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 2.6.38-13.55-server 2.6.38.8
  Tags:  natty
  Uname: Linux 2.6.38-13-server x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/933575/+subscriptions




More information about the foundations-bugs mailing list