[PATCH FOLLOW-UP storage 04/14] lvm snapshot: activate volume
Alexandre Derumier
alexandre.derumier at groupe-cyllene.com
Wed Jul 16 08:31:43 CEST 2025
Signed-off-by: Alexandre Derumier <alexandre.derumier at groupe-cyllene.com>
---
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 4b60e32..54070d1 100644
--- a/src/PVE/Storage/LVMPlugin.pm
+++ b/src/PVE/Storage/LVMPlugin.pm
@@ -924,6 +924,8 @@ sub volume_snapshot {
return;
}
+ $class->activate_volume($storeid, $scfg, $volname);
+
#rename current volume to snap volume
eval { $class->rename_snapshot($scfg, $storeid, $volname, 'current', $snap) };
die "error rename $volname to $snap\n" if $@;
--
2.39.5
More information about the pve-devel
mailing list