LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   wheres the rest of the hdd space go? (https://www.linuxquestions.org/questions/solaris-opensolaris-20/wheres-the-rest-of-the-hdd-space-go-640728/)

conandor 05-08-2008 03:03 AM

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$


jlliagre 05-08-2008 04:25 AM

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.

conandor 05-08-2008 04:35 AM

Quote:

Originally Posted by jlliagre (Post 3146644)
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?

jlliagre 05-08-2008 06:52 AM

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


All times are GMT -5. The time now is 05:31 AM.