On-Demand NFS Mounting with autofs
The team share should appear when someone opens it and let go when nobody has for a while. autofs does that, with a master map, a map, and a timeout, and the mount table tells you whether it is working.
Skill labintermediate~30 minPro
What you'll do
- ✓Prove an export is mountable by hand before automating it
- ✓Write an autofs master-map entry and an indirect map with an idle timeout
- ✓Trigger a mount by access and read it in the mount table
- ✓Watch an idle mount expire, re-trigger it, and prove the map survives a service restart
Lab outline
- 01Prove the export
- 02Configure
- 03Use it
- 04Prove it
Before you start
- NFSv4 Server and Remote Client Access
Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.