Jump to content

ZFS simplified


tigga69

Recommended Posts

I've been reading everything I can about ZFS and watching the videos from spaceinvader and others, but Im a little confused about things and what to do!

Im building a new server to replace an old one I cant expand any more.  So I was going to take advantage of ZFS.

I will be using 8x 4TB  drives, ie they are the same capacity.  In doing this, am I better off doing RAIDZ2 or XFS with 2 parity?

 

ZFS gives me compression which gives more capacity; I should also get higher read/write speed (I dont have CPU issues as it is a new server dedicated to running Apps in dockers); I can do snapshots to a backup machine.  

Im assuming that using RaidZ1 means the parity is spread across the drives so I dont have the performance dependant on the single parity used by Unraid, this will also mean less wear on a single drive used for parity due to less read/writes on the single drive.

 

XFS gives me easy capacity increase (but Im at max capacity in an N2 case with 8 drives) and less power as I only spin up the drive I am using.; less heat as Im in a small case with limited cooling;

 

What I am after is the highest resilience and good performance; I dont care about power consumption or processing impact. 

 

I naturally think I want to use RaidZ2.  But is this correct? Should I build the new box as a pure ZFS with RaidZ2, or as XFS with 2 parity, or some hybrid like ZFS striping with 2 parity, or RaidZ1 and 1 parity?

Another option would be 2 pools of 4 drive RaidZ1, so only half the drives spin up at any time when using them.  This then gives both speed benefits and also power and heat benefits.

 

I should also add I will have a 1TB M.2 for the cache.

 

what is the reason not to use ZFS? and what config do people suggest and why?  (the why is important!)

 

Its all new on UNRAID, and parity vs zfs makes it a little complex in the choices, and I can see loads of opportunities to get it right or make a pigs ear of the initial config!

 

Thoughts please.

Edited by tigga69
Link to comment

If you do an all ZFS pool, you would need to add 1 drive to the array. Could be a USB drive.

One other option is a 2 parity but all ZFS array(all individual disks). That would give you the compression, not have to spin up all the disks, but you would lose the self-repair option of a ZFS Pool.

Link to comment

HI Foo_fighter...

not sure I understand your response.  

On 1/16/2024 at 6:52 AM, foo_fighter said:

you would need to add 1 drive to the array

 

Why????  What size??? How should this be configured? Is this for Unraid as parity, or ZFS pool? 

If I use 6+2 for ZFS, then why would I need an extra drive.   I have an M.2 for the cache.  Also I still have 2 spare SADA ports, so I can add more drives, but why would I?

 

As I said Im after the highest resiliance, so no I dont want to loose the self-repair.  The whole point is maximum resiliance which is erring to ZFS as RaidZ2.  ie 6+2 in the pool.  

 

Option1: ZFS with RaidZ2 - 6+2 drives:  Pros:self repair, performance  Cons: high power usage, high heat from drives, high wear as all drives spin

Option2: ZFS like normal unraid - 6ZFS single drive pools + 2 parity:  Pros: low power, heat, and wear.  Cons: no self repair, slow performance.  

Option3: ZFS with Raid0 - 6 drives striped ZFS pool without fault tollerance but with 2x Unraid paritydrives:  I suggested this but it wouldnt work as the ZFS pool is larger than the parity drives. can only be done as option 2 unless large parity drives purchased.  

Option4: 2x RaidZ1 pools - 4 4x drive pools, joined in Unraid without parity ie 3+1 ZFS pool & 3+1 ZFS pool, Pros, stripping across 4 drives improved performance over option 2, maintains self repair, lower drive wear, lower heat, lower power (less drives spining). Cons: lower performance, lower resilience (1 drive failure).

 

As I write it this way, I am still convinced it is either option 1 or option 4.  Option 2 doesnt makes sense for my use case. (and option 3 doesnt work)

 

You appear to be suggesting either I configuration I dont understand, or option2 which doesnt meet my needs.  This is just a variant on today's setup with XFS but using ZFS with minimal benefit.

 

 

 

Link to comment
26 minutes ago, tigga69 said:

HI Foo_fighter...

not sure I understand your response.  

 

Why????  What size??? How should this be configured? Is this for Unraid as parity, or ZFS pool? 

If I use 6+2 for ZFS, then why would I need an extra drive.   I have an M.2 for the cache.  Also I still have 2 spare SADA ports, so I can add more drives, but why would I?

Currently unRAID requires there to be at least one drive in the "Array" (meaning the disk pool that uses the unRAID driver), regardless of what other pools are specified. For people who want to use only ZFS pools and no unRAID "Array" the workaround is to assign a single small USB flash drive (other than the boot drive) to the array to satisfy the requirement. Unfortunately the drive does still count against drive limit for the particular unRAID license level. 

It is expected that this requirement will be going away at some point as Limetech makes further improvements for supporting drive pools. Unfortunately, as is the case with most unRAID development, there is no ETA for that feature.

Edited by primeval_god
  • Like 2
Link to comment

ok thanks thats clearer

 

So I build a single drive array, a cache, and a zfs pool (which has most of my storeage capacity).

I've the Plus licenses so Im ok with the drive numbers and oddly I have a spare small SSD lying around, so that's ok too.

 

I'll be building the system this weekend (I think) so I can see what it all looks like.

 

Again thanks for the clarity.

 

Edited by tigga69
Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...