[pve-devel] Proxmox - HA & VM Shutdown
Alexandre DERUMIER
aderumier at odiso.com
Thu Oct 2 14:23:23 CEST 2014
Ok, thanks! (I think this should be write somewhere in the wiki).
But It's pretty confusing to have 2 differents behavior.
stop should be stop, ha or not
and
shutdown should be shutdown , ha or not.
@Cedric :
Can you send the complete task log ?
Maybe stop is forced, because the vm don't respond correctly to acpi shutdown.
(Does shutdown button works properly without HA ?)
----- Mail original -----
De: "Dietmar Maurer" <dietmar at proxmox.com>
À: "Alexandre DERUMIER" <aderumier at odiso.com>
Cc: "Cedric Bernard" <cbernard at sisteer.com>, pve-devel at pve.proxmox.com
Envoyé: Jeudi 2 Octobre 2014 14:07:10
Objet: RE: [pve-devel] Proxmox - HA & VM Shutdown
> >>The stop button should work (executes 'clusvcadm -d <service>').
>
> Does the stop button (with HAà sent a clean acpi shutdown to the guest ? (vs kill
> process without HA)
'clusvcadm -d ..' simply calls the resource agent /usr/share/cluster/pvevm
---
my $param = {
node => $nodename,
vmid => $status->{vmid},
timeout => $timeout,
forceStop => 1,
};
if ($status->{type} eq 'qemu') {
$upid = PVE::API2::Qemu->vm_shutdown($param);
} else {
$upid = PVE::API2::OpenVZ->vm_shutdown($param);
}
---
so this use acpi shutdown, but forces a kill if VM does not stop.
More information about the pve-devel
mailing list