Skip to content

Commit 4044caf

Browse files
authored
Merge pull request ceph#58057 from zdover23/wip-doc-2024-06-15-rados-troubleshooting-mon
doc/rados: explain replaceable parts of command Reviewed-by: Anthony D'Atri <[email protected]>
2 parents b3efaae + d071ad2 commit 4044caf

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

doc/rados/troubleshooting/troubleshooting-mon.rst

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,14 @@ Understanding mon_status
133133

134134
The status of a Monitor (as reported by the ``ceph tell mon.X mon_status``
135135
command) can be obtained via the admin socket. The ``ceph tell mon.X
136-
mon_status`` command outputs a great deal of information about the monitor
136+
mon_status`` command outputs a great deal of information about the monitor
137137
(including the information found in the output of the ``quorum_status``
138138
command).
139139

140+
.. note:: The command ``ceph tell mon.X mon_status`` is not meant to be input
141+
literally. The ``X`` portion of ``mon.X`` is meant to be replaced with a
142+
value specific to your own Ceph cluster when you run the command.
143+
140144
To understand this command's output, let us consider the following example, in
141145
which we see the output of ``ceph tell mon.c mon_status``::
142146

@@ -165,24 +169,24 @@ which we see the output of ``ceph tell mon.c mon_status``::
165169
"name": "c",
166170
"addr": "127.0.0.1:6795\/0"}]}}
167171

168-
This output reports that there are three monitors in the monmap (*a*, *b*, and
169-
*c*), that quorum is formed by only two monitors, and that *c* is in quorum as
170-
a *peon*.
172+
This output reports that there are three monitors in the monmap (``a``, ``b``,
173+
and ``c``), that quorum is formed by only two monitors, and that ``c`` is in
174+
quorum as a ``peon``.
171175

172176
**Which monitor is out of quorum?**
173177

174-
The answer is **a** (that is, ``mon.a``). ``mon.a`` is out of quorum.
178+
The answer is ``a`` (that is, ``mon.a``). ``mon.a`` is out of quorum.
175179

176180
**How do we know, in this example, that mon.a is out of quorum?**
177181

178-
We know that ``mon.a`` is out of quorum because it has rank 0, and Monitors
179-
with rank 0 are by definition out of quorum.
182+
We know that ``mon.a`` is out of quorum because it has rank ``0``, and
183+
Monitors with rank ``0`` are by definition out of quorum.
180184

181185
If we examine the ``quorum`` set, we can see that there are clearly two
182-
monitors in the set: *1* and *2*. But these are not monitor names. They are
183-
monitor ranks, as established in the current ``monmap``. The ``quorum`` set
184-
does not include the monitor that has rank 0, and according to the ``monmap``
185-
that monitor is ``mon.a``.
186+
monitors in the set: ``1`` and ``2``. But these are not monitor names. They
187+
are monitor ranks, as established in the current ``monmap``. The ``quorum``
188+
set does not include the monitor that has rank ``0``, and according to the
189+
``monmap`` that monitor is ``mon.a``.
186190

187191
**How are monitor ranks determined?**
188192

@@ -192,7 +196,7 @@ a *peon*.
192196
case, because ``127.0.0.1:6789`` (``mon.a``) is numerically less than the
193197
other two ``IP:PORT`` combinations (which are ``127.0.0.1:6790`` for "Monitor
194198
b" and ``127.0.0.1:6795`` for "Monitor c"), ``mon.a`` has the highest rank:
195-
namely, rank 0.
199+
namely, rank ``0``.
196200

197201

198202
Most Common Monitor Issues

0 commit comments

Comments
 (0)