Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Nov 2024 16:31:14 +0100 (CET)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        Ronald Klop <ronald-lists@klop.ws>
Cc:        Johan Hendriks <joh.hendriks@gmail.com>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: BRT copying feature
Message-ID:  <2016215695.9786.1730993474125@localhost>
In-Reply-To: <982644351.5078.1730980565800@localhost>
References:  <b8e0bb5f-5d5d-4b47-9c02-3448f148a1c1@gmail.com> <1568966692.4590.1730895354064@localhost> <97788ab0-db70-4413-8b18-f9d95f1d120f@gmail.com> <982644351.5078.1730980565800@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_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 <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
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html><head></head><body>Hi,<br>
<br>
Another option is this.<br>
<br>
The installer /usr/sbin/bsdinstall uses a script called /usr/libexec/bsdinstall/zfsboot. Zfsboot defines this:<br>
<br>
#<br>
# Default options to use when creating zroot pool<br>
#<br>
: ${ZFSBOOT_POOL_CREATE_OPTIONS:=-O compress=lz4 -O atime=off}<br>
<br>
You can set this environment variabele to your liking before starting bsdinstall.<br>
<br>
ZFSBOOT_POOL_CREATE_OPTIONS="-O compress=lz4 -O atime=off -o feature@block_cloning=disabled" bsdinstall<br>
<br>
If you are booting from an USB stick installer you can also change the zfsboot script on the USB stick and restart the installer.<br>
<br>
NB: don't confuse the option with ZFSBOOT_BOOT_POOL_CREATE_OPTIONS.<br>
<br>
Regards,<br>
Ronald.<br>
<br>
&nbsp;
<p><strong>Van:</strong> Ronald Klop &lt;ronald-lists@klop.ws&gt;<br>
<strong>Datum:</strong> donderdag, 7 november 2024 12:56<br>
<strong>Aan:</strong> Johan Hendriks &lt;joh.hendriks@gmail.com&gt;<br>
<strong>CC:</strong> FreeBSD Current &lt;freebsd-current@freebsd.org&gt;<br>
<strong>Onderwerp:</strong> Re: BRT copying feature</p>

<blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
<div class="MessageRFC822Viewer" id="P">
<div class="MultipartAlternativeViewer">
<div class="TextHTMLViewer" id="P.P.P">&nbsp;
<p><strong>Van:</strong> Johan Hendriks &lt;joh.hendriks@gmail.com&gt;<br>
<strong>Datum:</strong> donderdag, 7 november 2024 11:43<br>
<strong>Aan:</strong> Ronald Klop &lt;ronald-lists@klop.ws&gt;<br>
<strong>CC:</strong> FreeBSD Current &lt;freebsd-current@freebsd.org&gt;<br>
<strong>Onderwerp:</strong> Re: BRT copying feature</p>

<blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
<div class="MessageRFC822Viewer" id="P">
<div class="MultipartAlternativeViewer">
<div class="TextHTMLViewer" id="P.P.P">
<p>&nbsp;</p>

<div class="moz-cite-prefix">On 06/11/2024 13:15, Ronald Klop wrote:</div>

<blockquote>Hi,<br>
<br>
When you create a new pool you can use something like this:<br>
zpool create -o feature@block_cloning=disabled ...<br>
<br>
I tried setting this on an existing pool. That gave me an error.<br>
# zpool set feature@block_cloning=disabled zdata4<br>
cannot set property for 'zdata4': property 'feature@block_cloning' can only be set to 'disabled' at creation time<br>
<br>
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.<br>
<br>
Regards,<br>
Ronald.<br>
<br>
&nbsp;
<p><strong>Van:</strong> Johan Hendriks <a class="moz-txt-link-rfc2396E" href="mailto:joh.hendriks@gmail.com" onclick="composeMailto('joh.hendriks@gmail.com'); return false;">&lt;joh.hendriks@gmail.com&gt;</a><br>
<strong>Datum:</strong> woensdag, 6 november 2024 09:37<br>
<strong>Aan:</strong> FreeBSD Current <a class="moz-txt-link-rfc2396E" href="mailto:freebsd-current@freebsd.org" onclick="composeMailto('freebsd-current@freebsd.org'); return false;">&lt;freebsd-current@freebsd.org&gt;</a><br>
<strong>Onderwerp:</strong> BRT copying feature</p>

<blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: #000000 2px solid; margin-right: 0px">
<div class="MessageRFC822Viewer" id="P">
<div class="TextPlainViewer" id="P.P">I installed the latest 14.2 Beta and i noticed that on the root pool the BRT copying feature is enabled on the pool.<br>
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.<br>
I can not disable this feature on the root pool as it is a feature that can only be set at creation time.<br>
<br>
Is there a way to use this feature only on selected pools?<br>
<br>
regards,<br>
Johan Hendriks<br>
<br>
&nbsp;</div>

<hr></div>
</blockquote>
</blockquote>
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?<br>
<br>
Regards,<br>
Johan.</div>
</div>
</div>
</blockquote>
<br>
<br>
Hi Johan,<br>
<br>
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.<br>
&nbsp;
<pre style=";white-space: pre-wrap;white-space: pre-wrap;">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]              

</pre>
<br>
I can't say if you will find it easy or not.<br>
Good luck!<br>
<br>
Regards,<br>
Ronald.<br>
&nbsp;</div>
</div>
</div>
</blockquote>
<br>
&nbsp;</body></html>
------=_Part_9785_1491214597.1730993473984--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2016215695.9786.1730993474125>