GrepBoard/Manuals
605 manuals ·

Ceph max_mds: One or more file system health warnings are present

·Tested on Ceph Reef 18.2 · Squid 19.2 · Tentacle 20.2 official docs and source · 2026-10·Test scope ↓·5 steps

On Tentacle and Squid 19.2.4+, ceph fs set max_mds fails with EPERM while any MDS reports a warning. Clear it first or add --yes-i-really-mean-it.

cpp
if (var == "max_mds" && !confirm && mon->mdsmon()->has_any_health_warning()) {  ss << "One or more file system health warnings are present. Modifying "     << "the file system setting variable \"max_mds\" may not help "     << "troubleshoot or recover from these warnings and may further "     << "destabilize the system. If you really wish to proceed, run "     << "again with --yes-i-really-mean-it";  return -EPERM;}

If ceph fs set <fs_name> max_mds <n> fails with EPERM and a message starting One or more file system health warnings are present, at least one MDS daemon in the cluster is reporting a health warning. Monitors on Tentacle (20.2) and Squid 19.2.4 or later block max_mds changes on purpose in that state. Clear the warning first, and add --yes-i-really-mean-it only when you still have to make the change.

The block above is not output captured from a cluster; it is a direct quote of the monitor source that builds the message ([FSCommands.cc L394-L400, v20.2.4](https://github.com/ceph/ceph/blob/v20.2.4/src/mon/FSCommands.cc#L394-L400)).

[1] Check the version. The Tentacle 20.2.0 release notes say that changing max_mds on an unhealthy cluster now needs a confirmation flag, because the change may not help with troubleshooting or recovery and might further destabilize the cluster. The same change went into Squid: the v19.2.4 changelog in the Squid release notes lists mon,cephfs: require confirmation when changing max_mds on unhealthy cluster (pr#60398). Reef 18.2.8's FSCommands.cc has no such check.

Versionmax_mds check
Reef 18.2.xnone
Squid 19.2.4 and lateryes
Tentacle 20.2.xyes
console
$ ceph versions

The monitors process the command, so look at the mon version.

[2] Know what "unhealthy" means here. The source condition is narrower than the release note wording. The monitor refuses a max_mds change when the confirmation flag is missing and has_any_health_warning() is true ([FSCommands.cc L391-L400, v20.2.4](https://github.com/ceph/ceph/blob/v20.2.4/src/mon/FSCommands.cc#L391-L400)). That function only checks whether any MDS daemon has reported a health entry ([MDSMonitor.cc L1588-L1593, v20.2.4](https://github.com/ceph/ceph/blob/v20.2.4/src/mon/MDSMonitor.cc#L1588-L1593)), and those entries arrive in MDS beacons ([MDSMonitor.cc L683, v20.2.4](https://github.com/ceph/ceph/blob/v20.2.4/src/mon/MDSMonitor.cc#L683)).

  • What triggers it: the "Daemon-reported health checks" in the CephFS health messages docs, such as MDS_SLOW_REQUEST, MDS_TRIM, MDS_CACHE_OVERSIZED and MDS_CLIENT_RECALL.
  • Scope: every MDS in the cluster, not only the file system you are changing. A warning on another file system's MDS also blocks it.
  • What does not: HEALTH_WARN from OSD flags such as noout or from PG states. The function looks only at MDS beacon entries.
  • Only max_mds is gated. Other fs set variables do not go through this check.

[3] Find the warning and fix it first.

console
$ ceph health detail$ ceph fs status

Lines starting with MDS_ are the cause. For MDS_SLOW_REQUEST, see What happens when you lower mds_op_complaint_time; for other codes, see ceph health detail: read the output. Once every MDS warning clears, the same command passes this check without the flag.

[4] If you still have to change it, add the flag. The fs set command definition has a yes_i_really_mean_it argument ([MonCommands.h L410-L435, v20.2.4](https://github.com/ceph/ceph/blob/v20.2.4/src/mon/MonCommands.h#L410-L435)). Record the current value first:

console
$ ceph fs get <fs_name> | grep max_mds$ ceph fs set <fs_name> max_mds <n> --yes-i-really-mean-it

To revert, run the same command with the recorded value (if warnings remain, it needs the flag again). Lowering it stops the extra ranks one by one, as the multiple active MDS docs describe, and the remaining MDS daemons take on their load. Do not use it as a way to clear warnings.

[5] Clear MDS warnings before you start an upgrade. When the MDS daemons are upgraded, the monitors already run the new release, so this check applies.

console
$ ceph health detail | grep MDS_
  • Package-based upgrade: the MDS step in the Tentacle notes lowers ranks with ceph fs set <fs_name> max_mds 1 and restores the original value at the end. Both are refused while MDS warnings are present.
  • cephadm: the upgrade code sends fs set … max_mds 1 without the flag ([upgrade.py L772-L777, v20.2.4](https://github.com/ceph/ceph/blob/v20.2.4/src/pybind/mgr/cephadm/upgrade.py#L772-L777)), and restores the original value at the end without it as well (L1352-L1357).

Following the source, this is what comes next; it has not been observed in a real upgrade. A failed command raises an exception ([mgr_module.py L1780-L1789](https://github.com/ceph/ceph/blob/v20.2.4/src/pybind/mgr/mgr_module.py#L1780-L1789)); the upgrade loop catches it, raises UPGRADE_EXCEPTION and leaves the upgrade paused ([upgrade.py L583-L608](https://github.com/ceph/ceph/blob/v20.2.4/src/pybind/mgr/cephadm/upgrade.py#L583-L608) and L644-L656). The code for ceph orch upgrade resume (L536-L548) clears the pause and the error and runs the upgrade loop again, so once the MDS warnings are gone it retries the same step. Whether the upgrade then actually completes this way could not be confirmed in the official docs or tracker. If it stopped, look at the state and the error first:

console
$ ceph orch upgrade status$ ceph health detail

Pre-upgrade checks are collected in Ceph Squid to Tentacle upgrade pre-check.

#ceph#cephfs#mds#max_mds#tentacle