From nobody Thu Nov 7 15:31:14 2024 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XkmJ470sfz5c0Zn for ; Thu, 07 Nov 2024 15:31:16 +0000 (UTC) (envelope-from SRS0=3Qya=SC=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkmJ41QCyz40P6 for ; Thu, 7 Nov 2024 15:31:16 +0000 (UTC) (envelope-from SRS0=3Qya=SC=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; none Date: Thu, 7 Nov 2024 16:31:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1730993474; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qOtVBwmsNvG2ZTV8rNmZNfBIhKt0nnIKXBWQWX7mMW8=; b=tNvALI2ry2GudPdR+9lxRHKu+cKO0q/6eiY5tXXp21yUkQWB/uUY7nxAF382IZoET63ouW YHHlQnEXvm3XSRwZ4jbr9V/xu51gQ2aj0fP3JQTvtgLH43AkKKWil8VP+UnC7y9v4aoAPr 47NPYSTNmH4B+oN+rimSsD0nhCInCGypLDEOMmHzEIy3+Wlg/+HCkh885V7NPwWd8oGnfW /JStONhUyYPAz6GQ7DubfrnGWiojST7ZtDgD2gCxoq2gGpPaZG+C/i8B1TkI4zSuWajtbZ 3YS3YQmXZq7C14b40gZHQ/LkeRPiew9uHOVHwV+oVUS5SCZCeq5eczLx0Fs8OA== From: Ronald Klop To: Ronald Klop Cc: Johan Hendriks , FreeBSD Current Message-ID: <2016215695.9786.1730993474125@localhost> In-Reply-To: <982644351.5078.1730980565800@localhost> References: <1568966692.4590.1730895354064@localhost> <97788ab0-db70-4413-8b18-f9d95f1d120f@gmail.com> <982644351.5078.1730980565800@localhost> Subject: Re: BRT copying feature List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9785_1491214597.1730993473984" X-Mailer: Realworks (727.78) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL] X-Rspamd-Queue-Id: 4XkmJ41QCyz40P6 X-Spamd-Bar: ---- ------=_Part_9785_1491214597.1730993473984 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Datum: donderdag, 7 november 2024 12:56 Aan: Johan Hendriks CC: FreeBSD Current Onderwerp: Re: BRT copying feature > > > Van: Johan Hendriks > Datum: donderdag, 7 november 2024 11:43 > Aan: Ronald Klop > CC: FreeBSD Current > 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 >>> Datum: woensdag, 6 november 2024 09:37 >>> Aan: FreeBSD Current >>> 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. > ------=_Part_9785_1491214597.1730993473984 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit 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-lists@klop.ws>
Datum: donderdag, 7 november 2024 12:56
Aan: Johan Hendriks <joh.hendriks@gmail.com>
CC: FreeBSD Current <freebsd-current@freebsd.org>
Onderwerp: Re: BRT copying feature

 

Van: Johan Hendriks <joh.hendriks@gmail.com>
Datum: donderdag, 7 november 2024 11:43
Aan: Ronald Klop <ronald-lists@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.hendriks@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.
 

  ------=_Part_9785_1491214597.1730993473984--