You can perform a disaster recovery restore for a CommServe computer container using Helm.
Before You Begin
Locate the database dump files (.dmp files) from the disaster recovery backups. For more information, see Performing a Disaster Recovery Backup.
Procedure
-
Deploy a new Helm chart for the CommServe computer, but change the image repository to nginx so that you can copy the disaster recovery dumps to the persistent volume. Use the following commands:
helm upgrade --install config commvault/config --set csOrGatewayHostName=CS Hostname --set secret.user=CS username --set secret.password=CS password --set namespace.create=false/true --set global.namespace=namespacehelm upgrade --install commserve commvault/commserve --set clientName=CS Client Name --set image.repository=nginx --set global.namespace=namespace --set global.image.namespace=library -
Copy all dump files to the /opt/commvaultDR/restore folder. The following command can be used to copy the dump files from the host machine to the container’s persistent volume:
kubectl cp /tmp/foo <some-namespace>/<some-pod>:/opt/commvaultDR/restore -
Upgrade the container with the desired CommServe computer image using the following command:
helm upgrade --install commserve commvault/commserve --set clientName=CS Cientname --set global.namespace=namespace --set global.image.tag=tag -
When the commserve pod starts up, it will detect a database dump in the /opt/commvaultDR/restore folder and then restore the database before continuing. This restore operation may take some time.
After the restore is complete, the database dump in the /opt/commvaultDR/restore folder is deleted automatically so that the CommServe computer does not go into recovery mode when the CommServe computer pod is restarted again.