1825775 Members
2145 Online
109687 Solutions
New Discussion

about system space!

 
leyearn
Regular Advisor

about system space!

my system is 11i
and in one filesystem /fs
there is a large file which will cause file system 100%!
BUT after we rm the file
the space of the file system is 100% used
someOne told me reboot the system
is there any other way to release the sapce?
5 REPLIES 5
Sridhar Bhaskarla
Honored Contributor

Re: about system space!

Hi,

Yes. YOu will need to find out the process that has this file still opened. Use 'lsof' to find out the process. Search for lsof in these forums and you will find posts that will help download that tool. It is a good to have tool on the system.

Once it is installed, run it as

lsof /filesystem > /tmp/filesystem.out

Look at the 6th column that says SIZE/Off in that file. YOu should see a process corresponding to the a file of size that you deleted. Restarting the process will release the space.

No need to reboot the box.
But if the process is application critical, then you may have to restart your application.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
curt larson_1
Honored Contributor

Re: about system space!

when this occurs usually what is happening is the removed file is still being used by a process. to recover the space you just need to have the process that is using the file to stop using it. Usually this means stopping the process. A reboot will do this. or you can use the commands lsof or fuser to find the process and stop it.
Lee Tae-kyung
Regular Advisor

Re: about system space!

Hi,
You can do it to umount the filesystem and mount it again.

Have a nice day~~
I think I am a specialist in IT Korea^^. I am a programmer and SE and DBA
Steven E. Protter
Exalted Contributor

Re: about system space!

Simple rule.

If there is a process that has a handle on the file you removed.

The space does not become free until the process dies. The process can't die sometimes without the file.

The process must be identified and killed.

fuser -cu /fsname

to help identify.

fuser -cuk /fsname

That will nuke every process on the filesystem. I use the world nuke on purpose.

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
Suresh Patoria
Super Advisor

Re: about system space!

Hi,

Check the space using du -sk /fs command

Thanx