cifs storage on fritzbox fails

frw

Member
Jun 25, 2020
4
0
21
46
Hi,

I have virtualized an openwrt and I want to save that on a shared storage, the image is only 12MB and the fritzbox is a new beta 7530 with SMB v3 support and usb 3.0 storage attached and should be sufficent for this purpose. I can save and copy files from my MAC without any problem also from within pve shell to the cifs share. But when I try to do a snapshot I get this error below.

Code:
()
INFO: starting new backup job: vzdump 104 --mode snapshot --compress zstd --storage cifs --remove 0 --node pve-1
INFO: Starting Backup of VM 104 (qemu)
INFO: Backup started at 2020-07-14 22:03:17
INFO: status = running
INFO: VM Name: openwrt
INFO: include disk 'scsi0' 'local-lvm:vm-104-disk-1' 276M
INFO: backup mode: snapshot
INFO: ionice priority: 7
ERROR: Backup of VM 104 failed - unable to open '/mnt/cifs/SanDisk-UltraFit-01/dump/vzdump-qemu-104-2020_07_14-22_03_16.tmp/qemu-server.conf' at /usr/share/perl5/PVE/VZDump/QemuServer.pm line 195.
INFO: Failed at 2020-07-14 22:03:17
INFO: Backup job finished with errors
TASK ERROR: job errors

[133317.204659] CIFS VFS: bogus file nlink value 0 [133448.038565] CIFS VFS: bogus file nlink value 0

I triet to add the storage as cifs in pve, as well as mounting from command line and using a directory. I'm on latest pve and could not find any helpful posts. Is there anyway to further troubleshoot this.

You may say use another storage, but the firtzbox is running 24x7 and I thought for this it is good enough. I wanted to soon add another proxmox server and build a cluster and use therefore a shared storage.

any help and advixe is very much appreciated.

Cheers Chris
 
If the problem is still there, please post cat /etc/pve/storage.cfg and try to use the --tmpdir parameter for vzdump.
 
Hi, it still does not work. but it seems it is a problem how the fritzbox handles the attached USB stick and then sharing as cifs. If I use the main folder, there is not enough space and therefore the backup seems to fail. If I select the USB Stick as Share, then I get this error, when ading the cifs:

create storage failed: error during cfs-locked 'file-storage_cfg' operation: mkdir /mnt/pve/SanDiskFB/dump: Permission denied at /usr/share/perl5/PVE/Storage/Plugin.pm line 1070. (500)

But when I run the command:

vzdump 101 --mode snapshot --node pve-1 --compress zstd --dumpdir /mnt/pve/fritzbox/SanDisk-UltraFit-01/pve/dump/

then I can backup on the cifs share, this is from the storage.cf file:

cifs: fritzbox
path /mnt/pve/fritzbox
server 192.168.1.1
share fritz
content rootdir,iso,vztmpl,backup,images,snippets
maxfiles 5
username christian

Does this help?

I did only use the GUI before, what is the best way to backup regularly? using a cronjob?
 
I did only use the GUI before, what is the best way to backup regularly? using a cronjob?
The GUI does actually create a cron schedule, see
Code:
cat /etc/pve/vzdump.cron


vzdump 101 --mode snapshot --node pve-1 --compress zstd --dumpdir /mnt/pve/fritzbox/SanDisk-UltraFit-01/pve/dump/
Did you omit --storage here on purpose?

then I can backup on the cifs share, this is from the storage.cf file:
So this is not what you want?
 
thank you I can now use the command as a cronjob and backup on the cifs storage.

but I had to remove --storage with --dumpdir to get it working. As I wanted to change the directory on the cifs share where to backup.

Thank you for you great input