Re: Debian GNU/Linux Lenny server automatically reboot
Miles Fidelman <mfidelman@meetinghouse.net> writes:
> Csanyi Pal wrote:
>> I have Debian GNU/Linux Lenny system as a server machine.
>> I run on it Apache2 webserver, Moodle, etc..
>>
>> I notice that that it did reboot sometimes automatically.
>> Why could this happen? How can I inspect the cause of this event?
>>
> Understanding Linux crashes is a royal pain in the rear.
>
> You have several options:
[snip]
> 3. install a kernel that supports crash dumps and a crash dump utility
> -
> note that this is a bit of a pain in Linux, less so in BSD and Solaris
> based systems - with this approach you can set your machine to save a
> crash dump, then reboot - you can analyze the dump at your leisure --
> sort of important if people depend on your server being up
>
> Linux does NOT make crash analysis easy.
I have had installed the linux-image-2.6.26-1-686 package but my PC Box
reboot automatically often.
So I install linux-source-2.6.26 package and compiled it with
CONFIG_CRASH_DUMP=y option, and installed it.
I did the following:
[code]
$ sudo aptitude install linux-source-2.6.26 zlib-bin zlib1g zlib1g-dev
zlibc
$ cd /usr/src/
$ sudo -E tar xvfj linux-source-2.6.26.tar.bz2
$ cd linux-source-2.6.26/
Copy the /boot/config-2.6.26-1-686 to the /usr/src/linux-source-2.6.26
as .config and edit the line to be: CONFIG_CRASH_DUMP=y
$ sudo -E make oldconfig
$ sudo -E make CONFIG_DEBUG_SECTION_MISMATCH=y
$ sudo -E make-kpkg -initrd kernel_image
I want to install kexec-tools for crash dump analysis.
Is it enough or must I install more packages, say: crash,
crash-whitepaper, watchdog?
How can I use these tools for crash dump analysis?
--
Regards, Paul
<http://sourceforge.net/projects/lptinterface/>
<http://savannah.nongnu.org/projects/lpt-interface/>
<http://csanyi-pal.info>
Reply to: