[ceph] add script for only removing the osd without disk

This commit is contained in:
Nico Schottelius 2022-12-07 10:46:44 +01:00
parent 9bb54276aa
commit 26cefb3e9a

View file

@ -0,0 +1,19 @@
#!/bin/sh
# 2022-12-07, 10:46
# Nico Schottelius
set -x
set -e
if [ $# -ne 1 ]; then
echo "$0 osd.id"
echo "i.e. $0 17"
exit 1
fi
osd_id=$1; shift
osd_name=osd.${osd_id}
ceph osd crush remove $osd_name
ceph osd rm $osd_name
ceph auth del $osd_name