I've got a glusterfs 3.3.0 replicated volume running on two Ubuntu 10.04 servers, and each mounts the volume via NFS (3). Mounting manually works fine using this command:
mount -t nfs -o vers=3,hard,noexec,rsize=32768,wsize=32768,intr,noatime,mountproto=tcp 127.0.0.1:/shared /var/lib/sitedata/aegir
If I set this up in fstab, it hangs the machine on boot, requiring single user mode to reset it. So I'm looking at autofs to mount it after everything is up.
(I commented out the line that says
+auto.master as apparently that can cause issues) and
/var/lib/sitedata/aegir -fstype=nfs,vers=3,hard,noexec,rsize=32768,wsize=32768,intr,noatime,mountproto=tcp 127.0.0.1:/shared
When I do something like
ls /var/lib/sitedata/aegir/cache I get 'file or directory not found', and if I run automount in the foreground I can see that it's picking up my auto.nfs config, but instead of mounting the NFS volume, it's simply rebinding /shared to /var/lib/sitedata/aegir locally. I'm not using automount for anything else.
How can I convince it to mount via NFS?
Update: I'm using exactly the same autofs client config on another server talking to the same volume, and it works perfectly. I suspect the problem is the NFS client thinking that since it's talking to localhost it can just do a local bind instead, which is not true.