[CentOS] losing NFS connection

Collins Richey crichey at gmail.com
Sun Apr 24 19:14:49 UTC 2005


On 4/24/05, Angelo Machils <angelus at sangreal.demon.nl> wrote:
> Hello there!
> 
> Perhaps this is a little off-topic, but I notice this only on the Centos
> box.
> I'm running Centos 4 on an AMD64 which has the following entries in the
> fstab to connect to NFS shares on a Fedora3 box:
> 192.168.1.12:/home/angelo/ /home/angelo/NFS_share1 nfs
> rw,addr=192.168.1.12 0 0
> 192.168.1.12:/home/angelo/data /home/angelo/NFS_share2 nfs
> rw,addr=192.168.1.12 0 0
> 192.168.1.12:/home/angelo/data2 /home/angelo/NFS_share3 nfs
> rw,addr=192.168.1.12 0 0
> I have opened ports 111 (TCP), 648 (TCP), 651 (TCP) and 2049 (TCP and
> UDP) in iptables on the FC3 box and I can connect to them, but after a
> while I seem to loose the connection to the shares.
> When I try to move into them while in a console I get the error:
> bash: cd: NFS_share1: Input/output error
> In Nautilus I don't even see the directories anymore and in
> /var/log/messages I get this error msgs:
> Apr 24 20:17:02 solaris kernel: RPC: garbage, exit EIO
> There are not entries in the /var/log/messages on the FC3 box.
> If I manually umount them and then mount them again, I can use them
> again for a while....
> The exports file on the FC3 box looks like this:
> [root at imhotep etc]# more exports
> /home/angelo             192.168.1.*(rw,sync)
> /home/angelo/data        192.168.1.*(rw,sync)
> /home/angelo/data2       192.168.1.*(rw,sync)
> 
> Anyone any idea what is wrong here?
> 

Quote from an NFS thread on another list:

"I find on my NFS clients, that i need to allow connections to port 111
and also to higher level tcp ports (assuming you are doing NFS over tcp)
--destination-ports 32768:65535."

Maybe you need to open up your firewall?

-- 
 Collins
       When I saw the Iraqi people voting three weeks ago, 8 million of them, 
       it was the start of a new Arab world.... The Berlin Wall has fallen. 
               - Lebanese Druze leader Walid Jumblatt



More information about the CentOS mailing list