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.

How to recover cache data?

Featured Replies

I have two cache drives in a pool. i thought that I could easy take one to go do another project with it and then add it back to the pool and keep trucking. Before I removed the cache drive from the pool, I moved all cache data to the array. Once it appeared that I was safe, I removed the cache drive. With one out, I started up the array to run on one cache drive only. Things seemed to be going fine. At some point after finishing my project, I noticed that my operating cache drive was giving an error and it was “Wrong”. What did I do and how can I recover the data on the single cache drive that I was using? The only option that I see is to format it to get it back to a working cache pool! There goes all my cache data…

 

I would appreciate your help much!

fatfarmhqserver-diagnostics-20230907-1639.zip

Solved by JorgeB

  • Community Expert

Post the output of:

btrfs fi show

 

  • Author

Here's the output:

Quote

Label: none  uuid: 584a2486-c3bc-457c-9d4a-a61d01391679
        Total devices 1 FS bytes used 3.71GiB
        devid    1 size 20.00GiB used 8.02GiB path /dev/loop2

Label: none  uuid: 8656c3a9-8d89-49f0-93e7-b4335ca29bfd
        Total devices 1 FS bytes used 1.40MiB
        devid    1 size 1.00GiB used 126.38MiB path /dev/loop3

 

  • Community Expert

I assume the pool was btrfs? There's no btrfs filesystem on the SSDs.

  • Author

Yes it was. How could it be gone? I’m not sure what I did. 

  • Community Expert

Post the output of 

fdisk -l /dev/sdd

and

fdisk -l /dev/sde

 

  • Author
root@FatFarmHQServer:~# fdisk -l /dev/sdd
Disk /dev/sdd: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: CT1000MX500SSD1 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
root@FatFarmHQServer:~# fdisk -l /dev/sde
Disk /dev/sde: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: CT1000MX500SSD1 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
root@FatFarmHQServer:~# 

 

Edited by danbru1989

  • Community Expert

No partition exists on either device, suggesting they were wiped, depending on how it was done it may be recoverable, type

sfdisk /dev/sdd

then type

2048

and hit return, finally post a screenshot of the results.

  • Author

Screenshot 2023-09-08 at 7.41.45 AM.png

  • Community Expert

Hit N + return to keep the signature, then type

write

and return again, then

btrfs fi show

 

  • Author

Screenshot 2023-09-08 at 7.54.42 AM.png

  • Author

I’m not familiar with everything you are instructing, but it looks promising to me. Should I try mounting sdd1 again in the cache pool?

  • Community Expert

First lets see if you can also recover the other device, in case there's an issue with that member, do:

sfdisk /dev/sde

and assuming it finds a btrfs signature follow the same steps above, then post once more

btrfs fi show

 

  • Author

Here's the results. Thank you for your persistent help with this.

 

The 361gb on sdd1 is my previous cache. I think that the 2.02gb on sde1 is from a 2nd cache pool I started on that drive only during my troubleshooting and testing. If that's the case, that data is not important to save. I think that it might be best to just get sdd1 up and running the cache pool reliably, then I can just format sde1 and add it to the cache pool.

 

Screenshot 2023-09-08 at 10.33.20 AM.png

 

Edited by danbru1989
Added further info.

  • Community Expert

OK, I though both devices were members of the same pool, then make sure cache is reset by starting and stopping the array without any device assigned to cache, then assign just sdd to the first slot of a pool with two slots and start the array, then post new diags, this will only work if the pool was fully redundant.

  • Community Expert
  • Solution

That's a good sign, it's balancing the pool to single device, but everything looks normal, you can then add another device when that finishes if you want.

  • Author

I can't thank you enough for your help! No way that I could have figured that out on my own!

  • Author

When I attempt to start the array with the sde1 added to the cache pool, I get the "too many missing/wrong devices" error. Any thoughts?

Edited by danbru1989

  • Community Expert

Probably need to wipe wipe it first, if you're sure there's no important data there, type:

blkdiscard -f /dev/sde

 

I don't think you need to reset the pool again, but if you do, unassign sde, leave only sdd, start array, stop array, re-assign sde (after wiping it) and start array.

  • Author

I did the blkdiscard -f /dev/sde and it didn't fix the error. Additionally, it's giving me the error when only sdd1 is assigned... 🤔

  • Community Expert

Reset the pool once more, unassign all pool devices, start array, stop array, re-assign only sdd, start array, post new diags to config the balance finished.

  • Author

I caught what I missed. Forgot to create a new pool when starting / stopping. Looks like it's all working now. It is now balancing the pool with both drives in cache. Thanks!

Edited by danbru1989

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...

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.