--_000_594A1C0F4D3E4A4984BC1026D9911258mboxde_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Daniel Helgenberger
m box bewegtbild GmbH
ACKERSTR. 19 P: +49/30/2408781-22
D-10115 BERLIN F: +49/30/2408781-10
www.m-box.de<http://www.m-box.de
www.monkeymen.tv<http://www.monkeymen.tv
Gesch?ftsf?hrer: Martin Retschitzegger / Michaela G?llner
Handeslregister: Amtsgericht Charlottenburg / HRB 112767
On 07.11.2014, at 15:24, Koen Vanoppen <vanoppen.koen@gmail.com<mailto:vano=
ppen.koen(a)gmail.com>> wrote:
Hi,
We had a consulting partner who did the same for our company. This is his p=
rocedure and worked great:
How to migrate ovirt management engine
Packages
Ensure you have the same packages & versions installed on the destination h=
ostas on the source, using 'rpm -qa | grep ovirt'. Make sure versions are 1=
00%identical.
Default setup
Run 'engine-setup' on the destination host after installing the packages. U=
se
the following configuration:
1. Backup existing configuration
2. On the source host, do:
You might want your consultant take a look on [1]...
Steps a-3d:
engine-backup mode=3Dbackup --file=3D~/ovirt-engine-source --log=3Dbackup.l=
og
a. service ovirt-engine stop
b. service ovirt-engine-dwhd stop
c. mkdir ~/backup
d. tar -C /etc/pki/ovirt-engine -czpf ~/backup/ovirt-engine-pki.tar.gz .
e. tar -C /etc/ovirt-engine -czpf ~/backup/ovirt-engine-conf.tar.gz .
f. cd /usr/share/ovirt-engine/dbscripts
g. ./backup.sh
h. mv engine_*.sql ~/backup/engine.sql
3. You may also want to backup dwh & reports:
a. cd /usr/share/ovirt-engine/bin/
b. ./engine-backup.sh --mode=3Dbackup --scope=3Ddb --db-user=3Dengine --=
db-password=3DXXX --file=3D/usr/tmp/rhevm-backups/engine-backup --log=3D/tm=
p/engine-backup.log
c. ./engine-backup.sh --mode=3Dbackup --scope=3Ddwhdb --db-user=3Dengine=
--db-password=3DXXX --file=3D/usr/tmp/rhevm-backups/dwh-backup --log=3D/tm=
p/engine-backup.log
d. ./engine-backup.sh --mode=3Dbackup --scope=3Dreportsdb --db-user=3Den=
gine --db-password=3DXXX --file=3D/usr/tmp/rhevm-backups/reports-backup --l=
og=3D/tmp/engine-backup.log
4. Download these backup files, and copy them to the destination host.
Restore configuration
1. On the destination host, do:
Again, steps a-h, basically
engine-setup
engine-cleanup
engine-backup mode=3Drestore --file=3D~/ovirt-engine-source --log=3Dbackup.=
log
also, I would run a second
engine-setup
After that, you should be good to go..
Of course, depending on your previous engine setup this could be a little m=
ore complicated. Still, quite strait forward.
[1]
http://www.ovirt.org/Ovirt-engine-backup
a. service ovirt-engine stop
b. service ovirt-engine-dwhd stop
c. cd backup
d. tar -C /etc/pki/ovirt-engine -xzpf ovirt-engine-pki.tar.gz
e. tar -C /etc/ovirt-engine -xzpf ovirt-engine-conf.tar.gz
f. tar -xvjf engine-backup
g. tar -xvjf dwh-backup
h. tar -xvjf reports-backup
=20
Restore Database
1. On the destination host do:
a. su - postgres -c "psql -d template1 -c 'drop database engine;'"
b. su - postgres -c "psql -d template1 -c 'create database engine owner=
engine;'"
c. su - postgres
d. psql
e. \c engine
f. \i /path/to/backup/engine.sql
NOTE: in case you have issues logging in to the database, add the following
line to the pg_hba.conf file:
host all engine 127.0.0.1/32<http://127.0.0.1/32> tr=
ust
2. Fix engine password:
a. su - postgres
b. psql
c. alter user engine with password 'XXXXXXX';
Change ovirt hostname
On the destination host, run:
/usr/share/ovirt-engine/setup/bin/ovirt-engine-rename
NB:
Restoring the dwh/reports database is similar to steps 5-7, but omitted fro=
m
this document due to problems starting the reporting service.
2014-11-07 10:28 GMT+01:00 Sven Kieske <s.kieske@mittwald.de<mailto:s.kiesk=
e(a)mittwald.de>>:
On 07/11/14 10:10, Ml Ml wrote:
anyone? :)
Or are you only doing backups, no restore? :-P
gladly I just had to test disaster recovery and not actually
perform it (yet) :D
To be honest: I never have restored ovirt-engine with running vdsm
hosts connected to it, sounds like a lot of fun, I see if I can
grab some time and try this out myself :)
By your description I guess you have nfs/iso domain on your engine host?
why don't you just seperate it, so no need for remounts
if your engine is destroyed.
HTH
--
Mit freundlichen Gr??en / Regards
Sven Kieske
Systemadministrator
Mittwald CM Service GmbH & Co. KG
K?nigsberger Stra?e 6
32339 Espelkamp
T: +49-5772-293-100<tel:%2B49-5772-293-100
F:
+49-5772-293-333<tel:%2B49-5772-293-333
https://www.mittwald.de
Gesch?ftsf?hrer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplement?rin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
_______________________________________________
Users mailing list
Users@ovirt.org<mailto:Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@ovirt.org<mailto:Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
--_000_594A1C0F4D3E4A4984BC1026D9911258mboxde_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html
<head
<meta http-equiv=3D"Content-Type"
content=3D"text/html; charset=3Dus-ascii"=
</head
<body
dir=3D"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=3D"Apple-tab-span" style=3D"white-space:pre"> =
</span>P: +49/30/2408781-22</div
<div>D-10115 BERLIN<span class=3D"Apple-tab-span"
style=3D"white-space:pre"=
> </span>F: +49/30/2408781-10</div
<div><br
</div
<div><a
href=3D"http://www.m-box.de">www.m-box.de</a> </div
<div><a
href=3D"http://www.monkeymen.tv">www.monkeymen.tv</a></div
<div><br
</div
<div>Geschäftsführer: Martin Retschitzegger / Michaela
Gölln=
er</div
<div>Handeslregister:
Amtsgericht Charlottenburg / HRB 112767</div
</div
On 07.11.2014, at 15:24, Koen
Vanoppen <<a href=3D"mailto:vanoppen.koen@=
gmail.com">vanoppen.koen(a)gmail.com</a>&gt; wrote:<br
<br
</div
<blockquote type=3D"cite"
<div
<div dir=3D"ltr"
<div>Hi,<br
<br
</div
We had a consulting partner who did the same for our company.
This is his p=
rocedure and worked great:<br
<br
How to
migrate ovirt management engine<br
Packages<br
Ensure you have the same packages
& versions installed on the destinati=
on hostas on the source, using 'rpm -qa | grep ovirt'. Make sure versions a=
re 100%identical.<br
Default setup<br
<br
Run 'engine-setup' on the
destination host after installing the packages. U=
se<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=3Dbackup --file=3D~/ovirt-engine-source --log=3Dbac=
kup.log</div
<div><br
<blockquote type=3D"cite"
<div
<div
dir=3D"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-engi=
ne-pki.tar.gz .<br
e. tar
-C /etc/ovirt-engine -czpf ~/backup/ovirt-engine-c=
onf.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=3Dbackup --scope=3Ddb --db-u=
ser=3Dengine --db-password=3DXXX --file=3D/usr/tmp/rhevm-backups/engine-bac=
kup --log=3D/tmp/engine-backup.log<br
c. ./engine-backup.sh --mode=3Dbackup --scope=3Ddwhdb
--d=
b-user=3Dengine --db-password=3DXXX --file=3D/usr/tmp/rhevm-backups/dwh-bac=
kup --log=3D/tmp/engine-backup.log<br
d. ./engine-backup.sh --mode=3Dbackup
--scope=3Dreportsdb=
--db-user=3Dengine --db-password=3DXXX --file=3D/usr/tmp/rhevm-backups/rep=
orts-backup --log=3D/tmp/engine-backup.log<br
4. Download these backup files, and copy them to the
dest=
ination 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=3D"background-color: rgba(255, 255, 255,
0);">engine-backu=
p mode=3Drestore --file=3D~/ovirt-engine-source --log=3Dbackup.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 lit=
tle more complicated. Still, quite strait forward.</div
<div>[1] <a
href=3D"http://www.ovirt.org/Ovirt-engine-backup">http://w=
ww.ovirt.org/Ovirt-engine-backup</a></div
<blockquote type=3D"cite"
<div
<div
dir=3D"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.ta=
r.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 data=
base engine;'"<br
b.
su - postgres -c "psql -d template1 -c 'cre=
ate 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=3D"http://127.0.0.1/32">127.0.0.1/3=
2</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 fro=
m<br
this document due to problems starting the reporting
service.<br
<br
</div
<div
class=3D"gmail_extra"><br
<div
class=3D"gmail_quote">2014-11-07 10:28 GMT+01:00 Sven Kieske
<span=
dir=3D"ltr"><<a href=3D"mailto:s.kieske@mittwald.de"
target=3D"_blank">=
s.kieske@mittwald.de</a>></span>:<br
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0
.8ex;border-left:1p=
x #ccc solid;padding-left:1ex"
<span
class=3D""><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=3D"tel:%2B49-5772-293-100"
value=3D"+495772293100">+49-5=
772-293-100</a><br
F: <a
href=3D"tel:%2B49-5772-293-333"
value=3D"+495772293333">+49-5=
772-293-333</a><br
<a
href=3D"https://www.mittwald.de"
target=3D"_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 Oeynh=
ausen<br
<div
class=3D"HOEnZb"
<div
class=3D"h5">_______________________________________________<br
Users mailing list<br
<a
href=3D"mailto:Users@ovirt.org">Users@ovirt.org</a><br
<a
href=3D"http://lists.ovirt.org/mailman/listinfo/users"
target=3D"_blank"=
>http://lists.ovirt.org/mailman/listinfo/users</a><br
</div
</div
</blockquote
</div
<br
</div
</div
</blockquote
<blockquote
type=3D"cite"
<div><span>_______________________________________________</span><br
<span>Users mailing list</span><br
<span><a
href=3D"mailto:Users@ovirt.org">Users@ovirt.org</a></span><br
<span><a
href=3D"http://lists.ovirt.org/mailman/listinfo/users">http:...
s.ovirt.org/mailman/listinfo/users</a></span><br
</div
</blockquote
</div
</div
</body
</html
--_000_594A1C0F4D3E4A4984BC1026D9911258mboxde_--