Restore of Satellite 6.3 server isn't working
Section 7.2 of the Satellite Server 6.3 Administration Guide needs to be more thoroughly tested, I think. I spun up a new copy of the Satellite 6.3 server we have in a new Amazon VPC, as our old VPC (default) had IP overlaps with our on-premises network. So far, my process has been:
- Take a backup of the old satellite 6.3 server
- Copy the backup to S3
- Spin up a new satellite server with our Ansible playbook
- Copy the backup from S3
- Restore using satellite-restore
The failure, while restoring, is:
Failed 'runuser - postgres -c 'psql -f ./pg_globals.dump postgres 2>/dev/null'' with exit code 1
Running 'runuser -postgres -c pwd' returns '/var/lib/pgsql'. The solution is to copy *.dump to /var/lib/pgsql before running satellite-restore.