--Apple-Mail=_14BD1439-F894-4F7A-86E6-4A6E8ECFB2C9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
When attempting to do the restore to a clean engine install before =
engine setup is run as per the documentation, the restore ends with an =
error about restoring the history.
root@fai-kvm-engine backup]# engine-backup --mode=3Drestore =
--file=3D/backup/ovirt-backup07302017.bak =
--log=3D/usr/local/share/ovirtbackup.log --provision-db =
--provision-dwh-db --restore-permissions
Preparing to restore:
- Unpacking file '/backup/ovirt-backup07302017.bak'
Restoring:
- Files
Provisioning PostgreSQL users/databases:
- user 'engine', database 'engine'
- user 'ovirt_engine_history', database 'ovirt_engine_history'
Restoring:
- Engine database 'engine'
- Cleaning up temporary tables in engine database 'engine'
- Resetting DwhCurrentlyRunning in dwh_history_timekeeping in engine =
database
=
--------------------------------------------------------------------------=
----
Please note:
The engine database was backed up at 2017-07-30 23:05:43.000000000 -0800 =
.
Objects that were added, removed or changed after this date, such as =
virtual
machines, disks, etc., are missing in the engine, and will probably =
require
recovery or recreation.
=
--------------------------------------------------------------------------=
----
- DWH database 'ovirt_engine_history'
FATAL: Errors while restoring database ovirt_engine_history
[root@fai-kvm-engine backup]#=20
If I continue and run engine-setup, then it fails with the following.
It seems that you are running your engine inside of the hosted-engine VM =
and are not in "Global Maintenance" mode
------------------------------------------------------------------------
Gary Pedretty gary(a)ravnalaska.net =
<mailto:gary@eraalaska.net>
Systems Manager
www.flyravn.com =
<
http://www.flyravn.com/>
Ravn Alaska /\ 907-450-7251
5245 Airport Industrial Road / \/\ 907-450-7238 fax
Fairbanks, Alaska 99709 /\ / \ \ Second greatest commandment
Serving All of Alaska / \/ /\ \ \/\ =E2=80=9CLove your =
neighbor as
Green, green as far as the eyes can see yourself=E2=80=9D =
Matt 22:39
------------------------------------------------------------------------
On Aug 2, 2017, at 9:56 AM, Gary Pedretty <gary(a)ravnalaska.net>
wrote:
=20
When restoring a self hosted-engine from a backup, the documentation =
at
=20
=
https://www.ovirt.org/documentation/self-hosted/chap-Backing_up_and_Restor=
ing_an_EL-Based_Self-Hosted_Environment/ =
<
https://www.ovirt.org/documentation/self-hosted/chap-Backing_up_and_Resto=
ring_an_EL-Based_Self-Hosted_Environment/>
=20
Shows creating a new host server and then doing the hosted-engine =
=E2=80=94deploy
and manually installing the ovirt-engine instead of =
using the ovirt-engine-appliance. If the hosted-engine deployment that =
was backed up and is being restored, was created using the appliance, =
should I still follow this documentation and manually install the =
engine, run the restore, then do the engine-setup? Or should I use the =
ovirt-engine-appliance and just run the restore before the engine-setup?
>=20
>=20
> Gary
>=20
>=20
>=20
=20
=
------------------------------------------------------------------------
Gary Pedretty =
gary(a)ravnalaska.net <mailto:gary@eraalaska.net>
Systems Manager =
www.flyravn.com <
http://www.flyravn.com/>
Ravn Alaska /\ =
907-450-7251
5245 Airport Industrial Road / \/\ 907-450-7238
=
fax
Fairbanks, Alaska 99709 /\ / \ \ Second greatest =
commandment
Serving All of Alaska / \/ /\ \ \/\ =E2=80=9CLove your
=
neighbor as
Green, green as far as the eyes can see yourself=E2=80=9D
=
Matt 22:39
=
------------------------------------------------------------------------
=20
=20
=20
=20
=20
=20
=20
=20
=20
=20
=20
=20
=20
=20
=20
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
--Apple-Mail=_14BD1439-F894-4F7A-86E6-4A6E8ECFB2C9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html><head><meta http-equiv=3D"Content-Type"
content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">When attempting to do the restore to a clean engine install =
before engine setup is run as per the documentation, the restore ends =
with an error about restoring the history.<div class=3D""><br =
class=3D""></div><div class=3D""><br
class=3D""></div><div class=3D""><div=
class=3D""><br class=3D""><div
class=3D""><br class=3D""></div><div =
class=3D""><div class=3D"">root@fai-kvm-engine backup]#
engine-backup =
--mode=3Drestore --file=3D/backup/ovirt-backup07302017.bak =
--log=3D/usr/local/share/ovirtbackup.log --provision-db =
--provision-dwh-db --restore-permissions</div><div
class=3D"">Preparing =
to restore:</div><div class=3D"">- Unpacking file =
'/backup/ovirt-backup07302017.bak'</div><div =
class=3D"">Restoring:</div><div class=3D"">-
Files</div><div =
class=3D"">Provisioning PostgreSQL users/databases:</div><div
class=3D"">-=
user 'engine', database 'engine'</div><div
class=3D"">- user =
'ovirt_engine_history', database 'ovirt_engine_history'</div><div
=
class=3D"">Restoring:</div><div class=3D"">- Engine
database =
'engine'</div><div class=3D""> - Cleaning up
temporary tables in =
engine database 'engine'</div><div class=3D""> -
Resetting =
DwhCurrentlyRunning in dwh_history_timekeeping in engine =
database</div><div =
class=3D"">---------------------------------------------------------------=
---------------</div><div class=3D"">Please note:</div><div
class=3D""><br=
class=3D""></div><div class=3D"">The engine database
was backed up at =
2017-07-30 23:05:43.000000000 -0800 .</div><div class=3D""><br =
class=3D""></div><div class=3D"">Objects that were
added, removed or =
changed after this date, such as virtual</div><div
class=3D"">machines, =
disks, etc., are missing in the engine, and will probably =
require</div><div class=3D"">recovery or
recreation.</div><div =
class=3D"">---------------------------------------------------------------=
---------------</div><div class=3D"">- DWH database =
'ovirt_engine_history'</div><div class=3D"">FATAL: Errors
while =
restoring database ovirt_engine_history</div><div =
class=3D"">[root@fai-kvm-engine backup]# </div><div
class=3D""><br =
class=3D""></div><div class=3D""><br
class=3D""></div><div class=3D""><br =
class=3D""></div><div class=3D""><br
class=3D""></div><div class=3D""><br =
class=3D""></div><div class=3D""><div
class=3D"">If I continue and run =
engine-setup, then it fails with the following.</div><div
class=3D""><br =
class=3D""></div><div class=3D"">It seems that you are
running your =
engine inside of the hosted-engine VM and are not in "Global =
Maintenance" mode<br class=3D""></div></div><div
class=3D""><br =
class=3D""></div><div class=3D""><br
class=3D""></div><div class=3D""><br =
class=3D""></div><div class=3D""><br
class=3D""></div><div class=3D"">
<div style=3D"color: rgb(0, 0, 0); letter-spacing: normal; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;" class=3D""><div style=3D"color: rgb(0, 0,
0); =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div style=3D"color: rgb(0, 0, 0); letter-spacing: normal;
=
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;" class=3D""><div style=3D"color: rgb(0, 0,
0); =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div style=3D"color: rgb(0, 0, 0); letter-spacing: normal;
=
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;" class=3D""><div style=3D"text-align: start;
=
text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space;" class=3D""><div =
style=3D"text-align: start; text-indent: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div style=3D"text-align: start; text-indent: 0px;
word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;" class=3D""><div style=3D"text-align: start;
=
text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space;" class=3D""><div =
style=3D"text-align: start; text-indent: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div style=3D"text-align: start; text-indent: 0px;
word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;" class=3D""><div style=3D"text-align: start;
=
text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space;" class=3D""><font
face=3D"Menlo" =
style=3D"color: rgb(0, 0, 0); font-size: 12px; letter-spacing: normal; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><div =
class=3D"">---------------------------------------------------------------=
---------</div><div class=3D"">Gary Pedretty
=
=
<a =
href=3D"mailto:gary@eraalaska.net" =
class=3D"">gary(a)ravnalaska.net</a></div><div
class=3D"">Systems Manager =
=
=
<a href=3D"http://www.flyravn.com" =
class=3D"">www.flyravn.com</a></div><div
class=3D"">Ravn Alaska =
=
/\
=
907-450-7251</div><div class=3D"">5245 Airport
Industrial =
Road / \/\
=
907-450-7238 fax</div><div
class=3D"">Fairbanks, Alaska =
99709 /\ /
\ \ =
Second greatest commandment</div></font><font face=3D"Monaco" =
class=3D""><span style=3D"font-size: 12px;"
class=3D"">Serving All of =
Alaska / \/ /\
\ \/\ =
=E2=80=9CLove your neighbor as</span></font><br =
style=3D"font-family: Monaco;" class=3D""><font
face=3D"Menlo" =
style=3D"color: rgb(0, 0, 0); letter-spacing: normal; text-transform: =
none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: =
0px;" class=3D""><span style=3D"font-size: 12px;"
class=3D"">Green, =
green as far as the eyes can see =
yourself=E2=80=9D Matt 22:39</span></font><div
style=3D"color: =
rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: =
Menlo;" class=3D""></div><font face=3D"Menlo"
style=3D"font-size: 12px;" =
class=3D""></font><span style=3D"color: rgb(0, 0, 0);
letter-spacing: =
normal; text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; font-size: 12px;" class=3D""><font =
face=3D"Menlo" class=3D""><div =
class=3D"">---------------------------------------------------------------=
---------</div></font></span><div style=3D"color: rgb(0, 0, 0);
=
letter-spacing: normal; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><font
=
face=3D"Menlo" style=3D"font-size: 12px;"
class=3D""><br =
class=3D""></font></div></div><span style=3D"color:
rgb(0, 0, 0); =
letter-spacing: normal; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12px;" =
class=3D""><br
class=3D"Apple-interchange-newline"></span></div><span =
style=3D"color: rgb(0, 0, 0); letter-spacing: normal; text-transform: =
none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: =
0px; font-size: 12px;" class=3D""><br =
class=3D"Apple-interchange-newline"></span></div><span
style=3D"color: =
rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: =
12px;" class=3D""><br
class=3D"Apple-interchange-newline"></span></div><br=
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"><br =
class=3D"Apple-interchange-newline">
</div>
<br class=3D""><div><blockquote type=3D"cite"
class=3D""><div =
class=3D"">On Aug 2, 2017, at 9:56 AM, Gary Pedretty <<a =
href=3D"mailto:gary@ravnalaska.net"
class=3D"">gary(a)ravnalaska.net</a>&gt;=
wrote:</div><br class=3D"Apple-interchange-newline"><div
class=3D""><meta=
http-equiv=3D"Content-Type" content=3D"text/html charset=3Dutf-8" =
class=3D""><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; -webkit-line-break: after-white-space;" class=3D"">When restoring
=
a self hosted-engine from a backup, the documentation at<div =
class=3D""><br class=3D""></div><div
class=3D""><a =
href=3D"https://www.ovirt.org/documentation/self-hosted/chap-Backing...
d_Restoring_an_EL-Based_Self-Hosted_Environment/" =
class=3D"">https://www.ovirt.org/documentation/self-hosted/c...
_and_Restoring_an_EL-Based_Self-Hosted_Environment/</a></div><div =
class=3D""><br class=3D""></div><div
class=3D"">Shows creating a new =
host server and then doing the hosted-engine =E2=80=94deploy and =
manually installing the ovirt-engine instead of using the =
ovirt-engine-appliance. If the hosted-engine deployment that was =
backed up and is being restored, was created using the appliance, should =
I still follow this documentation and manually install the engine, run =
the restore, then do the engine-setup? Or should I use the =
ovirt-engine-appliance and just run the restore before the =
engine-setup?</div><div class=3D""><br
class=3D""></div><div =
class=3D""><br class=3D""></div><div
class=3D"">Gary</div><div =
class=3D""><br class=3D""></div><div
class=3D""><br class=3D""><div =
class=3D""><br class=3D""></div><div
class=3D""><br class=3D""><div =
class=3D"">
<div style=3D"letter-spacing: normal; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div style=3D"letter-spacing: normal; text-align: start;
=
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;" class=3D""><div style=3D"letter-spacing:
normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;" class=3D""><div style=3D"letter-spacing:
normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;" class=3D""><div style=3D"letter-spacing:
normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;" class=3D""><div style=3D"text-align: start;
=
text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space;" class=3D""><div =
style=3D"text-align: start; text-indent: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div style=3D"text-align: start; text-indent: 0px;
word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;" class=3D""><div style=3D"text-align: start;
=
text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space;" class=3D""><div =
style=3D"text-align: start; text-indent: 0px; word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div style=3D"text-align: start; text-indent: 0px;
word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;" class=3D""><div style=3D"text-align: start;
=
text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space;" class=3D""><font
face=3D"Menlo" =
style=3D"font-size: 12px; letter-spacing: normal; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" =
class=3D""><div =
class=3D"">---------------------------------------------------------------=
---------</div><div class=3D"">Gary Pedretty
=
=
<a =
href=3D"mailto:gary@eraalaska.net" =
class=3D"">gary(a)ravnalaska.net</a></div><div
class=3D"">Systems Manager =
=
=
<a
href=3D"http://www.flyravn.com/" =
class=3D"">www.flyravn.com</a></div><div
class=3D"">Ravn Alaska =
=
/\
=
907-450-7251</div><div class=3D"">5245 Airport
Industrial =
Road / \/\
=
907-450-7238 fax</div><div
class=3D"">Fairbanks, Alaska =
99709 /\ /
\ \ =
Second greatest commandment</div></font><font face=3D"Monaco" =
class=3D""><span style=3D"font-size: 12px;"
class=3D"">Serving All of =
Alaska / \/ /\
\ \/\ =
=E2=80=9CLove your neighbor as</span></font><br =
style=3D"font-family: Monaco;" class=3D""><font
face=3D"Menlo" =
style=3D"letter-spacing: normal; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" =
class=3D""><span style=3D"font-size: 12px;"
class=3D"">Green, green as =
far as the eyes can see
=
yourself=E2=80=9D Matt 22:39</span></font><div
style=3D"letter-spacing: =
normal; text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; font-family: Menlo;" =
class=3D""></div><font face=3D"Menlo"
style=3D"font-size: 12px;" =
class=3D""></font><span style=3D"letter-spacing: normal;
text-transform: =
none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: =
0px; font-size: 12px;" class=3D""><font face=3D"Menlo"
class=3D""><div =
class=3D"">---------------------------------------------------------------=
---------</div></font></span><div style=3D"letter-spacing:
normal; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;" class=3D""><font
face=3D"Menlo" =
style=3D"font-size: 12px;" class=3D""><br =
class=3D""></font></div></div><span
style=3D"letter-spacing: normal; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; font-size: 12px;" class=3D""><br =
class=3D"Apple-interchange-newline"></span></div><span =
style=3D"letter-spacing: normal; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: =
12px;" class=3D""><br =
class=3D"Apple-interchange-newline"></span></div><span =
style=3D"letter-spacing: normal; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: =
12px;" class=3D""><br
class=3D"Apple-interchange-newline"></span></div><br=
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline"><br =
class=3D"Apple-interchange-newline">
</div>
<br =
class=3D""></div></div></div>_____________________________________________=
__<br class=3D"">Users mailing list<br class=3D""><a =
href=3D"mailto:Users@ovirt.org"
class=3D"">Users(a)ovirt.org</a><br =
class=3D"">http://lists.ovirt.org/mailman/listinfo/users<br =
class=3D""></div></blockquote></div><br =
class=3D""></div></div></div></body></html>=
--Apple-Mail=_14BD1439-F894-4F7A-86E6-4A6E8ECFB2C9--