[ceph] add script for only removing the osd without disk
This commit is contained in:
parent
9bb54276aa
commit
26cefb3e9a
1 changed files with 19 additions and 0 deletions
19
ceph/ceph-osd-remove-from-cluster-only.sh
Executable file
19
ceph/ceph-osd-remove-from-cluster-only.sh
Executable 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
|
Loading…
Reference in a new issue