<div dir="ltr"><div>Hi,<br><br></div>We had a consulting partner who did the same for our company. This is his procedure and worked great:<br><br>How to migrate ovirt management engine<br>Packages<br>Ensure you have the same packages & versions installed on the destination hostas on the source, using 'rpm -qa | grep ovirt'. Make sure versions are 100%identical.<br>Default setup<br><br>Run 'engine-setup' on the destination host after installing the packages. Use<br>the following configuration:<br>1. Backup existing configuration<br>2. On the source host, do:<br>a. service ovirt-engine stop<br>b. service ovirt-engine-dwhd stop<br>c. mkdir ~/backup<br>d. tar -C /etc/pki/ovirt-engine -czpf ~/backup/ovirt-engine-pki.tar.gz .<br>e. tar -C /etc/ovirt-engine -czpf ~/backup/ovirt-engine-conf.tar.gz .<br>f. cd /usr/share/ovirt-engine/dbscripts <br>g. ./backup.sh<br>h. mv engine_*.sql ~/backup/engine.sql<br>3. You may also want to backup dwh & reports:<br>a. cd /usr/share/ovirt-engine/bin/<br>b. ./engine-backup.sh --mode=backup --scope=db --db-user=engine --db-password=XXX --file=/usr/tmp/rhevm-backups/engine-backup --log=/tmp/engine-backup.log<br>c. ./engine-backup.sh --mode=backup --scope=dwhdb --db-user=engine --db-password=XXX --file=/usr/tmp/rhevm-backups/dwh-backup --log=/tmp/engine-backup.log<br>d. ./engine-backup.sh --mode=backup --scope=reportsdb --db-user=engine --db-password=XXX --file=/usr/tmp/rhevm-backups/reports-backup --log=/tmp/engine-backup.log<br>4. Download these backup files, and copy them to the destination host.<br>Restore configuration<br>1. On the destination host, do:<br>a. service ovirt-engine stop<br>b. service ovirt-engine-dwhd stop<br>c. cd backup<br>d. tar -C /etc/pki/ovirt-engine -xzpf ovirt-engine-pki.tar.gz<br>e. tar -C /etc/ovirt-engine -xzpf ovirt-engine-conf.tar.gz<br>f. tar -xvjf engine-backup<br>g. tar -xvjf dwh-backup<br>h. tar -xvjf reports-backup<br> <br>Restore Database<br>1. On the destination host do:<br>a. su - postgres -c "psql -d template1 -c 'drop database engine;'"<br>b. su - postgres -c "psql -d template1 -c 'create database engine owner engine;'"<br>c. su - postgres<br>d. psql<br>e. \c engine<br>f. \i /path/to/backup/engine.sql<br>NOTE: in case you have issues logging in to the database, add the following<br> line to the pg_hba.conf file:<br> <br> host all engine <a href="http://127.0.0.1/32">127.0.0.1/32</a> trust<br><br>2. Fix engine password:<br>a. su - postgres<br>b. psql<br>c. alter user engine with password 'XXXXXXX';<br>Change ovirt hostname<br>On the destination host, run:<br><br> /usr/share/ovirt-engine/setup/bin/ovirt-engine-rename<br><br><br><br><br><br><br><br><br>NB:<br>Restoring the dwh/reports database is similar to steps 5-7, but omitted from<br>this document due to problems starting the reporting service.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-07 10:28 GMT+01:00 Sven Kieske <span dir="ltr"><<a href="mailto:s.kieske@mittwald.de" target="_blank">s.kieske@mittwald.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 07/11/14 10:10, Ml Ml wrote:<br>
> anyone? :)<br>
><br>
> Or are you only doing backups, no restore? :-P<br>
<br>
</span>gladly I just had to test disaster recovery and not actually<br>
perform it (yet) :D<br>
<br>
To be honest: I never have restored ovirt-engine with running vdsm<br>
hosts connected to it, sounds like a lot of fun, I see if I can<br>
grab some time and try this out myself :)<br>
<br>
By your description I guess you have nfs/iso domain on your engine host?<br>
why don't you just seperate it, so no need for remounts<br>
if your engine is destroyed.<br>
<br>
HTH<br>
<br>
--<br>
Mit freundlichen Grüßen / Regards<br>
<br>
Sven Kieske<br>
<br>
Systemadministrator<br>
Mittwald CM Service GmbH & Co. KG<br>
Königsberger Straße 6<br>
32339 Espelkamp<br>
T: <a href="tel:%2B49-5772-293-100" value="+495772293100">+49-5772-293-100</a><br>
F: <a href="tel:%2B49-5772-293-333" value="+495772293333">+49-5772-293-333</a><br>
<a href="https://www.mittwald.de" target="_blank">https://www.mittwald.de</a><br>
Geschäftsführer: Robert Meyer<br>
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen<br>
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>