GrepBoard/Manuals
605 manuals ·

Ceph "noout flag(s) set": clear OSDMAP_FLAGS and OSD_FLAGS

·Tested on Ceph Tentacle 20.2 official docs and source · 2026-10·Test scope ↓·7 steps

Ceph noout flag(s) set means a flag blocks automatic out for down OSDs. Find who set it, confirm no OSD is down, then unset it at the right scope.

text
OSDMAP_FLAGSnoout flag(s) set
text
OSD_FLAGS<N> OSDs or CRUSH {nodes, device-classes} have {NOUP,NODOWN,NOIN,NOOUT} flags setosd.<id> has flags <flags><type> <name> has flags <flags>device class '<class>' has flags <flags>

noout flag(s) set means a flag is stopping down OSDs from being marked out automatically. Once maintenance is over, confirm no OSD is down and clear the flag with the command that matches its scope. The two blocks above are health codes and text from the Tentacle source (OSDMap.cc), not captured output. There are two codes: OSDMAP_FLAGS for the whole cluster and OSD_FLAGS for OSDs, CRUSH nodes or device classes. The words noout flag(s) set appear only with the first one.

While the flag is on, an OSD that really fails is not marked out, so rebalancing does not start. That is why it should not outlive the work.

[1] Read the detail lines to see which code you have.

console
$ ceph health detail
CodeScopeClear with
OSDMAP_FLAGSWhole clusterceph osd unset noout
OSD_FLAGS · osd.<id>That OSDceph osd unset-group noout osd.<id>
OSD_FLAGS · host <name> etc.CRUSH nodeceph osd unset-group noout <name>
OSD_FLAGS · device classDevice classceph osd unset-group noout class-<class>

If other flags appear alongside it, as in noout,noscrub flag(s) set, judge each one separately. noup, nodown and noin are explained in [6].

[2] Find out who set it and when. Per the source, write commands go to the audit channel at info level, and the cluster log records when the health check started.

console
$ ceph log last 1000 info audit | grep noout$ ceph log last 1000 | grep OSDMAP_FLAGS

The audit line has this shape (source text, not captured output). entity is who sent the command, and cmd contains the flag name.

text
from='<name> <addrs>' entity='<entity>' cmd=<cmd>: dispatch

The monitors keep only the last 10000 log entries by default (mon_log_max), so older records may be gone. In that case check /var/log/ceph/ceph.audit.log. On a cephadm deployment that file may not exist (enabling ceph.log under cephadm).

[3] Check for cephadm maintenance mode. Per the source, ceph orch host maintenance enter runs osd set-group noout on a host that has OSDs.

console
# ceph orch host ls --host-status maintenance

If the host is listed, do not clear the flag by hand. Finish the work and exit maintenance mode; per the source, exit removes the same noout.

console
# ceph orch host maintenance exit <hostname>

[4] Check whether any OSD is still down. If one appears, confirm with whoever owns that work before going on.

console
$ ceph osd tree down$ ceph config get mon mon_osd_down_out_interval

The second line shows how long a down OSD waits before being marked out. The default is 10_min (600 seconds).

[5] Clear the flag, using the scope from the table in [1].

console
$ ceph osd unset noout$ ceph health detail

If you already cleared it, check the OSD up and in counts and the recovery state first.

console
$ ceph osd stat$ ceph -s

An OSD that was marked out automatically is marked in again when it comes back up (mon_osd_auto_mark_auto_out_in, default true), so the first move is to bring that OSD back. To mark one in by hand, use ceph osd in <id>. If the OSD cannot be recovered, decide the next step from the PG states as described in the PG states docs.

[6] If maintenance is still running, narrow the flag instead. The docs call flagging only the affected OSDs or CRUSH bucket the safer approach since Luminous. Set the new flag first, then clear the global one, so there is no gap.

console
$ ceph osd set-group noout <host-or-osd.id>$ ceph osd unset noout

To undo, run ceph osd set noout, then ceph osd unset-group noout <host-or-osd.id>. The docs also show ceph osd add-noout and rm-noout, but the Tentacle source marks both DEPRECATED, so use set-group and unset-group.

The other OSD_FLAGS flags mean the following, per the docs.

FlagMeaning
noupThese OSDs are not allowed to start
nodownFailure reports for these OSDs are ignored
noinOSDs marked out automatically after a failure are not marked in when they start
nooutDown OSDs are not marked out automatically after the configured interval

Be careful with noin. The docs say daemons that started while the flag was set stay that way after it clears.

[7] Silence the warning briefly only for a known maintenance window. Add a duration so it expires.

console
$ ceph health mute OSDMAP_FLAGS 4h$ ceph health unmute OSDMAP_FLAGS

The second line removes the mute. The flag stays on either way, so down OSDs still will not be marked out.

For health codes in general see reading ceph health detail. For an example of working on one OSD under noout, see fixing BLUEFS_SPILLOVER.

#ceph#osd#noout#maintenance#health