Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3604
  • Last Modified:

df -k reporting incorrect disk space

I'm running Solaris 2.6 on Ultra 60 machines.  When I run df -k on the root patition on one machine it reports that the root partition is 63% full while another machine with the same configuration reports only 7%.  I run du -k / | sort -n on both machines and get the same total disk space used for the root partition.  I tried running fsck and fsck -of in single user mode with no change in the df output.  Help!
0
keechv
Asked:
keechv
1 Solution
 
chris_calabreseCommented:
Are the root partitions the same size on the two machines?

If they are, it's still possible that this is correct if there are files that have been deleted but there are still processes with open file-handles to them. This won't survive a reboot, however.
0
 
TintinCommented:
Running 'du -k /' will not return the space used for the root partition if you have multiple partitions.
0
 
jhundpogiCommented:
Hi,
Do you have the same patch level ?
if yes, Check if you have the same OBP release.

If problem still persist :
1. try to switch disk
2. if you dont have a seperate /var,check /var/crash..maybe their is a nasty core file..in their..
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
keechvAuthor Commented:
The problem was cause by circular soft links on the workstation where the root partition was reported as 63% full.  The question now becomes...  Why did the df -k command stop at 63%.  I would think it would follow the links until the df command reported 100% full.
0
 
chris_calabreseCommented:
df does not look at the actual files to determine disk usage, but rather looks at in-kernel information kept at the filesystem level.
0
 
TintinCommented:
Of course it still stands that running 'du -k /' will give you totally different results to 'df -k /'

du will list the sizes of every directory on your system.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now