Menu

I finally got NFS to mount reliably

#homelab#reddithomelab#autofs#slab#zpool
Reading 0:00
15s threshold

I've had an NFS share on my server's zpool for a few years, but I've never gotten it to mount reliably at boot and stay mounted on Void Linux or Fedora. Same issue with fstab and systemd automounting.

I was hesitant to try autofs, but after a few tries it's configured and works completely transparently. I.e. exactly the same as a normal mount, but it reliably mounts shares at boot, on access, and keeps them mounted.


/etc/autofs/auto.slab slab -rw,hard zpool.lan.example.com:/mnt/slab vm -rw,hard zpool.lan.example.com/mnt/vm 

/etc/autofs/auto.master.d/slab.autofs /mnt /etc/autofs/auto.slab --timeout 60 
submitted by /u/Dakota-Batterlation
[link] [comments]