can you (theoretically) run only NFSv4 (without earlier versions)?
Robert P. J. Day
rpjday at crashcourse.ca
Tue Dec 24 13:39:55 UTC 2013
Quoting Ed Greshko <Ed.Greshko at greshko.com>:
> On 12/24/13 21:24, Robert P. J. Day wrote:
>> just to explain where this all came from, i was working off of what
>> i was seeing on a RHEL (actually CentOS) 6.5 system, where the config
>> file /etc/sysconfig/nfs had helpful comments which allowed me to
>> tweak that file thusly:
>> # Define which protocol versions mountd
>> # will advertise. The values are "no" or "yes"
>> # with yes being the default
>> ... snip ...
>> # Optional arguments passed to rpc.nfsd. See rpc.nfsd(8)
>> # Turn off v2 and v3 protocol support
>> RPCNFSDARGS="-N 2 -N 3"
>> if i make the above changes and restart NFS (on the RHEL system),
>> the *only* NFS-related entries i see in the output of "rpcinfo -p" are:
>> 100003 4 tcp 2049 nfs
>> 100003 4 udp 2049 nfs
>> and that's *it*, nothing more, which is what i expected.
>> sadly, i don't have access to my fedora 20 box at the moment,
>> but all i was doing was trying to produce the same result --
>> only those two lines in the output of "rpcinfo -p". i can see
>> that the *effect* of the earlier suggestions is the same, in
>> that only NFSv4 is supported, but there is still that crud in
>> the output of "rpcinfo -p" that seems irrelevant.
>> oh, and on the RHEL 6.5 system, the contents of the file
>> /proc/fs/nfsd/versions correctly contains:
>> -2 -3 +4 -4.1
> In any event, I think the original question has been answered. Yes,
> you can configure nfs on Fedora to allow only NFSv4. Agreed?
More information about the users