summaryrefslogtreecommitdiffstats
path: root/qa/standalone/ceph-helpers.sh
diff options
context:
space:
mode:
authorSage Weil <sage@redhat.com>2019-03-23 22:49:33 +0100
committerSage Weil <sage@redhat.com>2019-04-01 21:58:50 +0200
commitaa33a26e32d270286ee110f57cfcf63df63fa913 (patch)
tree3775cfb27bea07dd95a5d5f36d0f11d2bc5328a4 /qa/standalone/ceph-helpers.sh
parentmon: add 'mon ok-to-{stop,add-offline,rm}' commands (diff)
downloadceph-aa33a26e32d270286ee110f57cfcf63df63fa913.tar.xz
ceph-aa33a26e32d270286ee110f57cfcf63df63fa913.zip
mon/MDSMonitor: add 'mds ok-to-stop' command
Signed-off-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'qa/standalone/ceph-helpers.sh')
-rwxr-xr-xqa/standalone/ceph-helpers.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/qa/standalone/ceph-helpers.sh b/qa/standalone/ceph-helpers.sh
index 152396f6c02..83ca1e2511e 100755
--- a/qa/standalone/ceph-helpers.sh
+++ b/qa/standalone/ceph-helpers.sh
@@ -574,6 +574,28 @@ function run_mgr() {
"$@" || return 1
}
+function run_mds() {
+ local dir=$1
+ shift
+ local id=$1
+ shift
+ local data=$dir/$id
+
+ ceph-mds \
+ --id $id \
+ $EXTRA_OPTS \
+ --debug-mds 20 \
+ --debug-objecter 20 \
+ --debug-ms 20 \
+ --chdir= \
+ --mds-data=$data \
+ --log-file=$dir/\$name.log \
+ --admin-socket=$(get_asok_path) \
+ --run-dir=$dir \
+ --pid-file=$dir/\$name.pid \
+ "$@" || return 1
+}
+
#######################################################################
##