Skip to content

Instantly share code, notes, and snippets.

@anddam
Last active March 8, 2017 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anddam/181bcae70288d319dc1ace4ed6964080 to your computer and use it in GitHub Desktop.
Save anddam/181bcae70288d319dc1ace4ed6964080 to your computer and use it in GitHub Desktop.
# the autofs service running
$ mount | tail -1
/etc/auto.nfs on /nfs type autofs (rw,relatime,fd=6,pgrp=22607,timeout=300,minproto=5,maxproto=5,indirect)
# the NFS server as seen from the client
$ showmount -d homeserver.local
Directories on homeserver.local:
/srv/backups
/srv/backups/TimeMachine
$ showmount -e homeserver.local
Export list for homeserver.local:
/srv/sharing *
/srv/backups/TimeMachine *
/srv/backups/Laptop *
/srv/backups *
# automount run in foreground, autofs service is stopped now
$ sudo automount --foreground --verbose
Starting automounter version 5.1.1, master map /etc/auto.master
using kernel protocol version 5.02
lookup(dir): dir map /etc/auto.master.d missing or not readable
lookup(file): failed to read included master map dir:/etc/auto.master.d
lookup(file): failed to read included master map auto.master
mounted indirect on /nfs with timeout 300, freq 75 seconds
statemachine:1456: got unexpected signal 28!
statemachine:1456: got unexpected signal 28!
$ cat /etc/auto.nfs
backup -fstype=nfs4 homeserver.local:/srv/backups/Laptop
$ cat /etc/auto.master | grep -v "^#"
/nfs /etc/auto.nfs
+dir:/etc/auto.master.d
+auto.master
$ cat /etc/exports | grep -v "^#"
/srv/backups *(rw,no_subtree_check,insecure,no_root_squash)
/srv/backups/Laptop *(rw,no_subtree_check,insecure,no_root_squash)
/srv/backups/TimeMachine *(rw,no_subtree_check,insecure,no_root_squash)
/srv/sharing *(rw,no_subtree_check,insecure,no_root_squash)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment