Hi all! I’ve moved Nextcloud and Immich data folders from local to a NFS folder. Everything is fine except when snapraid runs on the NFS server. Structure:

  • Proxmox host that also act as a NFS server
  • NFS exported folders are in a MergerFS folder (BRTFS) that are part of snapraid (2 data drives and 1 parity drives)
  • A Proxmox VM with all the Docker containers
  • Inside the VM I’ve mounted the NFS shares that are always available (even after the backup)

In the containers the folders are bind mounted like this /mnt/nfs/nextcloud/data:/var/www/html/data After the backup the NFS share are still available in the VM, but if I enter the container I get:

root@nextcloud-app:/var/www/html# ls -latr data
ls: cannot access 'data': Stale file handle

The NFS are mounted like this:

172.5.0.5:/mnt/pool/@nextcloud /mnt/nfs/nextcloud nfs vers=4,rw,hard,intr,timeo=600,retrans=10,_netdev,nofail,x-systemd.requires=network-online.target 0 0

How can I solve this problem?

  • wildbus8979@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 hours ago

    You need to set the fsid fort your export entry in the NFS server since they are all on the same actual mountpoint.