]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: fix the script for rebuild monitor db 11962/head
authorKefu Chai <kchai@redhat.com>
Mon, 14 Nov 2016 07:13:52 +0000 (15:13 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 14 Nov 2016 07:34:46 +0000 (15:34 +0800)
- escape the "$" in "$osd", so it won't be expanded by local shell
- fix the permission bits of /var/lib/ceph/mon/mon.0/store.db
- add the doc to explain the step to prepare the keyring

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

index a50db4cb9eb3f8c09d588b91922892179d3885ec..51b1ccac5dd99161771f749453fe8018ba09da28 100644 (file)
@@ -424,7 +424,7 @@ information stored in OSDs.::
     rm -rf $ms
     ssh user@host <<EOF
       for osd in /var/lib/osd/osd-*; do
-        ceph-objectstore-tool --data-path $osd --op update-mon-db --mon-store-path $ms
+        ceph-objectstore-tool --data-path \$osd --op update-mon-db --mon-store-path $ms
       done
     EOF
     rsync -avz user@host:$ms $ms
@@ -441,11 +441,13 @@ information stored in OSDs.::
   # backup corrupted store.db just in case
   mv /var/lib/ceph/mon/mon.0/store.db /var/lib/ceph/mon/mon.0/store.db.corrupted
   mv /tmp/mon-store/store.db /var/lib/ceph/mon/mon.0/store.db
+  chown -R ceph:ceph /var/lib/ceph/mon/mon.0/store.db
 
 The steps above
 
 #. collect the map from all OSD hosts,
 #. then rebuild the store,
+#. fill the entities in keyring file with appropriate caps
 #. replace the corrupted store on ``mon.0`` with the recovered copy.
 
 Known limitations