Skip to content

Upgrade PMM Server using Podman

Before you begin

  1. Create a backup before upgrading, as downgrades are not possible. Therefore, reverting to a previous version requires an backup made prior to the upgrade.

  2. Verify your current PMM version: Check your current PMM version by navigating to PMM Configuration > Updates or by running the following command. If accessing remotely, replace localhost with the appropriate IP address or server name:

    podman exec -it pmm-server \
    curl -ku admin:admin https://localhost/v1/version
    

Upgrade steps

{.power-number} 1. Back up your data.

  1. Update PMM tag by editing ~/.config/pmm-server/env file and running the following command to set the latest release version:
sed -i "s/PMM_TAG=.*/PMM_TAG=3.0.0/g" ~/.config/pmm-server/env
  1. Pre-pull the new image to ensure a faster restart:

    sh source ~/.config/pmm-server/env podman pull ${PMM_IMAGE}:${PMM_TAG}

  2. Restart PMM Server:

    sh systemctl --user restart pmm-server

  3. After the upgrade, verify that PMM Server is running correctly:

    podman ps | grep pmm-server
    
  4. Check the logs for any errors:

    podman logs 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.