is it possible to set up NFS on centos 5.5 so that it uses *only* version 4? i tried this not that long ago on fedora and was surprised to see a complaint when i tried to start the server and was told that i was missing required functionality of NFSv1, or something equally weird. i'll check the /etc/init.d/nfs script, but i think what got me into trouble was trying to use the entire set of options:
"--no-nfs-version 1 --no-nfs-version 2 --no-nfs-version 3"
i'm going to try it again this afternoon on centos 5.5, but has anyone else tried this? should it *theoretically* work?
rday
On Fri, 17 Sep 2010, Robert P. J. Day wrote:
is it possible to set up NFS on centos 5.5 so that it uses *only* version 4? i tried this not that long ago on fedora and was surprised to see a complaint when i tried to start the server and was told that i was missing required functionality of NFSv1, or something equally weird. i'll check the /etc/init.d/nfs script, but i think what got me into trouble was trying to use the entire set of options:
"--no-nfs-version 1 --no-nfs-version 2 --no-nfs-version 3"
i'm going to try it again this afternoon on centos 5.5, but has anyone else tried this? should it *theoretically* work?
as an actual example of what i'm talking about, if you take a look at /etc/sysconfig/nfs on centos 5.5, consider these lines:
# Define which protocol versions mountd # will advertise. The values are "no" or "yes" # with yes being the default #MOUNTD_NFS_V1="no" #MOUNTD_NFS_V2="no" #MOUNTD_NFS_V3="no"
theoretically, should i be able to uncomment all of those lines so that mountd advertises only V4? i would have thought so but, if i do that:
# service nfs restart Shutting down NFS mountd: [FAILED] Shutting down NFS daemon: [ OK ] Shutting down NFS quotas: [ OK ] Shutting down NFS services: [FAILED] Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS daemon: [ OK ] Starting NFS mountd: Usage: rpc.mountd [-F|--foreground] [-h|--help] [-v|--version] [-d kind|--debug kind] [-o num|--descriptors num] [-f exports-file|--exports-file=file] [-p|--port port] [-V version|--nfs-version version] [-N version|--no-nfs-version version] [-n|--no-tcp] [-H ha-callout-prog] [-s|--state-directory-path path] [-t num|--num-threads=num] [FAILED] #
on the other hand, if i re-comment just the V1 line:
# service nfs restart Shutting down NFS mountd: [FAILED] Shutting down NFS daemon: [ OK ] Shutting down NFS quotas: [ OK ] Shutting down NFS services: [FAILED] Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS daemon: [ OK ] Starting NFS mountd: [ OK ] #
now that's just silly, no? i can start the mountd daemon as long as i allow it to advertise NFSv1?
rday