1827479 Members
2530 Online
109965 Solutions
New Discussion

Re: core file

 
mmdallal
Valued Contributor

core file

Dear, my machine is HP-UX 11.11 and an HP OpenView NNM and OVO is installed in it
problem: I found that the root is full, when I searched the last modified file I found that there is a "core" file with huge size 723 Mb
what is this file?
how can I reduce the used space in root?
----------------------
bash-2.04# pwd
/
bash-2.04# ls -l core
-rw------- 1 root sys 759160832 May 28 01:48 core
bash-2.04# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1048576 1048208 368 100% /
/dev/vg00/lvol1 298928 44544 224488 17% /stand
/dev/vg00/lvol8 7168000 3333392 3834608 47% /var
/dev/vg00/lvol7 2342912 1597720 739424 68% /usr
/dev/vg00/lvol4 2097152 1620872 474184 77% /tmp
/dev/datavg/oralv 71675904 30232760 40795604 43% /oracle
/dev/vg00/lvol6 7274496 5262384 1996416 72% /opt
/dev/vg00/lvol5 57344 2936 54040 5% /home
bash-2.04#
----------------------
best Regards
15 REPLIES 15
Ivan Krastev
Honored Contributor

Re: core file

If you don't have a plans to analyze core file - just remove it.

regards,
ivan
Venkatesh BL
Honored Contributor

Re: core file

Using 'file' command would tell you the process that generated it. Then you can decide whether to keep it or not.

# file core
Prashanth Waugh
Esteemed Contributor

Re: core file

hi ,

If its not importnat file. then you can null it by
giving the command
#>core

best Regards
For success, attitude is equally as important as ability
mmdallal
Valued Contributor

Re: core file

kindly, how can determine the importance if this file?
any way what is this file, and whit is the purpose of this file?
Venkatesh BL
Honored Contributor

Re: core file

core file is generated when a process receives a certain signal from the kernel. Typically, it could be due to improper memory access.

The file contains the stack trace and other important register values from the killed process. This can be used to find the reason for the process failure.

One cannot generalize that core files are irrelevant!
Venkatesh BL
Honored Contributor

Re: core file

Also, note that you need a debugger to analyse it. If it is a one time occurance, you can just look at the 'file' output and delete the file. You could do further analysis if the problem recurs again.
mmdallal
Valued Contributor

Re: core file

in case I did delete it, dose this will make system crash, or and system malfunctioning?
Best regards
Robert-Jan Goossens_1
Honored Contributor

Re: core file

Hi,

Before you delete the core file, check which application produced the core file.

# file core

If it has been produced by NNM or OVO you might have that analyzed by HP.

Regards,
Robert-Jan
mmdallal
Valued Contributor

Re: core file

any risk assistance?
-------------
bash-2.04# file core
core: core file from 'pmd' - received SIGBUS
-------------
Sajjad Sahir
Honored Contributor

Re: core file

Dear friend
if it is core file u can easily remove from
system.

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

it will remove u core file

no problem to remove any core file


sajjad

Re: core file

Hi

Nothing will happen... You can goahead and delete the file.

- Vivek
Venkatesh BL
Honored Contributor

Re: core file

So, 'pmd' application caused the core file to be generated. You can feel free to delete any core file from the system. It is not a 'system' file by any means. So, your system will not be affected in any way if you remove it.

The analysis of the core file is required only if you want to trouble shoot the problem with the application.
Sp4admin
Trusted Contributor

Re: core file

Hello,

Just remove the core file. when a file system starts to fill up, one of the first things you do is start looking for core files.

sp,
Dennis Handly
Acclaimed Contributor

Re: core file

>sajjad: find / -name core -exec rm -i {} \;

Caution with that. In /usr/conf there is a kernel module named "core".
mmdallal
Valued Contributor

Re: core file

Thanks for all
the problem is solved using your valuable comments, I used the ">core"
Best regards