What is the difference between using auto.master and having autofs automount your NFS mountpoints versus just putting the info in fstab? Linux Red-Hat 5/6
Linux: difference between using autofs with NFS and just using fstab
autofsfstabnfs
autofsfstabnfs
What is the difference between using auto.master and having autofs automount your NFS mountpoints versus just putting the info in fstab? Linux Red-Hat 5/6
Best Answer
With
fstab
, the advantage is the remote filesystem will be mounted on system (when thenoauto
mount option is not used).Additionally, it depends how the mount point is defined. There are two options which determines the recovery behaviour when the NFS client can't reach the server. With the
hard
option (default one), the boot process will pause if there is a problem mounting the nfs share and repeated tries are made to mount the share indefinitely. If thesoft
option is used, then the mount fails afterretrans
retransmissions have been sent.On the other hand, autofs only mounts nfs shares when they are needed and accessed.