Uninstalling Snapshot Manager from Kubernetes cluster
When you uninstall Snapshot Manager from Kubernetes cluster, the Snapshot Manager related services are deleted from the cluster.
Delete cpServer related parameters from
environment.yamlfile and apply it.# NOTE: Following steps does not remove flexsnap (Snapshot Manager) operator. OPERATOR_NAMESPACE="netbackup-operator-system" ENVIRONMENT_NAMESPACE="nbux" # Comment out / remove cpServer part from environment.yaml
Following commands can be used to remove and disable the Snapshot Manager from NetBackup:
kubectl apply -f environment.yaml -n $ENVIRONMENT_NAMESPACE sleep 10s
Ensure that you get the uninstall message in
flexsnap-operatoroperator log.To clean-up cpServer component, delete flexsnap specific persistent volumes (PVs), persistent volume claims (PVCs) and config maps. Note that these resources contain metadata of current cpServer installation and would be deleted.
Use the following respective commands to delete these resources:
kubectl delete cm flexsnap-conf nbuconf pdconf -n $ENVIRONMENT_NAMESPACE kubectl delete pvc data-flexsnap-rabbitmq-0 fluentd-pvc cloudpoint-pvc certauth-pvc -n $ENVIRONMENT_NAMESPACE kubectl delete pv $(kubectl get pv | grep flexsnap | awk '{printf $1" " }') kubectl delete pv $(kubectl get pv | grep fluentd-pvc | awk '{printf $1" " }') kubectl delete pv $(kubectl get pv | grep cloudpoint-pvc | awk '{printf $1" " }') kubectl delete pv $(kubectl get pv | grep certauth-pvc | awk '{printf $1" " }')NetBackup Snapshot Manager databases are present in
nb-postgresqlpod. Delete these databases manually.Use the following commands to exec into
nb-postgresqlpod, connect to the database and delete the flexsnap databases:kubectl exec -it nb-postgresql-0 -- bash psql "port=13787 dbname=postgres user=postgres sslmode=verify-full sslcert='/netbackup/postgresql/keys/server/tls.crt' sslkey='/netbackup/postgresql/keys/server/tls.key' sslrootcert=/netbackup/postgresql/keys/server/ca.crt" drop database alertservice with (force); drop database flexsnap with (force); drop database flexworkflow with (force); drop database identity_manager_service with (force); drop database kms with (force);
NetBackup Snapshot Manager uses it's own pod (
flexsnap-postgresql) to store data when NetBackup uses cloud native database.When
flexsnap-postgresqlpod is deployed, use the following command to delete the database pvc:kubectl delete pvc psql-pvc -n $ENVIRONMENT_NAMESPACE
kubectl delete pv $(kubectl get pv | grep psql-pvc | awk '{printf $1" " }')