From owner-freebsd-fs@FreeBSD.ORG Sun Sep 15 20:56:50 2013 Return-Path: Delivered-To: fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 027F4574; Sun, 15 Sep 2013 20:56:50 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 1CD4C2560; Sun, 15 Sep 2013 20:56:45 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id XAA10209; Sun, 15 Sep 2013 23:56:44 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1VLJN5-0009vS-Ql; Sun, 15 Sep 2013 23:56:43 +0300 Message-ID: <52361ED3.9070408@FreeBSD.org> Date: Sun, 15 Sep 2013 23:55:47 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130810 Thunderbird/17.0.8 MIME-Version: 1.0 To: Daniel Gerzo Subject: Re: Mounting from zfs failed with error 22 with gmirror References: <5234BE9E.1030308@FreeBSD.org> In-Reply-To: <5234BE9E.1030308@FreeBSD.org> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: fs@FreeBSD.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Sep 2013 20:56:50 -0000 on 14/09/2013 22:53 Daniel Gerzo said the following: > The problem is that while I do not load geom_mirror from loader.conf, the > machine boots fine, however as soon as I enable gmirror in loader.conf the > machine doesn't boot and errors with > > /Trying to mount root from zfs:sys/default/root [].../ > > /Mounting from zfs:sys/default/root failed with error 22. > / > > > and it hangs in the prompt asking me to enter device to mount root from. > > I found only this > http://lists.freebsd.org/pipermail/freebsd-current/2012-November/037910.html > email where avg@ mentions that it might be a bug in his code, but no further > followups. However that is almost a year ago and I got trapped by this on 9.2-RC4. At that time there was a specific new change committed and I already had a report about the kind of configurations that were broken by that change. So far, I have no idea what could cause your problem. You may want to try the following diagnostic patch: http://people.freebsd.org/~avg/zfs-root-pool-config-debug.patch If your kernel configuration doesn't have INVARIANTS then you can either add that or remove DEBUG check around the added code. Please enable verbose boot, set vfs.zfs.debug and kern.geom.mirror.debug (in loader.conf or at its prompt) and try to capture any interesting geom and ZFS related messages. -- Andriy Gapon