1846876 Members
3000 Online
110256 Solutions
New Discussion

Re: Filesystem full

 
Hkandati
Occasional Advisor

Filesystem full

I have filesystem space issue,so I need find the core files.Can help me in giving the script to find the core files.

Thanks
Hari
10 REPLIES 10
James R. Ferguson
Acclaimed Contributor

Re: Filesystem full

Hi Hari:

# find /path -type f -name core -exec rm -i {} \;

...will search, recursively, '/path' finding all files named "core" and ask, interactively for confirmation to remove them.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Filesystem full

Shalom,

Might want to know where the files are distributed.

cd /filesystem

du -k | sort -rn | more

Get a lay of the land.

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
Hein van den Heuvel
Honored Contributor

Re: Filesystem full

While core files certainly can be big and cause for uncontrolled filling up of a filesystem, they are not the only cause.
Instead of looking for core files, why not look for large files in general?

For example:

find /fs -size +100000


Hein.

MarkSyder
Honored Contributor

Re: Filesystem full

It would help if you said which filesystem you have the problem with: e.g. if it's /var there may be log files that you can trim.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Gaurav_Goyal
New Member

Re: Filesystem full

Hi Hari,

U can use the folowing command to search and delete core files in intrective mode in root file system.

find / -name *core -exec rm -i {} \;

Else for searching large files in your ssytem use following command.

find / -size +100000 -exec ll {} \;

Note: better first you see that in which filesystem you want to look for large files.
Hasan  Atasoy
Honored Contributor

Re: Filesystem full

hi ;

be carefull deleting core files in 11.31 .
there is a module file named core ( /usr/conf/mod/core ) . if you delete all core files in the system by find command you cannot build kernel.

mathmad
Hein van den Heuvel
Honored Contributor

Re: Filesystem full

A voice frrom experience?

There is no /usr/conf/mod/core on the 11.31 system I am looking at. Too late to heed that warning?!
There is an lvmcore file and some more....

fwiw,
Hein.
Hasan  Atasoy
Honored Contributor

Re: Filesystem full

in pa 11.31 system that I faced.
there is core module..

be carefull.

Hasan.
Robert-Jan Goossens
Honored Contributor

Re: Filesystem full

Hasan/Hein,

Thanks for the warning!

# model
9000/800/rp3410
# uname -r
B.11.31
# ll /usr/conf/mod/core
-r--r--r-- 1 bin bin 44072 Jan 12 2007 /usr/conf/mod/core

Regards,
Robert-Jan
Hasan  Atasoy
Honored Contributor

Re: Filesystem full

hi hari ,

what about points ..

Hasan..