Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6876713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:30:44+00:00 2026-05-27T04:30:44+00:00

I have a trouble with NFS client-side attribute caching. I’m using some servers, one

  • 0

I have a trouble with NFS client-side attribute caching.
I’m using some servers, one is an NFS server and the others are NFS client servers.

All servers are Debian(lenny, 2.6.26-2-amd64 of Linux) and versions are following.

 % dpkg -l | grep nfs
ii  libnfsidmap2                        0.20-1                     An nfs idmapping library
ii  nfs-common                          1:1.1.2-6lenny1            NFS support files common to client and server
ii  nfs-kernel-server                   1:1.1.2-6lenny1            support for NFS kernel server

In the NFS server, /etc/exports is written as following:

/export-path   192.168.0.0/255.255.255.0(async,rw,no_subtree_check)

In the NFS clients, /etc/fstab is written as following:

server:/export-path     /mountpoint   nfs rw,hard,intr,rsize=8192,async 0 0

As you can see, “async” option is used for multi-clients access performance.
However, sometimes this can cause false-caching errors.

Since I am maintaining many servers (and I have not so strong permission to change the mount options), I don’t want to modify /etc/exports nor /etc/fstab.
I think it is sufficient if I have a command-line tool that “cleans” NFS client-side attribute cache with a user permission.

Please let me know if there such commands.

Thanks,


(Appended)

I mean by “false-caching errors”,

 % ls -l /data/1/kabe/foo                  
ls: cannot access /data/1/kabe/foo: No such file or directory
 % ssh another-server 'touch /data/1/kabe/foo' 
 % ls -l /data/1/kabe/foo
ls: cannot access /data/1/kabe/foo: No such file or directory

Sometimes such cases happen.
The problem is not a file content but file attributes(=dentries information) since NFS says it guarantees Close-to-Open consistency.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:30:44+00:00Added an answer on May 27, 2026 at 4:30 am

    Depending on what you mean by “false-caching errors”, running sync may get you what you need. This will flush all filesystem buffers.

    If needed, you can also clear out the VM caches in the kernel using /proc/sys/vm/drop_caches.

    # To free pagecache
    echo 1 > /proc/sys/vm/drop_caches
    
    # To free dentries and inodes
    echo 2 > /proc/sys/vm/drop_caches
    
    # To free pagecache, dentries and inodes
    echo 3 > /proc/sys/vm/drop_caches
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have trouble with calling one view controller to another view controller using segue
I have trouble to update some rows in SQL Server (2005 and 2008). Often,
I have trouble using Perl grep() with a string that may contain chars that
I have trouble accessing filestream via SqlFileStream. Sql server and IIS7 are on different
I have trouble where, for some reason, SVN would only merge the newly generated
I have trouble saving my date field into database using CakePHP. Table column name
I have trouble using the transactionscope on SQLite, i am using the following code.
I have trouble with editing listview (asp.net 3.5 server control). I want to accomplish
I have trouble getting the absolute path with cakephp while using a shell. Shell
I have trouble understanding Cocoa Bindings. Can someone explain me what this is all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.