From f908dd82af65fbc367e9d61632194a4d5f91807e Mon Sep 17 00:00:00 2001 From: Zac Dover Date: Tue, 20 Dec 2022 03:41:22 +1000 Subject: [PATCH] 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) --- doc/rados/configuration/msgr2.rst | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/doc/rados/configuration/msgr2.rst b/doc/rados/configuration/msgr2.rst index e1beaf5dc4cc3..3e5e055b6a39a 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. -- 2.39.5