Cache pool failure - how to recover? BTRFS


ThatDude

Recommended Posts

Hi

 

I had two drives pooled to create a BTRFS (RAID1) cache, but overnight one of them has failed and gone offline.

 

The second drive is still present and has a green ball, but shows an unmountable file system unRIAD wants me to format it.

 

How can I recover from this situation? I assumed that in the case of a drive failure the pool would just keep running and alert me to replace the failed disk.

Screenshot 2022-09-06 at 07.54.28.png

Link to comment
18 hours ago, JorgeB said:

Try power cycling the server (not just rebooting) to see if the other device comes back online, if it doesn't there are some recovery options here.

 

A physical power cycle has made the drive visible again on the system but it's now an unassigned device, and not in the 2 disk cache pool.

 

When I add it back to pool, unRAID tells me that the drive will be formatted when I start the array.

 

Is there a way to add it back in correctly?

Link to comment

Unfortunately the failed drive (cache drive 1) seems to have a physically failed and has disappeared from the system again. 

 

The remaining drive has the 'bad superblock' error and none of the safe (or unsafe) recovery methods mentioned in your (excellent) btrfs thread work. It won't mount at all.

 

I have backups, they are just a few days out of date. I'll create a new 1 drive cache pool and restore to the working drive.

 

I'm disappointed that BTRFS dropped the ball here, a RAID1 configuration should be able to sustain a 1 disk failure without catastrophic results. 🤷‍♂️

Link to comment
  • 3 months later...
On 9/7/2022 at 5:19 AM, JorgeB said:

Unassign all cache devices, start array to make Unraid "forget" current cache config, stop array, reassign all cache devices (there can't be an "All existing data on this device will be OVERWRITTEN when array is Started" warning for any cache device), start array and post new diags.

Does this mean losing all the data from the pool? Or does this actually recover the previous state?

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.