]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
doc: update mondb recovery script
authorHannes von Haugwitz <hannes@vonhaugwitz.com>
Wed, 12 Jun 2019 13:18:17 +0000 (15:18 +0200)
committerHannes von Haugwitz <hannes@vonhaugwitz.com>
Wed, 12 Jun 2019 15:16:25 +0000 (17:16 +0200)
- be specific about stopped OSDs
- add missing '--no-mon-config' option
- fix indent of here script delimiting identifier
- use $host variable in for loop

Signed-off-by: Hannes von Haugwitz <hannes@vonhaugwitz.com>
doc/rados/troubleshooting/troubleshooting-mon.rst

index ae6cfa530088100f5c4dfd533863e8e5fbc280ae..b2f3a2137a93231c34029b0ab0cc5cabdf7ae41c 100644 (file)
@@ -419,16 +419,16 @@ information stored in OSDs.::
   ms=/root/mon-store
   mkdir $ms
   
-  # collect the cluster map from OSDs
+  # collect the cluster map from stopped OSDs
   for host in $hosts; do
-    rsync -avz $ms/. user@host:$ms.remote
+    rsync -avz $ms/. user@$host:$ms.remote
     rm -rf $ms
-    ssh user@host <<EOF
+    ssh user@$host <<EOF
       for osd in /var/lib/ceph/osd/ceph-*; do
-        ceph-objectstore-tool --data-path \$osd --op update-mon-db --mon-store-path $ms.remote
+        ceph-objectstore-tool --data-path \$osd --no-mon-config --op update-mon-db --mon-store-path $ms.remote
       done
-    EOF
-    rsync -avz user@host:$ms.remote/. $ms
+  EOF
+    rsync -avz user@$host:$ms.remote/. $ms
   done
   
   # rebuild the monitor store from the collected map, if the cluster does not