[PVE-User] Backup to samba share stalling/locking up
Bart Lageweg | Bizway
bart at bizway.nl
Mon Feb 24 09:00:30 CET 2014
Hi Lindasy,
We are using the rack QNAP on 2 locations with NFS, backup first to local and copy to QNAP (40+ nodes).
/etc/vzdump.conf
Script: /usr/local/bin/backup-hook.pl
#!/usr/bin/perl -w
# hook script for vzdump (--script option
use strict;
print "HOOK: " . join (' ', @ARGV) . "\n";
# config
my $phase = shift;
my $mode = shift; # stop/suspend/snapshot
my $vmid = shift;
my $vmtype = $ENV{VMTYPE}; # openvz/qemu
my $dumpdir = $ENV{DUMPDIR};
my $hostname = $ENV{HOSTNAME};
my $tarfile = $ENV{TARFILE};
my $logfile = $ENV{LOGFILE};
my $backuplocatie = "/mnt/pve/sharenameNFS/dump";
my %dispatch = (
"job-start" => \&nop,
"job-end" => \&nop,
"job-abort" => \&nop,
"backup-start" => \&nop,
"backup-end" => \&backup_end,
"backup-abort" => \&nop,
"log-end" => \&log_end,
"pre-stop" => \&nop,
"pre-restart" => \&nop,
);
sub upload {
system("mv -f $backuplocatie/vzdump-qemu-$hostname-$vmid.vma.lzo $backuplocatie/vzdump-qemu-oud-$hostname-$vmid.vma.lzo");
system("cp $tarfile $backuplocatie/vzdump-qemu-$hostname-$vmid.vma.lzo") == 0 ||
die "upload cp $tarfile $backuplocatie/dump/vzdump-qemu-$hostname-$vmid.vma.tar.lzo backup-host failed";
print "HOOK: upload " . $tarfile . " to $backuplocatie/vzdump-qemu-$hostname-$vmid.vma.lzo done\n"; }
sub nop {
# nothing
}
sub backup_end {
upload($tarfile);
}
sub log_end {
# upload($logfile);
}
-----Oorspronkelijk bericht-----
Van: pve-user-bounces at pve.proxmox.com [mailto:pve-user-bounces at pve.proxmox.com] Namens Lindsay Mathieson
Verzonden: maandag 24 februari 2014 7:42
Aan: ProxMox Users
Onderwerp: Re: [PVE-User] Backup to samba share stalling/locking up
On 24 February 2014 16:38, Lindsay Mathieson <lindsay.mathieson at gmail.com> wrote:
> I'm testing backing up a vm to a USB Drive attached to a Qnap NAS,
> shared out via samba.
>
> It consistently stalls at 17% and can't be stopped via the web gui.
> The only thing that works is a reboot of the server and the vm has to
> be unlocked.
Seeing this in dmesg
CIFS VFS: No writable handles for inode
> --
> Lindsay
--
Lindsay
_______________________________________________
pve-user mailing list
pve-user at pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
More information about the pve-user
mailing list