Hi,
I have a machine running in FC2 acting as a NFS server, sometimes the machine goes down for an unknown reason, when the machine starts again, and start the server, the clients can't mount the filesystems and keeps telling me that the server is down.
Why? i've tried everything i though could solve the problem but the error keeps popping out.
Hi Jose,
Will need a little more information..
Do you have the service starting automatically on boot, or do you do it by hand?
When it is broken, what do you do to fix it?
When it's been fixed, have you done an lsof -i -n to ensure that the service is listening? How about a "showmount -e localhost" on the host to see if it can see it locally?
No iptables issues or anything?
What version of NFS?
Sorry for all the questions.. just trying to think of what it could be.
Jose Rafael Carrero Leon (jrcl00@gmail.com) composed today:
Hi,
I have a machine running in FC2 acting as a NFS server, sometimes the machine goes down for an unknown reason, when the machine starts again, and start the server, the clients can't mount the filesystems and keeps telling me that the server is down.
Why? i've tried everything i though could solve the problem but the error keeps popping out.
hey,
to answer all your questions:
the service starts on boot. when it's broken i stop all the nfs clients, restart de service and try unsuccesfully to restart the clients, i also check the processes messing up the devices with fuser. i've tried the lsof thing only once and the service was listening like there was no problem at all, showmount shows me all the exports in the /etc/exports file, only that.
how do i know if there is an iptables issue? how do i know the NFS version?
don't worry for the questions...
On Fri, 29 Oct 2004 18:47:04 -0700 (PDT), netmask netmask@enzotech.net wrote:
Hi Jose,
Will need a little more information..
Do you have the service starting automatically on boot, or do you do it by hand?
When it is broken, what do you do to fix it?
When it's been fixed, have you done an lsof -i -n to ensure that the service is listening? How about a "showmount -e localhost" on the host to see if it can see it locally?
No iptables issues or anything?
What version of NFS?
Sorry for all the questions.. just trying to think of what it could be.
Jose Rafael Carrero Leon (jrcl00@gmail.com) composed today:
Hi,
I have a machine running in FC2 acting as a NFS server, sometimes the machine goes down for an unknown reason, when the machine starts again, and start the server, the clients can't mount the filesystems and keeps telling me that the server is down.
Why? i've tried everything i though could solve the problem but the error keeps popping out.
-- netmask
Jose Rafael Carrero Leon (jrcl00@gmail.com) composed today:
Hi,
I have a machine running in FC2 acting as a NFS server, sometimes the machine goes down for an unknown reason, when the machine starts again, and start the server, the clients can't mount the filesystems and keeps telling me that the server is down.
[...]
On Fri, 29 Oct 2004 18:47:04 -0700 (PDT), netmask netmask@enzotech.net wrote:
Do you have the service starting automatically on boot, or do you do it by hand?
[...]
On Tue, November 2, 2004 2:51, Jose Rafael Carrero Leon said:
the service starts on boot.
[...]
(post re-arranged to keep it somewhat readable) Guys, do us a favour please and don't top-post. Especially with long threads (which I guess this will be one ;) ), this is going to be a nightmare.
Jose, I sometimes had a very similar issue. If your problem happens (which is ususally the case once your server goes down while your clients still have connections open), try this:
- Stop the server & client services - On the server, remove all (/var/lib/nfs/* ?) files. Caution: I'm not in front of a Linux box now and only vaguely remember the path. It is under /var/.+/nfs though, I'm very sure. Don't remove it the first time but move it out instead. - start your server first, then your clients
This problem went away since I changed to using automount for my NFS shares.
HaJo
Jose Rafael Carrero Leon wrote:
Hi,
I have a machine running in FC2 acting as a NFS server, sometimes the machine goes down for an unknown reason, when the machine starts again, and start the server, the clients can't mount the filesystems and keeps telling me that the server is down.
Why? i've tried everything i though could solve the problem but the error keeps popping out.
Hi Jose,
Check for stale entries in /var/lib/nfs/rmtab
-Ben Dees Consulting www.deesconsulting.com