From owner-freebsd-questions@FreeBSD.ORG Sun Feb 19 04:59:35 2012 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C64C106566C for ; Sun, 19 Feb 2012 04:59:35 +0000 (UTC) (envelope-from danielsh@apache.org) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1.freebsd.org (Postfix) with SMTP id DB7328FC0C for ; Sun, 19 Feb 2012 04:59:34 +0000 (UTC) Received: (qmail 89364 invoked by uid 99); 19 Feb 2012 04:59:33 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Feb 2012 04:59:33 +0000 Received: from localhost (HELO daniel3.local) (127.0.0.1) (smtp-auth username danielsh, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Feb 2012 04:59:33 +0000 Date: Sun, 19 Feb 2012 06:59:18 +0200 From: Daniel Shahaf To: George Kontostanos Message-ID: <20120219045918.GA29638@daniel3.local> References: <20120214044816.GA18161@daniel3.local> <20120215003110.GA32543@daniel3.local> <20120215174811.GA14636@daniel3.local> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: 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: Sun, 19 Feb 2012 04:59:35 -0000 To follow-up, testkernel mounted fine using the procedure from loader.4th(8): set kernel=testkernel unload boot-conf And the OS upgrade is now done, after a few more tweaks have been ironed out (the most interesting of them is a difference between /boot/testkernel and /boot/kernel, which were supposedly generated by the same 'make' command some time apart). Thanks again for the suggestions, all. Daniel George Kontostanos wrote on Wed, Feb 15, 2012 at 20:03:14 +0200: > On Wed, Feb 15, 2012 at 7:48 PM, Daniel Shahaf wrote: > > So far we've tried: > > > > - 'gpart bootcode -b' > > - load geom_part_gpt.ko > > - using zpool.cache from the 9.0-RELEASE CD > > > > And none of that seems to have had any effect. > > > > Additional info: from the CD environment, 'zpool import' reports an old > > 'tank' pool on devices mfid[2-5].  (The 'zroot' pool uses mfid[0-5]p3.) > > > > Any further ideas, please? > > > > Thanks for all the suggestions so far. > > You are running ZFS version 4 while the default is 5 on 9.0-RELEASE > > ---> Assuming your pool is called zroot > --->This is the way to update your zpool.cache: <--- > > Boot with 9.0-RELEASE and proceed with: > > #zpool import -o altroot=/mnt -o cachefile=/var/tmp/zpool.cache zroot > > #zfs set mountpoint=/mnt zroot > #zfs set mountpoint=/mnt/usr zroot/usr > #zfs set mountpoint=/mnt/var zroot/var > #zfs set mountpoint=/mnt/tmp zroot/tmp > > ## Ignore any warnings## > > Now export the pool: > > #zpool export -f zroot > > Import the pool back and update the zpool.cache: > > #zpool import -o cachefile=/var/tmp/zpool.cache zroot > #cp /var/tmp/zpool.cache /mnt/boot/zfs/zpool.cache > > Make sure that bootfs is set correctly: > > #zpool set bootfs=zroot zroot > > Now, unmount any ZFS datasets > > #zfs umount -af > > And fix mountpoints: > > #zfs set mountpoint=legacy zroot > #zfs set mountpoint=/tmp zroot/tmp > #zfs set mountpoint=/usr zroot/usr > #zfs set mountpoint=/var zroot/var > > That should be enough to update your zpool.cache > > If this still doesn't work then you can upgrade your ZFS version to 5. > > Make sure you have backups first!!! > > Before unmounting your datasets issue a: > > zfs upgrade -a > > -- > George Kontostanos > Aicom telecoms ltd > http://www.aisecure.net