- 论坛徽章:
- 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 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 |
|