Skip to content

Commit

Permalink
doc: PG splitting added to docs.
Browse files Browse the repository at this point in the history
fixes: ceph#6727

Signed-off-by: John Wilkins <[email protected]>
  • Loading branch information
John Wilkins committed Nov 22, 2013
1 parent d39676b commit dceaef4
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions doc/rados/operations/placement-groups.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,21 @@ Set the Number of Placement Groups

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.
See `Create a Pool`_ for details. Once you've set placement groups for a
pool, you may increase the number of placement groups (but you cannot
decrease the number of placement groups). To increase the number of
placement groups, execute the following::

See `Create a Pool`_ for details.
ceph osd pool set {pool-name} pg_num {pg_num}
Once you increase the number of placement groups, you must also
increase the number of placement groups for placement (``pgp_num``) before your
cluster will rebalance. The ``pgp_num`` should be equal to the ``pg_num``.
To increase the number of placement groups for placement, execute the
following::

ceph osd pool set {pool-name} pgp_num {pgp_num}

.. _Create a Pool: ../pools#createpool

Get the Number of Placement Groups
==================================
Expand Down Expand Up @@ -171,3 +182,6 @@ entirely. To mark the "unfound" objects as "lost", execute the following::

pg-states
pg-concepts


.. _Create a Pool: ../pools#createpool

0 comments on commit dceaef4

Please sign in to comment.