NFS cache-cleaning command?

前端 未结 5 1790
刺人心
刺人心 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:38

    clear /var/lib/nfs/rmtab file on nfs server.

    The below commands are used to clear memory related problems. and it is very dangerous too. soem times it will crash ur application hosted on the box

    # sync
    
    # 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
    

提交回复
热议问题