Browse Source

++rook deletion cleanup

master
frankristo 10 months ago
parent
commit
3a7de5189e
  1. 18
      rook/README.md

18
rook/README.md

@ -161,3 +161,21 @@ Especially these:
## Other flux related problems
* The host is not cleared / old /var/lib/rook is persisting
## Cleaning up (after deletion)
If deletion gets stuck, remove finalizers:
```
for CRD in $(kubectl get crd -n rook-ceph | awk '/ceph.rook.io/ {print $1}'); do
kubectl get -n rook-ceph "$CRD" -o name | \
xargs -I {} kubectl patch -n rook-ceph {} --type merge -p '{"metadata":{"finalizers": [null]}}'
done
```
On each server, delete dataDirHostPath and delete Rook disk:
```
rm -rf /var/lib/rook
lvdisplay
lvremove /dev/ceph-*
pvdisplay
pvremove /dev/sd #(ex. /dev/sda)
```

Loading…
Cancel
Save