diff options
author | Kefu Chai <kchai@redhat.com> | 2019-06-13 02:36:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-13 02:36:16 +0200 |
commit | 494d624997d08c11c3b0558d61ea105adfbf1289 (patch) | |
tree | 4ae3cd3f50391e711e1ef2999e462a2bab101348 | |
parent | Merge PR #28473 into master (diff) | |
parent | doc: update mondb recovery script (diff) | |
download | ceph-494d624997d08c11c3b0558d61ea105adfbf1289.tar.xz ceph-494d624997d08c11c3b0558d61ea105adfbf1289.zip |
Merge pull request #28515 from hvhaugwitz/mondb-recovery-script
doc: update mondb recovery script
Reviewed-by: Kefu Chai <kchai@redhat.com>
-rw-r--r-- | doc/rados/troubleshooting/troubleshooting-mon.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/rados/troubleshooting/troubleshooting-mon.rst b/doc/rados/troubleshooting/troubleshooting-mon.rst index ae6cfa53008..b2f3a2137a9 100644 --- a/doc/rados/troubleshooting/troubleshooting-mon.rst +++ b/doc/rados/troubleshooting/troubleshooting-mon.rst @@ -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 |