To log VPS host machine crashes you can configure 'netdump' services.
Netdump configuration requires two computers:
- One acts as the netdump server - the box where all crash logs will be stored;
- The other one acts as the netdump client - the VPS host machine.
I. Prepare boxes
1). Install the "netdump-server" package on the server and the "netdump" package on the client (VPS host).
You can use any update agent (up2date, yum, swup) or download and install packages manually via RPM.
For example:
Quote:
# rpm -ivh netdump-0.7.14-4.i386.rpm # rpm -ivh netdump-server-0.7.14-4.i386.rpm |
II. Configuration
1). On the netdump server, as root, type:
Quote:
# passwd netdump |
Quote:
# chkconfig netdump-server on # service netdump-server start |
For example:
Quote:
NETDUMPADDR=10.199.243.39 |
Quote:
# service netdump propagate |
Quote:
# chkconfig netdump on # service netdump start |
III. Testing (optional)
To test if the netdump configuration is correct, perform the following
on the netdump client:
Quote:
# cp /usr/share/doc/netdump-xxxxxx/crash.c . # gcc -DKERNEL -DMODULE -I/lib/modules/$(uname -r)/build/include -c crash.c # insmod ./crash.o |
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.
No comments:
Post a Comment