<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 2016-06-27 19:15, Fernando Fuentes
wrote:<br>
</div>
<blockquote
cite="mid:1467047727.452431.649895969.3DAA7E9C@webmail.messagingengine.com"
type="cite">
<pre wrap="">Ricky,
I am under the impression that the DB migration was implemented in
release 3.6.6.
I might be wrong.
<a class="moz-txt-link-freetext" href="https://www.ovirt.org/release/3.6.6/">https://www.ovirt.org/release/3.6.6/</a>
What's New in 3.6.6?
Enhancement
oVirt Engine
BZ 1241149 [RFE] Provide way to preform in-cluster upgrade of hosts from
el6->el7.
BZ 1332463 [RFE] restore: ensure that 3.6 on el6 backup can be restored
on 3.6 on el7
Feature:
Allow engine-backup on el7 to restore backups taken on el6.
Reason:
engine 4.0 does not support el6. Users that want to upgrade from 3.6 on
el6 to 4.0 on el7 have to do this by backing up the engine on 3.6/el6
and restore on 4.0/el7.
This feature, backported from 4.0, allows to do such a migration also in
3.6.
Result:
Using this flow, it's possible to migrate a el6 setup to el7:
On the existing engine machine run:
1. engine-backup --mode=backup --file=engine-3.6.bck --log=backup.log
On a new el7 machine:
2. Install engine, including dwh if it was set up on el6.
3. Copy engine-3.6.bck to the el7 machine
4. engine-backup --mode=restore --file=engine-3.6.bck --log=restore.log
--provision-db --no-restore-permissions
5. engine-setup
Check engine-backup documentation for other options, including using
remote databases, extra grants/permissions, etc.
</pre>
</blockquote>
<br>
One step forward, two backward....<br>
<br>
<tt>- upgrade the old EL6 to ovirt 3.6.6</tt><tt><br>
</tt><tt>- engine-backup --mode=backup --file=engine-backup.tar.gz
--log=backup.log</tt><tt><br>
</tt><tt>- install </tt><tt><a class="moz-txt-link-freetext"
href="http://resources.ovirt.org/pub/yum-repo/ovirt-release40.rpm">http://resources.ovirt.org/pub/yum-repo/ovirt-release40.rpm</a></tt><tt>,
to have ovirt-engine 4.0.0.6.</tt><tt><br>
</tt><tt>- yum install ovirt-engine</tt><tt><br>
</tt><tt>- </tt><code>engine-backup --mode=restore
--no-restore-permissions --provision-db
--file=engine-backup.tar.gz --log=engine-backup-restore.log<br>
<br>
Then I got this error...<br>
<br>
"Preparing to restore:<br>
- Unpacking file 'engine-backup.tar.gz'<br>
Restoring:<br>
- Files<br>
------------------------------------------------------------------------------<br>
Please note:<br>
<br>
Operating system is different from the one used during backup.<br>
Current operating system: centos7<br>
Operating system at backup: centos6<br>
<br>
Apache httpd configuration will not be restored.<br>
You will be asked about it on the next engine-setup run.<br>
------------------------------------------------------------------------------<br>
Provisioning PostgreSQL users/databases:<br>
- user 'engine', database 'engine'<br>
Restoring:<br>
FATAL: Can't connect to database 'ovirt_engine_history'. Please
see '/usr/bin/engine-backup --help'."<br>
<br>
I have attached the engine-backup-restore.log.<br>
<br>
//Ricky<br>
<br>
<br>
</code>
</body>
</html>