cephadm node failure (re-use OSDs instead of reprovisioning)
Hi list, In case of an OS disk failure on a cephadm managed storage node, is there a way to redeploy ceph on the (reinstalled) node leaving the data (OSDs) intact? So instead of removing the storage node, have the cluster recover, redeploy the storage node, and let the cluster recover, I would like to skip both recovery steps (when all that is broken is an OS disk) and only have a little bit of recovery while the OSDs where down. With a package based install this is achieved pretty easily: reinstall OS / ceph, make sure ceph keyrings are in right place / right owner (ceph) and run: ceph-volume lvm activate --all ... and you are back in business. Thanks, Stefan
Hi, of course there is: https://docs.ceph.com/en/latest/cephadm/services/osd/#activate-existing-osds It has worked great for us. The orchestrator will ensure that keyrings and configs are copied (if set to managed), so you really just have to restore the OS. So after you reinstalled the OS, you just need to run: ceph cephadm osd activate <host> Zitat von Stefan Kooman <stefan@bit.nl>:
Hi list,
In case of an OS disk failure on a cephadm managed storage node, is there a way to redeploy ceph on the (reinstalled) node leaving the data (OSDs) intact?
So instead of removing the storage node, have the cluster recover, redeploy the storage node, and let the cluster recover, I would like to skip both recovery steps (when all that is broken is an OS disk) and only have a little bit of recovery while the OSDs where down.
With a package based install this is achieved pretty easily: reinstall OS / ceph, make sure ceph keyrings are in right place / right owner (ceph) and run: ceph-volume lvm activate --all ... and you are back in business.
Thanks,
Stefan
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
On 13-11-2024 18:13, Eugen Block wrote:
Hi,
of course there is:
https://docs.ceph.com/en/latest/cephadm/services/osd/#activate-existing- osds
It has worked great for us. The orchestrator will ensure that keyrings and configs are copied (if set to managed), so you really just have to restore the OS. So after you reinstalled the OS, you just need to run:
ceph cephadm osd activate <host>
Thanks a lot! I have been searching for this but did not find it. Gr. Stefan
participants (2)
-
Eugen Block
-
Stefan Kooman