Hi, I get the problem that du does report right size on nfs file system.
Hi,all
run du * -sh in a nfs mounted directory. But it only reports about 1/10 of the right size. That is, I have about 8G files in all directories but du only reports about 800M. Btw, the nfs server is running ms service for unix v3. Does anyone meet the same problem here? Thank u in advance.
Quoted 3 lines · Penny
Hi,all
rundu * -shin a nfs mounted directory. But it only reports about 1/10 of the right size. That is, I have about 8G files in all directories butduonly reports about 800M. Btw, the nfs server is runningms service for unix v3. Does anyone meet the same problem here? Thank u in advance.
Might try du -sh without the *, should give a total usage for the current directory and all sub directories.
Tony
A more specific answer is that * doesn't catch the hidden ( .* ) files and directories.
If you want to know the sizes of the current directory, and also get a summary of what's in each first-level directory, you acn go:
du --max-depth=1 .
(the '.' isn't necessary, since that's the default, but I like to know exactly what I'm asking for).
Quoted 3 lines · Penny
Hi,all
rundu * -shin a nfs mounted directory. But it only reports about 1/10 of the right size. That is, I have about 8G files in all directories butduonly reports about 800M. Btw, the nfs server is runningms service for unix v3. Does anyone meet the same problem here? Thank u in advance.
Signature · 4 lines
Stephen Samuel +1(604)876-0426 [email protected] http://www.bcgreen.com/~samuel/ Powerful committed communication. Transformation touching the jewel within each person and bringing it to light.