From: Sebastian Wagner Date: Mon, 15 Feb 2021 10:39:33 +0000 (+0100) Subject: doc/cephadm: Disable automatic deployment of daemons X-Git-Tag: v16.2.0~178^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6d29f9cd3d5c3ad84bdadc7cb786fd079db8126e;p=ceph.git doc/cephadm: Disable automatic deployment of daemons Fixes: https://tracker.ceph.com/issues/45767 Signed-off-by: Sebastian Wagner (cherry picked from commit 5c872ace45d2a2f4cb6e42802c1a658fe334461b) --- diff --git a/doc/cephadm/operations.rst b/doc/cephadm/operations.rst index f852ef94424d..ec7fea6b2b40 100644 --- a/doc/cephadm/operations.rst +++ b/doc/cephadm/operations.rst @@ -355,3 +355,65 @@ the following command on the host: .. code-block:: bash cephadm rm-daemon --fsid CLUSTER_ID --name SERVICE_NAME + + +.. _cephadm-spec-unmanaged: + +Disable automatic deployment of daemons +======================================= + +Cephadm supports disabling the automated deployment and removal of daemons per service. In +this case, the CLI supports two commands that are dedicated to this mode. + +To disable the automatic management of dameons, apply +the :ref:`orchestrator-cli-service-spec` with ``unmanaged=True``. + +``mgr.yaml``: + +.. code-block:: yaml + + service_type: mgr + unmanaged: true + placement: + label: mgr + +.. code-block:: bash + + ceph orch apply -i mgr.yaml + +.. note:: + + cephadm will no longer deploy any new daemons, if the placement + specification matches additional hosts. + +To manually deploy a daemon on a host, please execute: + +.. code-block:: bash + + ceph orch daemon add --placement= + +For example + +.. code-block:: bash + + ceph orch daemon add mgr --placement=my_host + +To manually remove a daemon, please run: + +.. code-block:: bash + + ceph orch daemon rm ... [--force] + +For example + +.. code-block:: bash + + ceph orch daemon rm mgr.my_host.xyzxyz + +.. note:: + + For managed services (``unmanaged=False``), cephadm will automatically + deploy a new daemon a few seconds later. + +* See :ref:`orchestrator-cli-create-osds` for special handling of unmanaged OSDs. +* See also :ref:`cephadm-pause` \ No newline at end of file diff --git a/doc/cephadm/troubleshooting.rst b/doc/cephadm/troubleshooting.rst index d90de10759b7..e222d8f2e42c 100644 --- a/doc/cephadm/troubleshooting.rst +++ b/doc/cephadm/troubleshooting.rst @@ -7,6 +7,8 @@ a specific service no longer runs properly. As cephadm deploys daemons as containers, troubleshooting daemons is slightly different. Here are a few tools and commands to help investigating issues. +.. _cephadm-pause: + Pausing or disabling cephadm ---------------------------- @@ -26,6 +28,9 @@ This will disable all of the ``ceph orch ...`` CLI commands but the previously deployed daemon containers will still continue to exist and start as they did before. +Please refer to :ref:`cephadm-spec-unmanaged` for disabling individual +services. + Per-service and per-daemon events --------------------------------- diff --git a/doc/mgr/orchestrator.rst b/doc/mgr/orchestrator.rst index 0d1b4192e5a6..e434bf490cd2 100644 --- a/doc/mgr/orchestrator.rst +++ b/doc/mgr/orchestrator.rst @@ -198,6 +198,8 @@ If you want to avoid this behavior (disable automatic creation of OSD on availab ceph orch apply osd --all-available-devices --unmanaged=true +* For cephadm, see also :ref:`cephadm-spec-unmanaged`. + Remove an OSD ------------- :: @@ -703,7 +705,7 @@ where the properties of a service specification are: If set to ``true``, the orchestrator will not deploy nor remove any daemon associated with this service. Placement and all other properties will be ignored. This is useful, if this service should not - be managed temporarily. + be managed temporarily. For cephadm, See :ref:`cephadm-spec-unmanaged` Each service type can have additional service specific properties.