From owner-freebsd-questions@FreeBSD.ORG Fri Apr 24 21:57:05 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 BAD2D1065675 for ; Fri, 24 Apr 2009 21:57:05 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id 1BCE08FC20 for ; Fri, 24 Apr 2009 21:57:04 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: by ewy19 with SMTP id 19so1187630ewy.43 for ; Fri, 24 Apr 2009 14:57:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=eZgpJZK7g4XbJ0MYNrrxPpcy1fy4TU72sN57tjuvS4Y=; b=VXbEN+vLmBMODFr00ADVTC3MacYGT8+I9p3pKUoHtqkLf65tPYNLInnjqkbFiGmxEl tqDFKZmgA1bbgiK4G2ZbldRAcZG1vfK9rxfSII+PkpRQZF8UleGBjfphkUX9dKzcVqYd b2wXm4wexxLclbHQDOtpmYKcKI8DJiaM3LUPU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=C6HAJUndPrVmoJbVRhDzRrXMIt1TkAyEx+7f+CX2n8B9fk7Zr0gt0/wc6bMtW57u7O GVLa7AlK1p35nHuYcKy3XXh93m49PcGderxrPnmqN0f8mDLnwrAADRPHvZSkPHuPD2i7 AaZ5z/LTpnJBBvOKIEq4iN6jnu5MT2KTO4JZ8= MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.210.53.1 with SMTP id b1mr2892041eba.48.1240608600151; Fri, 24 Apr 2009 14:30:00 -0700 (PDT) In-Reply-To: <29655217.2961240606345404.JavaMail.HALO$@halo> References: <29655217.2961240606345404.JavaMail.HALO$@halo> From: Ivan Voras Date: Fri, 24 Apr 2009 23:29:45 +0200 X-Google-Sender-Auth: 120cf7f9a5c5f7bd Message-ID: <9bbcef730904241429h70794144g14c9818e8189f7d9@mail.gmail.com> To: Peter Steele Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Unexpected gmirror behavior: Is this a bug? 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: Fri, 24 Apr 2009 21:57:06 -0000 2009/4/24 Peter Steele : >> This definitely looks like a bug. Try asking again on the freebsd-geom@ >> list. Provide output of "gmirror list". > > I'll try that list... > >>So, your steps were: > >>1. ad4, ad6, ad8 and ad10 in a 4-way mirror >>2. ad4 fails. At this point did you do a "gmirror list"? I.e. did >>gmirror detect it failing? If I read it correctly, the GenID field >>should have been increased in this case. >>3. The system continues to be used >>4. You power it down, take out and reinsert ad4 >>5. On boot, ad4 is detected, inserted in the mirror but as a "known >>good" copy, not a stale one. >> >>Correct? > > Yes, that's basically the sequence that occurred. I can easily recreate the > condition though. I shut my box down, took out ad4 and then rebooted. The > system complained about ad4 being missing and proceeded with a mirror using > 3/4 of the drives. I then created a file on the system, shutdown again, and > then reinserted ad4. On reboot as the system was starting up the gmirror > driver, it detected ad4 but instead of reinserting in in the most recent > mirror made up of the other drives, it became the active drive and kicked > out its old partners, By "kicked out" you mean "overwritten"? You should definitely look at "gmirror list" before and after.