[Bug 968211] Re: NFS kernel server initscript contains errors

Steve Langasek steve.langasek at canonical.com
Thu Mar 29 13:26:09 UTC 2012


*** This bug is a duplicate of bug 945651 ***
    https://bugs.launchpad.net/bugs/945651

** This bug has been marked a duplicate of bug 945651
   Wrong path to rpcinfo  in NFS start script

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

Title:
  NFS kernel server initscript contains errors

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

Bug description:
  1) The release of Ubuntu you are using
  I checked on the ubuntu install I have here - 12.04 precise pangolin beta - but it's likely the
  bug is present in older versions too.

  2) The version of the package you are using
  nfs-kernel-server:
      Installed:  1:1.2.5-3ubuntu1

  3) What you expected to happen
  I expected mountd to be started for NFSv3

  4) What happened instead
  mountd was started, but version 1 and 2 only -- according to rpcinfo -p

  5) The fix
  The rpcinfo binary is located in /usr/sbin rather than /usr/bin

  $PREFIX/bin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
  RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"

  Whereas it should be:

  $PREFIX/sbin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
  RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"

  6) Possible improvement

  Perhaps it can be further improved to check if the nfs process listens on TCP
  rather than UDP.

  I'm thinking this should do the trick:

  $PREFIX/sbin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
  $PREFIX/sbin/rpcinfo -p localhost nfs 3 >/dev/null 2>&1 ||
  RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"

  If nfs 3 doesn't listen at least on one protocol, then RPCMOUNTDOPTS is
  modified accordingly.

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




More information about the foundations-bugs mailing list