Operating System - HP-UX
1751738 Members
5915 Online
108781 Solutions
New Discussion юеВ

Need to confirm the core file deletion

 
Sreer
Valued Contributor

Need to confirm the core file deletion

Hi Gurus,

It may be rubbish querry.But I need to ask you urgently.

I have a core file in /opt FS. not sure whether I can remove it or not.

[root@server1:/opt]#file ./hpsmc/avc/bin/core
./hpsmc/avc/bin/core: core file from 'monitorsvcd' - received SIGABRT
[root@server1:/opt]#

Could you please suggest.
NB.The node is a cluster node.

By the by how can I confirm who /which application is using this file currently?

Pls advice ASAP.

Thanks in advance.

Rgds

Sree
6 REPLIES 6
Prasanth V Aravind
Trusted Contributor

Re: Need to confirm the core file deletion


Yes you can remove core file. Its created when some program got SIGABRT signal.


>> By the by how can I confirm who /which application is using this file currently?


lsof | grep -i hpsmc/avc/bin will show, which are the binaries now opened & which are the process id's for each, which will give some clues which application using these.

GUdluck
Prasanth
Dennis Handly
Acclaimed Contributor

Re: Need to confirm the core file deletion

>I have a core file in /opt. not sure whether I can remove it or not.

How old is it? How often do you get one? Do you have support for monitorsvcd? What does "file core" show?

You may just want to remove it.

>By the by how can I confirm who /which application is using this file currently?

Nobody but you. Once a core file is created, it isn't accessed until you use a debugger.
Anshumali
Esteemed Contributor

Re: Need to confirm the core file deletion

"whether I can remove it or not."
----You can remove it safely if you dont have intention to get it investigated by the developers who developed the process which dumped it.
Its from process called monitorsvcd.
"who /which application is using "
----You can use lsof to list handles on this file. You still need to download as its not bundled with Hp-UX
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=653690
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Michal Kapalka (mikap)
Honored Contributor

Re: Need to confirm the core file deletion

hi,

if you dont use a debuger to analyse what was the problem for core-dump them you could remove the file.

mikap
Sreer
Valued Contributor

Re: Need to confirm the core file deletion

Hello,

Thanks all for your quick and helpfull reply.

I have assigned the points to all who guided me. :--))))

Have a nice day!!



Sreer
Valued Contributor

Re: Need to confirm the core file deletion

I have purged the file after analysiing the core dump.

The thread is closed .

Thanks all.