Higher max_osd than max_devices doesn't hurt anything (and is the
normal way to add more osds). Higher max_devices than max_osds are
filtered out of crush results since
e541c0f8d871172ec61962372efca943308e5fe,
so they don't matter either.
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
goto out;
}
- if (crush.get_max_devices() > osdmap.get_max_osd()) {
- err = -ERANGE;
- ss << "crushmap max_devices " << crush.get_max_devices()
- << " > osdmap max_osd " << osdmap.get_max_osd();
- goto out;
- }
-
// sanity check: test some inputs to make sure this map isn't totally broken
dout(10) << " testing map" << dendl;
stringstream ess;
err = -EINVAL;
goto out;
}
- if (newmax < osdmap.crush->get_max_devices()) {
- err = -ERANGE;
- ss << "cannot set max_osd to " << newmax << " which is < crush max_devices "
- << osdmap.crush->get_max_devices();
- goto out;
- }
if (newmax > g_conf->mon_max_osd) {
err = -ERANGE;
ss << "cannot set max_osd to " << newmax << " which is > conf.mon_max_osd ("