[Bug 1284210] Re: nfs-kernel-server mountd check only checks for nfsv3 via UDP, not TCP

Christian Reis kiko at async.com.br
Mon Feb 24 17:09:09 UTC 2014


And if the user wants to disable a specific version, he's more likely to
think he should do all that configuration in /etc/default/nfs-kernel-
version anyway.

One gotcha in that file is that multiple options need to be quoted;
maybe a nice fix would be to quote the defaults in there, i.e.

     RPCMOUNTDOPTS="--manage-gids"
     RPCSVCGSSDOPTS=""
     RPCNFSDOPTS=""

So it's easier to tack something on. Other default files seem to do
that.

-- 
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/1284210

Title:
  nfs-kernel-server mountd check only checks for nfsv3 via UDP, not TCP

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

Bug description:
  I recently disabled UDP on our NFS server by setting --no-udp (or -U)
  and all of a sudden I could no longer get nfsv3 mounts to work. It
  turns out that this happens because of the check in /etc/init.d/nfs-
  kernel-server:

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

  That line only uses rpcinfo -u, so disabling UDP breaks the check. It
  should probably be something like:

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

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



More information about the foundations-bugs mailing list