]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: add --mon_num --osd_num --mds_num --rgw_port option 5722/head
authorXiaowei Chen <cxwshawn@gmail.com>
Tue, 1 Sep 2015 00:46:59 +0000 (20:46 -0400)
committerXiaowei Chen <cxwshawn@gmail.com>
Tue, 1 Sep 2015 00:47:02 +0000 (20:47 -0400)
add these options to replace shell var MON, OSD, MDS to be more
convenient, and add --rgw_port option.

Signed-off-by: Xiaowei Chen <chen.xiaowei@h3c.com>
src/vstart.sh

index 8f3ca4def82cd9b03afe34079d08685bfd4c5c5d..d3dc42d9b31e84a968b35c83dcd88821c8632d25 100755 (executable)
@@ -106,7 +106,10 @@ usage=$usage"\t--hitset <pool> <hit_set_type>: 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