Hi there, I'm setting up a new server with 2 disks and an intel i7 920, 8GB ram.
I'm following the mirror tutorial on: http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror
It has worked like charm so far, perfectly.
But, after some workload benchmark test, I noticed i can improve both space and IO throughput by using lzjb by default for the whole ZFS pool, and disabling it for spot places (say, usr/ports/distfiles & packages, etc...).
So i decided to create the zpool 'zroot' using compression=lzjb as default.
But I noticed the kernel cannot be loaded from a ZFS filesystem with compression turned on.
So i left the root filesystem with compression on, but created a new zroot/boot fs turning compression OFF and copied again everythign (to be sure the kernel files are NOT compressed... i know setting properties is valid only for NEW files).
This way I could leave the 'default' to lzjb, but have /boot uncompressed and booting correctly.
But so far no success, the boot gets stuck at
I even tried from Fixit to change the bootfs properties of zroot from zroot to zroot/boot but didn't work
Do I also have to change
to
in loader.conf? Or is there something else I can do for making this work.
As i said the goal is:
'root' ZFS filesystem with compression on by default that allows booting.
I'm following the mirror tutorial on: http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror
It has worked like charm so far, perfectly.
But, after some workload benchmark test, I noticed i can improve both space and IO throughput by using lzjb by default for the whole ZFS pool, and disabling it for spot places (say, usr/ports/distfiles & packages, etc...).
So i decided to create the zpool 'zroot' using compression=lzjb as default.
But I noticed the kernel cannot be loaded from a ZFS filesystem with compression turned on.
So i left the root filesystem with compression on, but created a new zroot/boot fs turning compression OFF and copied again everythign (to be sure the kernel files are NOT compressed... i know setting properties is valid only for NEW files).
This way I could leave the 'default' to lzjb, but have /boot uncompressed and booting correctly.
But so far no success, the boot gets stuck at
Code:
FreeBSD/i386 boot
Default: zroot:/boot/kernel/kernel
I even tried from Fixit to change the bootfs properties of zroot from zroot to zroot/boot but didn't work
Code:
zpool set bootfs=zroot/boot zroot
Do I also have to change
Code:
vfs.root.mountfrom="zfs:zroot"
Code:
vfs.root.mountfrom="zfs:zroot/boot"
As i said the goal is:
'root' ZFS filesystem with compression on by default that allows booting.