]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: update mondb recovery script 33172/head
authorKefu Chai <kchai@redhat.com>
Mon, 10 Feb 2020 09:36:04 +0000 (17:36 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 10 Feb 2020 09:38:28 +0000 (17:38 +0800)
to note that we also need to add mgr's key to monitor's keyring

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/rados/troubleshooting/troubleshooting-mon.rst

index e8d32c4cae95e8fbb6a150be96a56a5531a17c0d..2f4fe23f13b31e2cd0d81ffa06553163327a912f 100644 (file)
@@ -439,6 +439,12 @@ information stored in OSDs.::
     --cap mon 'allow *'
   ceph-authtool /path/to/admin.keyring -n client.admin \
     --cap mon 'allow *' --cap osd 'allow *' --cap mds 'allow *'
+  # add one or more ceph-mgr's key to the keyring. in this case, an encoded key
+  # for mgr.x is added, you can find the encoded key in
+  # /etc/ceph/${cluster}.${mgr_name}.keyring on the machine where ceph-mgr is
+  # deployed
+  ceph-authtool /path/to/admin.keyring --add-key 'AQDN8kBe9PLWARAAZwxXMr+n85SBYbSlLcZnMA==' -n mgr.x \
+    --cap mon 'allow profile mgr' --cap osd 'allow *' --cap mds 'allow *'
   # if your monitors' ids are not single characters like 'a', 'b', 'c', please
   # specify them in the command line by passing them as arguments of the "--mon-ids"
   # option. if you are not sure, please check your ceph.conf to see if there is any