NFS out of sync

Richard Riley rriley at ariba.com
Mon Feb 18 17:35:04 UTC 2008


It would appear that the remote mount has failed and what you are seeing
are actually files on the local machine.  Run /usr/sbin/showmount on the
server to see what remotes it thinks are active.  On the affected
machine, run mount to see if it thinks it has the remote still mounted.
If not, try mounting again.  If it still thinks it is mounted, try
unmounting and remounting.  If that fails, run "rpcinfo -p" and look at
whether you are using udp or tcp for the mountd process.  I have had
some problems with tcp and had to force it to use udp on the remote (the
server should be listening on both).  If this is the case, change the
entry in your fstab to look something like the following:

masterfs:/usr/local /usr/local nfs rw,rsize=8192,wsize=8192,udp  0 0

Replacing "defaults" means you must define what you want, so you will
need to customize for your need, but the main thing is to get udp in
there.

Richard

> >-----Original Message-----
> >From: redhat-sysadmin-list-bounces at redhat.com [mailto:redhat-
> >sysadmin-list-bounces at redhat.com] On Behalf Of Zhou, Jingchen
> >Sent: Friday, February 15, 2008 5:14 PM
> >To: redhat-sysadmin-list at redhat.com
> >Subject: NFS out of sync
> >
> >
> >We have a NFS server (running RHEL4) to support a large number of
> >client workstations (running RHEL4). The clients are all identical
> >(in term of hardware, OS, system configuration and etc), and have
> >/usr/local mounted from the NFS server. /etc/fstab is configured
> >identically on all clients as such:
> >masterfs:/usr/local       /usr/local      nfs     defaults        0
> >0
> >
> >For some reason, one client's /usr/local is out of sync with the
> >rest of clients (both files and the time stamps). For example:
> >
> >On one client that is out of sync:
> >
> >$ ls -all /usr/local/lcls/tools/edm/display/bpms
> >-rwxr-xr-x   1 softegr lcls 31991 Jul 25  2007
> >bpm_stripline_diagnostic.edl
> >
> >On all others :
> >
> >$ ls -all /usr/local/lcls/tools/edm/display/bpms
> >-rw-rw-r--   1 softegr  lcls 31991 Jan 16 16:27
> >bpm_stripline_diagnostic.edl
> >drwxrwxr-x   2 softegr  lcls  4096 Jan 30 09:49 CVS
> >
> >
> >As you can see,  file bpm_stripline_diagnostic.edl is not updated
> >on one client and  file CVS is not showing up.
> >
> >
> >What is going on here? I would certainly expect that /usr/local
> >should be transparent and in sync on all clients. But this dir on
> >one client is clearly out of sync for quite long and doesn't know
> >how to sync back with the rest automatically. I have to reboot the
> >client to clear the problem when that happens. By the way, all
> >clinets have NTP set correctly.
> >
> >Is there anyway to prevent this happen? Any help is greatly
> >appreciated.
> >
> >Thank you very much,
> >Jingchen
> >
> >
> >
> >
> >--
> >redhat-sysadmin-list mailing list
> >redhat-sysadmin-list at redhat.com
> >https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list




More information about the redhat-sysadmin-list mailing list