Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Raid 1 BTRFS Cache Pool sharted on me, with important data on it.

Featured Replies

Hi.

I rebooted the server after doing some dust clearing, and upon reboot, the cable of one of the two cache drives was loose, and the drive wasn't connecting.

 

I wiggled the thing back in place, and since then, here is where I am. A >RAID ONE< BTRFS pool sharted itself for a disconnected drive.

 

image.thumb.png.478fcf144053c014aac9ecaf3a8f2659.png

 

And I thought it would somehow protect data a bit? Apparently not. Might actually cause me to loose some irreplaceable one.

 

Here with the array started normally

image.png.f218b07f0ee6d577cf702c608b64e925.png

 

And in maintenance mode:

 

image.png.61776c461d00dc0693d3b091baef4a27.png

It used to be absolutely error-less, but... hey, I tried a check without the readonly option, I might should have avoided doing that.

 

As for btrfs fi show, it seems like that thing forgot what is the second device in the cache pool.

Because yes, both SSDs in the cache pool are the original SSDs of the cache pool, and in the right order.

image.png.f813db734dca50ea1a5b82158496e1c7.png

 

Wanting to recover the fail hits a road block also

image.png.0ba8825fcf4a37971f0a4bf95f67e7ca.png

 

I always used XFS for my array and have been happy with it... when I added my first cache drive, I saw btrfs and I was "oh well..."

That's a nice first experience with btrfs for me.

 

 

procyon-diagnostics-20200117-1234.zip

 

 

 

 

Edited by Keexrean

  • Community Expert
Jan 17 12:24:10 Procyon kernel: BTRFS warning (device sde1): chunk 536020516864 missing 1 devices, max tolerance is 0 for writeable mount

Pool wasn't redundant, likely because of this bug.

 

8 minutes ago, Keexrean said:

I tried a check without the readonly option, I might should have avoided doing that.

Yes, that's a last resort, you can try these options though not sure how good they will work for this case since there might be missing metadata.

  • Author

I actually managed to mount the damn thing after rebooting the server with the second cache drive disconnected, then going

> mount -o degraded,usebackuproot,ro /dev/sdf1 /mnt/disks/2TB/cachefail

 

2TB being an USB3 drive I mounted with the unassigned device plugin (the same command failed when the array is started, so thanks UD plugin!)

 

a little LS showed me the oh so much so anticipated folders:

image.png.49193cb2313835e0b1530821e862e9a8.png

Yes, my cache pool was the one holding:

-appdata

-system

-a network share with YEARS of benchmark results and homemade bash-scripts to fix stuff / try stuff

-DomainsC being the share holding >THE BOOT DRIVES< of 3 VMs!

 

I dared to move all that to cache when (I thought) I made it a raid1 pool. This bug is BS.

 

Imma gonna >cp it all in an other folder of that usb drive and recreate my cache-pool from scratch.

 

 

 

Worse part being that imo: 

Jan 17 13:14:45 Procyon kernel: BTRFS warning (device sdf1): devid 2 uuid 0cc9242b-012c-47ba-8fb5-5c189ca86901 is missing

It KNOWS somehow which is devid 2, and devid 2 is now connected, but it doesn't hecking pick it up!!

Edited by Keexrean

  • Author

Tried if the data was clean by just making an other copy of the recovered shares to the array and trying to run docker, vms and so on from the array. Worked perfectly.

 

Then secure erased both SSDs, cleanly added them back as cache drives, checked the parity status, then now am using the mover to push shares back to the cache with the "Prefer" caching profile, before putting them back to "Cache Only".

 

 

imho devs should push a patch/update that would prompt the user into running >btrfs balance start -mconvert=raid1 /mnt/cache  , because I'mp pretty convince a lot of people out there might have the issue under their radar, ready for a miserable loose cable or failing drive to just do them in the back IO.

Edited by Keexrean

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.