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

Tom H tomh0665 at gmail.com
Tue Dec 24 09:21:59 UTC 2013


On Tue, Dec 24, 2013 at 2:10 AM, Ed Greshko <Ed.Greshko at greshko.com> wrote:
> On 12/24/13 09:12, Robert P. J. Day wrote:
>
> After making the suggested changes.....
>
> [root at meimei ~]# mount -o ro,nfsvers=4 192.168.0.196:/home /mnt
> [root at 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 at meimei ~]# umount /mnt
>
> [root at 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.


More information about the users mailing list