Operating System - HP-UX
1753528 Members
5256 Online
108795 Solutions
New Discussion юеВ

Re: modify the default path /var/adm/crash to store core crash dump

 
ITRC forums_2
Advisor

modify the default path /var/adm/crash to store core crash dump

Hi all,

Is it possible to modify the default path(/var/adm/crash)on hp-ux 10.01 to store core crash dump? if yes, please help me to modify the memory core dump the default path.

I just wanted to specify different path because we have no more space on /var file system.

Thx,
4 REPLIES 4
Doug Burton
Respected Contributor

Re: modify the default path /var/adm/crash to store core crash dump

Can't remember if this applies to an old O/S...

Edit the file /etc/rc.config.d/savecrash and uncomment the following:
# SAVECRASH=1, and
# SAVECRASH_DIR=/var/adm/crash

Change the path to somewhere else that you like.
ITRC forums_2
Advisor

Re: modify the default path /var/adm/crash to store core crash dump

Hi,

I can see one savecore file /etc/rc.config.d in this file the default path is mentioned.
see below

SAVECORE_DIR=/var/adm/crash

-r--r--r-- 1 bin bin 1041 Jun 12 1995 savecore

Secondly, there is another executable in /sbin/init.d/savecore and there is also a default path is mentioned. see below

-r-xr-xr-x 1 bin bin 180224 Jun 12 1995 savecore

typeset -r DEFAULT_SAVECORE_DIR=/var/adm/crash.

1. My question is, I need to modify both the files or any other?

2. what else I need to do after modification.

Thx,



ITRC forums_2
Advisor

Re: modify the default path /var/adm/crash to store core crash dump

Can anybody help/answer my question?

Thx
Tim Nelson
Honored Contributor

Re: modify the default path /var/adm/crash to store core crash dump

If you set SAVECORE_DIR in /etc/rc.config.d/savecrash that value is used. If you do not then the DEFAULT_SAVECORE_DIR is used.


I would not bother modifying /sbin/init.d/savecore as it would probably get written over with some patch install. as noted right at the top of the file.