From owner-freebsd-geom@FreeBSD.ORG Tue Jan 31 13:40:40 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 688161065675 for ; Tue, 31 Jan 2012 13:40:40 +0000 (UTC) (envelope-from vivek@khera.org) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id ED18E8FC13 for ; Tue, 31 Jan 2012 13:40:39 +0000 (UTC) Received: by bkbzx1 with SMTP id zx1so705621bkb.13 for ; Tue, 31 Jan 2012 05:40:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=khera.org; s=google11; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=n+WCUmY4DLhLOQBrLoGCK5EWCdHXLP20l+RkJ64/mgI=; b=RmHYp1KaWLxG+Gz4mSZtRWAaSVIYI1XkgwYW9DUJp2kraJz3lD5q/AHDqpn1MuOg1a PFr05BueFmCf3AJ0yuIVkFfJYajyyH42WkTJd8CG41X/39yVEw3M6KONw4RmtDD7M23W cW6VQmyfO3jG5rdWAYCKxnHEe8lCJprz1+3Ew= MIME-Version: 1.0 Received: by 10.204.156.155 with SMTP id x27mr10608155bkw.4.1328015740572; Tue, 31 Jan 2012 05:15:40 -0800 (PST) Received: by 10.204.148.11 with HTTP; Tue, 31 Jan 2012 05:15:40 -0800 (PST) In-Reply-To: <4F277200.8020003@yandex.ru> References: <9DB745B1-AA3D-4EF4-9A5E-4159EBFBC3E7@kcilink.com> <4F277200.8020003@yandex.ru> Date: Tue, 31 Jan 2012 08:15:40 -0500 Message-ID: From: Vick Khera To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: gmirror failed with error 19. X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2012 13:40:40 -0000 2012/1/30 Andrey V. Elsukov : > Usually the cause is that you have created the mirror after partition table. > And partition size stored in the partition table metadata is greater than available sectors > in this mirror. Now it is detected by the gpart's integrity checks and gpart on the mirror > refuses partition table. Yes, this is exactly what it seems to be. My solution was to re-break the gmirror from FreeBSD 8 kernel, boot into FreeBSD 9 kernel and world, then reformat the second drive using GPT, dump/restore from first drive, boot to second drive, reformat first drive, set up gmirror per partition, then reboot. I'm *really* glad I had an ILOM on this server to let me reset it many many times as I made mistakes and locked up or panicked the system to the point of lockups. The procedure I have now is, I believe, panic-free and lockup-free. I'll be cleaning up my notes and posting them somewhere for others.