[SOLVED] Can’t delete orphaned disk from Ceph

herzkerl

Active Member
Mar 18, 2021
104
22
38
Dear community, I can’t remove a disk image from our Ceph storage despite the image not being used by the VM.

Bildschirm­foto 2022-11-30 um 09.06.15.png
Bildschirm­foto 2022-11-30 um 09.06.00.png

And yes, it does say the same in the config file.

Code:
scsi0: ceph-nvme:vm-109-disk-0,discard=on,size=50G,ssd=1
scsi1: ceph-ssd-ec:vm-109-disk-0,backup=0,iothread=1,size=5T,ssd=1
scsi2: ceph-hdd-size-2:vm-109-disk-1,backup=0,iothread=1,size=5T

What am I missing?
 
despite the image not being used by the VM.
Select the disk, then click detach and then remove the unused disk.
 
Select the disk, then click detach and then remove the unused disk.
Sorry, there was a screenshot missing. I was referring to the disk image vm-109-disk-0 which still exists on ceph-hdd-size-2. I’m not sure, but it looks life I moved it to ceph-ssd-ec in the past and forgot to delete it.

Bildschirm­foto 2022-11-30 um 09.06.07.png
 
Right. Run
Code:
qm rescan --vmid 109
, and the disk should be added to the VM as unused disk, then you can remove it.
 
  • Like
Reactions: bondif and herzkerl
There is also pvesm free, which will directly remove a volume. Our docs/man pages describe how to use it.
This will completely and irrecoverably destroy all data, so be careful to give it the correct volume.
 
  • Like
Reactions: herzkerl
There is also pvesm free, which will directly remove a volume. Our docs/man pages describe how to use it.
This will completely and irrecoverably destroy all data, so be careful to give it the correct volume.
Thank you, pvesm free ceph-hdd-size-2:vm-109-disk-0 worked :)
 
  • Like
Reactions: anggafajar