[Bug 848823] Re: nfs-kernel-server requires a real interface to be up

Richard richard.prior at bigfoot.com
Sat Sep 1 11:06:18 UTC 2012

I also discovered the problem with 12.04 where exportfs fails at boot.
In the log  /var/log/boot.log I had errors for each client name  
e.g.  "exportfs: Failed to resolve clientname 

Search I found there are a number of trivial workarounds.
- Adding the names to /etc/hosts.
- Using IP numbers in the configurations.
- Restarting nfs-server.service after bootup.

I took a different route and  checked  out the script /etc/init.d/nfs-
kernel-server.  I have now added a sleep at the beginning to delay the
NFS start long enough to allow the LAN and name resolution to come up  -
it seems to work.

 The first 3 dozen lines are below


# Provides:          nfs-kernel-server
# Required-Start:    $remote_fs nfs-common $portmap $time
# Required-Stop:     $remote_fs nfs-common $portmap $time
# Should-Start:      $named
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Kernel NFS server support
# Description:       NFS is a popular protocol for file sharing across
#		     TCP/IP networks. This service provides NFS server
#                    functionality, which is configured via the
#                    /etc/exports file.

# What is this?
DESC="NFS kernel daemon"

# Mod by Richard Prior
# Add delay on start to allow network and Name resolution services to be available
# Without delay the exportfs will fail resolving machine names
# Failures are listed in the /var/log/boot.log and look like
# exportfs: Failed to resolve owl
sleep 10

# Exit if required binaries are missing.
[ -x $PREFIX/sbin/rpc.nfsd    ] || exit 0
[ -x $PREFIX/sbin/rpc.mountd  ] || exit 0
[ -x $PREFIX/sbin/exportfs    ] || exit 0

You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifupdown in Ubuntu.

  nfs-kernel-server requires a real interface to be up

Status in “ifupdown” package in Ubuntu:

Bug description:
  For the last few weeks whenever I try to mount a nfs share from
  another machine, I get an access denied message from the server.

  once I restart via 'service nfs-kernel-server restart', then it starts
  working again. This is required atleast once per day.

  nfs server is running on fully updated 11.10 onieric
  clients are on 11.04 and 10.04

  I never experienced such issues prior to 11.10

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: nfs-kernel-server 1:1.2.4-1ubuntu2
  ProcVersionSignature: Ubuntu 3.0.0-10.16-generic 3.0.4
  Uname: Linux 3.0.0-10-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 1.22.1-0ubuntu2
  Architecture: amd64
  Date: Tue Sep 13 20:02:19 2011
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110803.1)
  SourcePackage: nfs-utils
  UpgradeStatus: Upgraded to oneiric on 2011-08-13 (31 days ago)

To manage notifications about this bug go to:

More information about the foundations-bugs mailing list