/etc/vzdump.conf value being ignored ?

leenux_tux

Renowned Member
Mar 21, 2013
27
0
66
England
Hello forum,

I'm trying to enable the possibility of having multiple backups for a VM. I have edited the /etc/vzdump.conf file and added maxfiles: 5 at the bottom of the file. The contents of the file are now as follows...


# vzdump default settings

#tmpdir: DIR
#dumpdir: DIR
#storage: STORAGE_ID
#mode: snapshot|suspend|stop
#bwlimit: KBPS
#ionice: PRI
#lockwait: MINUTES
#stopwait: MINUTES
#size: MB
#maxfiles: N
#script: FILENAME
#exclude-path: PATHLIST
#pigz: N:

maxfiles: 5

Do I need to reload a service for the Proxmox GUI to re-read the new value ? When I attempt a backup via the GUI I get an error stating the backup can not be completed "Only 1 backup(s) allowed", however, I can manually do a backup via the command line using the following command..

vzdump 104 -dumpdir /mnt/pve/VM_BACKUPS/dump/ -compress lzo

The backup process can be seen in the GUI and the new backup file appears in the GUI.

Any pointers folks as this has got me stumped.


 
Maybe it is already defined in you storage configuration (/etc/pve/storage.cfg)? (The setting from the storage overwrites settings in vzdump.conf)
 
Yes, it was set to 1 in that file, I have changed it and now I can create multiple backups from the GUI. Does this mean that running vzdump from the command line looks at different config files versus running vzdump from the GUI ? Seems strange that there are two files where this option can be set.
 
Yes, it was set to 1 in that file, I have changed it and now I can create multiple backups from the GUI. Does this mean that running vzdump from the command line looks at different config files versus running vzdump from the GUI ? Seems strange that there are two files where this option can be set.

no, but you can set a global limit (in /etc/vzdump.conf) and a limit for each storage (which has a higher priority, and is set in /etc/pve/storage.cfg)