/etc/vzdump.conf value being ignored ?

leenux_tux

Member
Mar 21, 2013
27
0
21
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)
 

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!