Migration to PMG6

chebedewel

Active Member
Nov 16, 2018
20
5
43
Noumea, New Caledonia
www.mynet.nc
We are running 5 PMG5.2 (+ one dedicated for quarantine), the idea is to do a fresh install of PMG6, have it join the cluster, and after a week or so, move the licence from a 5.2 to this new one, and shutdown the first old one.
Can this be done ? Can this new PMG6 become the master (will the others PMG5.2 keep on working ?)
What would be the best way to upgrade the quarantine server, fresh install or upgrade ?
Thanks for your help and hints !
 
You didn't really answer any of my questions, so I followed the wiki.
I've tried twice the new installation method, with the same result for the licence (from the report):

# pmgsubscription get
key: pmgc-hidden
message: Server ID does not match
serverid: ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456
status: Invalid
url: https://www.proxmox.com/proxmox-mail-gateway/pricing

# resolve www.proxmox.com
www.proxmox.com. 900 IN A 79.133.36.244

ERROR: unknown error at /usr/share/perl5/PVE/Tools.pm line 120.


And when running pmgcm join <IP> (the master server is still running 5.2
[...]
copying master database finished (got 22126975 bytes)
delete local database
could not change directory to "/root": Permission denied
dropdb: could not connect to database template1: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Failed to start pmg-smtp-filter.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status pmg-smtp-filter.service' for details.
command 'systemctl start pmg-smtp-filter' failed: exit code 1
Failed to start pmgtunnel.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status pmgtunnel.service' for details.
command 'systemctl start pmgtunnel' failed: exit code 1
Failed to start pmgmirror.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status pmgmirror.service' for details.
command 'systemctl start pmgmirror' failed: exit code 1
Failed to start pmgpolicy.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status pmgpolicy.service' for details.
command 'systemctl start pmgpolicy' failed: exit code 1
cluster join failed: command 'dropdb -U postgres Proxmox_ruledb --if-exists' failed: exit code 1


What can I do to fix this ? is it possible ? maybe some information is missing from the wiki ?

Thanks for any help in this matter