]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart: Use "NFS" instead "GANESHA" for starting nfs ganesha clusters
authorVarsha Rao <varao@redhat.com>
Fri, 6 Mar 2020 20:33:51 +0000 (02:03 +0530)
committerVarsha Rao <varao@redhat.com>
Wed, 8 Apr 2020 11:51:17 +0000 (17:21 +0530)
Signed-off-by: Varsha Rao <varao@redhat.com>
doc/cephfs/fs-nfs-exports.rst
src/stop.sh
src/vstart.sh

index 5f2b6e501917ef102f0ad1fc21f5de7591d28f1e..fa8bb8403c4e43afb29f4dbaeb4999a90402a636 100644 (file)
@@ -44,9 +44,9 @@ Configuring NFS-Ganesha to export CephFS with vstart
 
 .. code:: bash
 
-    $ MDS=1 MON=1 OSD=3 GANESHA=1 ../src/vstart.sh -n -d
+    $ MDS=1 MON=1 OSD=3 NFS=1 ../src/vstart.sh -n -d
 
-GANESHA: It denotes the number of ganesha clusters to be created.
+NFS: It denotes the number of NFS-Ganesha clusters to be created.
 
 Mount
 =====
index 3ee2a43af22f2f86bd2246567273aa9918f80de7..843bc21d959065afd01d322c8ecf922a9a5b8829 100755 (executable)
@@ -72,7 +72,7 @@ do_umountall() {
     [ -n "$CEPH_FUSE_MNTS" ] && sudo umount -f $CEPH_FUSE_MNTS
 }
 
-usage="usage: $0 [all] [mon] [mds] [osd] [rgw] [ganesha] [--crimson]\n"
+usage="usage: $0 [all] [mon] [mds] [osd] [rgw] [nfs] [--crimson]\n"
 
 stop_all=1
 stop_mon=0
@@ -108,7 +108,7 @@ while [ $# -ge 1 ]; do
             stop_rgw=1
             stop_all=0
             ;;
-        ganesha | ganesha.nfsd )
+        nfs | ganesha.nfsd )
             stop_ganesha=1
             stop_all=0
             ;;
index 83b67fdb4fc37450ec83faf7e5f46c160c95f32e..6e9ac3339d02ca374560b9f1750ccd1a05d70e80 100755 (executable)
@@ -100,7 +100,7 @@ export CEPH_DEV=1
 [ -z "$CEPH_NUM_MGR" ] && CEPH_NUM_MGR="$MGR"
 [ -z "$CEPH_NUM_FS"  ] && CEPH_NUM_FS="$FS"
 [ -z "$CEPH_NUM_RGW" ] && CEPH_NUM_RGW="$RGW"
-[ -z "$GANESHA_DAEMON_NUM" ] && GANESHA_DAEMON_NUM="$GANESHA"
+[ -z "$GANESHA_DAEMON_NUM" ] && GANESHA_DAEMON_NUM="$NFS"
 
 # if none of the CEPH_NUM_* number is specified, kill the existing
 # cluster.
@@ -189,7 +189,7 @@ inc_osd_num=0
 
 msgr="21"
 
-usage="usage: $0 [option]... \nex: MON=3 OSD=1 MDS=1 MGR=1 RGW=1 GANESHA=1 $0 -n -d\n"
+usage="usage: $0 [option]... \nex: MON=3 OSD=1 MDS=1 MGR=1 RGW=1 NFS=1 $0 -n -d\n"
 usage=$usage"options:\n"
 usage=$usage"\t-d, --debug\n"
 usage=$usage"\t-s, --standby_mds: Generate standby-replay MDS for each active\n"
@@ -464,8 +464,8 @@ if [ "$new" -eq 0 ]; then
         CEPH_NUM_MGR="$MGR"
     RGW=`$CEPH_BIN/ceph-conf -c $conf_fn --name $VSTART_SEC --lookup num_rgw 2>/dev/null` && \
         CEPH_NUM_RGW="$RGW"
-    GANESHA=`$CEPH_BIN/ceph-conf -c $conf_fn --name $VSTART_SEC --lookup num_ganesha 2>/dev/null` && \
-        GANESHA_DAEMON_NUM="$GANESHA"
+    NFS=`$CEPH_BIN/ceph-conf -c $conf_fn --name $VSTART_SEC --lookup num_ganesha 2>/dev/null` && \
+        GANESHA_DAEMON_NUM="$NFS"
 else
     # only delete if -n
     if [ -e "$conf_fn" ]; then