From owner-freebsd-questions@FreeBSD.ORG Wed Sep 5 11:56:51 2007 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 F3A1E16A41B for ; Wed, 5 Sep 2007 11:56:50 +0000 (UTC) (envelope-from tobi@casino.uni-stuttgart.de) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.freebsd.org (Postfix) with ESMTP id B8A6213C4CC for ; Wed, 5 Sep 2007 11:56:50 +0000 (UTC) (envelope-from tobi@casino.uni-stuttgart.de) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 3DD5C27AD1 for ; Wed, 5 Sep 2007 07:56:33 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 05 Sep 2007 07:56:33 -0400 X-Sasl-enc: kK1NFIwZ2PfmWfVl21/rotZenAvK561/DKetMpInUbjg 1188992832 Received: from [192.168.1.100] (unknown [91.21.201.69]) by mail.messagingengine.com (Postfix) with ESMTP id E3FF63C55 for ; Wed, 5 Sep 2007 07:47:10 -0400 (EDT) Message-ID: <46DE9733.8010402@casino.uni-stuttgart.de> Date: Wed, 05 Sep 2007 13:46:59 +0200 From: Tobias Ernst User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <64c038660709041931i2f83ee9bv9a3e4276c750ff23@mail.gmail.com> In-Reply-To: <64c038660709041931i2f83ee9bv9a3e4276c750ff23@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: Booting to root on gmirror with disk failure, is it even possible? 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: Wed, 05 Sep 2007 11:56:51 -0000 Modulok schrieb: > Before I invest significantly more time into my current gmirror > issues, I have but two simple questions for anyone out there: > > 1. Has anyone used gmirror for the root partition and been able to > successfully boot with one failed (or un-plugged) disk? It's the > latter part of the question that is the real issue for me. I'm just > looking for a confirmed "it's possible". Yes, it is possible. IBM xSeries 346, FreeBSD 6.2-RELEASE, amd64. U360 hard drives. More specs are available from IBM. Using gmirror because we only have an Adaptec "HostRAID" (aka "FakeRAID") controller and not a real "ServerRaid", i.e. our SCSI controller basically has no useful RAID capabilities built in. My test case is to unplug any one disk while the system is running. (Don't do this with your system unless your hardware is specified for hot plugging!). FreeBSD detects a bus reset, marks the gmirror as degraded and continues operating normally, and I can also reboot the degraded gmirror without any problems. The more conservative test case is to power down the system, unplug any one disk, and restart the system. No problems with that either. In fact, the absolutely robust behaviour of gmirror was one of my key arguments for switching from Linux to FreeBSD :-). Of course there are a zillion ways to fail your hard disk, and there could be cases where one hard disk might start behaving erratically, and gmirror might not be able to detect all such cases and might try to continue using the failed disk. This could theoretically lead to some nasty data integrity issues in the worst case. But this is true for any RAID, even when implemented in hardware IMO. Regards Tobias -- Universität Stuttgart|Fakultät für Architektur und Stadtplanung|casinoIT 70174 Stuttgart Geschwister-Scholl-Straße 24D T +49 (0)711 121-4228 F +49 (0)711 121-4276 E office@casino.uni-stuttgart.de I http://www.casino.uni-stuttgart.de