From owner-freebsd-current@FreeBSD.ORG Thu Jul 16 11:03:40 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20CEB106564A for ; Thu, 16 Jul 2009 11:03:40 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id DACC28FC19 for ; Thu, 16 Jul 2009 11:03:39 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.1.4] (adsl-154-199-204.ard.bellsouth.net [72.154.199.204]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n6GB3ahc092474 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 16 Jul 2009 07:03:37 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Jason Garrett In-Reply-To: <970380130907151733w2f226b37r31a189e73ec54dc2@mail.gmail.com> References: <4A57E38B.5050108@mykitchentable.net> <970380130907122109g4e160373m37259a3c40d48373@mail.gmail.com> <4A5B7D28.1080000@mykitchentable.net> <970380130907131500u2d300ben4ddec327cc54d2b4@mail.gmail.com> <4A5BBEC5.200@mykitchentable.net> <970380130907151512k4870af65q55f7ed0545fa6521@mail.gmail.com> <970380130907151733w2f226b37r31a189e73ec54dc2@mail.gmail.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Sc3/LyB6AC9qvDZfoAhI" Organization: FreeBSD Date: Thu, 16 Jul 2009 06:03:31 -0500 Message-Id: <1247742211.1710.20.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 FreeBSD GNOME Team Port X-Spam-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC, SPF_SOFTFAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: freebsd-current , freebsd-questions@freebsd.org Subject: Re: Attempting ZFS Only Install of 7.2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2009 11:03:40 -0000 --=-Sc3/LyB6AC9qvDZfoAhI Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2009-07-15 at 19:33 -0500, Jason Garrett wrote: > Top Post, I know... but has anyone on @current tried a full on ZFS on ROO= T > with GPTZFSBOOT? >=20 > Both Drew and I have both tried the guide at > http://lulf.geeknest.org/blog/freebsd/Setting_up_a_zfs-only_system/ (dead > link now :( ) >=20 > I get as far as the message I detailed before using parts from another > guide. I am hoping for both of us, that someone here knows even a little > bit. I've done this a few times now... Initially I followed this guide, but still had a few issues. On at least one of my boxes it was nessecary to mark the partition as active which I couldn't do with gpart. IIRC, I used fdisk to "change the active partition" after setting up everything with gpart. Now, for installation... My solution here was that I took a scratch disk and did a minimal install, then pulled the tree and did buildworld / buildkernel (with LOADER_ZFS_SUPPORT=3D"YES"). I then set DESTDIR to the root of the intended zfs system (/data in my case) and did make DESTDIR=3D/data installworld && make DESTDIR=3D/data installkernel && make DESTDIR=3D/data distribution. My memory isn't what it used to be, so I should have documented it for myself once I figured it all out, but I think I'm remembering it all correctly. I have three of my machines running this way, all installed from the same scratch disk with the build on it. All of mine run -CURRENT and I'm not certain how 7.2 differs in this respect. robert. =20 > Thanks, >=20 > Jason >=20 > On Wed, Jul 15, 2009 at 17:12, Jason Garrett wrote: >=20 > > > > > > On Mon, Jul 13, 2009 at 18:09, Drew Tomlinson = wrote: > > > >> Jason Garrett wrote: > >> > >>> > >>> > >>> On Mon, Jul 13, 2009 at 13:30, Drew Tomlinson >>> drew@mykitchentable.net>> wrote: > >>> > >>> Jason Garrett wrote: > >>> > >>> >snip > >>> > >>> I see you tried the zpool import and export, but did you > >>> perform `mkdir /boot/zfs` directly before `zpool export tank > >>> && zpool import tank` ? > >>> > >>> I just have to ask because I did not see that specified, and > >>> you mention not being able to find zpool.cache. /boot/zfs is > >>> where zpool.cache hides out. > >>> > >>> Yes I did. However I figured out my problem. I was chrooted into > >>> /dist and the zpool.cache was being written to /boot/zfs (as you > >>> mention). But because of the chroot, when I checked /boot/zfs, I > >>> was *really* checking /dist/boot/zfs. Thus my problem. :) > >>> > >>> However I'm still having difficulty. I suspect I don't have a > >>> /boot/loader that supports zfs filesystems as I just boot to the > >>> 'OK" prompt. An 'lsdev' only shows BIOS devices but I've seen > >>> posts on the Net that indicate I should have zfs devices listed > >>> there too if I have a proper /boot/loader. I've used the one from > >>> both 7.2-RELEASE.iso and 8.0-BETA1.iso but no luck. Do you know > >>> of any way I can confirm or deny my suspicion? > >>> > >>> > >>> > >>> I am in the same spot you are now. I started the process yesterday bu= t > >>> had to quit because it got too late. Apparently the few who have writ= ten > >>> these guides have gotten it to work, but that still eludes me. I'll p= ost > >>> back if I get it working or have any new developments. > >>> > >> > >> Well you're doing better than me. I've been at this for about 10 days= off > >> and on. :) > >> > >> Cheers, > >> > >> > >> Drew > >> > > > > Ok, now a few days later and still frustrated. Basically I narrowed my > > install down to one drive, divided up with gpt. I used a few sections f= rom > > http://wiki.freebsd.org/ZFSOnRootWithZFSboot - specifially the section = on > > installing the sources from /dist/8.0-BETA1 as well as rebuilding the l= oader > > as this guide says. > > > > I actually got it to load the kernel, goes through that ok. As soon as = it > > tries to mount the root filesystem, it hangs with the following message= s. > > (Won't respond to the keyboard anymore) > > > > ----------- > > > > Trying to mount root from zfs:zroot > > ROOT MOUNT ERROR: > > If you have invalid mount options, reboot, and first try the following = from > > the loader prompt: > > > > set vfs.root.mountfrom.options=3Drw (did this,no luck.. als= o > > switched to an /etc/fstab layout, still no go) > > > > and then remove the invalid mount options from /etc/fstab. > > > > Loader Variables: > > vfs.root.mountfrom=3Dzfs:zroot > > vfs.root.mountfrom.options=3Drw,noatime (this is from the /etc/fstab at= tempt) > > > > ---------- > > > > Then it describes some specifications on how to use the :. > > > > I just don't get how some are getting this working, yet it comes so har= d > > for others. > > > > Drew, I hope you have had better luck than I. I may just give up until = it > > is a viable solution. > > > > > >> > >> -- > >> Be a Great Magician! > >> Visit The Alchemist's Warehouse > >> > >> http://www.alchemistswarehouse.com > >> > >> > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " --=20 Robert Noland FreeBSD --=-Sc3/LyB6AC9qvDZfoAhI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEABECAAYFAkpfCQMACgkQM4TrQ4qfROPwswCfTb2h9a1nDOiCan6zgnha4mNl +nEAniZkuLhb6hz+n0thKy7LYZB3pTeM =ARVp -----END PGP SIGNATURE----- --=-Sc3/LyB6AC9qvDZfoAhI--