[pve-devel] Storage::Plugin::deactivate_volume not executed, when VM does shutdown

Dietmar Maurer dietmar at proxmox.com
Sun Dec 11 13:35:46 CET 2016


>  >> It seems the storage plugin function "deactivate_volume" will be not
>  >> executed, when the VM stops by issuing a "poweroff" command.
>  > That is by design ...
> So there is NO interface between the code who already detects this
> (eg.: "pvedaemon[6695]: client closed connection") to the storage and this
> behaviour is intended?

Yes.

> I don't know all the concepts behind Proxmox, but is there really no way to
> execute "deactivate_volume" from pvedaemon in that case? pvedaemon does also
> execute "activate_volume" and "filesystem_path" so it seems to be the right
> tool to implement also this.
>
> I noticed the problem with the LVM plugin also. The volume keeps activated
> after issuing a shutdown from within the VM. In my opinion this should be
> fixed.

Why? There is no real need to deactivate a volume, unless you move the VM
to another node.




More information about the pve-devel mailing list