Re: forcing an nfs sync
- From: Grant <g_r_a_n_t_@xxxxxxxxxxx>
- Date: Wed, 12 Oct 2005 06:14:15 +1000
Hi Neall,
On Tue, 11 Oct 2005 09:15:24 -0600 (MDT), Linux Doctor <NOSPAMusenet@xxxxxxxxxxxxxx> wrote:
Search lkml.org for "Cache invalidation bug in NFS v3 - trivially reproducible"
came up yesterday, might be something? (linux kernel mailing list)
>Follow-up from original poster (me):
>
>I used the sync option in the /etc/exports file of the server, along with
>no_wdelay, and clients still didn't see immediate changes in the file on
>the server. There was a definite lag (several seconds typically, if not
>more).
>
>Apparently, the server was syncing immediately as a result, but not the
>clients. What I ended up having to do was to add a actimeo option to the
>mount command (/etc/fstab) on the CLIENT side. This resolved the issue.
Okay, I have simple setup:
server:
/ 192.168.1.0/24(sync,rw,no_root_squash)
/home/share 192.168.1.0/24(sync,rw,no_root_squash)
/home/mirror 192.168.1.0/24(sync,ro)
client:
deltree:/ /home/deltree nfs noauto,user,hard,intr
deltree:/home/mirror /home/mirror nfs hard,intr
deltree:/home/share /home/share nfs hard,intr
I do linux-kernel testing, each target machine mounts /home/share,
from where they pickup latest kernel source and patches. I've never
noticed a lag from getting a new patch and being able to pick it
up from clients. Likewise, on each client reboot I write dmesg and
config to the server's /home/share, on server I move those files to
appropriate machine web page <http://bugsplatter.mine.nu/test/>.
>
>In my application, I don't have a lot of NFS traffic, but need to know
>quickly about changes in the files on the server. My tests showed that
>"sync" did not affect the overall throughput (as opposed to async), at
>least in my application. The massive amount of literature online seems to
>indicate that there is a cost with using "sync," but it's obviously
>application dependent and I didn't see any pentalty at all. Neall
Okay, I think that's the point I was trying to make, reliability before
speed? I have NFS 3 over TCP enabled, no ACLs, no selinux, as there's no
hostile user-base here (unless I'm in a bad mood :o) Reiserfs, if that
makes a difference. Server runs 2.4.31-hf6, clients run 2.4 or 2.6 latest
or development. All are Slackware 10.1 or later.
Cheers,
Grant.
.
- References:
- forcing an nfs sync
- From: Linux Doctor
- Re: forcing an nfs sync
- From: Grant
- Re: forcing an nfs sync
- From: Linux Doctor
- forcing an nfs sync
- Prev by Date: Re: NFS re-export
- Next by Date: Re: NFS re-export
- Previous by thread: Re: forcing an nfs sync
- Next by thread: Re: forcing an nfs sync
- Index(es):
Relevant Pages
|