[Gluster-users] Restricting NFS-Ganesha to use NFSv4.0 only

Nico van Royen nico at van-royen.nl
Fri Nov 23 18:42:19 UTC 2018


Hi All, 

In a bugzilla ( [ https://bugzilla.redhat.com/show_bug.cgi?id=1546713 | https://bugzilla.redhat.com/show_bug.cgi?id=1546713 ] ) I was reading it showed that it should be possible to restrict the NFSv4 usage to only use 4.0 (since 4.1/4.2 is not supported). 
To try that, I modified an existing share so it reads : 

EXPORT{ 
Export_Id = 2; 
Path = "/DATA"; 
FSAL { 
name = GLUSTER; 
hostname="localhost"; 
volume="DATA"; 
} 
Access_type = RW; 
Disable_ACL = true; 
Squash="No_root_squash"; 
Pseudo="/DATA"; 
Protocols = "4" ; 
Transports = "UDP","TCP"; 
SecType = "sys"; 
NFSv4 { 
minor_versions = 0; 
} 
} 

And restarted the nfs- ganesha service. Seemed to start fine and mounted the share from a client and specifying the mount option "-o vers=4.1" and indeed it mounted it with NFSv4.1 (I was expecting/hoping it would refuse to mount). 

What is (or should be) the way to only allow NFSv4.0 exports (if possible at all) ? 

Running GlusterFS 3.12 / RHGS 3.4 with packages : 
bash-4.2# rpm -qa | grep ganesha 
glusterfs- ganesha -3.12.2-18.el7rhgs.x86_64 
nfs- ganesha -2.5.5-10.el7rhgs.x86_64 
nfs- ganesha -gluster-2.5.5-10.el7rhgs.x86_64 

bash-4.2# rpm -qa | grep ^glusterfs 
glusterfs-libs-3.12.2-18.el7rhgs.x86_64 
glusterfs- ganesha -3.12.2-18.el7rhgs.x86_64 
glusterfs-client-xlators-3.12.2-18.el7rhgs.x86_64 
glusterfs-fuse-3.12.2-18.el7rhgs.x86_64 
glusterfs-cli-3.12.2-18.el7rhgs.x86_64 
glusterfs-api-3.12.2-18.el7rhgs.x86_64 
glusterfs-server-3.12.2-18.el7rhgs.x86_64 
glusterfs-3.12.2-18.el7rhgs.x86_64 

Thanks in advance, 
Nico van Roijen 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20181123/0e915350/attachment.html>


More information about the Gluster-users mailing list