Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS v. 3 > Issue <<  37 of 594 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 4220
Last update: 09-27-06
Issue:
How do I use the diskdump utility to create a vmcore file?
Resolution:

Release found:
Red Hat Enterprise Linux 3 Update 3 and above

Introduction:

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.

How it works:

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.

Configuring diskdump

  • These steps assume that the diskdumputils package is installed. If not, install it using up2date:
    up2date diskdumputils
    
  • To configure diskdump, load the diskdump module.
     	
    # 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.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS v. 3 > Issue <<   37  of  594  >>