Backup and FC support? somehow possible?

fips

Renowned Member
May 5, 2014
175
7
83
Hi,

my infrastructure:
2x proxmox 4.1 hosts via FC connected to Open-E storage and backup via NFS to FreeNAS Storage.

Would it be somehow possible to create a "backup solution" where I could use the fast performance of FC?
I know backup on block devices is not possible, but maybe there is a workaround.
 
vzdump supports hook scripts, I bet you could write one to mount a backup filesystem from some FC volume.

Here is one of my hook scripts.
At the beginning of the backup it ssh to another server to mount an encrypted disk then mount that disk locally using SSHFS.
When backing up individual machines if the VMID Matches it deletes any previous backups before the backup starts. Some of these VMs are so large I have to delete them first to make room for the backup.
At the end of the backup the SSHFS and encrypted disk are unmounted
Code:
#!/bin/bash

if [ "$1" == "job-start" ]
then

        ssh root@someserver "cryptsetup luksOpen /dev/disk/by-uuid/00000000-a000-0000-0000-000000000000 backupa --key-file=/some/backup.key ; mount -o barrier=1,noatime,data=ordered /dev/mapper/backupa /remote_backup/a" || { echo 'failed to mount remote backup disk' ; exit 1; }
        sshfs -o nonempty root@someserver:/remote_backup/a /backup || { echo 'sshfs mount failed' ; exit 1; }
fi

if [[ "$1" == "job-end" || "$1" == "job-abort" ]]
then
        umount /backup
        ssh root@someserver "umount /remote_backup/a ; cryptsetup luksClose backupa"
fi

if [[ "$1" == "backup-start" ]]
then
        if [[ "$3" == "101" || "$3" == "103" || "$3" == "117" ]]
        then
                echo "Deleting previous backups of of vmid $3:"
                rm -fv /backup/dump/vzdump-qemu-$3-*.log
                rm -fv /backup/dump/vzdump-qemu-$3-*.vma.*
        fi
fi
 

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!