Cannot delete this raw disk from Ceph storage pool

Ahmad Dhamiri

Member
Jul 25, 2019
14
0
6
29
Greetings all.

This is my first time playing around Proxmox environment. Yesterday, I was trying to redo a Ceph pool storage and try to remove a container from the cluster that is connected to the Ceph pool storage. The container is a success, but then I encounter this problem where I cannot delete this raw disk file. I've tried several methods I can think of, but even in command line I can't seem to find this disk.

Anyone have the solution?

I'm using Proxmox VE 5.4 by the way.

upload_2019-7-26_12-20-11.png
 
It seems the disk is not on the Ceph pool anymore. Try a 'rbd -p <pool_name> ls' to see if it still exists there.
 
Thanks for the response Alwin.

I just issue the command you've mentioned and it shows that the disk is still available.
Is there any command I need to issue to remove the disk?

Refer to the figure below.

upload_2019-7-26_16-6-45.png

Best regards,
Ahmad Dhamiri.
 
Does the template or the container still exist? If so, then you need to delete them or remove the disk from their config.
 
  • Like
Reactions: SebastianSegeth
I'm afraid I've deleted the template. Tried to ls several times but to no avail.
Is the location in the figure below to the template is correct?

upload_2019-7-26_16-35-2.png

Regards,
Ahmad Dhamiri
 
Ok, if you are sure, you don't need it anymore, then run a 'rbd -p <pool> rm base-101-disk-0' to remove it from ceph.
 
Hi Alwin,

Sorry for the late reply. Just tried to run the command you suggested, I think it's almost success but then it issues this alert (refer to the image below):
upload_2019-7-29_9-24-33.png

Here are questions popped in my head right now:
1) Is watcher mentioned in the error message means the deleted container?
2) If so, how do I unmap the image from the already deleted watcher?
3) In future, if I want to delete a container, should I remove the image (disk) attached to it first?

Regards,
Ahmad Dhamiri
 
1) Is watcher mentioned in the error message means the deleted container?
yes.
2) If so, how do I unmap the image from the already deleted watcher?
'rbd unmap /dev/rbd/<image>', but the watcher just means that a connection is holding the image open, not that there is an acting client.
3) In future, if I want to delete a container, should I remove the image (disk) attached to it first?
This is usually done by the removal of the container itself. Whatever happend during the container removal, stopped the deletion of the image.
 
  • Like
Reactions: Ahmad Dhamiri
1) yes.
2) 'rbd unmap /dev/rbd/<image>', but the watcher just means that a connection is holding the image open, not that there is an acting client.
3) This is usually done by the removal of the container itself. Whatever happend during the container removal, stopped the deletion of the image.

Thank you for the answers Alwin, appreciate the feedback.

I think there is something happened during the deletion of the VM/Container, but I couldn't trace it.
I think I might skip this problem for now since it dosen't affect my playthrough, I hope.
 

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!