Re: Attempting ZFS Only Install of 7.2

From: Andrey V. Elsukov <bu7cher_at_yandex.ru>
Date: Thu, 16 Jul 2009 11:41:34 +0400
Jason Garrett wrote:
> Top Post, I know... but has anyone on _at_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
Received on Thu Jul 16 2009 - 05:52:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:52 UTC