<div>Thanks for explanation, Simone.</div><div> </div><div>02.09.2016, 10:38, "Simone Tiraboschi" &lt;stirabos@redhat.com&gt;:</div><blockquote type="cite"><div> <div> <div>On Fri, Sep 2, 2016 at 8:20 AM, <span>&lt;<a href="mailto:aleksey.maksimov@it-kb.ru" target="_blank">aleksey.maksimov@it-kb.ru</a>&gt;</span> wrote:<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid;">Hello oVirt guru`s !<br /><br />As described in <a href="https://www.ovirt.org/documentation/admin-guide/hosted-engine-backup-and-restore/" target="_blank">https://www.ovirt.org/documentation/admin-guide/hosted-engine-backup-and-restore/</a><br />the backup process consists of three phases:<br /><br />1) On some oVirt Host:<br /># hosted-engine --set-maintenance --mode=global<br /><br />2) On oVirt Hosted Engine VM:<br /># service ovirt-engine stop<br /># engine-backup --mode=backup --scope=all --file=/mnt/nfsshare/backup.tar --log=/mnt/nfsshare/backup.log<br /># service ovirt-engine start<br /><br />3) On some oVirt Host:<br /># hosted-engine --set-maintenance --mode=none<br /><br />As I understand it, the first and the third phase are performed on any oVirt Host.<br />The second phase runs inside oVirt Hosted Engine VM.<br />Because hosted-engine command not provided on Hosted Engine VM :(<br /><br />I have a few questions.<br /><br />1) For what stop is executed for ovirt-engine service before engine-backup?<br />I found an interesting script <a href="http://learnlinuxchennai.blogspot.ru/2015/08/ovirt-manager-backup-script.html" target="_blank">http://learnlinuxchennai.blogspot.ru/2015/08/ovirt-manager-backup-script.html</a><br />But the script is not specified stop ovirt-engine service before engine-backup.</blockquote><div> </div><div>The backup of the engine DB is a single transaction by itself but we are, optionally, saving a backup of DWH and reports DB with different commands and so having it down is safer.</div><div>On the other side, this require the global maintenance mode since otherwise, if the engine downtime due to backup creation is too long, the ha-agent will reboot the engine VM to ensure HA.</div><div> </div> <blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid;">2) Is it possible within a single script to organize all oVirt HE Backup Workflow (phase 1, then phase 2, then phase 3)<br />Perhaps there is an example of such a script?</blockquote><div> </div><div>You should be able to require the global maintenance mode from the engine also via REST API.</div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid;"> _______________________________________________<br />Users mailing list<br /><a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br /><a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a></blockquote></div></div></div></blockquote>