du and df do not match on NFS share


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 05-03-2011
du and df do not match on NFS share

Here is the scenario...

NFS share that is accessed every few minutes by approx 70 systems (AIX 5.3/6.1). Filesystem space is being eaten up rapidly according to df however du numbers really never change. lsof and fuser cannot see any unlinked files on either the NFS server or remote clients. Restarting nfsd does not resolve the issue. However, attempting to umount the underlying JFS2 filesystem fails (device busy) obviously but magically frees up the "used" disk space...

Any thoughts on this?
# 2  
Old 05-03-2011
Guessing that you're seeing a cache consistency problem. A common "feature" of using NFS. With NFS you are seeing an abstracted view of data (clients for example are not guaranteed to see the same view.. and what's physically present on the storage doesn't have to match up with any given client/server view). But we call it a filesystem and use the same kind of utilities on it that we use on "normal" filesystems.

There might be something more going on... I'm just taking a very wild guess.
# 3  
Old 05-03-2011
There is some extravagant scripts running on all 70(ish) LPARs from that share which I think is likely somehow creating hidden unlinked files or a whack of cache as you suggest. I didn't write them so I am digging through and correcting potential culprits in hopes of stumbling upon the issue. Nothing jumps out at me but there is many lines of code to look through.
# 4  
Old 05-09-2011
check read/write block size

- the problem you are facing is most likely being caused by a blocksize mismatch ;

- every filesystem has its own blocksize (defined or calculated upon creation) ;

- you will have to unmount you nfs , and before remounting it, discover its native blocksize (on the exporting host), and use the proper mount options to respect this value ;

- like , for example :

Code:
rsize=8192,wsize=8192

- you can add these to your fstab(Linux) or filesystems(AIX) file, or pass them along any other "mount options" you might have on command-line ;

HTH

good luck, and success !
_________________________________
alexandre botao
<< botao {at} unix {dot} sh >>
"comets never dodge"
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Unable to search NFS Share jgt IP Networking 5 12-21-2018 02:38 PM
Mount NFS Share On NFS Client via bash script. Brian.t Shell Programming and Scripting 4 03-13-2016 10:03 AM
NFS share and groups cjhilinski Red Hat 14 03-11-2015 10:24 AM
Permissions for NFS share Rossdba UNIX for Dummies Questions & Answers 0 08-27-2014 06:58 PM
NFS share mastansaheb Red Hat 1 04-10-2013 03:28 AM
Solaris 10 NFS Share Issue fallersaur Solaris 6 01-25-2013 03:42 PM
CIFS share re-export NFS prossits AIX 1 06-06-2012 03:22 PM
CIFS share re-export NFS prossits Red Hat 1 06-06-2012 02:12 PM
Ldom Vdisk on NFS Share fugitive Solaris 1 09-06-2011 02:33 AM
NFS Share Setup On AIX a_sim AIX 1 03-17-2011 05:23 AM
NFS- share drive question sam101 Solaris 3 01-24-2011 11:41 PM
Problem Mounting NFS share fcron IP Networking 2 03-20-2010 04:59 PM
NFS Share - chown problem SmartAntz Solaris 8 08-07-2009 03:34 AM
NFS share error rcmrulzz Red Hat 2 05-14-2008 08:05 AM
NFS share options psimoes79 Solaris 6 10-01-2007 02:27 PM