How to upgrade Pmm2.9.1 to 2.17

I have configured pmm2.9.1

docker create -v /opt/prometheus/data -v /opt/consul-data -v /var/lib/mysql -v /var/lib/grafana --name pmm-data percona/pmm-server:2.9.1 /bin/true

docker run -d -p 80:80 -p 443:443 --volumes-from pmm-data --name pmm-server --restart always percona/pmm-server:2.9.1

Now we would like to upgrade to 2.17
how to upgrade it ?
and how can i restore my pmm-data on /srv mount point

I tried to upgrade it but old data is not coming .

please help

pmm2-upgrade.txt (3.7 KB)

Hi Gajendra,

PMM 2.9.1 has already kept data in /srv
So you should copy /srv folder from your pmm-server-backup into pmm-data container

docker cp pmm-server-backup:/srv /root/pmm-data-backup
docker cp /root/pmm-data-backup/srv pmm-data:/

Also please don’t forget to set correct folder permissions.

docker run --rm --volumes-from pmm-data -it percona/pmm-server:2.17.0 chown root:pmm /srv/clickhouse
...
1 Like