From owner-freebsd-questions@FreeBSD.ORG Wed Feb 15 17:39:25 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 E6A67106566B for ; Wed, 15 Feb 2012 17:39:24 +0000 (UTC) (envelope-from d.s@daniel.shahaf.name) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by mx1.freebsd.org (Postfix) with ESMTP id A46B08FC0C for ; Wed, 15 Feb 2012 17:39:24 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 6BE1C20B43; Wed, 15 Feb 2012 12:19:35 -0500 (EST) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute6.internal (MEProxy); Wed, 15 Feb 2012 12:19:35 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=mesmtp; bh= l61ynR3ybUn7emvoZEEi/0SqzGM=; b=YaM97Q+HEGFbb8IzWN0q2vHGQjIIlj7O eR8OPBwrTLMeV/52P2DIAllxDiBsvFnIRFCPNSRXdKJU2SJ0fk14HbdSuCA8/+m1 miRSfJLxUHdQp1cM5Ad8sNdVZ5k0a7swgQP3uuFFQEZic1mUhEDQ23WKZy5e0k0Y dfliwGjqg9c= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=smtpout; bh=l61ynR3ybUn7emvoZEEi/0SqzGM=; b=hxDKFlqJW9SDWdZ3A2IZECFx+mi0 plfBX42bMjTdetL2pLoGtLH8v2SKO7HXoWs6dzLk7L0h3OGGYnUZGPc6McdRHyQD MZbrnmFtpvFaFjwTh6Xm88uOgk98S45QELnJNfkN+WT0qx5vP9Fn2kCRU+LUrJ83 ZmJ5dLq5ziOfEgE= X-Sasl-enc: 9qLjdiFJE5ChQ3UnyYJBdjI892XW2K2TTOV5tIhPNkcwPx0fEemhL7GYKcmPjQ 1329326374 Received: from daniel3.local (bzq-79-180-206-85.red.bezeqint.net [79.180.206.85]) by mail.messagingengine.com (Postfix) with ESMTPSA id 4581C8E008B; Wed, 15 Feb 2012 12:19:34 -0500 (EST) Date: Wed, 15 Feb 2012 19:19:21 +0200 From: Daniel Shahaf To: Joshua Isom Message-ID: <20120215171921.GA14142@daniel3.local> References: <20120214044816.GA18161@daniel3.local> <20120215003110.GA32543@daniel3.local> <4F3BD894.1070302@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F3BD894.1070302@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: infrastructure-private@apache.org, freebsd-questions@freebsd.org 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 17:39:25 -0000 Okay. I tried booting from the 9.0-RELEASE cd into a shell and replacing /boot/zfs/zpool.cache on with the one generated by the CD's kernel. (I did that by running 'zpool import -R -o cachefile=/tmp/...' and then copying zpool.cache over that of the live system, in a manner similar to .) That didn't seem to have any effect: the 9.0-RC2 kernel can still boot, and the 9.0-RELEASE kernel still fails to boot, with the same error. FTR, here are the old/new zpool.cache files: % ls -al /boot/zfs/zp* -rw-r--r-- 1 root wheel 2308 Feb 15 16:43 /boot/zfs/zpool.cache -rw-r--r-- 1 root wheel 2052 Feb 15 16:41 /boot/zfs/zpool.cache.20120215rc2 Re George's suggestion -- I noticed a "Can't re-use a leaf (geom_gpart_gpt)!" error, in case it's relevant. I have also tried running: for i in 0 1 2 3 4 5; do gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 mfid$i done from the RC2 environment. RC2 still boots; the 9.0-RELEASE /boot/testkernel still doesn't. Thanks for the suggestsions. Joshua Isom wrote on Wed, Feb 15, 2012 at 10:08:52 -0600: > 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. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"