Solved

Solaris 9 disk partition reporting..

Posted on 2007-03-24
1
434 Views
Last Modified: 2013-12-27
I have an install of solaris 9 on a sunfire v210 and when I list teh partitions using
df -kh it is showing one 10 gig partition to be at 97%.
when I manually go to the partition and us
du -skh
it shows only 5.9gig is being used..

Why am I getting differing disk usage reports and how do i correct this?
0
Comment
Question by:Troder
1 Comment
 
LVL 20

Accepted Solution

by:
tfewster earned 500 total points
ID: 18787055
Probably someone/some job has tried to delete files that are still held open by an active process; The space shown by "df" will not be released until the process finishes (and the open file could keep growing).

"du" shows space used by files in the filesystem, but will _not_ show "deleted" files.

`fuser /yourfilesystem` should show active processes that may have a file open; `lsof` is another good bet.  The resolution is to stop the processes- e.g. by rebooting
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question