Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a pair of web servers running GlusterFS 3.3.0 providing a single replicated volume. Clients connect via NFS, and the web servers are also clients. Gluster gets very unhappy if the files it serves are written via the 'back door' (i.e. local file access), so I need to go through the NFS stack to go in through the 'front door'. Each server has an autofs config that is set to mount the volume from localhost. These are my config files:


/- /etc/auto.nfs


/var/lib/sitedata -fstype=nfs,vers=3,hard,noexec,nosuid,nodev,rsize=32768,wsize=32768,intr,noatime,mountproto=tcp

(These mount values are what are suggested for gluster NFS clients, in particular the forcing of TCP; a more minimal config doesn't work either)

The problem I'm running into is that autofs (or NFS) seems to say "Hey, this is pointing at localhost so I can shortcut it by doing a local bind remount instead!", as if I had said mount --bind /shared /var/lib/sitedata. Unfortunately that fails completely as it's not the same thing at all.

This seems to be specific to localhost because a remote server connecting to one of these hosts doesn't have a problem with the same autofs config. I don't want each web server to mount the other - performance is bad enough already without introducing new failure modes!

How can I force autofs' NFS mount to go via TCP?

share|improve this question
up vote 1 down vote accepted

See manual of auto.master.

Under "Options" you can find "nobind", which does the trick.

share|improve this answer
That would be perfect if it was there in my autofs version! It was introduced in version 5.0.6 and I'm on 5.0.4. Thanks for the tip, I guess I need to look for a backport... – Synchro Nov 26 '13 at 17:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.