S
S
syxoi2017-01-11 08:14:57
linux
syxoi, 2017-01-11 08:14:57

ZFS Linux: How to set options: sysctl or zfs set?

Ubuntu 16.04LTS.
Since the memory on the home server is very small (4 GB) (expansion is expected in the future), I decided to change a couple of parameters:

echo 536870912 > /sys/module/zfs/parameters/zfs_arc_max

and
echo 1 > /sys/module/zfs/parameters/zfs_prefetch_disable

But here's how to use when loading? Crutch in /etc/rc.local?
through sysctl it is not possible to set on / sys, he only wants / proc.
And if you turn off the prefetch "later", then it will already load the trash into memory, but does not want to unload it.
through zfs set and zpool set did not find the necessary options.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
syxoi, 2017-01-11
@syxoi

1) create the file /etc/modprobe.d/zfs.conf, write to it:
2) update initrd: update-initramfs -u
Done!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question