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 <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2025-07-15 16:47:12 +02:00
parent e17a33794c
commit 3941068c25

View File

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