how to drop ceph osd block?

12/31/2020

I build a ceph cluster with kubernetes and it create an osd block into the sdb disk. I had delete the ceph cluster but cleanup all the kubernetes instance which were created by ceph cluster, but it did't delete the osd block which is mounted into sdb.

enter image description here

I am a beginner in kubernetes. How can I remove the osd block from sdb. And why the osd block will have all the disk space?

-- Jack Xu
ceph
kubernetes

1 Answer

12/31/2020

I find a way to remove osd block from disk on ubuntu18.04:

Use this command to show the logical volume information:

$ sudo lvm lvdisplay

Then you will get the log like this:

enter image description here

Then execute this command to remove the osd block volumn.

$ sudo lvm lvremove <LV Path>

Check if we have removed the volume successfully.

$ lsblk

-- Jack Xu
Source: StackOverflow