NFS: Difference between revisions

imported>NetaliDev
fix syntax for systemd mounts
imported>Allopsychic21
Context for my addition turned out not to be true, so I removed that part
Line 130: Line 130:
=== Using systemd.mounts and systemd.automounts ===
=== Using systemd.mounts and systemd.automounts ===


Using <code>systemd.mounts</code> and <code>systemd.automounts</code> was the only way to solve NFS client hangs experienced with the above configurations. Here is an example with auto-disconnecting and lazy-mounting implemented, and the <code>noatime</code> mount option added.
Here is an example with auto-disconnecting and lazy-mounting implemented, and the <code>noatime</code> mount option added.


Note that <code>wantedBy = [ "multi-user.target" ];</code> is required for the automount unit to start at boot.  
Note that <code>wantedBy = [ "multi-user.target" ];</code> is required for the automount unit to start at boot.