From owner-freebsd-stable@FreeBSD.ORG Thu Jun 24 22:22:43 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64017106566C for ; Thu, 24 Jun 2010 22:22:43 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 10E6C8FC17 for ; Thu, 24 Jun 2010 22:22:42 +0000 (UTC) Received: by vws13 with SMTP id 13so3073297vws.13 for ; Thu, 24 Jun 2010 15:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=1PMEWGFmw0SWYmM2hPE46GKVbpkUrvfmYRV6cK3HMVY=; b=XktsRj4NBiO0vOPSOUS46zAcxdYUxva8MEUouN7HoJn8/wQop6yP6Kb5MbL6+2DWiG oR09kd7lPZLDdcJja/FNDeGXH56mvbwK3cO4K8i57UYM3+7xwkxPjjIpRfmIt6JhE6NY PQ0R1G+96wQS+TWkmvk94RvzNkeKTuSPz0Oc4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=no/VnM0KEMIeskGZa6rUv2tm6FNuTNMGiKhnHnoO6/D1dm2wtRkIkd5mGWZqHNMtN2 Gkfn+b1ZRezig+8pzh2jj+KoOuHHVLMAfJ3gd9z7SEtcntUNpFO3XGgOQBcWLHF79f/7 WxMiZ/q4FqFEhYZOxxcpnFKBmOwuoT0um8aDY= MIME-Version: 1.0 Received: by 10.224.88.25 with SMTP id y25mr2494756qal.226.1277418161900; Thu, 24 Jun 2010 15:22:41 -0700 (PDT) Received: by 10.229.82.70 with HTTP; Thu, 24 Jun 2010 15:22:41 -0700 (PDT) In-Reply-To: <1277417182.1874.30.camel@almscliff.bubblegen.co.uk> References: <1276844904.7519.19.camel@almscliff.bubblegen.co.uk> <20100618082127.GA34578@icarus.home.lan> <1276876031.7519.39.camel@almscliff.bubblegen.co.uk> <20100618174208.GA47470@icarus.home.lan> <1276889330.2210.44.camel@almscliff.bubblegen.co.uk> <1277155992.1860.3.camel@almscliff.bubblegen.co.uk> <20100622074541.GA71157@icarus.home.lan> <82A96ECD-676C-4A4D-A328-0CFAABD64D50@gid.co.uk> <1277401934.1874.12.camel@almscliff.bubblegen.co.uk> <20100624181535.GA58443@icarus.home.lan> <1277417182.1874.30.camel@almscliff.bubblegen.co.uk> Date: Thu, 24 Jun 2010 17:22:41 -0500 Message-ID: From: Adam Vande More To: Matthew Lear , Jeremy Chadwick , freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Re: 7.2-RELEASE-p4, IO errors & RAID1 failure X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2010 22:22:43 -0000 Haven't followed the entire thread, but wanted to point out something important to remember. SMART is not a reliable indicator of failure. It's certainly better than listening to it but it picks up less than 1/2 of drive failures. Google released a study of their disks in data centers a few years ago that was fairly in depth look into drive failure rate. You might find it interesting. On 6/24/10, Matthew Lear wrote: > On Thu, 2010-06-24 at 11:15 -0700, Jeremy Chadwick wrote: >> On Thu, Jun 24, 2010 at 06:52:14PM +0100, Matthew Lear wrote: >> > On Tue, 2010-06-22 at 20:04 +0100, Bob Bishop wrote: >> > > Hi, >> > > >> > > On 22 Jun 2010, at 08:45, Jeremy Chadwick wrote: >> > > >> > > > On Mon, Jun 21, 2010 at 10:33:12PM +0100, Matthew Lear wrote: >> > > >> [tale of woe elided] >> > > > >> > > > I don't really have any other thoughts on the matter, sadly. >> > > > [helpful suggestions elided] >> > > > >> > > > Anyone else have ideas/recommendations? >> > > >> > > The disks sure look OK. I wouldn't rule out the controller(s), I've >> > > had various chipsets fail in odd ways. >> > > >> > >> > Thanks Bob. I think we all thought the same. >> > I've actually just rebooted the machine and FreeBSD no longer boots. >> > This isn't what I was expecting at all. Something has clearly gone wrong >> > with some file system metadata. >> > >> > When I commissioned the machine I installed an 'early' bootloader >> > (apologies for perhaps using an incorrect term) which boots FreeBSD by >> > default (F1 option) or from Drive 1 (F5). Drive 1 is the DVD drive. >> >> I believe this is the boot0 stage of the FreeBSD bootstrap process, >> otherwise known as "BootMgr" during the OS installation. I tend to >> avoid this and pick "Standard" instead, which lets the system boot right >> into boot2/loader. >> >> > It appears to be the case that the early bootloader tries to boot >> > FreeBSD and fails. I get the messages: >> > >> > error 1 lba 795079 >> > Invalid format >> > >> > FreeBSD/i386 boot >> > Default: 0:ad(0,a)/boot/kernel/kernel >> > boot: >> > error 1 lba 786815 >> > No /boot/kernel/kernel >> > >> > FreeBSD/i386 boot >> > Default: 0:ad(0,a)/boot/kernel/kernel >> > boot: >> > >> > ...and I'm at a boot prompt. >> >> You're at the boot0 stage. The bootstrap stage looks wrong: this should >> be 0:ad(0,a)/boot/loader, not /boot/kernel/kernel. You should load the >> kernel from boot2/loader, not boot0. >> >> After you powered off the system, did you physically remove the ad0 >> disk, or is it still in the system? >> > > It's still in the system. Given that the disk is ok relative to SMART, I > was of the [probably naive] assumption that I'd be able to boot up > normally, access the array on ar0, re-sync the array and carry on as > normal monitoring any further errors. > >> I would recommend taking ad0 out of the picture (power down the machine >> and physically unplug it), and make sure your BIOS is set to boot from >> the first hard disk *and* the 2nd hard disk. "Hard disk" in this >> context means "any disk that's part of the RAID-1 array". You want to >> make sure your other disks (whatever that thing is on ata0-slave, and >> the backup disk you have on ad1) *are not* bootable from the BIOS. If >> they've ever been used as bootable disks in the past, then you should >> have cleared the MBR on them to ensure they couldn't be booted by the >> BIOS. > > Understood. > >> >> What I'm documenting here is the need to make sure that you don't boot >> the wrong device/disk. I'm talking about what the *BIOS* boots, not the >> FreeBSD boot0 bootstrap. >> >> You should keep the 2nd disk in the RAID-1 mirror connected to its >> current SATA port; do not move it to what ad0 was connected to. >> >> > So, given that ad0 was the failed disk, the bootloader has failed to >> > find specific boot data on ad0 and dropped me into a boot prompt. >> >> Actually, it's reporting an I/O error at a specific LBA, indicating it >> either can't load the kernel. >> >> > I'm tempted to replace the boot line with 0:ad(2,a)/boot/kernel/kernel >> > or should that be 2:ad(0,a)/boot/kernel/kernel but I'm a little >> > suspicious of doing anything at this point? >> >> I believe you want 0:ad(2,a)/boot/loader, but you'll have to enter this >> every time unless you follow what I wrote above (re: BIOS disk boot >> order). > > Again, all understood. I gave this a whirl and saw several ad0 timeout > messages at various LBA, the system boot up hung and dropped me into > single user mode. atacontrol list showed no devices attached to channel > 0 which I thought was rather odd. I've no idea if this is indicative of > a hw failure or not. Further investigation is required. > >> > Can anybody offer any guidance of what I can do to restore my system? I >> > was able to shut down the machine cleanly (shutdown -p now) and despite >> > the RAID mirror going offline, everything seemed to be behaving normally >> > (expected I guess given that I just lost some redundancy). >> > >> > I'm just that little bit more worried now :-( If the disks are ok, what >> > on earth could have happened and more importantly, how can I restore >> > what was an operational system when I shut it down?! >> >> At this point you need to make a judgement call: which are you going to >> spend more time doing: a) futzing around with this weird situation, or >> b) reinstalling everything and restoring data from backups? >> >> If I was in your shoes at this point, I'd probably choose (b) and go >> with installing 8.1-RC1 using gmirror for the RAID-1 capability. > > That's probably fair enough but I'm of the opinion that I'd like to know > what has happened (or rather what FreeBSD has done) to my machine. Given > that the apparently faulty disk is not faulty, something (or probably > more accurately, the OS) has written some absolute LBA values to disk > with the intent of accessing these. Yes the disk has indicated that > there is an error but as to why, well that's the question :-) > > IMO it's all fine and well saying upgrade to the next stable release but > that's not actually finding the cause and trying to resolve the problem > in a sensible manner. I'm fortunate enough that I can easily handle a > bit of down time on the machine. You're absolutely right in saying that > the set up should have been tested prior to commissioning. I agree > completely. However, it's a server that I run at home, I'm not an IT > admin, I don't mind getting my hands dirty and do try to learn from > experience - hopefully! :-) > >> There isn't much else I can say about the issue, other than that proper >> failure testing may have caught this before it was too late. If there's >> anything positive to take away from this experience, it's that. :-) >> > > Absolutely. > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Sent from my mobile device Adam Vande More