mirror of
https://github.com/ceph/ceph
synced 2024-12-28 14:34:13 +00:00
4bc88b9e5f
update cstart/ckill scripts to use the compiled cephadm binary Signed-off-by: Michael Fritch <mfritch@suse.com>
22 lines
329 B
Bash
Executable File
22 lines
329 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
if [ -e CMakeCache.txt ]; then
|
|
[ -z "$CEPH_BIN" ] && CEPH_BIN=bin
|
|
fi
|
|
|
|
if [ -z "$CEPHADM" ]; then
|
|
CEPHADM="${CEPH_BIN}/cephadm"
|
|
fi
|
|
|
|
# fsid
|
|
if [ -e fsid ] ; then
|
|
fsid=`cat fsid`
|
|
else
|
|
echo 'no fsid file, so no cluster?'
|
|
exit 0
|
|
fi
|
|
echo "fsid $fsid"
|
|
|
|
sudo $CEPHADM rm-cluster --force --fsid $fsid
|
|
|