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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jfs /tmp nearly full, du -ks shows less space occupied 1

Status
Not open for further replies.

GotisM

IS-IT--Management
Joined
Dec 8, 2005
Messages
2
Location
DE
A "df -k /tmp" shows the following:

Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd3 221184 21940 91% 43834 80% /tmp

"du -ks /tmp" returns:

20660 /tmp

"find /tmp|wc" returns:

960 960 31340

/tmp has about 216MB space, "df" says there are about 20 MB left on /tmp, "du" says there are only 20 MB used. So, I am missing about 160 MB. Are they used for the inodes ? And if so, who can explain me why they need this amount of space ?

Thanx

 
More than likely, a large file that was still in use was deleted. As long as the process which was using the file does not close the file, the diskspace will be kept 'in limbo': df will count it as used, du will not count it.

The easiest way to deal with this is to reboot the server, but I realize that isn't always an option.

You can try and find the open file with lsof /tmp and from the filename try to deduce which application process needs to be restarted or needs a nudge to start a new logfile e.g.




HTH,

p5wizard
 
I agree with p5wizard. It's likely a file in your /tmp filesystem was inuse by a process that is currently running. If you could find "that" process and cycle it, you should be set. AIX won't release that filespace until that process has been completed.
 
Thanx to all. The hint with a possibly open file is really the right.

It's right that it is not easy to reboot the server. But our Power Supplier made the decision for us, he cut of Power.

After restarting the system /tmp-filesystem has the right behavior, there are no more missing MBs...

@p5wizard : Where did you know that it is a server ?
 
There aren't a lot of AIX 1-person workstations around. So that was a safe bet I guess. Of course now half the world's CATIA engineers will probably be on my case... ;-)



HTH,

p5wizard
 
...they might be appeased by the advertisement generated by the word in your post!
 
Well, someone can always red-flag it I suppose...

HTH,

p5wizard
 
Nah - only joking! I think it's a 'feature' of Tek-Tips.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top