From 3941068c25ade0be71222c86885f7ee9274c9b8c Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 15 Jul 2025 16:47:12 +0200 Subject: [PATCH] lvm: activate volume before deleting snapshots since we call qemu-img on them the device nodes need to be available Signed-off-by: Wolfgang Bumiller --- src/PVE/Storage/LVMPlugin.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PVE/Storage/LVMPlugin.pm b/src/PVE/Storage/LVMPlugin.pm index 35e1732..1241e93 100644 --- a/src/PVE/Storage/LVMPlugin.pm +++ b/src/PVE/Storage/LVMPlugin.pm @@ -1054,6 +1054,8 @@ sub volume_snapshot_delete { my $cmd = ""; my $path = $class->filesystem_path($scfg, $volname); + $class->activate_volume($storeid, $scfg, $volname); + my $snapshots = $class->volume_snapshot_info($scfg, $storeid, $volname); my $snappath = $snapshots->{$snap}->{file}; my $snapvolname = $snapshots->{$snap}->{volname};