[PVE-User] disk devices not properly cleaned up after removing vm

Dhaussy Alexandre ADhaussy at voyages-sncf.com
Tue May 5 15:24:06 CEST 2015

I see, deactivate_volumes() is called in vm_stop_cleanup or 

I think i get the problem.
When the vm fails to start, the cleanup is missing.
The remaining devices are there because i had errors at first (TASK 
ERROR: minimum memory must be 1024MB.)


    4166         PVE::Storage::activate_volumes($storecfg, $vollist);
    4168         eval  { run_command($cmd, timeout => $statefile ? undef 
: 30,
    4169                     umask => 0077); };
    4170         my $err = $@;
    4171         die "start failed: $err" if $err;

Maybe add deactivate_volumes in case of failure ?

Le 05/05/2015 12:08, Dietmar Maurer a écrit :
> But we deactivate lv's when we migrate a VM, so I have no real idea why those
> things are still active.

More information about the pve-user mailing list