From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 21 22:04:31 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA1B116A402 for ; Thu, 21 Feb 2008 22:04:31 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 4A94513C465 for ; Thu, 21 Feb 2008 22:04:30 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id m1LM4HR5076036; Thu, 21 Feb 2008 23:04:17 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id m1LM4BRR068125 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 21 Feb 2008 23:04:11 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id m1LM4BI9084011; Thu, 21 Feb 2008 23:04:11 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id m1LM4Ax7084010; Thu, 21 Feb 2008 23:04:10 +0100 (CET) (envelope-from ticso) Date: Thu, 21 Feb 2008 23:04:10 +0100 From: Bernd Walter To: Bartosz Giza Message-ID: <20080221220410.GL80751@cicely12.cicely.de> References: <200802212229.40988.gizmen@blurp.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200802212229.40988.gizmen@blurp.pl> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on cicely12.cicely.de Cc: freebsd-hackers@freebsd.org Subject: Re: cool feature of dmesg.boot file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2008 22:04:31 -0000 On Thu, Feb 21, 2008 at 10:29:40PM +0100, Bartosz Giza wrote: > Hi, > > I have found quite interesting feature on one of router that lately i have > taken to administer. > What i knew was that file /var/run/dmesg.boot holds data from kernel buffer > that is taken right after file system(s) are mounted. > Lately i have found that one router writes to this file data from kernel > buffer when system is going to reeboot. Below are few lines from this file. > What you can see are lines from kernel right before reeboot. I have never seen > before such lines in this file. And this is quite interesting. Could anyone > tell me how can i achieve such funcionality on other systems ? I have tried > to find on google about this but i couldn't find anything similar to this. You can even see the panic message if it was the reason for reboot. This works on every system where the RAM is not cleared on reboot. For example on every alpha, on my old IBM notebook, on Soekris systems, on at least some Intel server boards, ... Just not on vanilla PC, because their BIOS clears the RAM contents, so the old dmesg buffer is lost on the next kernel start. x86 that don't clear the RAM exists, just as my notebook and Soekris, but those are not very common. It is nothing which is configuriable though. Of course you could ask your board vendor to send you a less destructive BIOS, but I don't expect any positive result from that. I guess the main reason for this is that most are using the same BIOS framework and don't think about it. > ------ > Waiting (max 60 seconds) for system process `vnlru' to stop...done > Waiting (max 60 seconds) for system process `bufdaemon' to stop...done > Waiting (max 60 seconds) for system process `syncer' to stop... > Syncing disks, vnodes remaining...2 2 2 0 0 done > All buffers synced. > GEOM_MIRROR: Device gm0: provider mirror/gm0 destroyed. > GEOM_MIRROR: Device gm0 destroyed. > Uptime: 71d13h58m11s > Copyright (c) 1992-2007 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 6.2-RELEASE #0: Sun Feb 18 20:05:19 CET 2007 > ------ > > -- > Pozdrawiam > Bartosz Giza > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de