Rescan LVM-Thin Volume

starnetwork

Renowned Member
Dec 8, 2009
422
10
83
Hi,
I have node with 4 LXC Containers
one container about 85GB
one is about 10GB
one about 105GB
and last is 8GB
total of about: 210GB
now. the LVM-Thin Volume show me this details:
Usage: 97.76% (974.18 GiB of 996.50 GiB)
local no any backups / images.

any suggestion how can I "rescan" the volume usage and show the right usage?

Regards,
 
Hi,

what do you get is you call

Code:
lvs -a
 
Hi,

what do you get is you call

Code:
lvs -a

Please, here:
Code:
root@server216:~# lvs -a
  LV              VG  Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  data            pve twi-aotz-- 996.50g             97.78  47.63
  [data_tdata]    pve Twi-ao---- 996.50g
  [data_tmeta]    pve ewi-ao---- 128.00m
  [lvol0_pmspare] pve ewi------- 128.00m
  root            pve -wi-ao----  96.00g
  swap            pve -wi-ao----   8.00g
  vm-2161-disk-1  pve Vwi-aotz-- 600.00g data        95.66
  vm-319-disk-1   pve Vwi-aotz-- 300.00g data        84.47
  vm-321-disk-1   pve Vwi-aotz-- 130.00g data        95.31
  vm-324-disk-1   pve Vwi-aotz-- 100.00g data        23.09
 
Did you trim your disks?
 
You have to enable discard on the vm disk and then run fstrim in the VM or set discard as mount option in the VM.
 
With container there is no need to set this parameter.
 
all of
vm-2161-disk-1
vm-319-disk-1
vm-321-disk-1
vm-324-disk-1
are containers
how can I solve that size issue?

Regards,
 
Thanks for that option:
1. is is SAS Disks and not SSD, Guess it does not matter
2. how can I enable discard mount for XLC Containers?
3. trim your fs with fstrim, mean on container level or on main filesystem level?

Regards,
 
Thanks again,
as fo #2
This is enabled by default.
so if it's enabled, why I have this issue?

Regards,
 

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!