Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

We have a couple of servers (part of an HPC cluster) in which we're currently seeing some NFS behavior which is not making sense to me. node1 exports its /lscratch directory via NFS to node2, mounted at /scratch/node1. node2 also exports its own lscratch, which is correspondingly mounted at /scratch/node2 on node1.

Unfortunately, whenever I attempt to mount either NFS export on the opposite node, I get the following error:

mount: node1:/lscratch failed, reason given by server: Permission denied

This despite the fact that I have included first the IP range ( and then the specific IPs (, in /etc/exports.

Any suggestions?

Edit to remove ambiguity: I've made sure that exports only contains either the range, or the specific IPs, not both at the same time.

share|improve this question

A couple (perhaps silly) questions:

What's the export line?

What user is trying to mount the export?

root may not be allowed to mount...check into no root squash if this turns out to be the case.

share|improve this answer
  1. try putting the client's IP address in /etc/hosts.allow (tcp wrappers, see man page)

  2. from the client try telnet SERVER-IP 2049.... until that works, (for opening a connection) the mount won't work. (assuming default recent linux nfs setup,i.e. tcp also or only).

  3. between making any changes like above, tell the nfs server about the changes with:

sudo exportfs -v -a

share|improve this answer
Adding the IP to hosts.allow did not change the behavior. telnet node-ip 2049 did not work on the client, but there is no firewall so I'm not sure what this diagnostic tells me. – ajdecon Mar 17 '11 at 1:12
Output of 'rpcinfo -p' on server? Any other error messages or warnings in your syslogs? – 3molo Mar 17 '11 at 12:41

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.