I'm trying to switch my NFS mounts to autofs because no matter what I set in fstab, the server being unavailable renders my desktop unusable.
I have configured /etc/auto.master as:
and the above referenced /etc/auto.nfs as:
which is the fstab entry with the -fstype=nfs4 option added as directed by various internet searches and I've mad no changes to /etc/autofs.conf. CHecking the status of autofs results in :
which looks OK, but the nfs export does not mount. It mounts fine using fstab and via a manual mount.
Ideas?
I have configured /etc/auto.master as:
Code:
[FONT=monospace][COLOR=#000000]#[/COLOR] # Sample auto.master file # This is a 'master' automounter map and it has the following format: # mount-point [map-type[,format]:]map [options] # For details of the format look at auto.master(5). # #/misc /etc/auto.misc /shared /etc/auto.nfs # # NOTE: mounts done from a hosts map will be mounted with the # "nosuid" and "nodev" options unless the "suid" and "dev" # options are explicitly given. # #/net -hosts # # Include /etc/auto.master.d/*.autofs # The included files must conform to the format of this file. # +dir:/etc/auto.master.d # # Include central master map if it can be found using # nsswitch sources. # # Note that if there are entries for /net or /misc (as # above) in the included master map any keys that are the # same will not be seen as the first read key seen takes # precedence. # +auto.master [/FONT]
Code:
[FONT=monospace][COLOR=#000000]-fstype=nfs4,bg,hard,timeo=50,retrans=5,actimeo=10,retry=5,intr,users,rsize=131072,wsize=131072,noatime,nodiratime server:/[/COLOR] [/FONT]
Code:
[FONT=monospace][COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#5454FF][B]~[/B][/COLOR][COLOR=#000000]$ sudo service autofs status [/COLOR] [COLOR=#54FF54][B]●[/B][/COLOR][COLOR=#000000] autofs.service - LSB: Automounts filesystems on demand[/COLOR] Loaded: loaded (/etc/init.d/autofs; bad; vendor preset: enabled) Active: [COLOR=#54FF54][B]active (running)[/B][/COLOR][COLOR=#000000] since Sun 2018-05-20 12:55:30 EDT; 7h ago[/COLOR] Docs: man:systemd-sysv-generator(8) Process: 8650 ExecStop=/etc/init.d/autofs stop (code=exited, status=0/SUCCESS) Process: 8661 ExecStart=/etc/init.d/autofs start (code=exited, status=0/SUCCESS) CGroup: /system.slice/autofs.service └─8673 /usr/sbin/automount --pid-file /var/run/autofs.pid May 20 12:55:30 office systemd[1]: Starting LSB: Automounts filesystems on demand... May 20 12:55:30 office autofs[8661]: * Starting automount... May 20 12:55:30 office autofs[8661]: ...done. May 20 12:55:30 office systemd[1]: Started LSB: Automounts filesystems on demand.[/FONT]
Ideas?
Comment