[pve-devel] student question ha : why shutdown/stop vm behavior is different than without ha ?

Alexandre DERUMIER aderumier at odiso.com
Thu Jun 9 19:57:18 CEST 2016


>>Maybe we should do the following instead: 
>> 
>>with HA: 
>> shutdown : disable HA, acpi shutdown --> vm is stopped 
>> stop : disable HA, kill process -> vm is stopped 

>>is this better?

Yes, exactly !



----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "aderumier" <aderumier at odiso.com>, "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Jeudi 9 Juin 2016 18:24:52
Objet: Re: [pve-devel] student question ha : why shutdown/stop vm behavior is different than without ha ?

> On June 9, 2016 at 5:29 PM Alexandre DERUMIER <aderumier at odiso.com> wrote: 
> 
> 
> Hi, 
> 
> a question for the training session students (I have always this question in 
> other sessions) 
> 
> 
> Why the behaviour of stop/shutdown of a vm is different when HA is enabled ? 
> 
> 
> without HA: 
> 
> shutdown : acpi shutdown --> vm is stopped 
> stop : process killed ---> vm is stopped 
> 
> 
> with HA: 
> shutdown : acpi shutdown --> vm is stopped and restarted because HA is still 
> enabled 
> stop : acpi shutdown -> vm is stopped and ha is disabled 
> 
> 
> this is really strange to call acpi shutdown when stopping the vm. 

I guess this is simply because shutdown is asynchronous and can take a long 
time. 
Maybe we should do the following instead: 

with HA: 
shutdown : disable HA, acpi shutdown --> vm is stopped 
stop : disable HA, kill process -> vm is stopped 

is this better? 




More information about the pve-devel mailing list