How do i check the number of placement groups on a ceph monitor node?



  • Link: http://docs.ceph.com/docs/master/rados/operations/placement-groups/

    Placement groups is a collective group of objects. The number is 64. To check this run the following command:

    $ ceph osd dump | grep -i pool
    pool 0 'rbd' replicated size 3 min_size 2 crush_ruleset 0 object_hash rjenkins pg_num 64 pgp_num 64 last_change 1 flags hashpspool stripe_width 0
    

    To increase.

    $ ceph osd pool set rbd pg_num 128
    

    Verify

    $ ceph osd dump | grep -i pool
    pool 0 'rbd' replicated size 3 min_size 2 crush_ruleset 0 object_hash rjenkins pg_num 128 pgp_num 64 last_change 20 flags hashpspool stripe_width 0
    


© Lightnetics 2024