From owner-freebsd-questions@FreeBSD.ORG Sun Apr 5 09:07:40 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D3231065674 for ; Sun, 5 Apr 2009 09:07:40 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: from mx1.identry.com (on.identry.com [66.111.0.194]) by mx1.freebsd.org (Postfix) with ESMTP id 1B6018FC13 for ; Sun, 5 Apr 2009 09:07:39 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: (qmail 24243 invoked by uid 89); 5 Apr 2009 09:08:17 -0000 Received: from unknown (HELO ?192.168.1.110?) (jalmberg@75.127.142.66) by mx1.identry.com with ESMTPA; 5 Apr 2009 09:08:17 -0000 Mime-Version: 1.0 (Apple Message framework v753.1) In-Reply-To: <4ad871310904050141k11eda14vd8db9224f4384757@mail.gmail.com> References: <4ad871310904050141k11eda14vd8db9224f4384757@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1ED100F1-51AE-478D-873C-40FF43EA17FB@identry.com> Content-Transfer-Encoding: 7bit From: John Almberg Date: Sun, 5 Apr 2009 05:07:37 -0400 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.753.1) Subject: Re: how to recover after power outage X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Apr 2009 09:07:40 -0000 On Apr 5, 2009, at 4:41 AM, Glen Barber wrote: > On Sun, Apr 5, 2009 at 2:59 AM, John Almberg > wrote: >> Blast... my beautiful FreeBSD servers were rudely switched off >> when my data >> had a power outage a couple hours ago. They restored power about >> 30 minutes >> later, and one box came up no problem. >> >> The other has a login prompt on the serial console, but my login >> does not >> work. I get a "Login incorrect" message, even though the username/ >> password >> is correct. >> > > Can you log in as *any* user? Even root login fails? Can't log in at all. > >> When I try to SSH into the box, I get this (server name changed): >> >> $ ssh user@example.com -p 48420 >> ssh: connect to host example.com port 48420: Connection refused >> >> In other words, I seem to be locked out. >> >> I don't want to do anything drastic without having a good idea >> what I'm >> doing. Any suggestions, much appreciated. >> > > What was the previous (estimated) uptime on the machine? Several months, at least. > In other > words, did you change something and not/forget to restart the service? I don't believe so, but if I forgot it, then I guess anything is possible. > Have you tried ssh-ing to port 22 to see if the setting was changed > back to default? I can't at the moment, because the guys at NYI are working on the box. They have run fsck, which doesn't seem to have solved the problem. > > Are there any other services on this box? If so, are they running? The main app is MySQL. I don't think it is running, but can't really tell unless I can log in. I have backups, and while NYI is trying to get this box running, I'm setting up a new database server, just in case... -- John