From owner-freebsd-questions@FreeBSD.ORG Wed Feb 15 16:09:04 2012 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 2671B106564A for ; Wed, 15 Feb 2012 16:09:04 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id D8B378FC0C for ; Wed, 15 Feb 2012 16:09:03 +0000 (UTC) Received: by yenl12 with SMTP id l12so845625yen.13 for ; Wed, 15 Feb 2012 08:09:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=Hf75WcG8DsL1JRgISQFcHTbiiu2HEv96WeUlcVYGdN0=; b=uBfiTKdQXpAUGcJICZH74hkcb9B/U28IxEQjn1mPM/S0H53cp/1pw3vIbGv/UBsPzV Gl20/CD9wTHFppMtlZJ/8U0xc9mTtkP2cLqN7F3oXUgqlwfbT91IXLRmg4BnXFJL+M+F 2sdJ+XldZ8eDmH8/OEA8YUI0ICfmeJ5oCnSqg= Received: by 10.50.169.5 with SMTP id aa5mr12581158igc.17.1329322143060; Wed, 15 Feb 2012 08:09:03 -0800 (PST) Received: from [192.168.1.3] (c-98-212-197-29.hsd1.il.comcast.net. [98.212.197.29]) by mx.google.com with ESMTPS id f8sm6580588ibl.6.2012.02.15.08.09.01 (version=SSLv3 cipher=OTHER); Wed, 15 Feb 2012 08:09:01 -0800 (PST) Message-ID: <4F3BD894.1070302@gmail.com> Date: Wed, 15 Feb 2012 10:08:52 -0600 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20120214044816.GA18161@daniel3.local> <20120215003110.GA32543@daniel3.local> In-Reply-To: <20120215003110.GA32543@daniel3.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: zroot won't mount after 9.0-RC2 -> 9.0-RELEASE upgrade 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: Wed, 15 Feb 2012 16:09:04 -0000 On 2/14/2012 6:31 PM, Daniel Shahaf wrote: > One of our amd64 servers runs 9.0-RC2 (releng/9.0@r228325) with a zfs root. > > It fails to boot the 9.0-RELEASE (releng/9.0@r229305) GENERIC kernel > (self compiled) with a mountfrom error: > > http://people.apache.org/~danielsh/infra/loki-20120215-mountfrom.png > mountfrom> zfs:zroot > Trying to mount root from zfs:zroot []... > Mounting from zfs:zroot failed with error 2. > > We've tried to upgrade the zpool format 15->28; the symptoms are > unchanged. (The zroot fs is at version 4.) > > Why does 9.0-RC2 boot while 9.0-RELEASE (as /boot/testkernel) doesn't? > What can do to boot 9.0-RELEASE from our zfs root filesystem? > > Thanks. > Try booting a fixit CD/USB and mounting the zfs pool. It looks like your pool is set up like mine. If it mounts, the way zfs mounts everything, you'll overlay your fixit file system with your zroot. It'll make it annoying to fix, especially dealing with zpool.cache. If it mounts, make a copy of the cache file. I switched from a zpool with two disks to a zmirror, with a third disk to help hold data. It wasn't fun, but it can be done. One problem I had was getting zpool.cache to work properly on reboot. I had to do the overlay mount, and I think I killed the power to prevent zfs from removing the file. I'd suspect a zpool.cache problem. ZFS doesn't think your zroot was mounted so doesn't try to mount it even though the bootloader finds the kernel.