[SOLVED] Backup to QNAP NAS

TMGG

Active Member
Jun 16, 2019
62
1
28
Hallo,
ich habe beim Backup zur QNAP NAS per NFS folgende Fehlermeldung.
Ich denke dass ich alle NFS-Freigaben etc. auf der QNAP erfüllt habe?

Code:
()
INFO: starting new backup job: vzdump 102 --node NUK --remove 0 --mode snapshot --storage qnapbackup --compress lzo
ERROR: Backup of VM 102 failed - unable to create temporary directory '/mnt/pve/qnapbackup/dump/vzdump-lxc-102-2019_07_22-19_15_39.tmp' at /usr/share/perl5/PVE/VZDump.pm line 824.
INFO: Failed at 2019-07-22 19:15:39
INFO: Backup job finished with errors
TASK ERROR: job errors
 
Kannst Du
Code:
vzdump 102 --node NUK --remove 0 --mode snapshot --storage qnapbackup --compress lzo
mal in der Konsole ausführen? Das was da oben steht sagt einem ja quasi gar nichts.
 
Code:
root@NUK:~# vzdump 102 --node NUK --remove 0 --mode snapshot --storage qnapbackup --compress lzo
INFO: starting new backup job: vzdump 102 --mode snapshot --remove 0 --storage qnapbackup --compress lzo --node NUK
ERROR: Backup of VM 102 failed - unable to create temporary directory '/mnt/pve/qnapbackup/dump/vzdump-lxc-102-2019_07_22-20_03_18.tmp' at /usr/share/perl5/PVE/VZDump.pm line 824.
INFO: Failed at 2019-07-22 20:03:18
INFO: Backup job finished with errors
job errors
root@NUK:~#
 
Last edited:
Dein vzdump scheint einige Optionen nicht zu kennen. Kannst Du mehr Informationen über die verwendete Software geben?
Code:
pveversion
 
Habe einen LXC und zwei VM´s auf Grundlage von Ubuntu 18.04
mit Proxomox Virtual Environment 5.4-6
pve-manager/5.4-6/aa7856c5 (running kernel: 4.15.18-15-pve)
 
Last edited:
Sorry war ich zu langsam mit editieren - habs gemerkt, dass ich es noch nirgends erwähnt hatte
Proxmox Virtual Environment 5.4-6
pve-manager/5.4-6/aa7856c5 (running kernel: 4.15.18-15-pve)
 
Geh mal im Web Interface auf die Node und dann auf Summary. Da findest Du "Package versions" Poste das bitte einmal hier.

Das muss ne ganze Liste sein.
 
Hat nix mit der PVE Version zu tun.
Wenn du im GUI auf das Storage klickst wird dir dort was angezeigt oder gitbt es auch direkt einen Fehler?
Was passiert wenn du auf der Shell versuchst eine Datei auf dem Mountpunkt des Backups anlegen möchtest? Ich tippe eher auf fehlende Schreibrechte auf der Freigabe.
 
  • Like
Reactions: CoolTux
Ja du hast wohl Recht
cat > test.txt = permisson denied

Scheint doch ein Rechte Problem zu geben. Weiß aber gar nicht mehr was ich noch tun soll.
Ich habe aber zum Test auf der QNAP den NFS-Hostzugriff schon auf everyone. Aber irgendwas wird da noch falsch sein.

Oder liegt es daran, dass ich hier unter permission noch nichts eingetragen habe?
 

Attachments

  • permission.png
    permission.png
    69.3 KB · Views: 48
Die PVE Permissions sind nur Zugriffe für User (sofern man außer dem Admin noch Freigaben für weitere User einrichtet).
Du müsstest deine QNAP Einstellungen bzw Freigaben prüfen.
 
  • Like
Reactions: TMGG
OK danke für deine Rückmeldung.
Ich habe jetzt alle Einstellungen nochmal auf der QNAP geprüft und es nach dieser
Anleitung eingestellt:

https://www.qnap.com/de-de/how-to/k...ble-and-setup-host-access-for-nfs-connection/

Jetzt geht es etwas weiter - allerdings weiter unten dann mit Fehlermeldung.
Es wird sogar eine .log Datei geschrieben. Das der Inhalt:

Code:
2019-07-23 18:24:37 INFO: Starting Backup of VM 102 (lxc)
2019-07-23 18:24:37 INFO: status = running
2019-07-23 18:24:37 INFO: CT Name: UNIFI
2019-07-23 18:24:37 INFO: backup mode: snapshot
2019-07-23 18:24:37 INFO: ionice priority: 7
2019-07-23 18:24:37 INFO: create storage snapshot 'vzdump'
2019-07-23 18:24:37 INFO: creating archive '/mnt/pve/qnapbackup/dump/vzdump-lxc-102-2019_07_23-18_24_37.tar.lzo'
2019-07-23 18:24:37 INFO: tar: /mnt/pve/qnapbackup/dump/vzdump-lxc-102-2019_07_23-18_24_37.tmp: Cannot open: Permission denied
2019-07-23 18:24:37 INFO: tar: Error is not recoverable: exiting now
2019-07-23 18:24:38 INFO: remove vzdump snapshot
2019-07-23 18:24:38 ERROR: Backup of VM 102 failed - command 'set -o pipefail && lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar cpf - --totals --one-file-system -p --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-file-ignored' '--warning=no-xattr-write' --one-file-system '--warning=no-file-ignored' '--directory=/mnt/pve/qnapbackup/dump/vzdump-lxc-102-2019_07_23-18_24_37.tmp' ./etc/vzdump/pct.conf '--directory=/mnt/vzsnap0' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' ./ | lzop >/mnt/pve/qnapbackup/dump/vzdump-lxc-102-2019_07_23-18_24_37.tar.dat' failed: exit code 2

Wenn ich mit cat im Ordner eine Datei anlege, wird diese auch erstellt >> dauert sehr lange
Nur im Putty zb wird der Befehl nie beendet (siehe Screenshot)
Die Datei ist dann auch mit nano editierbar.

Auch ein nochmaliges chmod brachte nichts?
Code:
chmod 755 /mnt/pve/qnapbackup
chmod 755 /mnt/pve/qnapbackup/dump


cat.png cat.png
 
Last edited:
Problem folgendermaßen gelöst:

Änderung von tmpdir to /tmp by default in /etc/vzdump.conf

Code:
grep -e "^tmpdir" /etc/vzdump.conf || \
cat <<EOF >> /etc/vzdump.conf
tmpdir: /tmp
EOF
 

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!