Cache and BTRFS


Recommended Posts

There seems to be a general consensus here that btrfs doesn't handle power loss well.   Seems people often loose much of the data on their cache drive(s) if power is cut to the system.

 

Even though I'll be running with a UPS, from my point of view, total data loss of the "cache" (which is used for far more than just cache in unraid) from a simple power failure is simply unacceptable.  It is not uncommon at all for a UPS to fail just at the moment you need it.

 

What can be done to make the cache drives more resilient in the case of power loss?  Can the cache be run with XFS or EXT4?

 

Edited by brainbone
Link to comment

In theory btrfs should be better than xfs with unclean shutdowns, in practice it's not, at least no yet, but if there's corruption most times all or almost all data can be recovered with an ro mount or with btrfs restore, still if you don't need a pool and don't care for checksums or snapshots you can use xfs instead.

Link to comment

Thanks, all, for confirming that I can use xfs on the cache.

 

I do like the idea of btrfs, but the apparent reality scares me a bit.

 

Thinking more about the issues with unclean shutdowns, is there any known reason why this could be happening?  Is unraid using btrfs without barriers?  Does this issue only occur on drives without power loss protection?  etc.

 

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.