From 9569939a54edc9e126cf10fcd20898dfb3bf1704 Mon Sep 17 00:00:00 2001 From: Aaron Lauterer Date: Tue, 3 May 2022 13:58:07 +0200 Subject: [PATCH] ceph pools create: remove crush_rule for ec pool data The crush rule is an optional paramter which can be used for the metadata pool, but the erasure coded data pool will always get its own crush rule. Therefore this parameter can not be adapted. Signed-off-by: Aaron Lauterer --- PVE/API2/Ceph/Pools.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/API2/Ceph/Pools.pm b/PVE/API2/Ceph/Pools.pm index 70427277..9c3b8884 100644 --- a/PVE/API2/Ceph/Pools.pm +++ b/PVE/API2/Ceph/Pools.pm @@ -474,6 +474,7 @@ __PACKAGE__->register_method ({ $ec_data_param->{erasure_code_profile} = $ec->{profile}; delete $ec_data_param->{size}; delete $ec_data_param->{min_size}; + delete $ec_data_param->{crush_rule}; # metadata pool should be ok with 32 PGs $param->{pg_num} = 32; -- 2.39.2