<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body dir="auto">
<div><span></span></div>
<div>
<div><br>
</div>
<div>
<div>
<div>Daniel Helgenberger</div>
<div>m box bewegtbild GmbH</div>
<div><br>
</div>
<div>ACKERSTR. 19<span class="Apple-tab-span" style="white-space:pre"> </span>P: +49/30/2408781-22</div>
<div>D-10115 BERLIN<span class="Apple-tab-span" style="white-space:pre"> </span>F: +49/30/2408781-10</div>
<div><br>
</div>
<div><a href="http://www.m-box.de">www.m-box.de</a> </div>
<div><a href="http://www.monkeymen.tv">www.monkeymen.tv</a></div>
<div><br>
</div>
<div>Geschäftsführer: Martin Retschitzegger / Michaela Göllner</div>
<div>Handeslregister: Amtsgericht Charlottenburg / HRB 112767</div>
</div>
On 07.11.2014, at 15:24, Koen Vanoppen <<a href="mailto:vanoppen.koen@gmail.com">vanoppen.koen@gmail.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<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>
</div>
</div>
</blockquote>
You might want your consultant take a look on [1]...<br>
Steps a-3d:
<div>engine-backup mode=backup --file=~/ovirt-engine-source --log=backup.log</div>
<div><br>
<blockquote type="cite">
<div>
<div dir="ltr">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>
</div>
</div>
</blockquote>
<div>Again, steps a-h, basically</div>
<div>engine-setup</div>
<div>engine-cleanup</div>
<div><span style="background-color: rgba(255, 255, 255, 0);">engine-backup mode=restore --file=~/ovirt-engine-source --log=backup.log</span></div>
<div><br>
</div>
<div>also, I would run a second </div>
<div>engine-setup</div>
<div>After that, you should be good to go..</div>
<div><br>
</div>
<div>Of course, depending on your previous engine setup this could be a little more complicated. Still, quite strait forward.</div>
<div>[1] <a href="http://www.ovirt.org/Ovirt-engine-backup">http://www.ovirt.org/Ovirt-engine-backup</a></div>
<blockquote type="cite">
<div>
<div dir="ltr">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>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>Users mailing list</span><br>
<span><a href="mailto:Users@ovirt.org">Users@ovirt.org</a></span><br>
<span><a href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a></span><br>
</div>
</blockquote>
</div>
</div>
</body>
</html>