diff --git a/rook/README.md b/rook/README.md index bfdeb5b..421f4c5 100644 --- a/rook/README.md +++ b/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) +```