LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
LinkBack Search this Thread
Old 05-08-2008, 03:03 AM   #1
conandor
LQ Newbie
 
Registered: Mar 2008
Posts: 11

Rep: Reputation: 0
wheres the rest of the hdd 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$

Last edited by jlliagre; 05-08-2008 at 03:58 AM. Reason: fix code tag
 
Old 05-08-2008, 04:25 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165

Rep: Reputation: 243Reputation: 243Reputation: 243
No discrepancy on my laptop:
Code:
$ du -sdh /
  11G
$ df -h /
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0d0s0         13G    12G   525M    96%    /
It might be some quite big directories are unreadable for your account. If so run the du command as root.

Otherwise, very big files may be still open by some processes but have been removed from their directories.
 
Old 05-08-2008, 04:35 AM   #3
conandor
LQ Newbie
 
Registered: Mar 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jlliagre View Post
No discrepancy on my laptop:
Code:
$ du -sdh /
  11G
$ df -h /
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0d0s0         13G    12G   525M    96%    /
It might be some quite big directories are unreadable for your account. If so run the du command as root.

Otherwise, very big files may be still open by some processes but have been removed from their directories.
i see. got any tips on how can i track these directories?
 
Old 05-08-2008, 06:52 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165

Rep: Reputation: 243Reputation: 243Reputation: 243
You can't track the directories as the files are removed.

What you need to track are the processes having big files open. Here is a command that will show the size of the 10 largest currently open files:

Code:
pfiles /proc/* | grep IFREG | grep size | sed 's/.*size://' | sort -n | tail
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
X won't come up. No space on HDD inon^ Fedora 2 07-30-2005 04:29 PM
wheres the rest of the bootup messages? Daveb3 Linux - Newbie 1 07-07-2005 11:06 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
Resize ReiserFS partition to use rest of disk space fivezerosixzero Linux - General 1 10-31-2004 01:43 PM
Occasionally, printing results in CUPS filling up the rest of my HDD mikeyt_333 Linux - Software 17 05-27-2004 11:53 PM


All times are GMT -5. The time now is 12:01 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration