Hide Forgot
Volume access option in NFS should take only "read-only, read-write" values. gaurav@gaurav-Vostro-3400:~/new_gluster$ sudo gluster volume set new_vol2 nfs.volume-access aaa Set volume successful
PATCH: http://patches.gluster.com/patch/6613 in master (NFS : Volume access option accepts only valid values.)
It's working only for read-only, read-write, but correct the suggestion string if the wrong option is provided, gluster> volume set dist2 nfs.volume-access read-bing option nfs3.dist-strip1.volume-access read-bing: 'read-bing' is not valid (possible options are read-only, read-write, ) presently the statement finishes with a comma space and then a bracket. Rather it should be full-stop and closing bracket without space.
PATCH: http://patches.gluster.com/patch/6725 in master (CLI : Display possible options in proper format.)
root@Centos-Gurav2 mnt]# [root@Centos-Gurav2 mnt]# /opt/glusterfs/3.3.0qa13/sbin/gluster volume set dist-rep nfs.volume-access read-bing option nfs3.dist-rep.volume-access read-bing: 'read-bing' is not valid (possible options are read-only, read-write.) Set volume unsuccessful [root@Centos-Gurav2 mnt]# /opt/glusterfs/3.3.0qa13/sbin/gluster volume set dist-rep nfs.volume-access read option nfs3.dist-rep.volume-access read: 'read' is not valid (possible options are read-only, read-write.) Set volume unsuccessful [root@Centos-Gurav2 mnt]# /opt/glusterfs/3.3.0qa13/sbin/gluster volume set dist-rep nfs.volume-access read- option nfs3.dist-rep.volume-access read-: 'read-' is not valid (possible options are read-only, read-write.) Set volume unsuccessful [root@Centos-Gurav2 mnt]# /opt/glusterfs/3.3.0qa13/sbin/gluster volume set dist-rep nfs.volume-access wread-only option nfs3.dist-rep.volume-access wread-only: 'wread-only' is not valid (possible options are read-only, read-write.) Set volume unsuccessful [root@Centos-Gurav2 mnt]# [root@Centos-Gurav2 mnt]# /opt/glusterfs/3.3.0qa13/sbin/gluster volume set dist-rep nfs.volume-access wread-write1 option nfs3.dist-rep.volume-access wread-write1: 'wread-write1' is not valid (possible options are read-only, read-write.) Set volume unsuccessful [root@Centos-Gurav2 mnt]# glusterfs -V glusterfs 3git built on Jul 5 2011 22:14:42 Repository revision: git://git.gluster.com/glusterfs.git Copyright (c) 2006-2010 Gluster Inc. <http://www.gluster.com> GlusterFS comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GlusterFS under the terms of the GNU Affero General Public License.