Operating System - HP-UX
1833289 Members
2923 Online
110051 Solutions
New Discussion

Can a coredump be different name?

 
SOLVED
Go to solution
Godfrey Zhang
Advisor

Can a coredump be different name?

We have a server recently crashes very often, we wanted to have multiple coredumps with differnt names for analysis, so we created multiple dump lvols. Can we have different coredump names? Thanks.
4 REPLIES 4
Bill Hassell
Honored Contributor

Re: Can a coredump be different name?

If you are not going to fix the crashes (loading the current patches should take care of that) then there is no reason to keep the crash dumps at all. Just remove all the crashdumps, then remove the /var/adm/crash directory. Now when your system crashes, it will reboot faster and not create any crash dumps.


Bill Hassell, sysadmin
Anupam Anshu_1
Valued Contributor
Solution

Re: Can a coredump be different name?

The application which ever is dumping core if that can be modified a bit, then this can be possible.

This can be done by adding a signal handler to the application. In the singnal handler you can use rename(2) to change the name of the core file.

Regards,

Anshu
Godfrey Zhang
Advisor

Re: Can a coredump be different name?

Thanks Bill and Anupam, I've written a script monitoring the core file, once it finds a new core file then it renames it to another name. Thanks for your clue.
Mike Stroyan
Honored Contributor

Re: Can a coredump be different name?

There is a kernel parameter, core_addpid, that
can be set to automatically add the pid to the
name of each core file. See this thread-
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=150039