Chinaunix首页 | 论坛 | 博客
  • 博客访问: 327274
  • 博文数量: 88
  • 博客积分: 3020
  • 博客等级: 中校
  • 技术积分: 930
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-13 09:32
文章分类

全部博文(88)

文章存档

2011年(1)

2009年(87)

我的朋友

分类: LINUX

2009-05-21 09:11:55

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 on
service 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 on
service 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=1
echo 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

 

阅读(1563) | 评论(0) | 转发(0) |
0

上一篇:diskdump配置方法

下一篇:Kdump配置及测试

给主人留下些什么吧!~~