[SOLVED] Migrating a VM with 48G disk migrates 400Gb.

drjaymz@

Member
Jan 19, 2022
124
5
23
102
I am not quite sure what's happening here. I am migrating a VM that has a disk that is 48G vm-101-disk-2
But when migrating it finds a whole lot more to migrate that I expected.

1705482022595.png

Migration

1705482079475.png

In the pool for 101 I find:

1705482237691.png

What are these sub-vols and where did they come from?
Are they orphaned from another VM/CT that had id 101?
 
These disks are not from this VM, they are from a container that used to have ID 101. I just checked the hostname. There's a root disk and a /var disk which is what they are. So how to remove these disks? Is it safe to just remove them from the pool?
 
1705483929523.png

Nope - but:

# qm rescan
rescan volumes...
VM 101 add unreferenced volume 'local-zfs:subvol-101-disk-0' as 'unused0' to config
VM 101 add unreferenced volume 'local-zfs:subvol-101-disk-1' as 'unused1' to config

Then I removed it and disks are gone and disk space is looking healthier.