Hi,
Another option is this.
The installer /usr/sbin/bsdinstall uses a script called
/usr/libexec/bsdinstall/zfsboot. Zfsboot defines this:
#
# Default options to use when creating zroot pool
#
: ${ZFSBOOT_POOL_CREATE_OPTIONS:=-O compress=lz4 -O atime=off}
You can set this environment variabele to your liking before starting
bsdinstall.
ZFSBOOT_POOL_CREATE_OPTIONS="-O compress=lz4 -O atime=off -o
feature@block_cloning=disabled" bsdinstall
If you are booting from an USB stick installer you can also change the zfsboot
script on the USB stick and restart the installer.
NB: don't confuse the option with ZFSBOOT_BOOT_POOL_CREATE_OPTIONS.
Regards,
Ronald.
Van: Ronald Klop <ronald-li...@klop.ws>
Datum: donderdag, 7 november 2024 12:56
Aan: Johan Hendriks <joh.hendr...@gmail.com>
CC: FreeBSD Current <freebsd-current@freebsd.org>
Onderwerp: Re: BRT copying feature
Van: Johan Hendriks <joh.hendr...@gmail.com>
Datum: donderdag, 7 november 2024 11:43
Aan: Ronald Klop <ronald-li...@klop.ws>
CC: FreeBSD Current <freebsd-current@freebsd.org>
Onderwerp: Re: BRT copying feature
On 06/11/2024 13:15, Ronald Klop wrote:
Hi,
When you create a new pool you can use something like this:
zpool create -o feature@block_cloning=disabled ...
I tried setting this on an existing pool. That gave me an error.
# zpool set feature@block_cloning=disabled zdata4
cannot set property for 'zdata4': property 'feature@block_cloning' can only be
set to 'disabled' at creation time
So to install a new 14.2 system you need to do some manual work to create the
root pool with the options you prefer.
Regards,
Ronald.
Van: Johan Hendriks <joh.hendr...@gmail.com>
Datum: woensdag, 6 november 2024 09:37
Aan: FreeBSD Current <freebsd-current@freebsd.org>
Onderwerp: BRT copying feature
I installed the latest 14.2 Beta and i noticed that on the root pool the BRT
copying feature is enabled on the pool.
I know i need to set vfs.zfs.bclone_enabled=1 to really make us of it. But i do
not want this on my root pool but i do want to use it on my storage pool.
I can not disable this feature on the root pool as it is a feature that can
only be set at creation time.
Is there a way to use this feature only on selected pools?
regards,
Johan Hendriks
I think that it would be nice if the installer has the option to set a feature
like this to off. Is it easy to break out of the installer, create the pool
before hand and use that pool?
Regards,
Johan.
Hi Johan,
The installer gives me the option to partition manually (which does not give me
the option you are looking for) or open a shell which gives you all the power
you need.
Partitioning
How would you like to partition your disk?
Auto (ZFS) Guided Root-on-ZFS
Auto (UFS) Guided UFS Disk Setup
Manual Manual Disk Setup (experts)
Shell Open a shell and partition by hand
[ OK ] [Cancel]
I can't say if you will find it easy or not.
Good luck!
Regards,
Ronald.