shorten dmesg.log
Manuel Hachtkemper
hacman at math.uni-bonn.de
Fri Aug 19 13:13:29 CEST 2011
Hello everyone,
FAI always saves the whole dmesg output on softupdates. This results in "errors"/unknown lines (error.log) even if those kernel messages were sent long ago, but you probably already known about them and you don't want to be disturbed by these old messages every time again. (Of course you can add more "rules" to savelog.LAST.source, but you don't want to disable serious error messages.)
So where did this lead us:
You could delete the whole kernel ringbuffer (dmesg -c) on every softupdate, but then you have to search for old dmesg outputs in the FAI logs, instead of just typing dmesg - not practical.
Our idea is to set a marker to the kernel ringbuffer (if you want to) and only save the dmesg output since the last softupdate. An example implementation (for FAI 3.4.7) is attached to this mail.
While implementing this feature we were wondering why subroutines:save_dmesg is called twice (in two tasks) - the only explanation we had, that you have the dmesg.log even if a later task fails, but this output would still be incomplete (and possibly useless) if an event occurs a few seconds after saving the dmesg.
Comments welcome!
Best regards,
Manuel Hachtkemper
PS: Despite we think shortening the dmesg.log should be useful for most users we could think of a hook for this feature, but therefor it would be useful to make save_dmesg a task (and the information of previous actions would be helpful, too).
-------------- n?chster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : fai.patch
Dateityp : text/x-diff
Dateigröße : 548 bytes
Beschreibung: nicht verfügbar
URL : <http://lists.uni-koeln.de/pipermail/linux-fai-devel/attachments/20110819/f7e503ec/attachment.bin>
-------------- n?chster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : subroutines.patch
Dateityp : text/x-diff
Dateigröße : 2091 bytes
Beschreibung: nicht verfügbar
URL : <http://lists.uni-koeln.de/pipermail/linux-fai-devel/attachments/20110819/f7e503ec/attachment-0001.bin>
More information about the linux-fai-devel
mailing list