container shows wrong disk usage?

Code:
root@limone:~# pvs
  PV         VG  Fmt  Attr PSize   PFree
  /dev/sda3  pve lvm2 a--  311.75g 15.79g

Code:
root@limone:~# vgs
  VG  #PV #LV #SN Attr   VSize   VFree
  pve   1  16   0 wz--n- 311.75g 15.79g
 
Ok I now did
Code:
  pct mount $vmid
and
Code:
fstrim /var/lib/lxc/$vmid/rootfs
for every single vm and i got my disk space back

upload_2017-10-16_16-3-50.png

is there any way to do this automatically? did this happen because the containers are unprivileged?

edit: ok no the container which freed like 50GB is privileged
 
Last edited:
so maybe your thin-pool was partially corrupted and the mount/unmount has triggered some ext cleanup code? this is the only thing which comes to mind for this behaviour
 
I think I'll just use esxi and get away from containers :(
 
Last edited: