1837195 Members
2631 Online
110115 Solutions
New Discussion

Re: VxVM savecrash

 
MikeL_4
Super Advisor

VxVM savecrash

Our system crashed and rebooted and I am trying to get the crash dumped to /var/adm/crash with the savecrash command but am not having success.
The output of my crashconf is:
# crashconf -v
Crash dump configuration has been changed since boot.

CLASS PAGES INCLUDED IN DUMP DESCRIPTION
-------- ---------- ---------------- -------------------------------------
UNUSED 14044 no, by default unused pages
USERPG 1272491 no, by default user process pages
BCACHE 417881 no, by default buffer cache pages
KCODE 2635 no, by default kernel code pages
USTACK 5043 yes, by default user process stacks
FSDATA 730 yes, by default file system metadata
KDDATA 283022 yes, by default kernel dynamic data
KSDATA 97210 yes, by default kernel static data

Total pages on system: 2093056
Total pages included in dump: 386005

DEVICE OFFSET(kB) SIZE (kB) LOGICAL VOL. NAME
------------ ---------- ---------- ------------ -------------------------
31:0x066000 314464 8388608 2:0x000001 /dev/vx/dsk/rootdg/swapvol1
31:0x006000 314464 4194304 2:0x000006 /dev/vx/dsk/rootdg/swapvol
----------
12582912

How do I setup the savecrash command to get my dump output ???
7 REPLIES 7
RAC_1
Honored Contributor

Re: VxVM savecrash

Make sure that you have enough space in /var/adm/crash directory

savecrash -rv

Does it save it??
There is no substitute to HARDWORK
MikeL_4
Super Advisor

Re: VxVM savecrash


# savecrash -rv
savecrash: No dump header
#
Florian Heigl (new acc)
Honored Contributor

Re: VxVM savecrash

please check /etc/rc.log's swapon messages (defered activation??) and swapinfo - the 'no dump header' message sounds like the swap got activated already -> dump is gone.
yesterday I stood at the edge. Today I'm one step ahead.
RAC_1
Honored Contributor

Re: VxVM savecrash

Are you sure system crashed and dumped the crash dump?? Is savecrash set 1?? (in /etc/rc.config.d/savecrash file)

What does /etc/shutdownlog say??
There is no substitute to HARDWORK
MikeL_4
Super Advisor

Re: VxVM savecrash

I guess we lost the dump then, in checking /etc/rc.config.d/savecrash had the SAVECRASH & SAVECRASH_DIR commented out, so on the reboot it didn't save the file first and went on to start swap.....
MikeL_4
Super Advisor

Re: VxVM savecrash

Found in /etc/rc.log

Save system crash dump if needed
Output from "/sbin/rc1.d/S440savecrash start":
----------------------------
savecrash directory not set; defaulting to: /var/adm/crash
EXIT CODE: 2 - savecrash found no core dump to save
"/sbin/rc1.d/S440savecrash start" SKIPPED
MikeL_4
Super Advisor

Re: VxVM savecrash

What I don't understand then is the console said it was dumping so why does rc.log say there is no dump....

*** Dumping: 97% complete (1512 of 1544 MB) (device rootdg/swapvol)
*** Dumping: 98% complete (1520 of 1544 MB) (device rootdg/swapvol)
*** Dumping: 98% complete (1528 of 1544 MB) (device rootdg/swapvol)
*** Dumping: 99% complete (1536 of 1544 MB) (device rootdg/swapvol)
*** Dumping: 100% complete (1544 of 1544 MB) (device rootdg/swapvol)
*** Dumping: 100% complete (1544 of 1544 MB).
*** System rebooting.