Hi
A while ago we were close to loosing our monitors (disk free space got
thin after a 3 hour network outage) so I am trying to get some grip on
restoring the mon db's from osds with ceph-objectstore-tool according to
this page
https://docs.ceph.com/en/latest/rados/troubleshooting/troubleshooting-mon/#recovery-using-osds.
Just in case.
However the first lines of the shellscript do not seem to be accurate.
I've written some comments inbetween to clarify
<snip>
ms=/root/mon-store
mkdir $ms
# collect the cluster map from stopped OSDs
for host in $hosts; do
rsync -avz $ms/. user@$host:$ms.remote
# my comment1: this makes the previous rsync fail in the next loop.
easy to fix
rm -rf $ms
ssh user@$host <<EOF
for osd in /var/lib/ceph/osd/ceph-*; do
ceph-objectstore-tool --data-path \$osd --no-mon-config --op
update-mon-db --mon-store-path $ms.remote
done
EOF
# my comment2
# since previous commands produces filenames that are mostly the same
for each host, this sync will overwrite all data
# with the data of the last host. Not sure how to fix in order to
rebuild a new mon database from all host data
rsync -avz user@$host:$ms.remote/. $ms
done
</snip>
Does anyone have an idea how this is supposed to work?
Marcel
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx