From e47fa6716e9feebd813bf5a9f352467bd79e9163 Mon Sep 17 00:00:00 2001 From: Xiaowei Chen Date: Mon, 31 Aug 2015 20:46:59 -0400 Subject: [PATCH] vstart.sh: add --mon_num --osd_num --mds_num --rgw_port option add these options to replace shell var MON, OSD, MDS to be more convenient, and add --rgw_port option. Signed-off-by: Xiaowei Chen --- src/vstart.sh | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/vstart.sh b/src/vstart.sh index 8f3ca4def82..d3dc42d9b31 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -106,7 +106,10 @@ usage=$usage"\t--hitset : enable hitset tracking\n" usage=$usage"\t-e : create an erasure pool\n"; usage=$usage"\t-o config\t\t add extra config parameters to all sections\n" usage=$usage"\t-J no journal\t\tdisable filestore journal\n" - +usage=$usage"\t--mon_num specify ceph monitor count\n" +usage=$usage"\t--osd_num specify ceph osd count\n" +usage=$usage"\t--mds_num specify ceph mds count\n" +usage=$usage"\t--rgw_port specify ceph rgw http listen port\n" usage_exit() { printf "$usage" @@ -164,6 +167,23 @@ case $1 in --smallmds ) smallmds=1 ;; + --mon_num ) + echo "mon_num:$2" + CEPH_NUM_MON="$2" + shift + ;; + --osd_num ) + CEPH_NUM_OSD=$2 + shift + ;; + --mds_num ) + CEPH_NUM_MDS=$2 + shift + ;; + --rgw_port ) + CEPH_RGW_PORT=$2 + shift + ;; mon ) start_mon=1 start_all=0