++rook deletion cleanup
This commit is contained in:
parent
c37e26f6aa
commit
3a7de5189e
1 changed files with 18 additions and 0 deletions
|
@ -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…
Reference in a new issue