Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Feb 2013 10:20:52 -0500
From:      Paul Kraus <paul@kraus-haus.org>
To:        "freebsd-questions@freebsd.org List" <freebsd-questions@freebsd.org>
Subject:   Re: ZFS root, error 2 when mounting root
Message-ID:  <D011786B-A200-4F2A-94EA-B8C7BF741D1B@kraus-haus.org>
In-Reply-To: <512B7FD0.6040405@gmail.com>
References:  <5129E079.4040906@gmail.com> <F3EDE81C-EFE5-404D-9559-E4E7AAF14D60@kraus-haus.org> <512B7FD0.6040405@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 25, 2013, at 10:14 AM, bw <bw.mail.lists@gmail.com> wrote:

> On 02/25/2013 03:13 PM, Paul Kraus wrote:
>> On Feb 24, 2013, at 4:42 AM, bw.mail.lists <bw.mail.lists@gmail.com> =
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D011786B-A200-4F2A-94EA-B8C7BF741D1B>