local container storage increases rapidly

Mohamed faiyaz

New Member
Mar 10, 2016
8
0
1
36
hi,
my local node storage /dev/mapper/pve-data keeps on increasing daily with 0.2 percent and utilizing the disk space resulting in loss of storage.
when i search the utilization using df -kh i can see the utilization of 2 GB per day,

the utilization varies daily from 43.7 % to 44.9 percent in one week. the local storage is mounted on /var/lib/vz.


please suggest us how we can standardize the storage as i have allocated full storage to lv.

i have another node whose local storage is constant.
 
I assume you use a directory storage (.raw files maouted as ext4). I so, it may help if you run fstrim inside the container (once a day).
 
hi Dietmar,

thanks for the response. yes we are using the type directory and the path is /var/lib/vz. can i run this fstrim online. is it okay
 
this particular node has one virtual machine which is running database server whose files were growing rapidly on a daily basis.
 
hi anyone please help me on this.
FITRIM IOCTL failed. i have verified that the file system is .ext3 and there is no crypttab file to enable the discard option. whereas in lvm.conf the discard has already been set to 1. can anyone help on this. the files were attached here.
 

Attachments

  • proxmox.jpg
    proxmox.jpg
    54.4 KB · Views: 5