this post was submitted on 15 Mar 2026
20 points (100.0% liked)

Selfhosted

56953 readers
1548 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

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?

top 10 comments
sorted by: hot top controversial new old
[–] mspencer712@programming.dev 5 points 2 days ago (1 children)
[–] ExcessShiv@lemmy.dbzer0.com 2 points 2 days ago

Nothing man, and he's all out of ideas!

[–] psycotica0@lemmy.ca 3 points 2 days ago (2 children)
[–] peregus@lemmy.ml 1 points 12 hours ago

Sorry, I've missed all the notifications. Thanks a lot, I'll have a look straight away!

[–] zoroa@piefed.world 1 points 2 days ago

I had the same issue with mergerfs + nfs, and fixed by following the official doc here

[–] GreenKnight23@lemmy.world 1 points 2 days ago

I have found docker hates locally mounted NFS mounts direct to volume mounts. its kind of like symlinking a symlink of a symlink.

best way I have found that this works is to use CIFS and declare a NAS share to an actual docker volume and then mount that inside the container like any other volume.

personally I would have preferred NFS, but here we are.

it has something to do with how NFS connectivity maintains a connection. it's not "always on" but is inefficient when it quickly needs to reconnect for a read/write request. or at least something like that.

[–] wildbus8979@sh.itjust.works 1 points 2 days ago

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

[–] jaybone@lemmy.zip 1 points 2 days ago (1 children)

@remindme@mstdn.social 2 days

I don’t have a good answer but I’m super curious about this.

You say the mount is still fine from the VM, so it must be something with how the docker mounts are configured.

In the early days of docker there used to be a tool that used rsync to sync changes between host and container filesystems when such support wasn’t yet available on some systems (like Mac). I’m wondering if something similar is needed here. Or some additional options in your docker mount mappings.

[–] remindme@mstdn.social -1 points 2 days ago

@jaybone Ok, I will remind you on Tuesday Mar 17, 2026 at 12:02 PM UTC.

[–] lnxtx@sopuli.xyz 0 points 1 day ago

I'm not a fan of the kernel NFS server implementation.

I have less headaches when I switched to NFS-Ganesha.