NFS cache-cleaning command?

前端 未结 5 1828
刺人心
刺人心 2021-01-31 09:55

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(lenn

5条回答
  •  我在风中等你
    2021-01-31 10:30

    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
    

提交回复
热议问题