]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: prevent pg_num from exceeding mon_pg_warn_max_per_osd
authorSage Weil <sage@redhat.com>
Fri, 1 Sep 2017 18:45:12 +0000 (14:45 -0400)
committerSage Weil <sage@redhat.com>
Thu, 14 Sep 2017 16:10:13 +0000 (12:10 -0400)
commit3ea2e518d27e6c06182c2cb3d9c0b9a0dab8dd22
tree4cc95d13d1eb1d3cb022931a22885cd6557bd7bf
parentb7fa440a9802005c167f854e1d19f9dd4fa8dfff
mon/OSDMonitor: prevent pg_num from exceeding mon_pg_warn_max_per_osd

Check total pg count for the cluster vs osd count and max pgs per osd
before allowing pool creation, pg_num change, or pool size change.

"in" OSDs are the ones we distribute data too, so this should be the right
count to use.  (Whether they happen to be up or down at the moment is
incidental.)

If the user really wants to create the pool, they can change the
configurable limit.

Signed-off-by: Sage Weil <sage@redhat.com>
PendingReleaseNotes
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h