
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