ceph monitor重建
本文介绍一下如何从OSD来恢复monitor。
在所有host上执行如下脚本(collect_mon_store.sh):
#!/bin/sh
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 /root/mon-store/
done
参考: