Hide Forgot
Turning off NFS has been a requested option. Right now NFS is by default turn on and we have no ability to turn it off. Customers may not want to use NFS at all and only native. Also, customers may be using NFS for other purposes that are unrelated to Gluster. Gluster NFS would clash with knfs.
(In reply to comment #0) > Turning off NFS has been a requested option. Right now NFS is by default turn > on and we have no ability to turn it off. > > Customers may not want to use NFS at all and only native. > > Also, customers may be using NFS for other purposes that are unrelated to > Gluster. Gluster NFS would clash with knfs. It wont clash with knfs. In all cases, knfs is able to override other nfs servers. But the point is well taken. Its been raised before.
Assigning to kaushik. He'll be introducing nfs options gradually through the CLI. We'll discuss how to introduce option to disable NFS. thanks.
PATCH: http://patches.gluster.com/patch/6316 in master (CLI : NFS disable option through volume set.)
[root@centos-qa-4 glusterfs]# gluster volume set dist1 nfs.disable on Set volume successful [root@centos-qa-4 glusterfs]# gluster volume info Volume Name: srj-dist Type: Distribute Status: Started Number of Bricks: 2 Transport-type: tcp Bricks: Brick1: 10.1.12.109:/mnt/srj-dist1 Brick2: 10.1.12.110:/mnt/srj-dist2 Options Reconfigured: nfs.enable-ino32: disable Volume Name: dist1 Type: Distribute Status: Stopped Number of Bricks: 4 Transport-type: tcp Bricks: Brick1: 10.1.12.109:/mnt/dist1 Brick2: 10.1.12.110:/mnt/dist2 Brick3: 10.1.12.109:/mnt/add-dist1 Brick4: 10.1.12.110:/mnt/add-dist2 Options Reconfigured: nfs.disable: on nfs.enable-ino32: disable ########################## 10.1.12.109:/dist1/dir1 on /mnt/nfs-test type nfs (rw,nfsvers=3,nolock,addr=10.1.12.109) [root@centos-qa-3 ~]# ls /mnt/nfs-test ls: /mnt/nfs-test: Stale NFS file handle [root@centos-qa-3 ~]# ############################ Volume Name: dist1 Type: Distribute Status: Started Number of Bricks: 4 Transport-type: tcp Bricks: Brick1: 10.1.12.109:/mnt/dist1 Brick2: 10.1.12.110:/mnt/dist2 Brick3: 10.1.12.109:/mnt/add-dist1 Brick4: 10.1.12.110:/mnt/add-dist2 Options Reconfigured: nfs.disable: off 10.1.12.109:/dist1/dir1 on /mnt/nfs-test type nfs (rw,nfsvers=3,nolock,addr=10.1.12.109) [root@centos-qa-3 ~]# ls /mnt/nfs-test/ file.1 file.11 file.13 file.15 file.17 file.19 file.20 file.4 file.6 file.8 file.10 file.12 file.14 file.16 file.18 file.2 file.3 file.5 file.7 file.9 [root@centos-qa-3 ~]#
The following information is added in 3.1.3 Release Notes: Option to turn-off volume being exported by NFS You can turn-off volume being exported by NFS option by issuing gluster volume set <VOLNAME> nfs.disable on command.