United States (change)
Shortcuts: Downloads Fedora Red Hat Network
Account Links: Cart Your Account Logout
Release found:
Red Hat Enterprise Linux 3 Update 3 and above
The diskdump utility offers the ability to create and collect vmcore (Kernel dumps) on a single system without needing to be connected to a network. Diskdump creates files in an identical format to the netdump core files and can be analyzed with the same tools. Like netdump, diskdump will only work with certain hardware.
Supported cards should be listed in the README file in the /usr/share/doc/diskdumputils-* directory. Diskdump is only available in Red Hat Enterprise Linux 3 Update 3 and above.
A diskdump is created in a two stage process and works similarly to UNIX-style traditional disk dumps. The first step is when the kernel itself crashes and the current memory, the CPU state and related information are saved to a reserved partition on a supported disk.
On the next reboot, when the system restarts the diskdump init scripts will create a vmcore file from the saved information on the reserved partition. This file will be recreated in the directory /var/crash/ with the name 127.0.0.1-<date>.
Diskdump can be used at the same time as netdump and must be configured separately. Diskdump will take priority over a netdump, unless an IO error occurs in which case it will fall back to netdump.
up2date diskdumputils
# modprobe diskdump
Check that the module is loaded, the output of the command should look similar to the output below.
# dmesg | tail header blocks: 3 bitmap blocks: 8 total number of memory blocks: 261999 total blocks written: 262010
The diskdump daemons reserved partition can be specified in the /etc/sysconfig/diskdump. The file to specify which partition.
DEVICE=/dev/sde1
Next step is to initialize the partition for use
WARNING, ANY DATA ON IT WILL BE LOST.
# service diskdump initialformat
And finally, add the service to run on startup and then start the service.
# chkconfig diskdump on # service diskdump start
After setting up the diskdump add the following command to save the diskdump image into /var/crash folder, put it in /etc/rc.local so that when the system crashes and reboots it will automatically run the command.
savecore -v /dev/<diskdump_disk_device>
The diskdump service is now configured. At the next system crash, the data should be saved to the specified partition. This may take some time if the system has large amounts of RAM.