Does ZFS only work with raw hardware devices and basically take them over or can it just work with a partial allocation of a drive such as software raid on linux?
I am curious. I know somebody mentioned this before but I want to know if I can add different size HDDs to the ZFS.I have two 1 TB drives but I am getting a deal on 1.5 TB drive.
ZFS is very nice about heterogenous drives. It won't be able to provide redundancy on 1.5TB if you only have 1TB + 1.5TB, but if you later replace the 1TB drive with a 2TB drive, then you will get 1.5TB redundant storage without having to do any backup or restore.
Let me get this straight. ZFS allows me to continually add space to my freenas without the need of formatting. I can use raid 5 with zfs so if any hard drive fails, I won't lose my data. Also does zfs need hard drives with the same storage or can they all be different. Thanks for this subscribed :p
No you CANNOT use Raid 5, Raid 5 would actually destroy ZFS performance and redundancy.
No your harddrives do not need to be the same size, they will pool the storage no matter the size.
I use a 32gb SSD drive to cache my pool at home, and I get about 300% performance increases, and I use a mix of 500's and 1000's for my actual storage. ZFS gets allot of performance from SSD cache drives and lots of ram :) if you got it of course, not a requirement.
The more I listen to this guy, he mentions allot of raid options you can use. That is 100% incorrect... you don't use traditional raid with ZFS. You use storage pools with multiple parity drives.
I think you can put the drives of different sizes in the pool, do not mirror them. I was just reading something about adding a solid state drive or mirror to a pool and the zfs (on solaris) would automatically use the ssd's for small files that are accessed more often (maybe by some internal performance metrics?)
Thanks for that great walkthrough. Question, though - is it possible to create a Raid-Z (for redundancy) with two disks? What would be the benefit of doing that over doing a single mirrored pool? Also, if one of your two disks dies, if you swap in a new one, how do you repair?
@fandibus: you can, if you manage it well. Chances are there will be some unused space on one of the drives, but even an application like the Drobo can't solve that problem. It just makes it easier to manage. Nonetheless, with careful management you can do it with ZFS and hence FreeNAS.
Does ZFS only work with raw hardware devices and basically take them over or can it just work with a partial allocation of a drive such as software raid on linux?
proxicate 1 year ago
@proxicate Zfs can work with files, never mind hardware.
You can create an empty file, and then create a pool out of that file.
If, why would you want to do that ? But you can.. :-)
damoos 1 year ago
@damoos I'd want to do that in order to stagger i/o across various hardware
proxicate 1 year ago
I am curious. I know somebody mentioned this before but I want to know if I can add different size HDDs to the ZFS.I have two 1 TB drives but I am getting a deal on 1.5 TB drive.
thelegendarypaki 1 year ago
ZFS is very nice about heterogenous drives. It won't be able to provide redundancy on 1.5TB if you only have 1TB + 1.5TB, but if you later replace the 1TB drive with a 2TB drive, then you will get 1.5TB redundant storage without having to do any backup or restore.
aphor 1 year ago
@thelegendarypaki You can but you only the smallest drives size will be available to the zpool. i.e. 1.5 + 1 = 1
damoos 1 year ago
Let me get this straight. ZFS allows me to continually add space to my freenas without the need of formatting. I can use raid 5 with zfs so if any hard drive fails, I won't lose my data. Also does zfs need hard drives with the same storage or can they all be different. Thanks for this subscribed :p
JamieJWSmith 2 years ago
No you CANNOT use Raid 5, Raid 5 would actually destroy ZFS performance and redundancy.
No your harddrives do not need to be the same size, they will pool the storage no matter the size.
I use a 32gb SSD drive to cache my pool at home, and I get about 300% performance increases, and I use a mix of 500's and 1000's for my actual storage. ZFS gets allot of performance from SSD cache drives and lots of ram :) if you got it of course, not a requirement.
SteveCrothers 2 years ago
The more I listen to this guy, he mentions allot of raid options you can use. That is 100% incorrect... you don't use traditional raid with ZFS. You use storage pools with multiple parity drives.
SteveCrothers 2 years ago
ZFS supports its own version of RAID levels. It supports basic RAID 0,1&10. Then it has its own parity raid as follows:
RAID-Z=min 3 drives with 1 being parity
RAID-Z2=min 4 drives with 2 being parity
RAID-Z3=min 5 drives with 3 being parity
Because of ZFSs commit on write paradigm RAIDZ+ doesnt suffer the write commit whole. It still suffers the RAID5 IO penalty though.
mkleinpaste 2 years ago
@mkleinpaste does Raid-Zx have any advantages over raid 0,1 and 10?
proxicate 1 year ago
@proxicate Look up Raid6
damoos 1 year ago
What's up with that UI? I downloaded the virtual machine (freenas .69) last night and my web GUI looks completely different than the documentation.
Love the Brittish accent BTW.
allanonmage 2 years ago
Very useful overview. Thanks!
dynamohums 2 years ago
I think you can put the drives of different sizes in the pool, do not mirror them. I was just reading something about adding a solid state drive or mirror to a pool and the zfs (on solaris) would automatically use the ssd's for small files that are accessed more often (maybe by some internal performance metrics?)
screamingservers 2 years ago
hungarianhc, fandibus
The min number of disks required for raidz is 3
If you use HD of diff sizes the space used on them will be that of the smallest disk. So yes you will lose space.
dre2kse 2 years ago
Thanks for that great walkthrough. Question, though - is it possible to create a Raid-Z (for redundancy) with two disks? What would be the benefit of doing that over doing a single mirrored pool? Also, if one of your two disks dies, if you swap in a new one, how do you repair?
hungarianhc 2 years ago
@hungarianhc
That would be a mirror vdev then?
If one drive fails (your pool will be "degraded" but still 100%online) you just replace it with a new drive and "resilver".
If your drives are hot-swap the pool will never go offline, if it's not your pool will only be offline during shut-down/replacement.
It will be online during resilvering.
xcarobx9 2 years ago
@fandibus: you can, if you manage it well. Chances are there will be some unused space on one of the drives, but even an application like the Drobo can't solve that problem. It just makes it easier to manage. Nonetheless, with careful management you can do it with ZFS and hence FreeNAS.
nlfiedler 2 years ago
Can you use hard drives of different sizes without losing space?
fandibus 3 years ago