Using ZFS without redundancy

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Over the years there have been some discussions of using ZFS without any redundancy. Either single disk pools or as a pool of striped disks. Both are reasonable, in certain circumstances. One recent discussion devolved a bit. There were good points, but we should describe how to do it, and why someone might do it, for future reference. And many of the pitfalls. (Without all the sillyness of "just don't do it".)

Here are some reasons why people might want to use ZFS without redundancy;
  1. Some people think that redundancy costs too much money
  2. They think they can detect when a hard disk drive is going to fail, and pre-emptively replace it
  3. The data is basically R/O, but available from another source, (like DVD or Blu-ray)
  4. The data is R/W, but good backups are available.
These are my answers to the points above;
  1. How much money or time lost to recover any lost data? (If it can even be recovered!)
  2. Occasionally hard drives simply loose a data block completely, without any possibility of recovery. It's just gone.
    The hard disk drive's built in error detection and correction code tried to repair, but their were too many bad bits.
    On rare occasions, (but I have personally and professionally seen it), a hard drive dies completely, all dead, all data gone.
  3. See answer 1. I once extracted my DVD collection to MP4 Simple CODEC. That took many days. Then found out that the
    MP4 Advanced CODEC would give me better compression, (upto twice what the simple did). So I re-did my DVD collection.
    More of my time setting up the extract and changing optical discs, (using the much slower MP4 Advanced CODEC).
  4. Data can be lost between failure and last good backup.
    Note that backups CAN and DO fail. Either file damaged in backup stream. Or the scheduled backup simply did not run!
    In some cases, restoration can take many hours, even days.
    This can be acceptable, under certain circumstances.

So, what benefits would ZFS give without redundancy?
  • Automatic metadata repair on read failure, (all metadata has at least 2 copies, even without redundancy)
  • Scrubbing to detect when metadata needed to be repaired, (but not read recently)
  • Scrubbing to detect when file data has lost block(s), so you can restore it
  • Built in compression
  • Management, (ZFS datasets, zVols, sharing, attributes)
  • Snapshots & clones
  • Critical user data files can have 2 or 3 ZFS managed copies, even on single disk vDev pools
  • OpenZFS is soon to have dataset / zVol encryption
  • And if used for OS, alternate boot environments
All that said, there are valid reasons to use ZFS without redundancy. However, FreeNAS is not necessarily the best choice. It's a NAS, (Network Attached Storage), product for reliable data sharing.

Because of how ZFS stripes all data across all vDevs, if each vDev is a single disk, then a configuration of single disk vDev pools would reduce the potential data loss & increase the longevity over multiple single disk vDevs in a striped pool.


The conclusion for a non-redundant ZFS configuration, is that single disk vDev pools are preferred.
Use "copies=2", (or 3), for critical user data files. And have good, tested & monitored backups.




Note: There is OpenZFS work intended to allow both import of a damaged pool, and recovery of what data can be recovered. This is a long term project, and is not yet available. And may never be completed.
 

Mlovelace

Guru
Joined
Aug 19, 2014
Messages
1,111
My freeNAS server at home has several pools, one of which is a pool with a single disk; a single SSD for my jails. I could see building a striped pool for ephemeral data or for cheap speed, then perhaps just replicating that data to a redundant pool regularly.
 

pro lamer

Guru
Joined
Feb 16, 2018
Messages
626
One of the users wanted to use a drive without TLER but they wanted a 10TB one and all they could find were nas or server disks. Probably with TLER enabled.

My guess: One may try to disable TLER even when using a NAS/server disk. For example wdidle3 software (or rather some WD HDDs)) mightorth a try.

Sent from my phone
 
Last edited:

Heracles

Wizard
Joined
Feb 2, 2018
Messages
1,401
Hey Arwen,

Use "copies=2", (or 3), for critical user data files.

I have to disagree with you on that one. People who do not want to do redundancy want to avoid it not to loose storage space. Should you use Copie=2, you already waste 50% of your storage, so are already at the cost of Raid10. If you go to Copie=3, you are even worst.

If one is ready to sacrifice 50%+ of his space for some kind of protection, he his million time better with actual redundancy like Raid10 or RaidZ2 instead of copie=2 or 3. He will have actual and better redundancy at the same or lower storage cost.
 

pro lamer

Guru
Joined
Feb 16, 2018
Messages
626

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Hey Arwen,
I have to disagree with you on that one. People who do not want to do redundancy want to avoid it not to loose storage space. Should you use Copie=2, you already waste 50% of your storage, so are already at the cost of Raid10. If you go to Copie=3, you are even worst.

If one is ready to sacrifice 50%+ of his space for some kind of protection, he his million time better with actual redundancy like Raid10 or RaidZ2 instead of copie=2 or 3. He will have actual and better redundancy at the same or lower storage cost.
Valid point.

My comment was intended to give options for an additional dataset, one that uses "copies=2", for only some of the data. As an example, a media collection can contain DVD videos and personal photographs. The photos might be more important, even with backups. But, it's a user call. Not ours.
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
One of the users wanted to use a drive without TLER but they wanted a 10TB one and all they could find were nas or server disks. Probably with TLER enabled.

My guess: One may try to disable TLER even when using a NAS/server disk. For example wdidle3 software (or rather some WD HDDs)) mightorth a try.
...
Good point. Other hardware details for such a NAS may also suggest themselves. I'll leave it to others for the moment to discuss.
 
Top