1829557 Members
1652 Online
109992 Solutions
New Discussion

/var/adm/crash

 
ramesh_4
Occasional Advisor

/var/adm/crash

Can anyone pls explain me how to set up /var/adm/crash.

Is there a way to configure it to compress /var/adm/crash while it poduces the crash.

like to find out new things and compare with other flavours of unix
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: /var/adm/crash

Hi:

If you are running 11.x, a good overview is provided in /usr/share/doc/sys_crash.txt.

...JRF...
Mark van Hassel
Respected Contributor

Re: /var/adm/crash

Hi Ramesh,

Take a look at /etc/rc.config.d/savecrash and /etc/rc.config.d/crashconf. These are the configuration files for the crashdumps made during boot time. Also check the savecrash and crashconf MAN pages.

MvH
The surest sign that life exists elsewhere in the universe is that none of it has tried to contact us
Stefan Farrelly
Honored Contributor

Re: /var/adm/crash


Take a look at the file;

/etc/rc.config.d/savecrash

This has all the configurable options as to how to save a dump, if needed. Compress or not, how much space to use etc etc.

Do dump to /var/adm/crash you either need enough space on the /var filesystem (free space = memory size) or often it has its own filesystem set to the size of memory, eg. 1GB. You can create a new filesystem for it the usual way with lvcreate.

Last ensure you have the dump option set in /stand/system and build a new kernel. Most common option is dump lvol.
See man config for more info.
Im from Palmerston North, New Zealand, but somehow ended up in London...