From owner-freebsd-questions@FreeBSD.ORG Wed Mar 9 10:49:19 2005 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 73F8616A4CE for ; Wed, 9 Mar 2005 10:49:19 +0000 (GMT) Received: from mx.interdata.lt (mx.interdata.lt [213.226.139.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4F7643D54 for ; Wed, 9 Mar 2005 10:49:18 +0000 (GMT) (envelope-from aurimas.m@interdata.lt) Received: from crz (82-135-201-125.ip.takas.lt [82.135.201.125]) by mx.interdata.lt (Postfix) with ESMTP id D48709054A for ; Wed, 9 Mar 2005 12:49:16 +0200 (EET) Date: Wed, 9 Mar 2005 12:49:13 +0200 From: Aurimas Mikalauskas X-Mailer: The Bat! (v3.0.1.33) Professional Organization: INTERDATA X-Priority: 3 (Normal) Message-ID: <177897473.20050309124913@interdata.lt> To: freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: gmirror logic of choosing failed drive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Aurimas Mikalauskas List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 10:49:19 -0000 Hi, recenlty I had a strange incident. I have a simple web server with two gmirror'ed disks (ad4 & ad6). One of the disks (ad6) failed and gmirror detached one, but the funny thing is - it detached the good one (ad4) so after a few seconds the server crashed. I've rebooted the server and once again - it detached the "failed" ad4 drive and crashed in a few seconds with ad6. I detached the bad one (ad6) by hands (phisically). Bingo! ad4 works just fine. Could anyone please explain me what is the logic of gmirror? How does it decide which drive has failed and how could I influence it to behave correctly? Balance algorithm I use is round-robin, the controller: the disks: 76319MB [155061/16/63] at ata2-master SATA150 Any ideas? Thank you in advance! Respectfully, Aurimas Mikalauskas