Skip to content

Commit

Permalink
Merge pull request #10997: jewel: multimds: allow_multimds not requir…
Browse files Browse the repository at this point in the history
…ed when max_mds is set in ceph.conf at startup

Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
Loic Dachary committed Oct 10, 2016
2 parents 5de6776 + b22adff commit 78f5f2b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
9 changes: 0 additions & 9 deletions doc/cephfs/mds-config-ref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@
:Default: ``true``


``max mds``

:Description: The number of active MDS daemons during cluster creation. Set
under ``[mon]`` or ``[global]``.

:Type: 32-bit Integer
:Default: ``1``


``mds max file size``

:Description: The maximum allowed file size to set when creating a
Expand Down
1 change: 0 additions & 1 deletion src/common/config_opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,6 @@ OPTION(mds_inject_traceless_reply_probability, OPT_DOUBLE, 0) /* percentage
OPTION(mds_wipe_sessions, OPT_BOOL, 0)
OPTION(mds_wipe_ino_prealloc, OPT_BOOL, 0)
OPTION(mds_skip_ino, OPT_INT, 0)
OPTION(max_mds, OPT_INT, 1)
OPTION(mds_standby_for_name, OPT_STR, "")
OPTION(mds_standby_for_rank, OPT_INT, -1)
OPTION(mds_standby_for_fscid, OPT_INT, -1)
Expand Down
4 changes: 2 additions & 2 deletions src/mon/MDSMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void MDSMonitor::create_new_fs(FSMap &fsm, const std::string &name,
{
auto fs = std::make_shared<Filesystem>();
fs->mds_map.fs_name = name;
fs->mds_map.max_mds = g_conf->max_mds;
fs->mds_map.max_mds = 1;
fs->mds_map.data_pools.insert(data_pool);
fs->mds_map.metadata_pool = metadata_pool;
fs->mds_map.cas_pool = -1;
Expand Down Expand Up @@ -1682,7 +1682,7 @@ int MDSMonitor::management_command(
// Carry forward what makes sense
new_fs->fscid = fs->fscid;
new_fs->mds_map.inline_data_enabled = fs->mds_map.inline_data_enabled;
new_fs->mds_map.max_mds = g_conf->max_mds;
new_fs->mds_map.max_mds = 1;
new_fs->mds_map.data_pools = fs->mds_map.data_pools;
new_fs->mds_map.metadata_pool = fs->mds_map.metadata_pool;
new_fs->mds_map.cas_pool = fs->mds_map.cas_pool;
Expand Down

0 comments on commit 78f5f2b

Please sign in to comment.