CIFS mount options in PVE 8.0?

palmin

New Member
Jun 25, 2023
2
1
3
Hello there,

new ProxMox user, and first post here, sorry in advance for any stupid mistakes.

I am trying to use a (FritzBox) SMB share as backup storage for my PVE (which I installed last week with 7.4. and upgraded today successfully to 8.0)

Several threads pointed out that the FritzBox SMB share needs to be mounted with the noserverino mount option (see e.g. https://forum.proxmox.com/threads/backup-vm-fehler-fehlende-vzdump-quemu-ordner.115271/page-2 or more generally https://askubuntu.com/questions/126...ting-cifs-smb-network-drive-from-fritz-router), and this seems to work when I create the mount in /etc/fstab

Since https://bugzilla.proxmox.com/show_bug.cgi?id=2920 mentions that adding options to the CIFS plugin should now be possible, I tried to set up a new CIFS storage in this way:

Code:
cifs: fritznas
        path /mnt/pve/fritznas
        server 192.168.178.1
        share fritzbox
        content backup
        domain fritzbox
        prune-backups keep-all=1
        username <nasuser>
        options noserverino

I can confirm that the share is mounted, but when PVE tries to access the files which are already there, I get a "open for reading failed - stale file handle (500)" error (which to me suggests that the noserverino option is not used.

Can anyone confirm that this should now work in PVE 8.0, or could you let me know if I am doing something wrong?

Thanks a lot and best regards,
Bernd
 
  • Like
Reactions: monachus
Hi,
did you re-mount the storage after setting the options? That does not happen autormatically. What does the output of findmnt /mnt/pve/fritznas show?
 
Hi Fiona,

thanks for pointing this out, I found this, which seemed to be a "double mount" from previous experiments.

Code:
~#findmnt /mnt/pve/fritznas
TARGET            SOURCE                            FSTYPE OPTIONS
/mnt/pve/fritznas //192.168.178.1/fritzbox          cifs   rw,relatime,vers=3.0,cache
/mnt/pve/fritznas //192.168.178.1/fritzbox/FritzNAS cifs   rw,relatime,vers=3.0,cache

I rebooted the PVE host, and it seems to work now, the contents of the mount are now displayed without an error message.

Sorry for not thinking about this myself, and thanks for your help.

Best regards,
Bernd
 

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!