OPNsense Forum

English Forums => General Discussion => Topic started by: spark5 on August 19, 2020, 11:26:42 AM

Title: opnsense on proxmox and snapshot backup
Post by: spark5 on August 19, 2020, 11:26:42 AM
hi, hope to be here right.
i'm testing an opnsense cluster on proxmox. everything is working fine.

now i saw, that during backup (snapshot), that the cluster was switching.
proxmox did a short freeze to clear all the caches and so on.

does anybody here have any experiences with opnsense backup on proxmox?
is it better to take a snapshot and save the config.xml regularly?

thanks for help and kind regards,
ronny
Title: Re: opnsense on proxmox and snapshot backup
Post by: skydiablo on November 02, 2020, 08:19:22 AM
similar problem: proxmox + opnsense + backup.

i store all my backups on an cifs storage far away, this is routed throw an wireguard tunnel, provided by given opnsense. if i try to backup this opnsense, it will fail with an timeout:


()
INFO: starting new backup job: vzdump 114 --remove 0 --storage backup --mode snapshot --node pve08 --compress zstd
INFO: Starting Backup of VM 114 (qemu)
INFO: Backup started at 2020-11-02 08:11:43
INFO: status = running
INFO: VM Name: opnsense
INFO: include disk 'scsi0' 'volumes:vm-114-disk-0' 32G
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: creating vzdump archive '/mnt/pve/backup/dump/vzdump-qemu-114-2020_11_02-08_11_43.vma.zst'
ERROR: got timeout
ERROR: Backup of VM 114 failed - got timeout
INFO: Failed at 2020-11-02 08:14:58
INFO: Backup job finished with errors
TASK ERROR: job errors


as i can image, the opnsense will freez for an short time, tunnel is unavailable and backup fail. any suggestions? maybe i can run two opnsense with failover for the wirequard tunnel, is this possible?
Title: Re: opnsense on proxmox and snapshot backup
Post by: lfirewall1243 on November 02, 2020, 09:27:14 PM
It's more a Proxmox topic.
So it would be better to ask in the Proxmox community for a solution.

I think it's a problem with your kind of storage that isn't supporting live snapshots completely. Every VM will freeze on that but you aren't recognize the small freeze on the other systems. But OPNsense or vpn is a instant  system where you recognize each little freeze

Or maybe reduce the KiB/s for snapshots. Probably your diskio is freezing the vms
Title: Re: opnsense on proxmox and snapshot backup
Post by: skydiablo on November 10, 2020, 07:39:37 AM
it is an ceph storage, so yes, maybe it is more an proxmox topic... on the other hand, just backup an setting export from opnsense will do the job too, i have set my nextcloud as auto-backup destination... thx...