Re: can you (theoretically) run only NFSv4 (without earlier versions)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Ed Greshko <Ed.Greshko@xxxxxxxxxxx>:

On 12/24/13 17:21, Tom H wrote:
On Tue, Dec 24, 2013 at 2:10 AM, Ed Greshko <Ed.Greshko@xxxxxxxxxxx> wrote:

After making the suggested changes.....

[root@meimei ~]# mount -o ro,nfsvers=4 192.168.0.196:/home /mnt
[root@meimei ~]# mount | grep mnt
192.168.0.196:/home on /mnt type nfs4 (ro,relatime,vers=4.0,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.0.18,local_lock=none,addr=192.168.0.196)
[root@meimei ~]# umount /mnt

[root@meimei ~]# mount -o ro,nfsvers=3 192.168.0.196:/home /mnt
mount.nfs: requested NFS version or transport protocol is not supported
I tried disallowing v2 and v3 on Fedora 19 and failed.

"cat /proc/fs/nfsd/versions" shows that v2 and v3 are allowed by the
kernel and "mount -t -o nfsvers=3 ..." succeeds.

I ssh'd into a RHEL 6 box and an Ubuntu 14.04 VM where I know that v2
and v3 are disabled.

"cat /proc/fs/nfsd/versions" shows that v2 and v3 are disallowed and
"mount -t -o nfsvers=3 ..." fails.

I must've done something wrong on Fedora 19. I'll have to try again
later, but I can't see anything wrong in my setup offhand.

On an F20 system where I'm doing the testing

root@f20f ~]# cat /proc/fs/nfsd/versions
-2 -3 +4 +4.1 -4.2

Shows only 4 and 4.1 allowed.

  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
MOUNTD_NFS_V2="no"
MOUNTD_NFS_V3="no"
... 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

rday


--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux