From owner-freebsd-questions@FreeBSD.ORG Thu Mar 27 15:39:23 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0396C37B401 for ; Thu, 27 Mar 2003 15:39:23 -0800 (PST) Received: from boreas.primus.ca (mail.tor.primus.ca [216.254.136.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DCA943F75 for ; Thu, 27 Mar 2003 15:39:22 -0800 (PST) (envelope-from leth@lethargic.dyndns.org) Received: from dialin-155-84.tor.primus.ca ([216.254.155.84] helo=lethargic.dyndns.org) by boreas.primus.ca with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 3.36 #3) id 18ygxr-000272-0A; Thu, 27 Mar 2003 18:39:21 -0500 Received: from lethargic.dyndns.org (leth@localhost [127.0.0.1]) by lethargic.dyndns.org (8.12.6/8.12.6) with ESMTP id h2RNdWEG068153; Thu, 27 Mar 2003 18:39:33 -0500 (EST) (envelope-from leth@lethargic.dyndns.org) Received: (from leth@localhost) by lethargic.dyndns.org (8.12.6/8.12.6/Submit) id h2RNdUYp068152; Thu, 27 Mar 2003 18:39:30 -0500 (EST) Date: Thu, 27 Mar 2003 18:39:29 -0500 From: Jason Hunt To: Steve Warwick Message-ID: <20030327233929.GA67949@lethargic.dyndns.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Spam-Status: No, hits=-30.1 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,PLING_QUERY, QUOTED_EMAIL_TEXT,RCVD_IN_NJABL,RCVD_IN_OSIRUSOFT_COM, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT,X_NJABL_DIALUP autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: freebsd-questions@FreeBSD.ORG Subject: Re: Freebsd - restarting itself?! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2003 23:39:26 -0000 On Mon, Mar 24, 2003 at 11:20:56AM -0800, Steve Warwick wrote: > Hi All, > > Is it possible for FreeBSD to shut itself down and restart for no reason? > > My machine was restarted last night and my hosting company claims they did > not touch the server or have any problems. This has been going of for a few > months now -- intermittent restarts that no one claims responsibility for. > > This is a new machine with the latest OS (4.7) so I can't blame a faulty > power supply or something like -- I have more fans than Britney in the > server, for HD and CPU so I don't think it's a temp problem. > > Run /usr/bin/last and check the line below the last 'reboot' (which is when the system came up). If you see 'shutdown', then FreeBSD did a clean shutdown because someone or something told it to do so. Any users that are logged in to the system will have 'shutdown' as their logout time. If there is no 'shutdown' before the reboot, then the system did not cleanly restart. You would also likely see "/ not cleanly unmounted, checking" (that is not the exact message, but it is similar) in dmesg before the "Mounting root from ..." line. If any users were logged in, you will see 'crash' as their logout time. Here are two examples; This is "normal". I shut down the system myself: reboot ~ Thu Mar 27 17:40 shutdown ~ Thu Mar 27 17:39 root ttyv0 Thu Mar 27 17:27 - shutdown (00:12) This is a "crash". The power flickered in this case: reboot ~ Mon Feb 24 00:52 jhunt ttyv0 Sun Feb 23 12:31 - crash (12:20) If there was not a clean shutdown, I would start looking for faulty hardware, assuming the power was not interrupted. Any machine that spontaniously reboots on its' own usually has a bad power supply, but it could be very well be the motherboard, or even something else. Further, as many other people have said, just because the hardware is new does not necessarily mean it is problem-free. Hope this helps.