Skip to content

Instantly share code, notes, and snippets.

@hunzo
Created August 21, 2025 01:57
Show Gist options
  • Save hunzo/d6e647ffb85431084ca90ef41cf42014 to your computer and use it in GitHub Desktop.
Save hunzo/d6e647ffb85431084ca90ef41cf42014 to your computer and use it in GitHub Desktop.
fix ceph-mon start error

ceph-mon start error

Check process

ps -ef | grep ceph-mon
netstat -tulnp | grep 6789
  • if exist kill process
kill -9 <PID>

Check mon map

ceph mon dump
  • if exist ceph mon remove
ceph mon remove <mon-name>

Check /etc/ceph/ceph.config

  • check ip

Clear socket

ls /var/run/ceph/
rm -f /var/run/ceph/ceph-mon.*

Create and Restart

systemctl start ceph-mon@<hostname>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment