hosted-engine restore

--Apple-Mail=_8210B568-81DD-4734-AAF7-CB9689618AB3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 When restoring a self hosted-engine from a backup, the documentation at = 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/> 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? Gary ------------------------------------------------------------------------ Gary Pedretty gary@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 ------------------------------------------------------------------------ --Apple-Mail=_8210B568-81DD-4734-AAF7-CB9689618AB3 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 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_up_an= d_Restoring_an_EL-Based_Self-Hosted_Environment/" = class=3D"">https://www.ovirt.org/documentation/self-hosted/chap-Backing_up= _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"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@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></div></body></html>= --Apple-Mail=_8210B568-81DD-4734-AAF7-CB9689618AB3--

--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@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@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@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@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@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@ravnalaska.net</a>>= 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_up_an= d_Restoring_an_EL-Based_Self-Hosted_Environment/" = class=3D"">https://www.ovirt.org/documentation/self-hosted/chap-Backing_up= _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@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@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--

On Thu, Aug 3, 2017 at 4:32 AM, Gary Pedretty <gary@ravnalaska.net> wrote:
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=restore --file=/backup/ovirt-backup07302017.bak --log=/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
Please check/share the restore log.
[root@fai-kvm-engine backup]#
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
Perhaps you ran engine-setup more than once? The above error message should not happen on the first (successful) run immediately after restore.
------------------------------------------------------------------------ Gary Pedretty gary@ravnalaska.net Systems Manager 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 / \/ /\ \ \/\ “Love your neighbor as Green, green as far as the eyes can see yourself” Matt 22:39 ------------------------------------------------------------------------
On Aug 2, 2017, at 9:56 AM, Gary Pedretty <gary@ravnalaska.net> wrote:
When restoring a self hosted-engine from a backup, the documentation at
https://www.ovirt.org/documentation/self-hosted/chap-Backing_up_and_Restorin...
Shows creating a new host server and then doing the hosted-engine —deploy 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?
There is no inherent difference between using the appliance and not using it. Recent versions, though, only allow using the appliance - so now you really have no option. You do have to make sure you do not ask 'hosted-engine --deploy' to automatically run engine-setup - you have to manually login, restore, then run engine-setup. Best,
Gary
------------------------------------------------------------------------ Gary Pedretty gary@ravnalaska.net Systems Manager 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 / \/ /\ \ \/\ “Love your neighbor as Green, green as far as the eyes can see yourself” Matt 22:39 ------------------------------------------------------------------------
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Didi
participants (2)
-
Gary Pedretty
-
Yedidyah Bar David