From owner-freebsd-current@FreeBSD.ORG Fri Oct 28 10:28:27 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 028DF1065670; Fri, 28 Oct 2011 10:28:27 +0000 (UTC) (envelope-from sascha@trimind.de) Received: from mikako.shopkeeper.de (mikako.shopkeeper.de [82.119.175.20]) by mx1.freebsd.org (Postfix) with ESMTP id 64EFD8FC15; Fri, 28 Oct 2011 10:28:26 +0000 (UTC) Received: from avalon.dobu.local (p508D47DF.dip.t-dialin.net [80.141.71.223]) (authenticated bits=0) by mikako.shopkeeper.de (8.14.3/8.14.3) with ESMTP id p9S9mTkq037682 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 28 Oct 2011 11:48:31 +0200 (CEST) (envelope-from sascha@trimind.de) Received: from avalon.dobu.local (localhost [127.0.0.1]) by avalon.dobu.local (8.14.4/8.14.2) with ESMTP id p9S9mS6H001886; Fri, 28 Oct 2011 11:48:28 +0200 (CEST) (envelope-from sascha@avalon.dobu.local) Received: (from sascha@localhost) by avalon.dobu.local (8.14.4/8.14.4/Submit) id p9S9mSCm001885; Fri, 28 Oct 2011 11:48:28 +0200 (CEST) (envelope-from sascha) Date: Fri, 28 Oct 2011 11:48:28 +0200 From: Sascha Klauder To: Garrett Cooper Message-ID: <20111028094828.GA1781@trimind.de> References: <8453E2A2-3219-4FAA-98CE-2F9D66EA1C39@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.97.2 at mikako.shopkeeper.de X-Virus-Status: Clean X-Mailman-Approved-At: Fri, 28 Oct 2011 11:16:42 +0000 Cc: antik@bsd.ee, freebsd-geom@freebsd.org, current@freebsd.org, Martin Wilke Subject: Re: gmirror failed with error 19. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: sascha@trimind.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2011 10:28:27 -0000 On Tue, 2011-10-25 12:27 -0700, Garrett Cooper wrote: > On Tue, Oct 25, 2011 at 11:15 AM, Martin Wilke wrote: > > I face the same error since upgrade from 8.2 to 9.0RC1, is there any way to fix that? > errno == 19 => ENODEV -- so the question is, what device is missing? I've got bitten by this as well when trying a source up- grade of a freshly installed 8.2-RELEASE system that had gmirror configured after installation according to the procedure in the Handbook. The 9.0-RC1 kernel drops to the mountroot prompt when booting with GEOM_MIRROR: Device mirror/gm0 launched (2/2). GEOM_PART: partition 1 has end offset beyond last LBA: 490350671 > 490350670 GEOM_PART: integrity check failed (mirror/gm0, MBR) ... Trying to mount root from ufs:/dev/mirror/gm0s1a [rw]... mountroot: waiting for device /dev/mirror/gm0s1a ... Mounting from ufs:/dev/mirror/gm0s1a failed with error 19. which can be circumvented by setting the loader tunable kern.geom.part.check_integrity=0. The only immediately obvious difference I could find is that "gpart list" reports the last sector of the mirror/gm0 device different from the 8.2 kernel (490350670 vs 490350608). "gpart list" output when running the 8.2-RELEASE kernel: http://arwen.shopkeeper.de/~sascha/gpart-82 vs 9.0-RC1: http://arwen.shopkeeper.de/~sascha/gpart-90 Image of the MBR: http://arwen.shopkeeper.de/~sascha/ada0-mbr.bin Cheers, -sascha