1837984 Members
2895 Online
110124 Solutions
New Discussion

/var/adm/crash

 
SOLVED
Go to solution
Nikee Reddy
Regular Advisor

/var/adm/crash

Hello My Gurus,

The following is the output when I executed the lvlnboot -v command:
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t4d0 (10/0.4.0) -- Boot Disk
/dev/dsk/c0t3d0 (10/0.3.0)
/dev/dsk/c0t6d0 (10/0.6.0)
/dev/dsk/c0t5d0 (10/0.5.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t4d0
/dev/dsk/c0t5d0
Root: lvol3 on: /dev/dsk/c0t4d0
/dev/dsk/c0t5d0
Swap: lvol2 on: /dev/dsk/c0t4d0
/dev/dsk/c0t5d0
Dump: lvol2 on: /dev/dsk/c0t4d0, 0
Dump: lvol9 on: /dev/dsk/c0t3d0, 1

We have one the file system is specifically assigned for crash dump, i.e.
/dev/vg00/lvdump 2621440 616546 1880783 25% /var/adm/crash

I think the Dump (lvlnboot -v) should point to the filesystem lvdump instaed of lvol9.

Am I correct? I really appreciate your suggestions.

Cheers,
Nikee
6 REPLIES 6
Zeev Schultz
Honored Contributor
Solution

Re: /var/adm/crash

Well,its up to you how your dump devices are configured :)
Anyway,you can change it anytime with lvlnboot -d,run crashconf to see whats there.
check /etc/rc.config.d/savecrash parameter SAVECRASH_DIR to be what you expect it to be.
BTW,do ll /dev/vg00 to see device file for lvdump there.

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
Rainer von Bongartz
Honored Contributor

Re: /var/adm/crash

Take a look at /etc/rc.config.d/savecrash
The parameter SAVECRASH_DIR point to your dump dir



# SAVECRASH_DIR:Directory name for system crash dumps. Note: the filesystem
# in which this directory is located should have as much free
# space as your system has RAM.
SAVECRASH_DIR=/var/adm/crash


Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Nikee Reddy
Regular Advisor

Re: /var/adm/crash

Hello,

In the /etc/rc.config.d/savecrash file the parameter value assigned as SAVECRASH_DIR=/var/adm/crash

Which means that I have to assign the dump of lvlnboot -v to lvdump instead of lvol2 and lvol9?
Note: lvol2 and lvol9 are swap.

Cheers,
Nikee
Massimo Bianchi
Honored Contributor

Re: /var/adm/crash

Hi,
have a look at this thread:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1d135fe8b250d71190080090279cd0f9,00.html

essentially:

dump: were goes the memory dump, usually on swap, because if you have a dump your swap won't be usefull.


crash: where the dump is copied when the system comes up again.

The should be different, and your dump must not point to a FS, otherwise it will be wiped out at the first dump.

HTH,
Massimo
Zeev Schultz
Honored Contributor

Re: /var/adm/crash

Btw,lvol9 doesn't look like swap.Though check with swapinfo -mt.So my advise - configure
(swap and dump) device,put SAVECRASH dir whenever you like.
So computers don't think yet. At least not chess computers. - Seymour Cray
Kevin Wright
Honored Contributor

Re: /var/adm/crash

just an FYI, configure your specified dump lvol, lvdump last (after the primary swap) when using lvlnboot too. It actually goes from bottom up, so lvdump will be used, and if necessary, lvol2.

lvlnboot -d lvol2
lvlnboot -d lvdump