From owner-freebsd-questions@FreeBSD.ORG Wed Feb 15 18:03:14 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 D9332106564A for ; Wed, 15 Feb 2012 18:03:14 +0000 (UTC) (envelope-from gkontos.mail@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id A3DEA8FC26 for ; Wed, 15 Feb 2012 18:03:14 +0000 (UTC) Received: by iaeo4 with SMTP id o4so2270671iae.13 for ; Wed, 15 Feb 2012 10:03:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=kiUMZNLm2sNL5WsOhS89t93ngtz38ifjqxTiAxck3zE=; b=MMmYXcCfL8w5RUsnjLFbI5K11DYaQNlTbY96bOIjleLqZuuG9PaXzs54753gGKoZFA l1s1DjeOAHgrQC5MpIvG5qYZ5C4ddHCbSs8JtIf7Qm8xsDQgDo6s0WsZ0KmGOl9rAQS9 XdYanYYLuSGcCavD0n7VCvJ7OIECdXZzzQTl4= MIME-Version: 1.0 Received: by 10.50.57.234 with SMTP id l10mr43759712igq.12.1329328994277; Wed, 15 Feb 2012 10:03:14 -0800 (PST) Received: by 10.231.231.17 with HTTP; Wed, 15 Feb 2012 10:03:14 -0800 (PST) In-Reply-To: <20120215174811.GA14636@daniel3.local> References: <20120214044816.GA18161@daniel3.local> <20120215003110.GA32543@daniel3.local> <20120215174811.GA14636@daniel3.local> Date: Wed, 15 Feb 2012 20:03:14 +0200 Message-ID: From: George Kontostanos To: Daniel Shahaf Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "Philip M. Gollucci" , infrastructure-private@apache.org, 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 18:03:15 -0000 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]. =A0(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=3D/mnt -o cachefile=3D/var/tmp/zpool.cache zroot #zfs set mountpoint=3D/mnt zroot #zfs set mountpoint=3D/mnt/usr zroot/usr #zfs set mountpoint=3D/mnt/var zroot/var #zfs set mountpoint=3D/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=3D/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=3Dzroot zroot Now, unmount any ZFS datasets #zfs umount -af And fix mountpoints: #zfs set mountpoint=3Dlegacy zroot #zfs set mountpoint=3D/tmp zroot/tmp #zfs set mountpoint=3D/usr zroot/usr #zfs set mountpoint=3D/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 --=20 George Kontostanos Aicom telecoms ltd http://www.aisecure.net