Operating System - HP-UX
1837969 Members
3139 Online
110124 Solutions
New Discussion

Re: Filesystem /tmp reported full but it is not

 
Omar Astocaza
New Member

Filesystem /tmp reported full but it is not

Hi, In a rp4440 running HPUX B11.11 the filesystem /tmp is reported as full (100%) by bdf, however if I check the disk used by /tmp (du) I can see it is almost free. Is it possible that some disk space remains reserved after tmp files are deleted? How can I free that space?

# bdf /tmp
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol5 524288 523466 822 100% /tmp

# du -ks /tmp
40 /tmp

Thanks,
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Filesystem /tmp reported full but it is not

Shalom,

Most common cause is a file handle is open on a file that has been deleted. The space does not get relased until the file handle is.

fuser -cu /tmp

If you can identify the process and kill it you will get the space back.

The man page for fuser explains the letter tags next to the numeric process id.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
siva0123
Trusted Contributor

Re: Filesystem /tmp reported full but it is not

hi ,

fuser -cu /tmp

will report you the open processes holding this file .

Stop them or wait the process to finish , most probably it is writting something to /tmp .

Then your /tmp should be fine.

Thanks,
siva
Ivan Krastev
Honored Contributor

Re: Filesystem /tmp reported full but it is not

You have deleted file in /tmp still used from some process. See with lsof or fuser what files are used.


regards,
ivan
Calandrello
Trusted Contributor

Re: Filesystem /tmp reported full but it is not

friend
he uses as referencia bdf therefore du -sk if bases on blocagem not considering links
Sp4admin
Trusted Contributor

Re: Filesystem /tmp reported full but it is not

Hi,

Like Steven said. there could be an application that still holding open a file. By using the fuser command you should be able to see what process my have open files in /tmp. Plus of also see if there are some large files created in that directory that can be removed.

sp,