[Bug 1072230] Re: rpcinfo is in /sbin, not /bin => NFS v3 is disabled
Alan Robertson
alanr at unix.sh
Sun Oct 28 05:27:57 UTC 2012
I did two upgrades in a row. Now that you mention it I seem to recall
it had trouble upgrading NFS. I don't have any recollection of changing
the script until I changed it. The usual reason for me fixing init
scripts is bad exit codes (Pacemaker hates incorrect exit codes). But
I'm quite certain I didn't have that problem with NFS.
I'm having troubles with NFS (v3) that I didn't have before - so this
seemed like a likely cause - which would be why I started this process.
I will try your suggestion tomorrow. Thanks for looking at it!
My apologies for adding noise.
--
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/1072230
Title:
rpcinfo is in /sbin, not /bin => NFS v3 is disabled
Status in “nfs-utils” package in Ubuntu:
Incomplete
Bug description:
The init script for nfs-kernel-server looks to see if NFS v3 is
enabled by running rpcinfo.
This is nice and all, but it will only work if the pathname to rpcinfo
is correct.
The original code said this:
$PREFIX/bin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"
The correct code is this:
$PREFIX/sbin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"
Either that or rpcinfo is misplaced.
In any case, this keeps nfs v3 from working - because it ALWAYS turns
on the --no-nfs-version-3 flag.
Perhaps this should be checked for at the beginning of the script like
some of the other commands?
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: nfs-kernel-server 1:1.2.5-3ubuntu3.1
ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
Uname: Linux 3.5.0-17-generic x86_64
ApportVersion: 2.6.1-0ubuntu3
Architecture: amd64
Date: Sat Oct 27 16:48:01 2012
InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Release amd64 (20110426)
ProcEnviron:
TERM=xterm
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_US.UTF-8
SourcePackage: nfs-utils
UpgradeStatus: Upgraded to quantal on 2012-10-23 (3 days ago)
mtime.conffile..etc.init.d.nfs.kernel.server: 2012-10-27T16:34:08.070671
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1072230/+subscriptions
More information about the foundations-bugs
mailing list