If a kernel panic occures, a dump will be invoked automatically in AIX. The followings are dumped during the dump process.
- List of currently running processes and related information about the process
- Curretnly mounted filesystems, inode table and open file table
- currently configured ttys and their status
- Memory buffers for data
- system buffers
- system variables and statistics
- Kernel's own record of process it is currently running.
Configuring dump devices in AIX
sysdumpdev command is used to
change the primary or secondary dump device designation in a running system in AIX.
change the primary or secondary dump device designation in a running system in AIX.
sysdumpdev
-l list the current dump destination
-L view satistical information about previus dump
-e estimate the dump size
-d directory to copy the dump during boot time
-p to set the device as primary dump device
-s to set the device as secondary dump device
-P to make the changes permanent even after reboot
Examples:
To permanently make /dev/hd7 as the primary dump device
# sysdumpdev -Pp /dev/hd7
To make /dev/sysdumpnull as the secondary dump device
# sysdumpdev -s /dev/sysdumpnull
To estimate the dump size
#sysdumpdev -e
sysdumpstart command is used to start a kernel dump to the primary or secondary dump device. When the dump completes, the system halts. Use the kdb command to examine the dump.
# sysdumpstart {-p | -s}
- If there is enough space to copy the dump to /var/adm/ras directory, then it will be copied directly during reboot.
- Dump is copied as /var/adm/ras/vmcore.x file.
- If there is not enough space, then "copydumpmenu" is run by /sbin/rc.boot to display the copy dump menu. Using this copydumpmenu utility, a dump can be copied to removable such as tape.
snap utility can be used to gather system information along with dump and compress the information in a tar file.
snap
-a gathers all system configuration information
-c creates compressed pax image (snap.pax.Z)
-e HACMP specifig information
-g gathers general info
-f gathers filesystem info
-k gathers kernel info
-d optional snap commnad output directory
default directory is /tmp/ibmsupt
-D gathers dump and /unix
-o cpoies the compressed image to tape or diskette
Example:
To send dump with other gathered information in to tape drive
# snap -gfkD -o /dev/rmt0
kdb command is an interactive utility for examining an OS image or the running kernel.
kdb KernelFile]]
0c0 - Dump completed successfully
0c2 - Dump started
0c4 - Dump unsuccesful. Not enough space on dump device
0c5 - Dump failed to start
0c9 - System initiated dump started
2 comments
Write commentsHello Parthiban;
ReplyI am traying to know much more about how to get the root cause of the system crash by analyzing the dump with kdb.
On my case when you use stat inside "kdb" I do not get the ref code as expected. Do you have any example to post here how to analyze aix dump ?
Hello Parthiban.....
ReplyHow to take the backups of SYSdump and Device?
What do you think about this Article? Add your Opinion..! EmoticonEmoticon