Update containerized PostgreSQL pod
The procedure describes the steps to update the image for NetBackup PostgreSQL pod in 11.0 or later.
To update the containerized PostgreSQL pod for NetBackup version 11.0 or later
Consider a scenario - In 11.1.x.x.xxxx deployment with netbackup-postgresql version 16.10.x.x, upgrade to netbackup-postgresql version 16.10.x.x using tag 11.1.x.x.xxxx
- Suspend the backup job processing using the command:
nbpemreq -suspend_scheduling
- Load, tag, and push the new NetBackup PostgreSQL image using the commands:
To load the PostgreSQL imagedocker load -i VRTSnetbackup-postgresql-16.4.0002.tar.gz
To load the PostgreSQL-upgrade imagesdocker load -i VRTSnetbackup-postgresql-upgrade-16.4-0002.tar.gz
To tag the new imagesdocker tag netbackup/postgresql:16.4-0002 exampleacr.azurecr.io/netbackup/postgresql:11.1.x.x.xxxx
docker tag localhost/netbackup/postgresql-upgrade:16.4-0002 exampleacr.azurecr.io/netbackup/postgresql-upgrade:11.1.x.x.xxxx_patch2
To push the PostgreSQL imagedocker push exampleacr.azurecr.io/netbackup/postgresql:11.1.x.x.xxxx
docker push exampleacr.azurecr.io/netbackup/postgresql-upgrade:11.1.x.x.xxxx-patch2
- Upgrade the PostgreSQL using Helm chart:
To save PostgreSQL chart values to a file: helm get values cloudscale -n <namespace> > csvalues.yaml vi csvalues.yaml
Edit the image tags for postgresql and postgresql-upgrade:
vi csvalues.yaml
Upgrade the PostgreSQL: helm upgrade --install cloudscale <cloudscale tgz> -n <namespace> -f csvalues.yaml
- Resume the backup job processing using the command:
nbpemreq -resume_scheduling