pg_num as power of two adjustment: only downwards?
Hi, After upgrading to ceph 14.2.8 I started getting the "1 pool(s) have non-power-of-two pg_num" warning. The offending pool had 100 pgs. I tried to adjust it to 128 but it didn't work: # ceph osd pool set default.rgw.offending pgp_num 128 Error EINVAL: specified pgp_num 128 > pg_num 100 It only worked downwards: # ceph osd pool set default.rgw.offending pgp_num 64 set pool 7 pgp_num to 64 Is that expected? And having reduced my pg_num to 64 (isn't it to small?) should I be prepared for problems in the future? Regards, Rodrigo Severo
You need to increase the pg number (number of placement groups) before you increase the pgp number (number of placement groups for placement). The former creates the pg's and the latter activates them and triggers a rebalance.
Em qua., 4 de mar. de 2020 às 21:49, John Petrini <jpetrini@coredial.com> escreveu:
You need to increase the pg number (number of placement groups) before you increase the pgp number (number of placement groups for placement).
Great John. It worked.
The former creates the pg's and the latter activates them and triggers a rebalance.
Thanks for the explanation. Regards, Rodrigo Severo
participants (2)
-
John Petrini
-
Rodrigo Severo - Fábrica