[ovirt-users] 2 hosts starting the engine at the same time?

Gianluca Cecchi gianluca.cecchi at gmail.com
Mon Jul 10 15:45:23 UTC 2017


On Mon, Jul 10, 2017 at 4:45 PM, Martin Sivak <msivak at redhat.com> wrote:

> > In the 'hosted-engine' script itself, in the function cmd_vm_start,
> > there is a comment:
> >     # TODO: Check first the sanlock status, and if allows:
> >
> > Perhaps ha-agent checks sanlock status before starting the VM?
> > Adding Martin.
>
> QEMU does that by itself. It starts, asks for a lease and dies if it
> can't get it.
>
> So:
>
> >>> I see that the qemu-kvm process for the engine starts on two hosts and
> >>> then on one of them it gets a "kill -15" and stops
> >>> Is it expected behaviour?
>
> This is how it should behave, unless the reason for it is something else.
>
> Martin
>
>
Ok.
My question was: no operating system is loaded at all before getting the
lease, so that  don't have any risk of corruption?
It seems so and that only the qemu process is started...
Thanks
Gianluca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20170710/e7977ebb/attachment-0001.html>


More information about the Users mailing list