• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Solaris : How to validate that the crash dump was created properly

By admin

After a panic, the crash dump is stored under the directory defined as “Savecore directory” on the dumpadm output. The default is /var/crash/`uname -n`. Starting with Solaris 10 Update 9, the crash dump is stored in a single file called vmdump.X, where X is a consecutive number as defined in the /var/crash/`uname -n`/bounds file. Before Solaris 10 update 9, two files are created, the unix.X and the vmcore.X.

Note: Right after the reboot caused by a system panic the savecore command is automatically executed to extract the crash dump from the dump device and save it as a file. Before attempting to perform any operation with the crash dump, make sure that the file is no longer growing or no savecore process is running. If the system is running at least Solaris 10 update 9, extracting the actual crash dump (to obtain the unix.X and vmcore.X files) is needed to interact with it. This can be done with the following command:

# savecore -vf vmdump.0
savecore: System dump time: Sat Feb 27 01:43:17 2016

savecore: saving system crash dump in /var/crash/{unix,vmcore}.0
Constructing namelist /var/crash/unix.0
Constructing corefile /var/crash/vmcore.0
 0:08 100% done: 67870 of 67870 pages saved
18796 (27%) zero pages were not written
0:08 dump decompress is done

For the purposes of creating a service request to diagnose the cause of a panic or system hang, if the system is running Solaris 10 Update 9 or newer, only upload the vmdump.X file, for previous versions of Solaris, please upload the unix.X and vmcore.X files.

We can use mdb to perform a quick verification of the crash dump. The commands shown below are to print the header of the crash dump and the stack trace that lead to the panic. If these commands provide an output and no errors are reported on the /var/adm/messages file and/or console log, then there is a good chance that the crash dump was created successfully.

# echo "::status" | mdb -k unix.0 vmcore.0
debugging crash dump vmcore.0 (64-bit) from hostA.oracle.com
operating system: 5.11 11.0 (sun4v)
image uuid: 6d5e1bb1-16f1-4de9-a12f-ac96c3826144
panic message: forced crash dump initiated at user request
dump content: kernel pages only
# echo "*panic_thread::findstack" | mdb -k unix.0 vmcore.0
stack pointer for thread 30014cb98a0: 2a1020e3081
  000002a1020e3131 kadmin+0x5a0()
  000002a1020e3201 uadmin+0x1c0()
  000002a1020e32d1 syscall_trap32+0xcc()

The Oracle Solaris Crash Analysis Tool (SCAT) can also be used to verify and analyze a crash dump, opening the crash dump and using the command “analyze” should be enough to confirm that the crash dump was created properly.

How to Use the Oracle Solaris Fast Crash Dump Feature

Filed Under: Solaris

Some more articles you might also be interested in …

  1. How to send mails with attachments using the solaris mailx command
  2. Solaris 11 : Increasing the size of a vdisk in LDom ( with backend device as ZFS volume )
  3. What is SUID, SGID and Sticky bit ?
  4. Understanding Special Permissions (setuid, setgid, sticky bit) in Solaris
  5. Complete Hardware Reference : SPARC T3-1 / T3-2 / T3-4
  6. How to mount the zfs rpool while booted from CD [SPARC]
  7. How to identify the HBA cards/ports and WWN in Solaris
  8. Beginners guide to Oracle Solaris Live Upgrade
  9. How to run savecore (crash dump) manually in Solaris
  10. How to prevent non-root user from creating crontab entry

You May Also Like

Primary Sidebar

Recent Posts

  • MySQL: how to figure out which session holds which table level or global read locks
  • Recommended Configuration of the MySQL Performance Schema
  • MySQL: Identify what user and thread are holding on to a meta data lock that is preventing other queries from running
  • MySQL: How to kill a Long Running Query using max_execution_time
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary