[error] cant delete unused disk

HenryTheTech

Active Member
May 20, 2018
54
3
28
54
I deleted the ZFS storage first from the datacenter, and now there's an entry in the resources tab of my container for an "unused disk" that I cannot rid myself of.

I already destroyed the ZFS filesystem so not sure what to do now...
 
Hi,

you must edit the <vmid>.conf manually and remove the unused disk.

This file is located on /etc/pve/lxc/<VMID>.conf
 
Thank you sir for your help! I haven't been able to test your solution just yet but I will in the next day and report my findings. |
Cheers,
Henry
 
Hi,

you must edit the <vmid>.conf manually and remove the unused disk.

This file is located on /etc/pve/lxc/<VMID>.conf

There haven't been any progress/plans to add a CLI method for this?
Typically via pvesh to remove it from both vm and containers would be nice, unless it's included in pct and qm.
 
No this is an error state and no common case.
I'm at lost how this is a "error state"???

ie. I decided to NOT delete the source during a disk/volume move, and then when tests have been concluded delete it, else I want to fall back to the old volume.

Ditto If I "disconnect" the volume/disk at then delete it after a week, or to re-attach it at a different mount/disk sata/ssi/ide port.

Still not an "error state" from my perspective, so an explanation would be great to understand that "error state"
 
This thread is under the assumption that the storage definition was removed and the storage does not exist.
So if you use threads please read the assumption in it.
Your case is completely different.
In your case, you can use
Code:
qm set <VMID> set --delete unused<x>
 
  • Like
Reactions: hvisage

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!