From: Ville Ojamo <14869000+bluikko@users.noreply.github.com> Date: Mon, 30 Jun 2025 07:30:34 +0000 (+0700) Subject: doc/rados/configuration: Small improvements in ceph-conf.rst X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6b2d454f08a5ab467d7888a4ff5d68fa6ec03df6;p=ceph.git doc/rados/configuration: Small improvements in ceph-conf.rst Fix a missing space typo. Use title case in section titles. Use ref for hyperlink to a section that already has a label instead of linking to title text of the section. Use privileged command prompt for all ceph commands except ceph commands that invoke help. Use INI preformatted block for last remaining block that was just using plain preformatted. Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com> (cherry picked from commit 6687c9767d9764f34d7099ba6980992dd8ae8737) --- diff --git a/doc/rados/configuration/ceph-conf.rst b/doc/rados/configuration/ceph-conf.rst index 8eef549f96a4e..ce90e816f14fe 100644 --- a/doc/rados/configuration/ceph-conf.rst +++ b/doc/rados/configuration/ceph-conf.rst @@ -25,7 +25,7 @@ sometimes change between releases. For this reason, it is best to review the version of this documentation that applies to your Ceph release. When updating to a new Ceph release, also review the release notes for important changes. -Option names +Option Names ============ Each Ceph configuration option has a unique name that consists of words @@ -44,7 +44,7 @@ For the sake of clarity and convenience, we suggest that you consistently use underscores, as we do throughout this documentation. -Config sources +Config Sources ============== Each Ceph daemon and client pulls configuration option values from one or more @@ -68,7 +68,7 @@ daemon or process will commence. .. _bootstrap-options: -Bootstrap options +Bootstrap Options ----------------- Bootstrap options enable each Ceph daemon @@ -96,7 +96,7 @@ option that identifies the addresses of the cluster's Monitors. When configuration file can be avoided entirely. -Skipping monitor config +Skipping Monitor Config ----------------------- The option ``--no-mon-config`` can be passed to any command in order to skip @@ -107,7 +107,7 @@ but the Monitor quorum is down. .. _ceph-conf-file: -Configuration sections +Configuration Sections ====================== Each configuration option associated with a single process or daemon @@ -249,7 +249,7 @@ Ceph supports the following metavariables: :example: ``/var/run/ceph/$cluster-$name-$pid.asok`` -Ceph configuration file +Ceph Configuration File ======================= On startup, Ceph processes search for a configuration file in the @@ -279,11 +279,11 @@ text after a pound sign (#) or a semi-colon semicolon (;). For example: .. _ceph-conf-settings: -Config file section names +Config File Section Names ------------------------- The configuration file is divided into sections. Each section must begin with a -valid configuration section name (see `Configuration sections`_, above) within +valid configuration section name (see :ref:`ceph-conf-file`, above) within square brackets. For example: .. code-block:: ini @@ -300,18 +300,20 @@ square brackets. For example: [osd.2] debug_ms = 10 -Config file option values +Config File Option Values ------------------------- The value of a configuration option is a string. If the string is too long to fit on a single line, you may place a backslash (``\``) at the end of the line and the backslash will act as a line continuation marker. In such a case, the value of the option will be the string after ``=`` in the current line, -combined with the string in the next line. Here is an example:: +combined with the string in the next line. Here is an example: - [global] - foo = long long ago\ - long ago +.. code-block:: ini + + [global] + foo = long long ago\ + long ago In this example, the value of the "``foo``" option is "``long long ago long ago``". Be careful to not place a backslash at the end of the final line @@ -401,7 +403,7 @@ Each configuration option specifies one of the following types for its value: A set of IPv4 or IPv6 addresses separated by commas (``,``). The set of addresses can be optionally delimited with ``[`` and ``]``. - :example: ``[v1:1.2.3.4:567,v2:1.2.3.4:568]``, ``v1:1.2.3.4:567,v1:1.2.3.14:567`` ``[2409:8a1e:8fb6:aa20:1260:4bff:fe92:18f5::567], [2409:8a1e:8fb6:aa20:1260:4bff:fe92:18f5::568]`` + :example: ``[v1:1.2.3.4:567,v2:1.2.3.4:568]``, ``v1:1.2.3.4:567,v1:1.2.3.14:567``, ``[2409:8a1e:8fb6:aa20:1260:4bff:fe92:18f5::567], [2409:8a1e:8fb6:aa20:1260:4bff:fe92:18f5::568]`` .. describe:: uuid @@ -453,7 +455,7 @@ and to fetch additional configuration information. In most cases this applies on records` if your DNS infrastructure is very robust and under your control. -Sections and masks +Sections and Masks ------------------ Configuration options stored by the Monitors can be stored in a global section, @@ -620,7 +622,7 @@ Use the ``ceph config set`` command to update configuration options. For example, to enable the most verbose debug log level on a specific OSD, run a command of the following form: -.. prompt:: bash $ +.. prompt:: bash # ceph config set osd.1701 debug_ms 20 @@ -632,7 +634,7 @@ command of the following form: .. note:: Log subsystem levels range from 0 to 20. -Override values +Override Values --------------- Runtime option values can be set temporarily by using the ``ceph tell`` @@ -648,13 +650,13 @@ Override values can be set in two ways: #. From any host, send a message to a daemon with a command of the following form: - .. prompt:: bash $ + .. prompt:: bash # ceph tell config set