[error] cant delete unused disk

HenryTheTech

Well-Known Member
May 20, 2018
54
4
48
55
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