Hello folks,
there is a lot of different documentation out there about how to remove an OSD. I am little bit confused from the cl260 student guide. It shows the following procedure to remove an OSD:
ceph orch daemon stop osd.ID
ceph orch daemon rm osd.ID --force
ceph orch osd rm status
ceph osd rm ID
ceph orch device zap --force <fqdn> /dev/vdf
From the Red Hat Ceph 5 Operations Guide I extract that it is much simpler:
ceph orch osd rm ID --zap
Can anyone confirm if this one command is enough to cleanly remove an OSD from the cluster ?
Many thanks in advance !
redgards Hendrik
Dear Redgards Hendrik, good morning!
Yes, these commands will remove the OSD from the cluster. However, if you want to reuse it, please execute the following commands to clean the data from this OSD:
root@server01:~# dmsetup ls
The output of the above command will be something like:
ceph--32cf57cb--f89e--41c4--98da--e5ac6c4bee50-osd--block--3a158f14--0392--4020--a940--265d565a1ad3 (253:5)
This is the record of this OSD in the CEPH cluster. To remove it, execute:
root@server01:~# dmsetup remove ceph--32cf57cb--f89e--41c4--98da--e5ac6c4bee50-osd--block--3a158f14--0392--4020--a940--265d565a1ad3
Then, to completely clean the disk:
root@server01:~# wipefs -a /dev/sdX
After this procedure, the disk will be available for use again, if needed.
Best regards,
Everton Costa Pasqualin
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.