#!/bin/bash #from: https://docs.ceph.com/docs/nautilus/rados/troubleshooting/troubleshooting-mon/?highlight=trouble%20monitor#recovery-using-osds ms=/tmp/mon-store mkdir $ms hosts="ebin02 ebin01" # collect the cluster map from OSDs for host in $hosts; do rsync -avz $ms/. $host:$ms.remote rm -rf $ms ssh $host <