View Full Version : Zfs root & boot
singularity
January 20th, 2009, 10:49
I did a little test with OpenSolaris and it seemed sluggish.
However, someone else may have liked it and that's why I need to say it was just what I saw on a 2GB C2D machine.
ZFS was very nice and that's why I'd like to try it out on FreeBSD.
However, I'd like to use it for my root partition.
Here are two articles on how to do that:
https://www.ish.com.au/solutions/articles/freebsdzfs
http://wiki.freebsd.org/ZFSOnRoot
http://wiki.freebsd.org/ZFS
However, FreeBSD can't boot without the help of an UFS partition with a bootloader on it.
What would it need to be able to boot from ZFS? Does it still need that UFS partition in 7.1?
If it still does need it, I'd like to see what can be done and do what it takes to fix that and allow native ZFS boot.
Maledictus
January 20th, 2009, 11:25
http://blogs.freebsdish.org/lulf/2008/12/16/setting-up-a-zfs-only-system/
singularity
January 20th, 2009, 18:55
http://blogs.freebsdish.org/lulf/2008/12/16/setting-up-a-zfs-only-system/
Thanks for the link, but, it seems I need to get current in order to get a gptzfsboot.
f-andrey
January 21st, 2009, 11:44
Thanks for the link, but, it seems I need to get current in order to get a gptzfsboot.
The gpt(8) now supports ZFS (http://www.freebsd.org/releases/7.1R/relnotes.html#USERLAND).GPT support on 7.x (http://www.freebsd.org/cgi/man.cgi?query=gpt&sektion=8&manpath=FreeBSD+7.1-RELEASE)
f-andrey
January 21st, 2009, 11:53
may be to write a string in make.conf
echo LOADER_ZFS_SUPPORT=yes >>/etc/make.conf
and
cd /usr/src/sys/boot
make cleandir; make cleandir
make obj depend all install
singularity
January 21st, 2009, 23:08
Thanks, I will try it out.
singularity
January 22nd, 2009, 17:00
I received a "NO UFS partition found" after trying that.
f-andrey
January 25th, 2009, 13:24
I received a "NO UFS partition found" after trying that.
may be you forgot to do
# gpart bootcode -b /boot/pmbr da4
da4 has bootcode
# gpart add -b 34 -s 128 -t freebsd-boot da4
da4p1 added
# gpart bootcode -p /boot/gptzfsboot -i 1 da4
My Experiment install FreeBSD-CURRENT on 2 hdd with ZFS
http://f-andrey.blogspot.com/2009/01/freebsd-zfs.html
singularity
January 28th, 2009, 17:19
No, I didn't forget.
I used gptboot, not gptzfsboot because there wasn't one :(.
How do I get the gptzfsboot file? I followed your guide to enable it with ENABLE_ZFS_SUPPORT=yes and it didn't work, I don't get a gptzfsboot in /boot or anywhere else.
singularity
January 28th, 2009, 19:06
Anyone else who wants to get gptzfsboot can get it from the -CURRENT sources.
f-andrey
January 29th, 2009, 22:36
Anyone else who wants to get gptzfsboot can get it from the -CURRENT sources.
Yes gptzfsboot only -CURRENT (http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/boot/i386/gptzfsboot/Makefile?f=h).
add boot on ufs may be.
tobe
March 17th, 2009, 15:54
from http://en.wikipedia.org/wiki/ZFS
When entire disks are added to a ZFS pool, ZFS automatically enables their write cache. This is not done when ZFS only manages discrete slices of the disk, since it doesn't know if other slices are managed by non-write-cache safe filesystems, like UFS.
It is relevant to FreeBSD ?
I ask this because I've only one disk in my laptop, but I'd like to test the performances of ZFS under heavy loads.
ecazamir
October 2nd, 2010, 10:35
I managed to install FreeBSD 8.1 amd64 on ZFS root using this (https://sites.google.com/site/ghidit/how-to-2/install-freebsd-on-zfs-filesystem) method.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.