From owner-freebsd-current@FreeBSD.ORG Thu Jul 16 07:52:23 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 9BEF01065693; Thu, 16 Jul 2009 07:52:23 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward13.yandex.ru (forward13.yandex.ru [95.108.130.120]) by mx1.freebsd.org (Postfix) with ESMTP id B8D3A8FC28; Thu, 16 Jul 2009 07:52:22 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp1.yandex.ru (smtp1.yandex.ru [77.88.46.101]) by forward13.yandex.ru (Yandex) with ESMTP id 912DFA780C3; Thu, 16 Jul 2009 11:41:36 +0400 (MSD) Received: from [127.0.0.1] (ns.kirov.so-cdu.ru [77.72.136.145]) by smtp1.yandex.ru (Yandex) with ESMTPSA id 3FB37E600F6; Thu, 16 Jul 2009 11:41:36 +0400 (MSD) Message-ID: <4A5ED9AE.4010003@yandex.ru> Date: Thu, 16 Jul 2009 11:41:34 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Jason Garrett 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> In-Reply-To: <970380130907151733w2f226b37r31a189e73ec54dc2@mail.gmail.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Yandex-TimeMark: 1247730096 X-Yandex-Spam: 1 X-Yandex-Front: smtp1.yandex.ru 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 07:52:29 -0000 Jason Garrett wrote: > Top Post, I know... but has anyone on @current tried a full on ZFS on ROOT > with GPTZFSBOOT? > > 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 :( ) > > 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 installed 8.0-BETA1 on ZFS 2 days ago. It works. I did following steps: 1. Boot from bootable USB-flash (Minimal FreeBSD installation with copy of install CD). 2. Create partitions # gpart show ad0 => 34 312581741 ad0 GPT (149G) 34 256 1 freebsd-boot (128K) 290 4194304 2 freebsd-swap (2.0G) 4194594 251658240 3 freebsd-zfs (120G) 255852834 56728941 - free - (27G) 3. Create zpool and filesystem hierarchy 4. Install FreeBSD from copy of install CD to ZFS. I used sysinstall with custom options (Install Root and Media Type) 5. Create /etc/fstab, /etc/rc.conf, /etc/src.conf, /boot/loader.conf http://wiki.freebsd.org/ZFSOnRootWithZFSboot#line-118 6. Install ZFS aware /boot/loader http://wiki.freebsd.org/ZFSOnRootWithZFSboot#line-144 7. Create zpool.cache 8. Install ZFS boot: # gpart bootcode -b /zroot/boot/pmbr ad0 # gpart bootcode -p /zroot/boot/gptzfsboot -i 1 ad0 9. Change mount points for zroot pool and reboot. It's all. -- WBR, Andrey V. Elsukov