Linux – Mounting CIFS on 60 RHEL5 computers, fstab or autofs

autofscifslinuxmountperformance

I need to mount a Windows share on a large number of computers (nodes in a supercomputer). The share will rarely be used, but it should be there when needed. It seems like a good case for some type of automounter. Unfortunately, I'm getting spotty results with autofs.

The other (easier) option is to mount it using fstab so that it's always mounted. Are there any performance implications for mounting a CIFS share using fstab on so many machines?

Best Answer

autofs has given me some trouble (if the mount isn't available, attempts to access take forever to time out), but overall it seems to be performing. I'm using it in a one linux server to one windows server configuration (in petrol station back rooms), and the windows server (and associated network) are not necessarily the most reliable.

The problem with a simple fstab mount is that if anything goes wrong at mount time, you're hosed until you can manually intervene and fix it. For some applications, this may actually be more useful.

A third option is to write a script of your own that checks whether the mount is OK (by trying to access it) and if it's NOT OK, perform the umount & mount to get it back into operation. This has the advantage of being under your control, but the disadvantage of not being able to respond instantly to program requests.

Related Topic