From f97224b1ef9f9f96051941600e47425261616092 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 11 Feb 2021 14:04:19 +0100 Subject: [PATCH] snapshot: log storage where VM state is saved too Signed-off-by: Thomas Lamprecht --- PVE/QemuConfig.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PVE/QemuConfig.pm b/PVE/QemuConfig.pm index 31b3e364..d12b5ce3 100644 --- a/PVE/QemuConfig.pm +++ b/PVE/QemuConfig.pm @@ -279,9 +279,10 @@ sub __snapshot_create_vol_snapshots_hook { if ($snap->{vmstate}) { my $path = PVE::Storage::path($storecfg, $snap->{vmstate}); PVE::Storage::activate_volumes($storecfg, [$snap->{vmstate}]); + my $state_storage_id = PVE::Storage::parse_volume_id($snap->{vmstate}); mon_cmd($vmid, "savevm-start", statefile => $path); - print "saving VM state and RAM\n"; + print "saving VM state and RAM using storage '$state_storage_id'\n"; my $render_state = sub { my ($stat) = @_; my $b = render_bytes($stat->{bytes});