Ceph.conf is empty after editing it on a running Ceph cluster

ChrisE

Member
Jun 5, 2017
8
1
8
30
Netherlands
We wanted to edit the /etc/pve/ceph.conf to decrease the I/O when remove/adding a SSD to the cluster. I found on the proxmox forum that we can use:

osd max backfills = 1
osd recovery max active = 1


To reduce the I/O when its rebuilding.
So I picked one node and directly edit the /etc/pve/ceph.conf

But after editing /etc/pve/ceph.conf we were unable to view the OSDs in the web interface. It only showed: rados_connect failed - No such file or directory (500). And all the monitors were gone in the tab Monitor.

Then I saw that the ceph.conf was completely empty on all the nodes, Fortunately ceph is still running.
I made a screenshot of the ceph.conf before I started, but can I just copy that into the empty ceph.conf or not?

So the question is how can I fix the problem with the ceph.conf?
And what is the best way to edit the ceph.conf on a running cluster?

Any and all help would be greatly appreciated.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!