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:
@ -1054,6 +1054,8 @@ sub volume_snapshot_delete {
|
|||||||
my $cmd = "";
|
my $cmd = "";
|
||||||
my $path = $class->filesystem_path($scfg, $volname);
|
my $path = $class->filesystem_path($scfg, $volname);
|
||||||
|
|
||||||
|
$class->activate_volume($storeid, $scfg, $volname);
|
||||||
|
|
||||||
my $snapshots = $class->volume_snapshot_info($scfg, $storeid, $volname);
|
my $snapshots = $class->volume_snapshot_info($scfg, $storeid, $volname);
|
||||||
my $snappath = $snapshots->{$snap}->{file};
|
my $snappath = $snapshots->{$snap}->{file};
|
||||||
my $snapvolname = $snapshots->{$snap}->{volname};
|
my $snapvolname = $snapshots->{$snap}->{volname};
|
||||||
|
|||||||
Reference in New Issue
Block a user