ZFS – Does It Replace the Need for Hardware/Software RAID?

filesystemsfreebsdraidsolariszfs

I want to provide protection against data loss on my servers.

Typically, I'd use hardware RAID 1 or 5, but I've been reading up on ZFS.

Is it correct that ZFS itself provides RAID 1 or 5 like data protection WITHOUT needing a RAID controller card?

If so, I assume a single hard drive is not enough to provide data protection since if that drive fails, all data fails, so how many hard drives do I need to be running for ZFS to provide this protection?

Best Answer

Yes, ZFS doesn't need hardware raid and is actually better when used without it.

It is able to provide partial data protection even with a single device when configured to use ditto blocks but of course won't resist a full disk failure in that case.

You can use it in a mirror configuration (two devices or more) or a RAIDZ one (three devices or more) to survive failures. RAID-Z2 and RAID-Z3 provide 2 and 3 concurrent device failures protection.