Migrate PMM 2 to PMM 3¶
PMM 3 introduces significant architectural changes that require gradual transition from PMM 2:
Step 1: Upgrade PMM 2 Server to the latest version¶
Before upgrading to PMM 3, ensure your PMM 2 Server is running the latest version:
- From the Home page, scroll to the PMM Upgrade panel and click the Refresh button to manually check for updates.
- If an update is available, click the Update button to install the latest PMM 2 version.
- Verify the update was successful by checking the version number after the update completes.
Step 2: Migrate PMM 2 Server to PMM 3¶
Follow these manual steps to upgrade your PMM 2 Server to PMM 3:
-
Stop all PMM Server services:
docker exec -t <pmm-server> supervisorctl stop all
-
Transfer
/srv
directory ownership:docker exec -t <pmm-server> chown -R pmm:pmm /srv
-
List and note down your Docker volume:
docker inspect -f '{{ range .Mounts }}{{ if eq .Type "volume" }}{{ .Name }}{{ "\n" }}{{ end }}{{ end }}' <pmm-server>
-
Stop and remove existing container:
docker stop pmm-server && docker rm pmm-server
-
Pull PMM 3 Server image:
docker pull percona/pmm-server:3
-
Run new container with existing volume:
docker run -d -v pmm-server-data:/srv -p 443:8443 --name pmm-server --restart always percona/pmm-server:3
Follow these manual steps to upgrade your PMM 2 Server to PMM 3:
-
Stop all PMM Server services:
docker exec -t <pmm-server> supervisorctl stop all
-
Transfer
/srv
directory ownership:docker exec -t <pmm-server> chown -R pmm:pmm /srv
-
Identify data container using either:
docker ps -a --filter "status=created"
OR
docker inspect -f '{{ range .Mounts }}{{ if eq .Type "volume" }}{{ .Name }}{{ "\n" }}{{ end }}{{ end }}' <pmm-server>
-
Stop and remove existing container:
docker stop pmm-server && docker rm pmm-server
-
Pull PMM 3 Server image:
docker pull percona/pmm-server:3
-
Run new container with existing data container:
docker run -d --volumes-from pmm-server-data -p 443:8443 --name pmm-server --restart always percona/pmm-server:3
Step 3: Migrate PMM 2 Clients to PMM 3¶
Important
PMM 3 Server provides limited support for PMM 2 Clients (metrics and Query Analytics only). This support will be removed in PMM 3.3.
Depending on your initial installation method, update PMM Clients using your operating system’s package manager or by updating from a tarball. For detailed instructions, see the Upgrade PMM Client topic.
Post-migration steps¶
After you finish migrating:
- Verify that all PMM Clients are up to date by checking PMM Configuration > Updates.
- Confirm all previously monitored services are reporting correctly to the new PMM 3 Server by reviewing Configuration > PMM Inventory > Services.
- Check the dashboards to make sure you’re receiving the metrics information and QAN data.
Get expert help¶
If you need assistance, visit the community forum for comprehensive and free database knowledge, or contact our Percona Database Experts for professional support and services.