Orphaned VM Disk Removal

kromberg

Member
Nov 24, 2021
87
6
13
53
I got a disk sitting out on the storage device that is orphaned. It was created when I moved the disk for the VM from one storage device to another and forgot to check the delete source box. How can I delete this disk? It is not showing up with the VM config, but proxmox believes it belongs to the VM when looking at the storage device.
 
Your VM's Disk(s) will usually be located at /mnt/pve/{StorageNm}/images/{VMID}/

Find the correct {StorageNm} & {VMID} used and then you can ls /mnt/pve/{StorageNm}/images/{VMID}/ to get a list of disk(s) used
replacing the correct {StorageNm} & {VMID}.

Once your certain which one is the orphan you can simply remove with rm /mnt/pve/{StorageNm}/images/{VMID}/{orphan.xxxx}
replacing the correct {StorageNm} & {VMID} & {orphan.xxxx}.
 
The disk is in a zfs pool and not a disk. I would need to destroy the dataset/vdev right?
 
I really dont understand why there is even an option for not deleting the source disk when moving it. Or at least the default is to have the box checked.
 

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!