[pve-devel] [PATCH qemu-server 1/3] Add missing $vmid to fstrim on migrate

Stoiko Ivanov s.ivanov at proxmox.com
Thu Jul 5 19:42:33 CEST 2018


Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 PVE/QemuMigrate.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index ab2258d..ca09469 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -968,7 +968,7 @@ sub phase3_cleanup {
 	}
 
 	if ($self->{storage_migration} && $conf->{qga} && $self->{running}) {
-	    my $cmd = [@{$self->{rem_ssh}}, 'qm', 'agent','fstrim'];
+	    my $cmd = [@{$self->{rem_ssh}}, 'qm', 'agent', $vmid, 'fstrim'];
 	    eval{ PVE::Tools::run_command($cmd, outfunc => sub {}, errfunc => sub {}) };
 	}
     }
-- 
2.11.0





More information about the pve-devel mailing list