Upgrade PMM Server using podman¶
Summary
- Perform a backup.
- Update PMM tag.
- Pre-pull image.
- Run it.
Important
You cannot downgrade. To go to a previous version, you must create a backup before upgrading.
Tip
To see the current release running on your system, use the PMM Upgrade panel on the Home Dashboard, or run:
podman exec -it pmm-server \
curl -ku admin:admin https://localhost/v1/version
(If you are accessing the podman host remotely, replace localhost
with the IP or server name of the host.)
-
Perform a backup.
-
Update PMM tag.
Edit
~/.config/pmm-server/env
and create/update with a new tag from latest release:sed -i "s/PMM_TAG=.*/PMM_TAG=2.33.0/g" ~/.config/pmm-server/env
-
Pre-pull image for faster restart.
sed -i "s/PMM_TAG=.*/PMM_TAG=2.33.0-rc/g" ~/.config/pmm-server/env sed -i "s|PMM_IMAGE=.*|PMM_IMAGE=docker.io/perconalab/pmm-server|g" ~/.config/pmm-server/env
source ~/.config/pmm-server/env podman pull ${PMM_IMAGE}:${PMM_TAG}
-
Run PMM.
systemctl --user restart pmm-server
sleep 30
timeout 60 podman wait --condition=running pmm-server
Get expert help¶
If you need assistance, you can find comprehensive and free database knowledge on our community forum or blog posts. For professional support and services, contact our Percona Database Experts.