From owner-freebsd-geom@FreeBSD.ORG Tue Jan 31 04:45:55 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 68E0C106566B for ; Tue, 31 Jan 2012 04:45:55 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward5.mail.yandex.net (forward5.mail.yandex.net [IPv6:2a02:6b8:0:602::5]) by mx1.freebsd.org (Postfix) with ESMTP id D55008FC0A for ; Tue, 31 Jan 2012 04:45:54 +0000 (UTC) Received: from smtp1.mail.yandex.net (smtp1.mail.yandex.net [77.88.46.101]) by forward5.mail.yandex.net (Yandex) with ESMTP id 120381201EF4; Tue, 31 Jan 2012 08:45:53 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1327985153; bh=8sz6ktvHk3W6IJiqythEWSpMJoj0hELvtKJlwVjxmPI=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=qNZOmxnuv7hGGx0tr/6tZ8T3kom9tIdTRbB5/vBcAt2yogt3sTHcuCS8QsS0Lm82O UslNR2e//bbQMXewkMn5wSUjqlnb5PKDxitDIUP8SNuuTIq5YXBZEoUAX85jsjz6O/ WGbUM6sHCBg67+fWxRmYociznAEzvNylsB3VBwVc= Received: from smtp1.mail.yandex.net (localhost [127.0.0.1]) by smtp1.mail.yandex.net (Yandex) with ESMTP id D3826AA0176; Tue, 31 Jan 2012 08:45:52 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1327985152; bh=8sz6ktvHk3W6IJiqythEWSpMJoj0hELvtKJlwVjxmPI=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=EIIu/X5Qc46aY9TdKttEKjTq3OAyD68h0K4ypE2BVuxUMPuof9skMhi47GBjVPLLq iG3fMMthIf7V05c1rLBPCP/JrLv5qHjSB2a443TgUUI/nMyOETndyg+exDT9RvvZnP O67dU9tc2/AQzhVTPF+EYib+Vg6uUjpED5kt5lxQ= Received: from ns.kirov.so-ups.ru (ns.kirov.so-ups.ru [178.74.170.1]) by smtp1.mail.yandex.net (nwsmtp/Yandex) with ESMTP id jqUeZ2S2-jqUmejRU; Tue, 31 Jan 2012 08:45:52 +0400 X-Yandex-Spam: 1 Message-ID: <4F277200.8020003@yandex.ru> Date: Tue, 31 Jan 2012 08:45:52 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Vick Khera References: <9DB745B1-AA3D-4EF4-9A5E-4159EBFBC3E7@kcilink.com> In-Reply-To: <9DB745B1-AA3D-4EF4-9A5E-4159EBFBC3E7@kcilink.com> X-Enigmail-Version: 1.3.4 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: sascha@trimind.de, freebsd-geom@freebsd.org 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 04:45:55 -0000 On 30.01.2012 21:02, Vick Khera wrote: > The relevant bits of change are: > > -last: 156249953 +last: 156249998 > > where the latter number is from the 9.0 boot of this system. > > So, it seems that something other than just the "last" reported from gpart is causing gmirror to > fail its integrity check. First of you can enable verbose boot mode and you will see why your partition table was lost. Pay attention to the messages which begins from "GEOM_PART:". 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. One way to fix the problem: 1. Disable integrity checks: kern.geom.part.check_integrity=0 2. Detach one component from the mirror and destroy partition table on it. 3. Create new mirror on this disk and recreate partition table ATOP of the mirror. 4. dump+restore the data from old mirror to new one 5. destroy old mirror and attach the disk to new mirror. -- WBR, Andrey V. Elsukov