snapshot: log storage where VM state is saved too

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-02-11 14:04:19 +01:00
parent 8828460b1d
commit f97224b1ef

View File

@ -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});