From owner-freebsd-questions@FreeBSD.ORG Mon Feb 25 15:21:00 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F1DCC364 for ; Mon, 25 Feb 2013 15:21:00 +0000 (UTC) (envelope-from paul@kraus-haus.org) Received: from mail-qc0-f176.google.com (mail-qc0-f176.google.com [209.85.216.176]) by mx1.freebsd.org (Postfix) with ESMTP id ABB4C2D5 for ; Mon, 25 Feb 2013 15:21:00 +0000 (UTC) Received: by mail-qc0-f176.google.com with SMTP id n41so1348466qco.21 for ; Mon, 25 Feb 2013 07:20:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=chmFWb+TI8c5a/ASWNnv0ymo79/rhVB9phyxv1Lee1k=; b=HfbhtCT0ixPMsqX1iubFBudzBsaSdLhHgdEj6VM9NuNnMWXP+AC08drRZ0fZq0HtyP JGVW+E1ezw+NpIf4RFwYAhmS4wvuprvbG7huAMC8z5j9LuZh4zSHn0COARur322ajqVn qvH/V6cBnj6s4E1NZUEXEkzib+5f8wJpCMylAmKJWrF798EtZMewOvnwxZsTA4uwGs7m U8mFluHiCMeKCzoT+qTXv2R98HuKvJQkOvuTZF4e8DlfxrdiIfame8/9MvblG/rVMsCk lXpu2ao3DH1SBvfL7Q++1BIoIMAJtidUa+nH3hRlxhPfcnJ93YP4CoaV6xlVnNV3f0sD PfKQ== X-Received: by 10.49.70.165 with SMTP id n5mr10933831qeu.16.1361805653822; Mon, 25 Feb 2013 07:20:53 -0800 (PST) Received: from [192.168.2.99] ([96.236.21.119]) by mx.google.com with ESMTPS id x9sm16436906qen.1.2013.02.25.07.20.52 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Feb 2013 07:20:53 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: ZFS root, error 2 when mounting root From: Paul Kraus In-Reply-To: <512B7FD0.6040405@gmail.com> Date: Mon, 25 Feb 2013 10:20:52 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5129E079.4040906@gmail.com> <512B7FD0.6040405@gmail.com> To: "freebsd-questions@freebsd.org List" X-Mailer: Apple Mail (2.1499) X-Gm-Message-State: ALoCoQnwDEJ6zVWpPgKgZkxaYRd0mLBmbiiOK+SDMVeYrUmTmj2vOcdEjQyY8+7wIZ7m3RtYtQxC X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Feb 2013 15:21:01 -0000 On Feb 25, 2013, at 10:14 AM, bw wrote: > On 02/25/2013 03:13 PM, Paul Kraus wrote: >> On Feb 24, 2013, at 4:42 AM, bw.mail.lists = wrote: >>=20 >>> Basically, I tried to follow = https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE, but ended up = with a system that didn't know how to mount /. >>>=20 >>> There are two scripts attached. >>=20 >> I did not see any attachments. >>=20 >=20 > Mail list got rid of them, I didn't know it will do that. Appended = inline at the end of this mail. Stuff will probably get wrapped, but at = least it's there. >=20 > That was my understanding, too, but the instructions on the wiki say = there's no need to copy the cache file. In fact, there is no cache file = to copy, since the pool is created with >=20 > zpool create -o altroot=3D/mnt -O canmount=3Doff zroot mirror = /dev/gpt/g0zfs /dev/gpt/g1zfs >=20 > No cache file. The wiki article was changed recently to eliminate that = part, the message on the wiki is: "Fix so that the default instructions = does not install data directly to the zroot pool. Simplify instructions = regarding cache files, they are no longer needed. Fixes and cleanups." >=20 > Either the instructions are wrong, or something in my script is. I = assume it's my script. The instructions noted above are now INCORRECT for 9.0 (I have = not tried this with 9.1 yet) as you MUST manually put the zpool.cache = file in place for it to work correctly (I tried a couple different = variations when I first setup my systems a few months ago and learned = this the hard way :-) I have *lost* of experience with ZFS under Solaris = 10 but am relatively new (about a year) to FreeBSD. -- Paul Kraus Deputy Technical Director, LoneStarCon 3 Sound Coordinator, Schenectady Light Opera Company