def vstart(new, opt=""):
print("vstarting....", end="")
- NEW = new and "-n" or ""
+ NEW = new and "-n" or "-N"
call("MON=1 OSD=4 CEPH_PORT=7400 {path}/src/vstart.sh --short -l {new} -d mon osd {opt} > /dev/null 2>&1".format(new=NEW, opt=opt, path=CEPH_ROOT), shell=True)
print("DONE")
fi
extra_conf=""
-new=0
+new=1
standby=0
debug=0
start_all=1
usage=$usage"\t-l, --localhost: use localhost instead of hostname\n"
usage=$usage"\t-i <ip>: bind to specific ip\n"
usage=$usage"\t-r start radosgw (needs ceph compiled with --radosgw)\n"
-usage=$usage"\t-n, --new\n"
+usage=$usage"\t-n, --new (default)\n"
+usage=$usage"\t-N, --not-new: reuse existing cluster config\n"
usage=$usage"\t--valgrind[_{osd,mds,mon,rgw}] 'toolname args...'\n"
usage=$usage"\t--nodaemon: use ceph-run as wrapper for mon/osd/mds\n"
usage=$usage"\t--smallmds: limit mds cache size\n"
--new | -n )
new=1
;;
+ --not-new | -N )
+ new=0
+ ;;
--short )
short=1
;;