Re: core file (143 Views)
Reply
Valued Contributor
mmdallal
Posts: 302
Registered: ‎05-07-2007
Message 1 of 16 (143 Views)

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
Honored Contributor
Ivan Krastev
Posts: 2,156
Registered: ‎06-25-2006
Message 2 of 16 (143 Views)

Re: core file

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

regards,
ivan
Honored Contributor
Venkatesh BL
Posts: 1,096
Registered: ‎09-12-2004
Message 3 of 16 (143 Views)

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
Esteemed Contributor
Prashanth Waugh
Posts: 620
Registered: ‎05-17-2007
Message 4 of 16 (143 Views)

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
Valued Contributor
mmdallal
Posts: 302
Registered: ‎05-07-2007
Message 5 of 16 (143 Views)

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?
Honored Contributor
Venkatesh BL
Posts: 1,096
Registered: ‎09-12-2004
Message 6 of 16 (143 Views)

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!
Honored Contributor
Venkatesh BL
Posts: 1,096
Registered: ‎09-12-2004
Message 7 of 16 (143 Views)

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.
Valued Contributor
mmdallal
Posts: 302
Registered: ‎05-07-2007
Message 8 of 16 (143 Views)

Re: core file

in case I did delete it, dose this will make system crash, or and system malfunctioning?
Best regards
Honored Contributor
Robert-Jan Goossens_1
Posts: 1,813
Registered: ‎04-04-2000
Message 9 of 16 (143 Views)

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
Valued Contributor
mmdallal
Posts: 302
Registered: ‎05-07-2007
Message 10 of 16 (143 Views)

Re: core file

any risk assistance?
-------------
bash-2.04# file core
core: core file from 'pmd' - received SIGBUS
-------------
Honored Contributor
Sajjad Sahir
Posts: 1,277
Registered: ‎12-07-2007
Message 11 of 16 (143 Views)

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
Advisor
Vivekanandan Somanathan
Posts: 22
Registered: ‎11-18-2004
Message 12 of 16 (143 Views)

Re: core file

Hi

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

- Vivek
Honored Contributor
Venkatesh BL
Posts: 1,096
Registered: ‎09-12-2004
Message 13 of 16 (143 Views)

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.
Trusted Contributor
Sp4admin
Posts: 460
Registered: ‎12-22-2004
Message 14 of 16 (143 Views)

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,
Acclaimed Contributor
Dennis Handly
Posts: 25,287
Registered: ‎03-06-2006
Message 15 of 16 (143 Views)

Re: core file

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

Caution with that. In /usr/conf there is a kernel module named "core".
Valued Contributor
mmdallal
Posts: 302
Registered: ‎05-07-2007
Message 16 of 16 (143 Views)

Re: core file

Thanks for all
the problem is solved using your valuable comments, I used the ">core"
Best regards
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.