From: Zac Dover Date: Mon, 19 Dec 2022 17:41:22 +0000 (+1000) Subject: doc/rados: add prompts to msgr2.rst X-Git-Tag: v17.2.6~267^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f908dd82af65fbc367e9d61632194a4d5f91807e;p=ceph.git doc/rados: add prompts to msgr2.rst Add unselectable prompts to doc/rados/configuration/msgr2.rst. https://tracker.ceph.com/issues/57108 Signed-off-by: Zac Dover (cherry picked from commit 239e7c0e6891c774d93dc9cc65f33a2750b0f8d0) --- diff --git a/doc/rados/configuration/msgr2.rst b/doc/rados/configuration/msgr2.rst index e1beaf5dc4c..3e5e055b6a3 100644 --- a/doc/rados/configuration/msgr2.rst +++ b/doc/rados/configuration/msgr2.rst @@ -188,16 +188,21 @@ By default, ``ms_bind_msgr2`` is true starting with Nautilus 14.2.z. However, until the monitors start using v2, only limited services will start advertising v2 addresses. -For most users, the monitors are binding to the default legacy port ``6789`` for the v1 protocol. When this is the case, enabling v2 is as simple as:: +For most users, the monitors are binding to the default legacy port ``6789`` +for the v1 protocol. When this is the case, enabling v2 is as simple as: - ceph mon enable-msgr2 +.. prompt:: bash $ + + ceph mon enable-msgr2 If the monitors are bound to non-standard ports, you will need to specify an additional port for v2 explicitly. For example, if your monitor ``mon.a`` binds to ``1.2.3.4:1111``, and you want to add v2 on -port ``1112``,:: +port ``1112``: + +.. prompt:: bash $ - ceph mon set-addrs a [v2:1.2.3.4:1112,v1:1.2.3.4:1111] + ceph mon set-addrs a [v2:1.2.3.4:1112,v1:1.2.3.4:1111] Once the monitors bind to v2, each daemon will start advertising a v2 address when it is next restarted.