ZFS: Reccomend me a disk config

barbz

Weaksauce
Joined
Apr 25, 2010
Messages
85
Hi all,

I am about to upgrade my freenas setup consisting of 8 1tb disks running off a usas-l8i to 2tb disks (up to 15 of) running off two usas-l8i's.

What is the best setup zfs setup for this number of disks and possibly 4kb disks (if I cant source hitachi 5k3000's).

At this point in time I was thinking of 2 x 7 disk radiz2's with a hot spare.


Cheers,
Paul
 
Kind of overkill, I think. Why do you need to waste two drives as hot spares? You already have two live spares in each vdev...
 
No, I'm saying don't bother with a hot spare. Unless you are running a mission critical server? Remember that raidz2 allows two drives to fail before you are unprotected.
 
In terms of maximum disk space is option two just as good as option 1 here?
 
opt1 -> 2 x 7 disk raidz2 (maybe 1 hot spare)

opt2 -> 2 x 7 disk raidz with a shared hot spare.

Or ?
 
Ah, okay. Well, I don't think a hot spare makes much sense if you are doing raidz2, like I said. Why do you want two pools? If you don't need two pools, remember that you can stripe raidzn, so you could create two 7-disk raidz and concatenate them. Or is that what you meant by '2x ....'?
 
No - i wasnt sure if it was too many disks in a single dev - if I can do 15 x 2tb in raidz i would be happy with that.

Just not sure if theres any performance hits to go with it.

Paul
 
how about 15 in a raidz3 config? :D

That's because I read that raidz2 prefers 6 or 10 disks

That speed preference is the whole reason for the original request, just dont know enough about it.

I also wont have time to test new setups, i will need to make a call and import the data from the old raidz to the new one.

Paul
 
There's a slight performance win (IIRC) from having the number of data disks (N-1 for raidz, N-2 for raidz2) divisible by 2 (I think that was the deal.) So a 15-disk raidz3 would work the same way...
 
DO NOT USE FREENAS w/ ZFS. It's very immature. I lost a ton of data when the zpool metadata mysteriously corrupted on a power loss. Had the same problem (powerloss) on a real freebsd system but the metadata didn't corrupt.
 
Instead of running raidz2 or raidz3 with lots of disks, consider running several raidz1s striped together.

This gives you the flexibility to grow over time, and the flexibility to upgrade over time without having to overhaul the entire set of disks.

I've chosen to go with 5-disk raidz1s, and when I want more storage space I buy another 5 disks and create a second raidz1 and stripe them together. After I get to 15 or 20 disks, I'll start buying 5-packs and replacing raidz volumes instead of adding new ones. Replacing in sets of 5 is a lot easier than replacing in sets of 15.

In terms of data redundancy, this setup is slightly worse than raidz2. You can still lose 2 drives before losing data, but it's not any two drives, it's one drive per pool. It's up to you to decide whether this is an acceptable cost to pay in return for increased flexibility.

If you have a 15 disk raid3 of 2TB drives and you need more storage, what do you do? Replace all 15 drives? What if one drive dies and you don't have a replacement and you can't buy a replacement anymore because the drive got EOL'd?

By having the increased flexibility to be able to buy/replace in chunks of 5 drives, costs in the future are potentially lower, and you can reuse more of your existing infrastructure later on.
 
Correct, that's my mistake (and more than a minor nit, people reading this could easily get confused). Thanks for the catch!

Again, I'd like to repeat that my way may or may not be the best way, but I think it's worth consideration, especially for home environments where "lots of storage with some redundancy and low cost and easy upgrade" is typically the goal.
 
I was trying to not be a tool :) If one went that route, might be nice to have a hot spare for the pool...
 
I was trying to not be a tool :) If one went that route, might be nice to have a hot spare for the pool...

ZFS newbie here, so it might be a dumb question, but are you saying that you can assign the hot spare to the pool and not the individual vdevs?
 
Thanks all

Fryguy are you talking about a zfs equivalent of raid10?

I do take your point about upgrading.

My case will max out at 15 disks, but after more thought maybe 3 devs at raidz1?
Easier to upgrade and means I don't have to get all the disks in one hit.

That said I don't understand read and write sequences with multiple devs per pool, any one know?

Paul
 
I've chosen to go with 5-disk raidz1s, and when I want more storage space I buy another 5 disks and create a second raidz1 and stripe them together. After I get to 15 or 20 disks, I'll start buying 5-packs and replacing raidz volumes instead of adding new ones. Replacing in sets of 5 is a lot easier than replacing in sets of 15.
.

That sounds like a great idea. How is the performance on this setup compared to a 10disk raidz2 setup as that was my original plan.
 
Thanks all

Fryguy are you talking about a zfs equivalent of raid10?

I do take your point about upgrading.

My case will max out at 15 disks, but after more thought maybe 3 devs at raidz1?
Easier to upgrade and means I don't have to get all the disks in one hit.

That said I don't understand read and write sequences with multiple devs per pool, any one know?

Paul

No, I'm talking about the equivalent of raid50. Stripe raid5s together, not raid1s.

I have not had a chance to do performance testing, as I'm still on my first 5 drives (running out of space though, I'll be buying more soon). I can't imagine performance is going to be that bad, and surely it's going to be fast enough for most home uses (saturate gigE, easily stream HD content, etc.)
 
The performance is pretty much awesome.

I've got 15 dicks in 3 raidz1s, striped. Here are my bonnie++ results:

Version 1.96 ------Sequential Output------ --Sequential Input- --Random-
Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
foghornleghorn. 16G 201 99 276506 56 198428 38 459 97 627451 73 252.0 5
Latency 45695us 35953us 265ms 69630us 42440us 389ms
Version 1.96 ------Sequential Create------ --------Random Create--------
foghornleghorn.res. -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
16 14988 50 +++++ +++ 18693 59 18535 51 +++++ +++ 20827 67
Latency 13309us 93us 116us 8165us 36us 1046us

270 MB/s Sequential Write
613 MB/s Sequential Read

This is with a decent amount of tuning, a dual core 3.2 Phenom, and 8GB of DDR2. Prefetch enabled.

I've got another 5 dicks laying here that I need to hook up, but I've been lazy in pulling everything out of the rack to replace crap e-bay cables with Supermicro cables.

This is the easiest way for me to expand, running 5 raidz1 sets. I've got a total of 45 bays available, replacing or adding more than 5 at a time would be a nightmare.
 
No, I'm talking about the equivalent of raid50. Stripe raid5s together, not raid1s.

I have not had a chance to do performance testing, as I'm still on my first 5 drives (running out of space though, I'll be buying more soon). I can't imagine performance is going to be that bad, and surely it's going to be fast enough for most home uses (saturate gigE, easily stream HD content, etc.)

ta - thinking about it more after my comment this morning, this is the way to go :)

If i go 3 x 5 disk raidz pools possibly with a hot spare for the pool - sames me not having a disk if one goes south.

Paul
 
ta - thinking about it more after my comment this morning, this is the way to go :)

If i go 3 x 5 disk raidz pools possibly with a hot spare for the pool - sames me not having a disk if one goes south.

Paul

Protip: hot spares are non-existant in FreeBSD at this point. Manual intervention is required. If you need real hot spares, you'll have to use Solaris.
 
very protip - thanks - that makes me sad.

Is it a freebsd thing or the version of zfs they are on?
 
DO NOT USE FREENAS w/ ZFS. It's very immature. I lost a ton of data when the zpool metadata mysteriously corrupted on a power loss. Had the same problem (powerloss) on a real freebsd system but the metadata didn't corrupt.

Everything I've been reading lately seems to confirm this statement
 
Everything I've been reading lately seems to confirm this statement

touch wood freenas 0.72 has been running well for me since it was released and 0.69 was perfect before that.

That being said I'm jumping to either freebsd or zfsguru when I upgrade.

Paul
 
The performance is pretty much awesome.

I've got 15 dicks.....I've got another 5 dicks laying here that I need to hook up

Can I please put this in my sig....lol

After laughing, I am trying to figure out if this was intentional as your English seems well to me.
 
Back
Top