On 07/31/2018 10:06 AM, Bob Goodwin wrote:
On 07/31/18 12:35, Rick Stevens wrote:
> If it's an automount with a "comment=systemd.automount" or
> "x-systemd.automount" in the options of the fstab entry:
>
> server:/export /mnt/nfsmount nfs4
> options,x-systemd.automount 0 0
>
> you must_access_ the mountpoint for systemd to automount it. Doing a
> simple "ls /mnt/nfsmount >/dev/null" would do it.
>
+
In my initial query I showed:
[bobg@ASRock-J3455M ~]$ cat /etc/exports
/home/exports
192.168.1.0/24(rw,sync,insecure,no_root_squash,no_subtree_check,fsid=0)
Should I add inside the parenthesis: x-systemd.automount
Making it:
/home/exports
192.168.1.0/24(rw,sync,insecure,no_root_squash,no_subtree_check,fsid=0,x-systemd.automount)
No, the "x-systemd.automount" goes in the /etc/fstab entry on the
CLIENT. Sample /etc/fstab entry on client:
server:/export /mnt/nfsmount nfs4 auto,defaults,x-systemd.automount,rw 0 0
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital ricks(a)alldigital.com -
- AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 -
- -
- You can lead a horse to water, but if you can teach him to roll -
- over and float on his back...you got something! -
----------------------------------------------------------------------