Reinstalling proxmox and ceph - keeping osd

Daxcor

Member
Oct 31, 2021
49
2
13
58
Hello,

I wish to rebuild a host with a new installation of proxmox and ceph. Is it possible to "out" the osd, reinstall, and then "in" the osd? Is it that simple? I could destroy the osd do the reinstall and then rebuild the osd from replication , but I am trying not to do that.

Any suggestions, thoughts or cautions on this proceedure.
thanks
Brad
 
Any suggestions, thoughts or cautions on this proceedure.
Disclaimer first: I have never done that and I am not a Ceph specialist.

Ceph is using an authentication mechanism with some "keyrings" involved. I really hope that adding a foreign OSD (with content) to a freshly setup cluster does not work.

Maybe saving and restoring "/etc/pve/ceph/*" + "/etc/pve/priv/ceph/*" + "/var/lib/ceph/*" would solve that problem. (Probably that's not all relevant data.)

On the other hand you are probably not the first person who tries to reestablish a Ceph system without data loss, so maybe there are tutorials to do that...?

Whatever you do: have backups. Then have another set of backups. Make sure "restore" does actually work.