From 765cafdb6169836d1ba216b1cd7d4e118fc559e7 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Sat, 7 Mar 2020 02:03:51 +0530 Subject: [PATCH] vstart: Use "NFS" instead "GANESHA" for starting nfs ganesha clusters Signed-off-by: Varsha Rao --- doc/cephfs/fs-nfs-exports.rst | 4 ++-- src/stop.sh | 4 ++-- src/vstart.sh | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/cephfs/fs-nfs-exports.rst b/doc/cephfs/fs-nfs-exports.rst index 5f2b6e50191..fa8bb8403c4 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 3ee2a43af22..843bc21d959 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 83b67fdb4fc..6e9ac3339d0 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 -- 2.39.5