Modifying GUI parameters

Hi
How exactly to I up the maximum block size for a zvol.
In the gui it is 128K, but are confident that zfs can handle up to 1MB - as I actually use that for something else.
I am aware that one can be created on the command line, but would prefer to create it through the GUI.

In truenas core, I recall there were ‘system tunable’ options in the GUI. Apparently not in truenas scale.

In debian (which trunas scale is based on), the zfs parameters are in:
/sys/module/zfs/parameters

I am weary of modifying anything in there unless sure.

There are some parameter there I think may modify:
- l2arc_write_max l2arc_write_boost

I have done this before in promxox, using an tiny optane drive to boost a sata SSD with virtual machines.

The specific values will be determined by the random 4k write speeds of the spare 256GB nvme drive. I will test it. I intend to use for an L2arc. I also have a 512Gb, but probably not needed.

How exactly do I ensure these parameters are not reset on reboot. It may be some ‘cron’ related thing, but unsure a this time.

So for context:
The purpose is for games storage through ISCSI.
2 x Large ISCSI sparse block zlov using deduplication.
Both are for games. The 1MB block size is to massively reduce the deduplication data. It is highly predictable, and here is the present data from my main trunas scale machine: From sudo zpool status -Dv

‘dedup: DDT entries 3729844, size 5.13G on disk, 1.65G in core’

It is hardly an issue.

I am using a couple of 16GB optane for that.
This is for 2 x ISCSI shares with the same games on there.

So for the games storage, a windows VM updated games overnight connected to one of the ISCSI shares,
Lots of reads & writes I will not notice. They will be slow.
I use a lancache set also.

I plan to maybe get a couple of 10Gb NICS with maybe a direct copper or fibre link between truenas and the gaming PC.

When updating games through the gaming PC, I will be usiing various caching types to massively save time.
These are:

Promocache software on the PC with a local nvme for a cache.
The lancache software
The l2arc.

Primocache is for caching frequently played games, so not directly relevent to trunas.
Over the 10Gb conncetion

Game update reads will as I understand come mostly from the arc/l2arc.
Game update writes will need little actual writes to hard drives due to de-duplication.

The windows/nfs shares I use also will not have dedup turned on. They use little bandwidth typically. My truienas machine is for home i7-3770, 32GB RAM, 16TB logical storage. I will use another machine to test things out.

Useful info is appreciated.

Not so useful like are things like ‘deduplication is scary’ or ’ buy more RAM’ - not interested.

Perhaps you used 1MB for a dataset (not volume). I didn’t find mentions of 128KB being the max value in OpenZFS docs. But I found it for the Oracle ZFS (near the end of the table):

For volumes, specifies the block size of the volume. The block size cannot be changed after the volume has been written, so set the block size at volume creation time. The default block size for volumes is 8 KB. Any power of 2 from 512 bytes to 128 KB is valid.
The property abbreviation is volblock.

With newer versions of OpenZFS, the volblocksize can be as high as 16 MiB.

Not that it would be a good idea…

truenas# zfs create -o volblocksize=16M -s -V 4G testpool/myvolume

truenas# zfs get volblocksize testpool/myvolume
NAME                   PROPERTY      VALUE     SOURCE
testpool/myvolume      volblocksize  16M       -

truenas# zfs --version
zfs-2.2.5-1
zfs-kmod-v2025032700-zfs_4f2aa1382

truenas# zpool get feature@large_blocks testpool
NAME          PROPERTY              VALUE       SOURCE
testpool      feature@large_blocks  active      local

I am using it, and used the command line to create it. I would prefer to use the GUI. How exactly do I do this?

truenas% sudo zfs get volblocksize Main-Pool/BlockPC
NAME PROPERTY VALUE SOURCE
Main-Pool/BlockPC volblocksize 1M -

truenas% sudo zfs version
zfs-2.2.99-1
zfs-kmod-2.2.99-1

Useful to know. The maximum for my purposes would be 2MB. when sharing over ISCSI, windows format has the maximum option of 2MB record size as I recall.

I need to know how to modify truenas scale, to allow me to do this in the GUI.

If the command line is the only option, then using proxmox is maybe more tempting.

I think a 16MB block size would be useless in a block volume, but not in a standard dataset with a 16MB record size (compression on).

Unless using a database or have a vast amount of small files, would benfit in de-duplication and minimal memory overhead for an L2arc.

You would have to modify the source code.


The TrueNAS GUI now exposes up to 16M recordsize for datasets.

For volumes, it restricts the volblocksize selection to 128K.

Are you sure.?

I expect there are parameters somewhere that c can be modified.

It seems extremely restrictive when zfs can do a lot more.

Quite sure.