Re: logging on kernel panic

From: Mahmood Naderan
Date: Wed Jun 13 2012 - 10:53:32 EST


@jiri:
>and you can get the dmesg+panic from there
 Sorry where? in the bios?

@Cong:
>The kernel log may not hit /var/log/syslog when kernel panics,
Can I ask why. Just before a panic, kernel is still alive and can log.
Isn't that?


// Naderan *Mahmood;


----- Original Message -----
From: Jiri Kosina <jkosina@xxxxxxx>
To: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>
Cc: Mahmood Naderan <nt_mahmood@xxxxxxxxx>; "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>
Sent: Wednesday, June 13, 2012 6:24 PM
Subject: Re: logging on kernel panic

On Wed, 13 Jun 2012, Alan Cox wrote:

> > Hi everybody
> > If a system receives kernel panic during boot, will it be logged somewhere?
>
> Often not.. especially if it is fatal. Look up netconsole however.

Well your machine's BIOS can still be providing non-volatile sotrage which
under recent kernels registers itself with 'pstore', and you can get the
dmesg+panic from there then (provided you have all the necessary bits,
such as APEI, compiled in and enabled).

--
Jiri Kosina
SUSE Labs

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/