]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/cephadm: troubleshooting: manually deploy MGR
authorSebastian Wagner <sebastian.wagner@suse.com>
Mon, 15 Feb 2021 13:43:31 +0000 (14:43 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 9 Mar 2021 09:18:50 +0000 (10:18 +0100)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit a4179acbce3b9e71abb526a5b46436d6a3b96c82)

doc/cephadm/install.rst
doc/cephadm/troubleshooting.rst

index 361007d17a16355c3168e0f9b65b97641b0ad3ca..3835da317da395715cb666fc5b9f909293d15db8 100644 (file)
@@ -157,6 +157,8 @@ or run ``cephadm bootstrap -h`` to see all available options:
   the login info in its config database so other hosts added to the cluster
   may also make use of the authenticated registry.
 
+.. _cephadm-enable-cli:
+
 Enable Ceph CLI
 ===============
 
index e222d8f2e42cdb8febf48c3432f937410bfc0062..889d526bac2695f0b36384869cb8ba6841d7bf95 100644 (file)
@@ -247,4 +247,41 @@ form the monmap by following these steps:
 
 3. Follow the steps in :ref:`rados-mon-remove-from-unhealthy` 
 
+Manually deploying a MGR daemon
+-------------------------------
+
+cephadm requires a MGR daemon in order to manage the cluster. In case the cluster
+the last MGR of a cluster was removed, follow these steps in order to deploy 
+a MGR ``mgr.hostname.smfvfd`` on a random host of your cluster manually. 
+
+Disable the cephadm scheduler, in order to prevent cephadm from removing the new 
+MGR. See :ref:`cephadm-enable-cli`::
+
+  ceph config-key set mgr/cephadm/pause true
+
+Then get or create the auth entry for the new MGR::
+
+  ceph auth get-or-create mgr.hostname.smfvfd mon "profile mgr" osd "allow *" mds "allow *"
+
+Get the ceph.conf::
+
+  ceph config generate-minimal-conf
+
+Get the container image::
+
+  ceph config get "mgr.hostname.smfvfd" container_image
+
+Create a file ``config-json.json`` which contains the information neccessary to deploy
+the daemon:
+
+.. code-block:: json
+
+  {
+    "config": "# minimal ceph.conf for 8255263a-a97e-4934-822c-00bfe029b28f\n[global]\n\tfsid = 8255263a-a97e-4934-822c-00bfe029b28f\n\tmon_host = [v2:192.168.0.1:40483/0,v1:192.168.0.1:40484/0]\n",
+    "keyring": "[mgr.hostname.smfvfd]\n\tkey = V2VyIGRhcyBsaWVzdCBpc3QgZG9vZi4=\n"
+  }
+
+Deploy the daemon::
+
+  cephadm --image <container-image> deploy --fsid <fsid> --name mgr.hostname.smfvfd --config-json config-json.json