From f486e4e4160cccbc6db6bf6ead457eb3b80b2456 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 26 Sep 2019 16:46:49 -0500 Subject: [PATCH] test_ceph_daemon.sh: stupid test script Signed-off-by: Sage Weil --- test_ceph_daemon.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 test_ceph_daemon.sh diff --git a/test_ceph_daemon.sh b/test_ceph_daemon.sh new file mode 100755 index 0000000000000..705aa8c0aa180 --- /dev/null +++ b/test_ceph_daemon.sh @@ -0,0 +1,18 @@ +#!/bin/bash -ex + +fsid=0a464092-dfd0-11e9-b903-002590e526e8 + +for f in `podman ps | awk '{print $1}' | grep -v CONT ` ; do podman kill $f ; done +for f in `systemctl | grep ceph | awk '{print $1}'` ; do systemctl stop $f ; systemctl disable $f ; done + +rm -rf /var/lib/ceph/$fsid/* +rm -rf /var/log/ceph/$fsid/* + +../src/ceph-daemon bootstrap \ + --fsid $fsid \ + --mon-ip 10.3.64.23 \ + --output-keyring k \ + --output-conf c +chmod 644 k c + +bin/ceph -c c -k k -s -- 2.39.5