How can I set zfs module parameters on TrueNAS Core?

Rabinovitch

Dabbler
Joined
Apr 3, 2021
Messages
43
For example, I would like to tune cat /sys/module/zfs/parameters/zfs_arc_max, but currently it says
root@lenstor2[~]# cat /sys/module/zfs/parameters/zfs_arc_max
cat: /sys/module/zfs/parameters/zfs_arc_max: No such file or directory
root@lenstor2[~]#
The exact thing I would like to do is:
root@lenstor2[~]# echo 1 | tee /sys/module/zfs/parameters/zfs_scan_suspend_progress
tee: /sys/module/zfs/parameters/zfs_scan_suspend_progress: No such file or directory
1
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
On the command line:
Code:
sysctl vfs.zfs.scan_suspend_progress=1

To configure permanently navigate to System > Tunables in the UI and create an entry, probably of type "SYSCTL".

To get a list of all global parameters on FreeBSD:
Code:
sysctl vfs.zfs
 
Top