Skip to content

Commit 327c6b3

Browse files
feat(video): Boost ZFS Performance with a Special VDEV in TrueNAS
1 parent 2d641aa commit 327c6b3

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

_posts/2025-05-10-special-vdev-truenas.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,23 @@ List pool
5151
zpool list -v pond # change based on your pool name
5252
```
5353

54+
## Setting Small Blocks & Record Size
55+
56+
To change your small blocks value you can do so like this, however it's a good idea to check your record size first
57+
58+
```console
59+
zfs get recordsize test-1
60+
```
61+
62+
You should see something like:
63+
64+
```console
65+
NAME PROPERTY VALUE SOURCE
66+
test-1 recordsize 128K default
67+
```
68+
69+
You always want to be sure that your record size > small blocks size, otherwise all blocks will be written
70+
5471
Get value
5572

5673
```shell
@@ -60,7 +77,14 @@ zfs get special_small_blocks pond -r # change based on your pool name
6077
Set value
6178

6279
```shell
63-
zfs set special_small_blocks=128k pond # change based on your pool name and the small block value you want to use
80+
zfs set special_small_blocks=64k pond # change based on your pool name and the small block value you want to use
81+
```
82+
83+
If you want to use something higher than 128K you would do something like this
84+
85+
```console
86+
zfs set recordsize=256K yourpool/yourdataset
87+
zfs set special_small_blocks=128K yourpool/yourdataset
6488
```
6589

6690
## My Test results

0 commit comments

Comments
 (0)