]> 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>
Tue, 19 Sep 2017 17:58:24 +0000 (12:58 -0500)
commitf581731eaeb0f0c625f62928bf3724f8e705132c
tree4c78b8cba455fc974d650e0a272f1b8e3bb5ee4d
parentacb2f280f03324e2ddb9d359e18ff2f0a3f897e6
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>
(cherry picked from commit 3ea2e518d27e6c06182c2cb3d9c0b9a0dab8dd22)
PendingReleaseNotes
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h