[pve-devel] [PATCH container 2/3] expect 'vm-vol' vtype in get_replicatable_volumes

Wolfgang Bumiller
2025-07-29T11:17:26Z

src/PVE/LXC/Config.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm
index 7bdb8b9..a9a8816 100644
--- a/src/PVE/LXC/Config.pm
+++ b/src/PVE/LXC/Config.pm
@@ -1919,7 +1919,8 @@ sub get_replicatable_volumes {
my ($path, $owner, $vtype) = PVE::Storage::path($storecfg, $volid);
return if !$owner || ($owner != $vmid);

- die "unable to replicate volume '$volid', type '$vtype'\n" if $vtype ne 'images';
+ die "unable to replicate volume '$volid', type '$vtype'\n"
+ if $vtype ne 'ct-vol' && $vtype ne 'images';

return if !$cleanup && !$replicate;