Centos – Problem mounting an NFS drive using autofs on CentOS5.3

autofsautomountcentosmountredhat

I'm having a lot of difficulty with this seemingly simple problem.

All I want to do is mount an NFS directory over a private network.

I've checked the exportfs from the exporting side and it is reporting correctly that it's exporting the desired directory to the proper IP address.

Here are my files for autofs

auto.master:

/home  -fstype=nfs  /etc/auto.misc

auto.misc:

myWork   -ro,intr   [IP]:/usr/local/share/myWork

The drive simply isn't showing up when I look for it, I do get this log, but don't know what to make of it.

Jul 9 14:20:37 localhost automount[9538]: lookup_mount: lookup(nisplus): key "myWork" not found in map

I have ensured that both NFS and autofs are running by checking their respective status.

Let me know if this is enough info or if there are other things I can do to diagnose the problem.

As you may notice, this is my first foray into mounting and the server environment, so take it easy on me.

EDIT: Needed a newline at the end of auto.misc… Zoredache has good suggestions for others with a similar problem below

Best Answer

Your auto.master file doesn't need the -fstype

It should just be something like this:

/home  /etc/auto.misc