Maybe this is a dumb question but do I have to set up an nfs server on one of the server peers in my gluster volume in order to connect to the volume with nfs? I did a port scan on a couple of the peers in my cluster and port 2049 was cloased. I'm thinking maybe you have to configure an nfs server on one of the peers and it can read/write to the gluster volume like it would any disk. But then what do these commands do: gluster volume set <VOLNAME> nfs.disable off gluster volume set <VOLNAME> nfs.disable on The documentation on the gluster.org web site seems to imply that yu don't need an nfs server. It specifically says you need the nfs-common package on your servers. That would imply you don't need the nfs-kernel-server package, right? See: http://gluster.org/community/documentation/index.php/Gluster_3.2:_Using_NFS_to_Mount_Volumes
On Thu, 06 Feb 2014 14:52:44 -0600 "John G. Heim" <jheim at math.wisc.edu> wrote:> Maybe this is a dumb question but do I have to set up an nfs server on > one of the server peers in my gluster volume in order to connect to the > volume with nfs?In theory, NFS is supposed to be enabled/running by default. Which version(s) of Gluster are use using?> I did a port scan on a couple of the peers in my > cluster and port 2049 was cloased.If you run "gluster volume status", what does it show?> I'm thinking maybe you have to > configure an nfs server on one of the peers and it can read/write to the > gluster volume like it would any disk. But then what do these commands do: > > gluster volume set <VOLNAME> nfs.disable off > gluster volume set <VOLNAME> nfs.disable onYeah, they're more for disabling that NFS server that's on by default, for the people that don't want it. :)> The documentation on the gluster.org web site seems to imply that yu > don't need an nfs server. It specifically says you need the nfs-common > package on your servers. That would imply you don't need the > nfs-kernel-server package, right? See: > http://gluster.org/community/documentation/index.php/Gluster_3.2:_Using_NFS_to_Mount_VolumesThis bit I'm not sure of. I'm using NFS purely for doing testing in a local VM (Gluster 3.4 and Gluster 3.5 dev), and haven't used it in any real world scenario's yet. :( Does that help? Regards and best wishes, Justin Clift -- GlusterFS Project: http://www.gluster.org Justin Clift <justin at gluster.org>
Hi John, I think on gluster 3.3 and 3.4, nfs is enabled by default. nfs is actually a translator, so it's in the 'stack' already - this is why you don't need the nfs-kernel-server package. When mounting from a client, you just need to ensure the mount options are right i.e. use the following -o proto=tcp,vers=3 (for linux) The other consideration is that by default the volume will expose 64bit inodes - if you have a 32bit apps, or OS you'll need to tweak the gluster volume with "vol set <vol> nfs.enable-ino32 on" I haven't got a 3.3 system handy, but on a 3.4 system if you run the following gluster vol set help | grep "^Option: nfs." you'll get a view of all the nfs tweaks that can be made with the translator. Cheers, Paul C ----- Original Message -----> From: "John G. Heim" <jheim at math.wisc.edu> > To: "gluster-users" <gluster-users at gluster.org> > Sent: Friday, 7 February, 2014 9:52:44 AM > Subject: [Gluster-users] nfs> Maybe this is a dumb question but do I have to set up an nfs server on > one of the server peers in my gluster volume in order to connect to the > volume with nfs? I did a port scan on a couple of the peers in my > cluster and port 2049 was cloased. I'm thinking maybe you have to > configure an nfs server on one of the peers and it can read/write to the > gluster volume like it would any disk. But then what do these commands do:> gluster volume set <VOLNAME> nfs.disable off > gluster volume set <VOLNAME> nfs.disable on> The documentation on the gluster.org web site seems to imply that yu > don't need an nfs server. It specifically says you need the nfs-common > package on your servers. That would imply you don't need the > nfs-kernel-server package, right? See: > http://gluster.org/community/documentation/index.php/Gluster_3.2:_Using_NFS_to_Mount_Volumes > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://supercolony.gluster.org/mailman/listinfo/gluster-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20140210/3229c127/attachment.html>