X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fmstart.sh;fp=src%2Fceph%2Fsrc%2Fmstart.sh;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=bbc8ecc5fe6a651ca38d4f236b11d59376c752e2;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/mstart.sh b/src/ceph/src/mstart.sh deleted file mode 100755 index bbc8ecc..0000000 --- a/src/ceph/src/mstart.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh - -usage="usage: $0 [vstart options]..\n" - -usage_exit() { - printf "$usage" - exit -} - -[ $# -lt 1 ] && usage_exit - - -instance=$1 -shift - -vstart_path=`dirname $0` - -root_path=`dirname $0` -root_path=`(cd $root_path; pwd)` - -if [ -e CMakeCache.txt ]; then - root_path=$PWD -elif [ -e $root_path/../build/CMakeCache.txt ]; then - cd $root_path/../build - root_path=$PWD -fi -RUN_ROOT_PATH=${root_path}/run -CLUSTERS_LIST=$RUN_ROOT_PATH/.clusters.list - -mkdir -p $RUN_ROOT_PATH - - -if [ ! -f $CLUSTERS_LIST ]; then -touch $CLUSTERS_LIST -fi - -pos=`grep -n -w $instance $CLUSTERS_LIST` -if [ $? -ne 0 ]; then - echo $instance >> $CLUSTERS_LIST - pos=`grep -n -w $instance $CLUSTERS_LIST` -fi - -pos=`echo $pos | cut -d: -f1` -base_port=$((6800+pos*20)) -rgw_port=$((8000+pos*1)) - -export VSTART_DEST=$RUN_ROOT_PATH/$instance -export CEPH_PORT=$base_port -export CEPH_RGW_PORT=$rgw_port - -mkdir -p $VSTART_DEST - -echo "Cluster dest path: $VSTART_DEST" -echo "monitors base port: $CEPH_PORT" -echo "rgw base port: $CEPH_RGW_PORT" - -$vstart_path/vstart.sh "$@"