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

Dietmar Maurer dietmar at proxmox.com
Thu Jun 9 18:24:52 CEST 2016



> 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