Uninstallation
This page describes two schemes to uninstall your HwameiStor.
To retain data volumes
If you want to retain your data volumes while uninstalling HwameiStor, perform the following steps:
Clean up helm instances
Delete HwameiStor helm instance
helm delete -n hwameistor hwameistor
Delete DRBD helm instance
helm delete -n hwameistor drbd-adapter
Clean up HwameiStor components
Delete hwameistor namespace
kubectl delete ns hwameistor
Delete LocalVolumeGroup instances
kubectl delete localvolumegroups.hwameistor.io --all
Delete CRD, Hook, and RBAC
kubectl get crd,mutatingwebhookconfiguration,clusterrolebinding,clusterrole -o name \
| grep hwameistor \
| xargs -t kubectl delete
To delete data volumes
Before you start to perform actions, make sure you reallly want to delete all your data.
If you confirm to delete your data volumes and uninstall HwameiStor, perform the following steps:
Clean up stateful applications
Delete stateful applications
Delete PVCs
The relevant PVs, LVs, LVRs, LVGs will also been deleted.
Clean up helm instances
Delete HwameiStor helm instance
helm delete -n hwameistor hwameistor
Delete DRBD helm instance
helm delete -n hwameistor drbd-adapter
Clean up HwameiStor components
Delete hwameistor namespace
kubectl delete ns hwameistor
Delete CRD, Hook, and RBAC
kubectl get crd,mutatingwebhookconfiguration,clusterrolebinding,clusterrole -o name \
| grep hwameistor \
| xargs -t kubectl deleteDelete StorageClass
kubectl get sc -o name \
| grep hwameistor-storage-lvm- \
| xargs -t kubectl delete