- 论坛徽章:
- 0
|
Normal
0
7.8 磅
0
2
false
false
false
MicrosoftInternetExplorer4
st1\:*{behavior:url(#ieooui) }
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:普通表格;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
How do I use the
diskdump utility to capture a vmcore in Red Hat Enterprise Linux 3 and 4?
Release found:
Red Hat Enterprise Linux 3 and Red Hat Enterprise Linux 4
Note: Red Hat Enterprise Linux 5 uses kdump
instead of diskdump. See How do I configure kexec/kdump
on Red Hat Enterprise Linux 5?
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-
.
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/
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.
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/93023/showart_1934327.html |
|