VM-Backup zu CIFS-Share auf TrueNAS-VM bricht ab

kernkraftzwerg

New Member
Apr 13, 2021
4
0
1
30
Hallo Allerseits,

Ich habe eine TrueNAS-Core-VM (Version: TrueNAS-12.0-U2.1, FreeBSD 12.2-RELEASE-p3) (mit durchgereichter 2TB-SSD) erstellt, um auf dieser via CIFS-Freigaben Dateien von anderen VMs (sowie Backups dieser VMs) zu speichern. Beim Einbinden eines CIFS-Shares im Proxmox-Datencenter (Version: 6.3-6) funktioniert auch zunächst alles (zB werden die Ordner 'dump' und 'template' erstellt). Auch als ich den Share testweise unter Linux gemountet habe, konnte ich problemlos Dateien erstellen, umbenennen und löschen. In Proxmox bricht allerdings das Backup einer VM auf diesen Share bei 100% ab:

Code:
INFO: starting new backup job: vzdump 552 --node neodym --storage TrueNAS-VM --remove 0 --mode snapshot --compress zstd
INFO: Starting Backup of VM 552 (qemu)
INFO: Backup started at 2021-04-13 14:31:11
INFO: status = running
INFO: VM Name: pfSense
INFO: include disk 'virtio0' 'local-lvm:vm-552-disk-0' 16G
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: snapshots found (not included into backup)
INFO: creating vzdump archive '/mnt/pve/TrueNAS-VM/dump/vzdump-qemu-552-2021_04_13-14_31_11.vma.zst'
INFO: started backup task '617eafd4-a192-4fcf-a8c0-3f561b6e16a0'
INFO: resuming VM again
INFO:  34% (5.5 GiB of 16.0 GiB) in 3s, read: 1.8 GiB/s, write: 6.5 MiB/s
INFO:  59% (9.5 GiB of 16.0 GiB) in 6s, read: 1.3 GiB/s, write: 620.0 KiB/s
INFO:  63% (10.2 GiB of 16.0 GiB) in 9s, read: 230.1 MiB/s, write: 109.9 MiB/s
INFO:  67% (10.7 GiB of 16.0 GiB) in 12s, read: 195.1 MiB/s, write: 100.2 MiB/s
INFO:  70% (11.3 GiB of 16.0 GiB) in 15s, read: 203.1 MiB/s, write: 102.4 MiB/s
INFO:  76% (12.2 GiB of 16.0 GiB) in 18s, read: 311.4 MiB/s, write: 92.7 MiB/s
INFO:  88% (14.1 GiB of 16.0 GiB) in 21s, read: 651.6 MiB/s, write: 78.1 MiB/s
INFO: 100% (16.0 GiB of 16.0 GiB) in 23s, read: 952.9 MiB/s, write: 18.9 MiB/s
INFO: backup is sparse: 14.53 GiB (90%) total zero data
INFO: transferred 16.00 GiB in 23 seconds (712.3 MiB/s)
cannot unlink file for /mnt/pve/TrueNAS-VM/dump/vzdump-qemu-552-2021_04_13-14_31_11.tmp/qemu-server.conf: Permission denied at /usr/share/perl5/PVE/VZDump.pm line 1057.
cannot restore permissions to 0100755 for /mnt/pve/TrueNAS-VM/dump/vzdump-qemu-552-2021_04_13-14_31_11.tmp/qemu-server.conf:  at /usr/share/perl5/PVE/VZDump.pm line 1057.
cannot remove directory for /mnt/pve/TrueNAS-VM/dump/vzdump-qemu-552-2021_04_13-14_31_11.tmp: Permission denied at /usr/share/perl5/PVE/VZDump.pm line 1057.
ERROR: Backup of VM 552 failed - unable to rename '/mnt/pve/TrueNAS-VM/dump/vzdump-qemu-552-2021_04_13-14_31_11.vma.dat' to '/mnt/pve/TrueNAS-VM/dump/vzdump-qemu-552-2021_04_13-14_31_11.vma.zst'
INFO: Failed at 2021-04-13 14:31:34
INFO: Backup job finished with errors
TASK ERROR: job errors

Auf dem Share wurden erfolgreich Dateien erzeugt (Kommandozeilenausgabe in der TrueNAS-VM), welche allerdings im Proxmox-GUI nicht angezeigt werden:

Code:
root@truenas[/mnt/Crucial2000GB/proxmox/dump]# ls -alh
total 708859
drwxrwx---+ 3 proxmox  wheel       5B Apr 13 05:31 .
drwxrwx---+ 4 root     wheel       4B Apr 13 03:31 ..
-rwxrwx---+ 1 proxmox  wheel     1.7K Apr 13 05:31 vzdump-qemu-552-2021_04_13-14_31_11.log
drwxrwx---+ 2 proxmox  wheel       3B Apr 13 05:31 vzdump-qemu-552-2021_04_13-14_31_11.tmp
-rwxrwx---+ 1 proxmox  wheel     692M Apr 13 05:31 vzdump-qemu-552-2021_04_13-14_31_11.vma.dat

Testweise habe ich in der TrueNAS-VM ein weiteres Dataset ("prox-nfs") erstellt und dieses via NFS in Proxmox eingebunden. Ein Backup mit diesem Ziel funktioniert problemlos:

Code:
INFO: starting new backup job: vzdump 552 --remove 0 --storage TrueNAS-VM-NFS --mode snapshot --compress zstd --node neodym
INFO: Starting Backup of VM 552 (qemu)
INFO: Backup started at 2021-04-13 14:54:07
INFO: status = running
INFO: VM Name: pfSense
INFO: include disk 'virtio0' 'local-lvm:vm-552-disk-0' 16G
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: snapshots found (not included into backup)
INFO: creating vzdump archive '/mnt/pve/TrueNAS-VM-NFS/dump/vzdump-qemu-552-2021_04_13-14_54_07.vma.zst'
INFO: started backup task '5fa6494b-d25b-4aec-9c77-40f66e2ccf84'
INFO: resuming VM again
INFO:  34% (5.5 GiB of 16.0 GiB) in 3s, read: 1.8 GiB/s, write: 6.4 MiB/s
INFO:  62% (9.9 GiB of 16.0 GiB) in 6s, read: 1.5 GiB/s, write: 41.2 MiB/s
INFO:  65% (10.5 GiB of 16.0 GiB) in 9s, read: 206.6 MiB/s, write: 111.2 MiB/s
INFO:  69% (11.1 GiB of 16.0 GiB) in 12s, read: 201.7 MiB/s, write: 101.0 MiB/s
INFO:  73% (11.7 GiB of 16.0 GiB) in 15s, read: 197.1 MiB/s, write: 101.2 MiB/s
INFO:  77% (12.4 GiB of 16.0 GiB) in 18s, read: 244.1 MiB/s, write: 106.2 MiB/s
INFO: 100% (16.0 GiB of 16.0 GiB) in 21s, read: 1.2 GiB/s, write: 35.6 MiB/s
INFO: backup is sparse: 14.53 GiB (90%) total zero data
INFO: transferred 16.00 GiB in 21 seconds (780.2 MiB/s)
INFO: archive file size: 691MB
INFO: Finished Backup of VM 552 (00:00:21)
INFO: Backup finished at 2021-04-13 14:54:28
INFO: Backup job finished successfully
TASK OK

Code:
root@truenas[/mnt/Crucial2000GB/prox-nfs/dump]# ls -alh
total 708870
drwxrwx---+ 2 proxmox  wheel     4B Apr 13 05:54 .
drwxrwx---+ 4 root     wheel     4B Apr 13 05:26 ..
-rw-r--r--+ 1 proxmox  wheel   1.6K Apr 13 05:54 vzdump-qemu-552-2021_04_13-14_54_07.log
-rwxrwx---+ 1 proxmox  wheel   692M Apr 13 05:54 vzdump-qemu-552-2021_04_13-14_54_07.vma.zst

Für beide Datasets habe ich dieselben ACL-Einstellungen verwendet:
  • Benutzerkonto in TrueNAS -> user: proxmox (mit group: proxmox)
  • Sharetype CIFS-Dataset: SMB -> ACL-Mode: Restricted, Case Sensitivity: Insensistive
  • Sharetype NFS-Dataset: generic -> ACL-Mode: Passthrough, Case Sensitivity: Sensistive
  • ACL-Einstellungen beider Datasets: user root, group wheel & group proxmox dürfen alles (außer Dataset & Child Dataset löschen)
  • beim NFS-Share: 'mapall user: proxmox' & 'mapall group: proxmox'
  • bei beiden ist einzig der Proxmox-Host ein 'authorized host'
Eine Websuche nach dem Problem hat mich nur auf diesen Thread von 2015 gebracht, bei dem mangelnder Speicherplatz als Ursache für ein ähnliches Verhalten diskutiert wird - bei 1.76TB freiem Speicherplatz und einer VM mit 16GB (die zu 90% leer ist) möchte ich das aber bezweifeln, oder?

Da die Konfiguration mit NFS funktioniert, könnte ich diese für Proxmox verwenden. Allerdings muss ich für andere (Windows-) VMs CIFS-Shares verwenden, und die Probleme in Proxmox weisen ja auf eine Fehlkonfiguration meinerseits hin.

Falls jemand mir weiterhelfen kann, wäre das Bombe ;)
 
Last edited:
Schon mal direkt aus Proxmox auf das SMB Verzeichnis zugegriffen und Daten editiert?

Ich hatte mal eine zeitlang TrueNAS laufen - mit durchgereichter HDD. Allerdings hatte ich das unter Proxmox als NFS gemountet.
 

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!