]> git.proxmox.com Git - ceph.git/blame - ceph/doc/cephfs/health-messages.rst
update sources to v12.2.1
[ceph.git] / ceph / doc / cephfs / health-messages.rst
CommitLineData
7c673cae
FG
1
2======================
3CephFS health messages
4======================
5
6Cluster health checks
7=====================
8
9The Ceph monitor daemons will generate health messages in response
10to certain states of the filesystem map structure (and the enclosed MDS maps).
11
12Message: mds rank(s) *ranks* have failed
13Description: One or more MDS ranks are not currently assigned to
14an MDS daemon; the cluster will not recover until a suitable replacement
15daemon starts.
16
17Message: mds rank(s) *ranks* are damaged
18Description: One or more MDS ranks has encountered severe damage to
19its stored metadata, and cannot start again until it is repaired.
20
21Message: mds cluster is degraded
22Description: One or more MDS ranks are not currently up and running, clients
23may pause metadata IO until this situation is resolved. This includes
24ranks being failed or damaged, and additionally includes ranks
25which are running on an MDS but have not yet made it to the *active*
26state (e.g. ranks currently in *replay* state).
27
28Message: mds *names* are laggy
29Description: The named MDS daemons have failed to send beacon messages
30to the monitor for at least ``mds_beacon_grace`` (default 15s), while
31they are supposed to send beacon messages every ``mds_beacon_interval``
32(default 4s). The daemons may have crashed. The Ceph monitor will
33automatically replace laggy daemons with standbys if any are available.
34
35Message: insufficient standby daemons available
36Description: One or more file systems are configured to have a certain number
37of standby daemons available (including daemons in standby-replay) but the
38cluster does not have enough standby daemons. The standby deamons not in replay
39count towards any file system (i.e. they may overlap). This warning can
40configured by setting ``ceph fs set <fs> standby_count_wanted <count>``. Use
41zero for ``count`` to disable.
42
43
44Daemon-reported health checks
45=============================
46
47MDS daemons can identify a variety of unwanted conditions, and
48indicate these to the operator in the output of ``ceph status``.
49This conditions have human readable messages, and additionally
50a unique code starting MDS_HEALTH which appears in JSON output.
51
52Message: "Behind on trimming..."
53Code: MDS_HEALTH_TRIM
54Description: CephFS maintains a metadata journal that is divided into
55*log segments*. The length of journal (in number of segments) is controlled
56by the setting ``mds_log_max_segments``, and when the number of segments
57exceeds that setting the MDS starts writing back metadata so that it
58can remove (trim) the oldest segments. If this writeback is happening
59too slowly, or a software bug is preventing trimming, then this health
60message may appear. The threshold for this message to appear is for the
61number of segments to be double ``mds_log_max_segments``.
62
63Message: "Client *name* failing to respond to capability release"
64Code: MDS_HEALTH_CLIENT_LATE_RELEASE, MDS_HEALTH_CLIENT_LATE_RELEASE_MANY
65Description: CephFS clients are issued *capabilities* by the MDS, which
66are like locks. Sometimes, for example when another client needs access,
67the MDS will request clients release their capabilities. If the client
68is unresponsive or buggy, it might fail to do so promptly or fail to do
69so at all. This message appears if a client has taken longer than
70``mds_revoke_cap_timeout`` (default 60s) to comply.
71
72Message: "Client *name* failing to respond to cache pressure"
73Code: MDS_HEALTH_CLIENT_RECALL, MDS_HEALTH_CLIENT_RECALL_MANY
181888fb
FG
74Description: Clients maintain a metadata cache. Items (such as inodes) in the
75client cache are also pinned in the MDS cache, so when the MDS needs to shrink
76its cache (to stay within ``mds_cache_size`` or ``mds_cache_memory_limit``), it
77sends messages to clients to shrink their caches too. If the client is
78unresponsive or buggy, this can prevent the MDS from properly staying within
79its cache limits and it may eventually run out of memory and crash. This
80message appears if a client has taken more than ``mds_recall_state_timeout``
81(default 60s) to comply.
7c673cae
FG
82
83Message: "Client *name* failing to advance its oldest client/flush tid"
84Code: MDS_HEALTH_CLIENT_OLDEST_TID, MDS_HEALTH_CLIENT_OLDEST_TID_MANY
85Description: The CephFS client-MDS protocol uses a field called the
86*oldest tid* to inform the MDS of which client requests are fully
87complete and may therefore be forgotten about by the MDS. If a buggy
88client is failing to advance this field, then the MDS may be prevented
89from properly cleaning up resources used by client requests. This message
90appears if a client appears to have more than ``max_completed_requests``
91(default 100000) requests that are complete on the MDS side but haven't
92yet been accounted for in the client's *oldest tid* value.
93
94Message: "Metadata damage detected"
95Code: MDS_HEALTH_DAMAGE,
96Description: Corrupt or missing metadata was encountered when reading
97from the metadata pool. This message indicates that the damage was
98sufficiently isolated for the MDS to continue operating, although
99client accesses to the damaged subtree will return IO errors. Use
100the ``damage ls`` admin socket command to get more detail on the damage.
101This message appears as soon as any damage is encountered.
102
103Message: "MDS in read-only mode"
104Code: MDS_HEALTH_READ_ONLY,
105Description: The MDS has gone into readonly mode and will return EROFS
106error codes to client operations that attempt to modify any metadata. The
107MDS will go into readonly mode if it encounters a write error while
108writing to the metadata pool, or if forced to by an administrator using
109the *force_readonly* admin socket command.
110
111Message: *N* slow requests are blocked"
112Code: MDS_HEALTH_SLOW_REQUEST,
113Description: One or more client requests have not been completed promptly,
114indicating that the MDS is either running very slowly, or that the RADOS
115cluster is not acknowledging journal writes promptly, or that there is a bug.
116Use the ``ops`` admin socket command to list outstanding metadata operations.
117This message appears if any client requests have taken longer than
118``mds_op_complaint_time`` (default 30s).
119
120Message: "Too many inodes in cache"
121Code: MDS_HEALTH_CACHE_OVERSIZED
181888fb
FG
122Description: The MDS is not succeeding in trimming its cache to comply with the
123limit set by the administrator. If the MDS cache becomes too large, the daemon
124may exhaust available memory and crash. By default, this message appears if
125the actual cache size (in inodes or memory) is at least 50% greater than
126``mds_cache_size`` (default 100000) or ``mds_cache_memory_limit`` (default
1271GB). Modify ``mds_health_cache_threshold`` to set the warning ratio.