seamon
Members
-
Joined
-
Last visited
Solutions
-
seamon's post in ZFS SLOG + L2ARC on one device was marked as the answerOkay I figured out a dirty way to do this.
Follow this guide to partition your Optane Drive into 2 Partition (I did 10GB for SLOG and 100GB for L2ARC).
SLOG is /dev/nvme0n1p1 and L2ARC is /dev/nvme0n1p2
You can't start the array with SLOG and L2ARC enabled, they have to be added after array is started so I created a User Script that runs at Array Startup.
zfs set compression=lz4 cache #zfs compression gets sets to on instead of lz4, this step is optional
zpool add cache log /dev/nvme0n1p1
zpool add cache cache /dev/nvme0n1p2
At Array Shutdown, the vdevs have to be removed.
zpool import cache #if unraid was improperly shutdown, this script will instead import the zpool, remove and support vdevs and then you have to restart unraid again to make this work.
zpool remove cache /dev/nvme0n1p1
zpool remove cache /dev/nvme0n1p2
Any help in refining this further would be appreciated.