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

File system Full ..Problem..??

Status
Not open for further replies.

rockies

MIS
Sep 24, 2001
25
US
filesystem grows and grows.....
Fsck will not fix the Problem. situations like this occur when a Process has an open handle to a file. (opt/filesystem) is writing to it. The Process dies abnormally without cleaning up and/or closing open filehadles. The space continues to be occupied untill the filesystem is unmounted and remounted . But we can't do that !!.
Therefore the system mustbe rebooted (can't Kill a Process that is already dead.)
Problem is file may grow and grow in size untill the filesystem becomes Full.

Does any one knows utility called 'isof' that may help us pinpoint the process!!!!!!!!!!!!!! ???

Any suggestion wellcome. help wanted!

rockies



 
Yes, lsof lists the open files and is extremely useful for precisely this kind of problem. You can also see this kind of problem in practice if you try to rename /var/cron/log to say /var/cron/olog whilst cron is still running. The cron process will continue to write to /var/cron/olog!!! and leave the newly created (empty) /var/cron/log alone.
Using lsof, probably as root will show you the filename you are interested in, but also show you the Process ID (PID)
of the process/task that is causing the continuous write to occur. You can get lsof from just select the platform you want first.
Good luck
John Philcox
Mobile Ventures Limited UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top