From 4b7dd9d7434801edb893cc281a9f75cb526cb3a8 Mon Sep 17 00:00:00 2001 From: Stefan Priebe Date: Wed, 16 Nov 2016 20:13:59 +0100 Subject: [PATCH] allow --allow-shrink on RBD resize Signed-off-by: Stefan Priebe --- PVE/Storage/RBDPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm index c1f88e4..538a16a 100644 --- a/PVE/Storage/RBDPlugin.pm +++ b/PVE/Storage/RBDPlugin.pm @@ -608,7 +608,7 @@ sub volume_resize { my ($vtype, $name, $vmid) = $class->parse_volname($volname); - my $cmd = &$rbd_cmd($scfg, $storeid, 'resize', '--size', ($size/1024/1024), $name); + my $cmd = &$rbd_cmd($scfg, $storeid, 'resize', '--allow-shrink', '--size', ($size/1024/1024), $name); run_rbd_command($cmd, errmsg => "rbd resize '$volname' error"); return undef; }