From: Varsha Rao Date: Fri, 6 Mar 2020 20:33:51 +0000 (+0530) Subject: vstart: Use "NFS" instead "GANESHA" for starting nfs ganesha clusters X-Git-Tag: v16.1.0~2626^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=765cafdb6169836d1ba216b1cd7d4e118fc559e7;p=ceph.git vstart: Use "NFS" instead "GANESHA" for starting nfs ganesha clusters Signed-off-by: Varsha Rao --- diff --git a/doc/cephfs/fs-nfs-exports.rst b/doc/cephfs/fs-nfs-exports.rst index 5f2b6e501917..fa8bb8403c4e 100644 --- a/doc/cephfs/fs-nfs-exports.rst +++ b/doc/cephfs/fs-nfs-exports.rst @@ -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 ===== diff --git a/src/stop.sh b/src/stop.sh index 3ee2a43af22f..843bc21d9590 100755 --- a/src/stop.sh +++ b/src/stop.sh @@ -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 ;; diff --git a/src/vstart.sh b/src/vstart.sh index 83b67fdb4fc3..6e9ac3339d02 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -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