Jump to content

Limited benefits versus downsides of btrfs "RAID-1" mirrored cache pools?


dev_guy
Go to solution Solved by JorgeB,

Recommended Posts

I've seen several posts where people have had a cache pool drive fail that was in a "RAID-1" two slot mirrored configuration and have still had issues including having to start over with a new cache pool. I've searched but I can't find anywhere that documents how to replace a failed cache drive in a 2 drive pool and have it automatically rebuild the mirrored pair? This doesn't seem to be a GUI feature of Unraid?

 

I do understand one cache drive can fail and you hopefully still have your data on the other drive. But it's my understanding you still have to manually repair the cache? Further many argue btrfs has many performance and stability issues (I'm happy to provide references). It's also less natively compatible for recovering data from drives outside of Unraid compared to a single XFS drive.

 

I tried to mount a healthy btrfs mirrored Unraid cache drive in Linux and it wouldn't mount. There may be some magic obscure incantations to mount such a drive but it wasn't obvious to me. Linux insisted it was corrupt. It may have to do with Unraid not using the official RAID-1 format for cache pools?

 

So all of the above leads me to wonder if many systems wouldn't be better off with single drive XFS cache pools that are regularly backed up to the array (or elsewhere)? I get that if you're using the cache for critical applications where you can't afford to lose even a few hours of data the downsides of btrfs, non-standard RAID, and dual drives might be worth it. But even then if a cache drive fails it seems you still have a significant problem on your hands?

 

Am I missing something here or is the above more or less correct?

Link to comment
  • Solution
10 hours ago, dev_guy said:

how to replace a failed cache drive in a 2 drive pool and have it automatically rebuild the mirrored pair?

https://forums.unraid.net/topic/46802-faq-for-unraid-v6/?do=findComment&comment=480419

 

10 hours ago, dev_guy said:

I do understand one cache drive can fail and you hopefully still have your data on the other drive. But it's my understanding you still have to manually repair the cache?

If it's a device failure you just need to replace it.

 

10 hours ago, dev_guy said:

I tried to mount a healthy btrfs mirrored Unraid cache drive in Linux and it wouldn't mount.

You must use the 'degraded' mount option:

https://forums.unraid.net/topic/46802-faq-for-unraid-v6/?do=findComment&comment=543490

 

 

 

  • Like 1
Link to comment
11 hours ago, JorgeB said:

Thanks for the answers! I found info on replacing/upgrading a single drive cache, that's obvious enough, but nothing promising on rebuilding a RAID1 cache with a failed drive. In fact, the advice I did find in this forum suggested moving everything off the remaining working drive to the array, replacing the failed drive, formatting the modfied RAID1 cache pair, and moving the data back. I don't believe this is in the Unraid Manual but probably should be as it's not at all obvious from the GUI what to do. And thanks also for the magic command line option to get a Btrfs RAID1 drive to mount outside of Unraid.

 

I still need to test the performance of Btrfs vs XFS on NVMe SSDs for Docker/VM use. I've seen benchmarks, like the one attached, showing Btrfs taking around twice as long as XFS for the same file operations. I don't know if that's the case with the current versions and within Unraid but is certainly something to consider. Some of my use cases include full text searches, de-duplication, and other file intensive operations running locally on the server.

Screen Shot 2022-11-04 at 2.36.56 PM.png

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.

×
×
  • Create New...