Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

du missing about 20 gigs

Status
Not open for further replies.

rrsub

MIS
Oct 23, 2002
536
US
I'm missing 20 gigs and I can't tell where it is.

Usually, I have log files that I manually delete (they're backup log files and I don't need them, I don't want automatic because I want to manually snoop around in other areas as I delete them weekly)

So anyway, here's my evidence:

Code:
# df -h
Filesystem            Size  Used Avail Use% Mounted on
...
/dev/hda7              27G   20G  6.6G  75% /home
...
(so you see that /home has it's own partition

# df -h /home
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda7              27G   20G  6.6G  75% /home

-Then the whammy-

# du -hs /home
2.9G    /home

and each subdirectory adds up to the 2.9G value.

 
Found where it was.

I had a 17G log file that I deleted a week ago that memory hadn't let go of.

Code:
lsof +L1

showed me the open file and the (deleted) status

I killed the process (which is a Java process) and got the space back.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top