Setting number of placement groups in a pool
To set the number of placement groups in a pool, you must specify the number of placement groups at the time you create the pool.
Once you set placement groups for a pool, you can increase or decrease the number of placement groups. For more information, see Creating pools.
To change the number of placement groups, use the following command:
Syntax
ceph osd pool set POOL_NAME pg_num PG_NUM
Example
[ceph: root@host01 /]# ceph osd pool set pool1 pg_num 60
set pool 2 pg_num to 60
Once you increase or decrease the number of placement groups, you must also adjust the number of
placement groups for placement (pgp_num) before your cluster rebalances. The
pgp_num should be equal to the pg_num. To increase the number of
placement groups for placement, run the following:
Syntax
ceph osd pool set POOL_NAME pgp_num PGP_NUM
Example
[ceph: root@host01 /]# ceph osd pool set pool1 pgp_num 60
set pool 2 pgp_num to 60