Hello,
i setup an new more powerful maschine in a diffrent datacenter and want to
migrate my settings of my old foreman to this.
Both system are centos 6.6 with foreman 1.7.3 and postgres 9.4 (want to use
puppetdb 2.3)
Iam not the postgres pro, switch to it to save resource (foreman + puppetdb
= 1 postgres)
- Problem (data-migration):
$old_one: pg_dump foreman > foreman.old.server.sql
$new_one: echo "DROP DATABASE foreman;" | psql
$new_one: psql CREATE DATABASE foreman;
$new_one: cat foreman_old.server.sql | psql foreman
That creates the data, not al. Reports are empty, but the sql-file had
reports. Hosts are empty too.
and so one. I restart httpd already.
- Maybe Problem:
old host had fqdn foreman.companyname.foo
new host had fqdn forman1.dc1.companyname.foo
Maybe i should take care for something else?! Any hints?
···
--
Kind Regards
*Karsten Horsmann*
> Hello,
>
> i setup an new more powerful maschine in a diffrent datacenter and want
> to migrate my settings of my old foreman to this.
>
> Both system are centos 6.6 with foreman 1.7.3 and postgres 9.4 (want to
> use puppetdb 2.3)
> Iam not the postgres pro, switch to it to save resource (foreman +
> puppetdb = 1 postgres)
>
>
> 1. Problem (data-migration):
>
> $old_one: pg_dump foreman > foreman.old.server.sql
> $new_one: echo "DROP DATABASE foreman;" | psql
> $new_one: psql CREATE DATABASE foreman;
> $new_one: cat foreman_old.server.sql | psql foreman
You could try the backup/restore instructions here, which use a
different pg_dump method and storage format - it may help.
http://theforeman.org/manuals/1.7/index.html#5.5.1Backup
> 2. Maybe Problem:
> old host had fqdn foreman.companyname.foo
> new host had fqdn forman1.dc1.companyname.foo
I'd avoid doing this if you can help it, but if you do try then take
note of the following:
http://projects.theforeman.org/projects/foreman/wiki/Troubleshooting#How-do-I-change-the-FQDN-of-the-Foreman-host
···
On 27/03/15 08:21, Karsten Horsmann wrote:
–
Dominic Cleal
Red Hat Engineering