免费注册 查看新帖 |

Chinaunix

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

Netdump配置及测试 [复制链接]

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


  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 configure a Netdump Server and a Netdump Client?
Netdump requires there to be a Netdump server and then any
number of clients.

Server Configuration:

1.   
Verify that the netdump server
is installed: rpm -q netdump-server.
If it is not installed, install it by running the command: up2date netdump-server.
2.   
After the netdump server
package is installed change the password for the "netdump" user to
something that you know: passwd netdump
3.   
Enable the netdump server: chkconfig netdump-server on
4.   
Start the netdump server: service netdump-server start

Client Configuration:

1.   
Verify that the netdump client
is installed: rpm -q netdump. If it is
not installed, install it by running the command: up2date netdump.
2.   
Edit /etc/sysconfig/netdump and add the following
line:
NETDUMPADDR=192.168.0.5
**192.168.0.5 should be changed to the ip address of the netdump server.
3.   
Enter the following command and
give the netdump password when prompted: service
netdump propagate
4.   
Enable the netdump client: chkconfig netdump on
5.   
Start the netdump client: service netdump start

At this point all sysrq command entered should be sent
accross the network to the netdump server where they should be stored in the /var/crash directory. Dump files generated
by netdump should be named vmcore by default.

How do I configure netdump to test it?
Netdump configuration requires two computers. One acts as
the netdump server and the other one acts as the netdump client. Install the
"netdump-server" package on the server and the "netdump"
package on the client.

I. Configuration

On the netdump server, as root, type:

passwd netdump

and supply a password for netdump just like what you do to
an ordinary user. Then do the following:

  chkconfig netdump-server onservice netdump-server start

On the netdump client, edit /etc/sysconfig/netdump then
uncomment and set the NETDUMPADDR variable to the IP address of the netdump
server. For example:

NETDUMPADDR=10.199.243.39

Then execute:

  service netdump propagate

and supply the netdump password that was configured on the
netdump server. Finally, execute:

  chkconfig netdump onservice netdump start
II. Testing

To test if the netdump configuration is correct, perform
the following on the netdump client (Warning: it will crash the machine!):

  sysctl -w kernel.sysrq=1echo c > /proc/sysrq-trigger

This will crash the system and you will see a kernel dump
on the netdump server in the directory /var/crash//. You will see the file
"vmcore-incomplete" while the client is dumping data to the server.
The file is renamed to "vmcore" once it is completed.

The size of "vmcore" will vary and may reach
several gigs. On a system with 512Mb of RAM, the above test created a vmcore of
approximately 510Mb.

III. Troubleshooting

Netdump client service startup failures are usually due to
NIC or module incompatibility problems. You will notice "insmod"
errors when this happens.

Netdump does not work for all NICs so make sure that yours
is compatible. Below is a list of supported NICs at the time of writing:

1.   
Broadcom bcm57xx using the tg3
driver. Does not work with bcm5700 driver.
2.   
3Com 3c59x
3.   
Intel eepro100, e100 and e1000
4.   
tlan
5.   
tulip

               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/93023/showart_1934328.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP