Process to use ZFS in Unraid (Thanks to Wendell from Level1 techs for the baseline)
Unraid needs to be running with at least 1 data drive, pref 1 parity and 1 data drive.
Install Unraid options and set it up how you want
Backup the data from Unraid.
All following processes have to be installed using the GUI (monitor connected to the Unraid server, do not try to do it over remote operation)
Install ZFS Unraid Plugin (Done via the Unraid Install plugin option)
https://raw.githubusercontent.com/Steini1984/unRAID6-ZFS/master/unRAID6-ZFS.plg
Check the drives you have available “Unassigned Devices” that are not parity, data or cache drives
In my case I am using 9 drives /dev/sdb-/dev/sdj
Using terminal in unraid use the following commands:
(list drives)
lsblk
This will list all harddrives in your system.
(Create Zpool)
Zpool create dumpster raidz(1,2,3,x,x,x) /dev/sdb /dev/sdc /dev/sdd /dev/sde
depending on how many drives you have, this may take a few seconds
(View Zpool Status)
zpool status
pool: dumpster
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
dumpster ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
sdb ONLINE 0 0 0
sdc ONLINE 0 0 0
sdd ONLINE 0 0 0
sde ONLINE 0 0 0
errors: No known data errors
Your Zpool is setup
Using the GUI goto
https://slackware.pkgs.org/14.2/slackonly-x86_64/fio-3.7-x86_64-1_slonly.txz.html
scroll down and click on
Binary Package
fio-3.7-x86_64-1_slonly.txz
Make sure you save this file to the ROOT folder (no other folder will work)
Using terminal run the following command
upgradepkg –install-new ./fio-3.7-x86_64-1_slonly.txz
Now onto setting up the ZFS dataset (file system and folder creation)
Using terminal
(ZFS Dataset)
zfs create dumpster/test -o casesensitivity=insensitive -o compression=off -o atime=off -o sync=standard
(ZFS verification)
ZFS list
NAME USED AVAIL REFER MOUNTPOINT
dumpster 32.0G 7.65T 140K /dumpster
dumpster/test 32.0G 7.65T 32.0G /dumpster/test
Now onto the testing of the Zpool array
Using terminal
(FIO Disk / pool testing)
fio --direct=1 --name=test --bs=256k --filename=/dumpster/test/whatever.tmp --thread --size=32G --iodepth=64 --readwrite=randrw --sync=1