1833866 Members
2671 Online
110063 Solutions
New Discussion

Core File Path

 
Eric Jacklin
Regular Advisor

Core File Path

Hi team,

Just now we have upgrade the disk and in old disk the core path is set in /var now i want core should get stored in the new FS /dump.

So how should i do that ?
6 REPLIES 6
Dennis Handly
Acclaimed Contributor

Re: Core File Path

Are you talking about /var/adm/crash? Or are you talking about application core files?
Dennis Handly
Acclaimed Contributor

Re: Core File Path

For crash dumps see savecrash(1M):
http://docs.hp.com/en/B2355-60103/savecrash.1M.html
Eric Jacklin
Regular Advisor

Re: Core File Path

Yes I am Talking About Crash file,
Yogeeraj_1
Honored Contributor

Re: Core File Path

hi,

Normally, the crashed process core file goes to the HOME directory of the process executing.

Am not sure that this can be controlled.

good luck

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Bill Hassell
Honored Contributor

Re: Core File Path

Jit is referring to the system crash dump location, not a core file from a single process. The default location is /var/adm/crash and is set in the file:

/etc/rc.config.d/savecrash

The line reads:

SAVECRASH_DIR=/var/adm/crash

Since the vast majority of HP-UX servers use this directory, I would keep this path. Then remove the contents of /var/adm/crash leaving an empty directory. Now pick a new logical volume and add it to /etc/fstab:

/dev/vg00/lvolNEW /var/adm/crash vxfs largefiles,delaylog 0 2

Then after creating a filesystem on the new lvol, use the mount command:

mount /var/adm/crash

Now a system crash will be copied from the dump area to the new lvol at reboot time.


Bill Hassell, sysadmin
Dennis Handly
Acclaimed Contributor

Re: Core File Path

>Yogeeraj: the core file goes to the HOME directory of the process

You mean current directory.

>Am not sure that this can be controlled.

On 11.31, see coreadm(1M).