vzdump maxfiles doesn't work for NFS volume

Ryan0751

Active Member
Feb 13, 2018
8
0
41
49
Boston, MA
I have a backup job configured to dump to a local disk, and setting maxfiles to 2 (in /etc/vzdump.conf) successfully limits the number of backups to just 2 on-disk per-vm.

I also have a NFS mounted volume, and when I create a backup job for that, the maxfiles parameter doesn't seem to be obeyed. vzdump will just fill the volume up to capacity with many backups.

Is there a way to fix this?
 
The following command shows you what number is really set for maxfiles for your storage
Code:
 cat /etc/pve/storage.cfg

You can change this number in the GUI in Datacenter → Storage → Edit or with
Code:
pvesm set <storage> --maxfiles <integer> (0 - N)