Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ZFS plugin for unRAID

Featured Replies

  • Replies 1.6k
  • Views 416.8k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Today I released in collaboration with @steini84 a update from the ZFS plugin (v2.0.0) to modernize the plugin and switch from unRAID version detection to Kernel version detection and a general overha

  • You have truly taken this plugin to the next level and with the automatic builds it´s as good as it gets until we get native ZFS on Unraid!

  • Built zfs-2.0.0-rc7 for unRAID-6.8.3 & 6.9.0-beta35   Great to see that unRAID is finally adding native ZFS so this might be one of the last builds from me   And yes, i´m alre

Posted Images

Hey guys! I am looking to switch from FreeNAS to unRAID for VM, docker and general Linux reasons like device drivers (Fusion-IO cards) etc.

 

Does this plugin use ZFS versions >=0.8? I specifically want native zfs encryption support.

Well, the below is what I get when I ask for version.  So yes.. ;)

 

I'm quite new to ZFS, but the  package maintainer of this plugin is very speedy with updates and such.

 

Plus you get the advantage of being able to have a flexible array with unraid on the side.

 

The big minus with unraid is that nothing with ZFS has a GUI as it's an unofficial plugin.  But unofficial plugins with unraid are not as unofficial as they sound really, the way the product works, it is very inclusive.  Good community and good developers.

 

I've considered freenas a few times, but I think for me unraid is mostly better - especially since I discovered ZFS!

 

Also, the developer just packaged znapzend which makes things a bit easier.

 

# zfs --version
zfs-0.8.2-1
zfs-kmod-0.8.2-1

And RC4 is out with a new kernel.

 

 

  • 2 weeks later...

I upgraded today, thinking that because there is not a new kernel, it would upgrade.  However it doesn't as I think it has a specific lock to the version?  Or at least I assume kernel firmware is not the same as a kernel upgrade afaik.

 

Downgrading requires going to a backup of libvirt.img

Edited by Marshalleq

  • Author

Upgraded for rc5

 

There was a  upgrade from kernel 5.3.7 to 5.3.8

  • 2 weeks later...

Here is a written guide from LevelOneTechs, just thought I should mention it here: https://forum.level1techs.com/t/zfs-on-unraid-lets-do-it-bonus-shadowcopy-setup-guide-project/148764

Complimentary videos are on the Gamers Nexus YouTube channel.

 

On 10/21/2019 at 1:22 AM, Marshalleq said:

Well, the below is what I get when I ask for version.  So yes..

Thank you so much for the answer!

 

On 11/2/2019 at 2:06 PM, steini84 said:

Upgraded for rc5

 

There was a  upgrade from kernel 5.3.7 to 5.3.8

Thanks so much for your work and contribution!

Also, I am really surprised that UnRAID is running on the latest kernel! I was really thinking that it would be on some old kernel since NAS/server distros tend to do so.

 

Also, on the GUI side of things, there is some active development on integrating ZFS with Cockpit: https://forums.servethehome.com/index.php?threads/cockpit-zfs-manager-coming-in-november.25668/

 

Would running cockpit on UnRAID or integrating the ZFS-manager plugin into the OS itself be something that could be feasible?

  • Author
On 11/11/2019 at 11:37 AM, sotirone said:

Here is a written guide from LevelOneTechs, just thought I should mention it here: https://forum.level1techs.com/t/zfs-on-unraid-lets-do-it-bonus-shadowcopy-setup-guide-project/148764

Complimentary videos are on the Gamers Nexus YouTube channel.

 

Thank you so much for the answer!

 

Thanks so much for your work and contribution!

Also, I am really surprised that UnRAID is running on the latest kernel! I was really thinking that it would be on some old kernel since NAS/server distros tend to do so.

 

Also, on the GUI side of things, there is some active development on integrating ZFS with Cockpit: https://forums.servethehome.com/index.php?threads/cockpit-zfs-manager-coming-in-november.25668/

 

Would running cockpit on UnRAID or integrating the ZFS-manager plugin into the OS itself be something that could be feasible?

I think it would be a huge undertaking to incorporate cockpit with unRAID, but I personally don´t have a use case for that so I did not think it through.

Wow cockpit looks amazing.  I've heard that unraid will shy away from any competing GUI's which after a two second glance this appears to be. Would be amazing if it could have the ZFS management integrated though.  I love console but for ZFS it would be a lot nicer to have a GUI in my opinion.

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

I am running into an issue with accessing the ZFS share from windows.

 

I am able to see the path to the ZFS share, but it says I do not have permission to create/delete, etc

I get the following error when I try to enable SMB share

root@Pughhome:~# zfs set sharesmb=on dumpster
cannot share 'dumpster': smb add share failed
cannot share 'dumpster/test': smb add share failed

 

Here is my SMB script

global]
...
   usershare path = /dumpster
   usershare max shares = 100
   usershare allow guests = yes
   usershare owner only = no

                                                                                                                                                         
[data]                                                                                                                                                                 
path = /dumpster
browseable = yes                                                                                                                                                       
guest ok = yes                                                                                                                                                         
writeable = yes
writelist = 
read only = no        

 

Got this working and imported a pool from FreeNAS - nice work!

 

I'm guessing this conflicts with the Unraid Nvidia plugin? Or does it need to be re-installed for it?

 

Edit: To answer my own question, if you install the Unraid Nvidia plugin, which has it's own kernel package, you need to re-install the ZFS plugin to re-enable it. 

Edited by planetix

21 hours ago, planetix said:

Got this working and imported a pool from FreeNAS - nice work!

 

I'm guessing this conflicts with the Unraid Nvidia plugin? Or does it need to be re-installed for it?

 

Edit: To answer my own question, if you install the Unraid Nvidia plugin, which has it's own kernel package, you need to re-install the ZFS plugin to re-enable it. 

I have the same setup, didn't have to re-install ZFS plugin after installing Unraid Nvidia. Be good if @steini84 can confirm just for sanity.

Edited by Varun Reddy

  • Author
I have the same setup, didn't have to re-install ZFS plugin after installing Unraid Nvidia. Be good if @steini84 can confirm just for sanity.

I don’t see why you would need to reinstall. On the setup where I tested it with both plugins it was working without problems.


Sent from my iPhone using Tapatalk

@steini84 would you mind doing your magic?

6.8 RC6 released

Kernel version 5.3.11

 

Further information here:

Many thanks,

 

Marshalleq

  • Author

Yeah no problem but I don’t have access to a computer until tomorrow


Sent from my iPhone using Tapatalk

Hey, I feell bad enough just asking all the time - so even tomorrow would be amazing!  Shame it can't autogenerate locally - that would be cool.

  • Author
21 hours ago, Marshalleq said:

Hey, I feell bad enough just asking all the time - so even tomorrow would be amazing!  Shame it can't autogenerate locally - that would be cool.

 

Updated for RC6

 

The build progress is really automated already. No problem to fully automate the build process, just a matter of expanding the build script:

https://github.com/Steini1984/unRAID6-ZFS/blob/master/build.sh

 

The problem Is more that I don't have a server running the RC series so I don't get any notifications about updates . 

One way around that would be to run a blank install in a vm I suppose. I wonder if @limetech could give you some kind of dev licence for that. 

  • Author
One way around that would be to run a blank install in a vm I suppose. I wonder if@limetech could give you some kind of dev licence for that. 

I actually do that and don't need a license for that purpose. I just don’t have it spun up 24/7 smile.png&key=d7bc0bbbfa2056a2a63af437c1f4a1188d2d7eb0deb5aa11e8f34aa88765e668

 

 

Sent from my iPhone using Tapatalk

I see the issue.  I'm wondering if it is something I can help with in some way?  If it's all automated it shouldn't be too hard.

  • Author

Just keep updating me when there is a update and we are good ;)


Sent from my iPhone using Tapatalk

Apologies if this is covered elsewhere, but if I wanted to use this to create a 4x NVME vdev with 1 disk parity (like a raid 5), how would I deal with TRIM and would this become an issue?

  • Author
Apologies if this is covered elsewhere, but if I wanted to use this to create a 4x NVME vdev with 1 disk parity (like a raid 5), how would I deal with TRIM and would this become an issue?

You can turn on autotrim:

zpool set autotrim=on poolname


Sent from my iPhone using Tapatalk

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.