免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1798 | 回复: 0
打印 上一主题 下一主题

diskdump配置方法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-21 09:10 |只看该作者 |倒序浏览


  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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP