LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NFS mount Error: "System Error: Connection refused" (https://www.linuxquestions.org/questions/linux-networking-3/nfs-mount-error-system-error-connection-refused-838497/)

SenLinux 10-16-2010 09:17 AM

NFS mount Error: "System Error: Connection refused"
 
Hi, Greetings !

I am trying to nfs mount a directory from my server on another workstation and it is throwing up the following error.

mount: mount to NFS server 'craycx1' failed: System Error: Connection refused.

I edited /etc/exports file on the server with correct syntax and there is nothing in /etc/hosts.allow and /etc/hosts.deny.

I am able to ssh from client to server and vice versa successfully.

rcpinfo indicates that NFS server is running..

Please suggest me whatelse can be wrong ?

Thanks in advance for your time and support.

Sen

johnshen64 10-16-2010 01:01 PM

what is the output of these commands in your nfs client?

rpcinfo -p craycx1
showmount -e craycx1

also, make sure you have no firewall blocking the ports in either client or the server.

SenLinux 10-16-2010 01:17 PM

John:
thanks for the reply.

# rpcinfo -p craycx1

rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused

# showmount -e craycx1

mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive

I disabled firewall for NFS service, how to make sure that I did it correctly.
Can I check with any config file?

thanks again

johnshen64 10-16-2010 11:10 PM

is portmapper running in the server? usually it should be something like /etc/init.d/portmap start.

start that in the client as well.

also, if you have nmap in the client, do a portscan to see which ports are open in the server.

SenLinux 10-17-2010 11:30 AM

John,

portmapper server is running both in server and client machines. The problem is firewall !!. Currently
I disabled it for a moment and everything seems to be working now. I am able to mount the directory on client machine.
I am configuring firewall now.

Thanks for the support

Have a good weekend !

Sen


All times are GMT -5. The time now is 02:40 PM.