Linux.com

Author Message
Joined: May 08, 2008
Posts: 1
Other Topics
Posted May 08, 2008 at 9:12:49 AM
Subject: where the disk space go?

i du -hd on the root directory and it came back show the / use only 4.2G
but df showing me i have 16G of space and its almost fully use
where is the rest of the space go to if it is not in / ?

here part of the screenshot

Code:

bash-3.00$ du -hd /
.
.
.
79M ./export/home/mydirec
137M ./export/home
137M ./export
1K ./vol
4.2G .
bash-3.00$ df -ah
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t0d0s0 16G 15G 518M 97% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 813M 992K 812M 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
fd 0K 0K 0K 0% /dev/fd
swap 512M 4.8M 507M 1% /tmp
swap 812M 24K 812M 1% /var/run
bash-3.00$ pwd
/
bash-3.00$

Back to top Profile Email Website
Khabi
Joined Apr 21, 2008
Posts: 110

Other Topics
Posted: May 12, 2008 7:27:40 PM
Subject: where the disk space go?

by chance have you changed a log file or something by doing a echo ' ' > /var/log/somefile or anything of the like?
I've seen it happen to a few people before where they modify a log file that is still in use by an application and the application keeps an open file handler and ends up showing diskspace wrong. If thats the case you can restart the application and it will release it and the diskspace will show correctly. (Once I've even seen logrotate do this)

I've never seen the -d flag to du either, and I don't see it on my man page for it. Normally I use "du -h --max-depth=1" you might want to give that a shot, it makes things easier as far as I've seen.

Back to top Profile Email Website
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya