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.

Cache drives unmountable after replacement attempt

Featured Replies

UnRAID 6.12.2

 

I just moved my system over to a new build, and after I sorted out an issue with some bad RAM, it was all running great.  So I proceeded to swap in my new NVMe drives for the old SSDs that were in my cache pool.  I stopped the array, removed one cache drive, selected one of my new drives as the replacement and restarted the array.  Took some time, but eventually the process finished (the STOP ARRAY button was no longer greyed out).  So I stopped the array and attempted to replace the other SSD with the second new drive.  When I started the array back up it said the cache drives were both unformatted.  So I stopped the array and put the old drives back in, same error.  Off to the internet I went to find a solution and tried several from these very forums but no dice.  Hoping someone can take a peek at my logs and tell me if all my cache data is gone and if not, how to get the drives to play nice.

 

media-syslog-20230710-2124.zip

Solved by JorgeB

  • Community Expert

Post the output of

btrfs fi show

and which devices were the old pool and new pool.

  • Author
Label: none  uuid: cd291c78-d438-4c78-ae94-676ab7b3d61b
        Total devices 1 FS bytes used 348.00KiB
        devid    1 size 20.00GiB used 536.00MiB path /dev/loop2

 

My original cache drives are:

CT500MX500SSD1_ 1843E1D2FB51 - 500 GB (sdf)

SPCC_Solid_State_Disk_DGEB07881C2A00046654 - 512 GB (sdb)

 

And the new ones are:

SPCC_M.2_PCIe_SSD_230064985170119 (nvme1n1)

SPCC M.2 PCIe SSD 230073425110010 (nvmeOn1)

  • Community Expert

type

sfdisk /dev/sdf

then type 2048 and hit return

post a screenshot after doing that

  • Author

Below is the output.

 

image.png.0b1ef52133bdf7e2f956aca76c4ff25a.png

  • Community Expert

Hit CTRL +C to abort and retry but now with 64 instead of 2048 and post new screenshot.

  • Author

The terminal window closed itself yesterday while I was at work, do I need to start the command over?

image.png.f8aba2b9a7fcbc9859a8fee6e28d2542.png

  • Community Expert
22 hours ago, JorgeB said:

type

sfdisk /dev/sdf

then type 64 and hit return

post a screenshot after doing that

 

  • Author

Here is the output:

 

image.png.e331c1779d9ae2f2ff2be86bcda5e3e2.png

  • Community Expert

Type N + return to keep the btrfs signature, then type

write

and hit return

 

Now do the same for the other device

type

sfdisk /dev/sdb

then type 64 and hit return

Assuming it also finds a btrfs signature type N + return to keep the btrfs signature, then type

write

and hit return

 

Then post the output of:

btrfs fi show

 

  • Author

Here's the output:

 

 

Screenshot 2023-07-12 at 11.50.08 AM.png

  • Community Expert

Now to make sure the pool is reset first start the array without any pool device assigned, then stop array, assign both devices to the pool, start array and post diagnostics.

  • Author

So while attempting to follow this advice, my server stopped responding via GUI.  After attempting to reload it in a new tab, it just fails to bring anything up.  The terminal window was still open so I attempted a reboot with 

powerdown -r

but nothing is happening.  The array was spun up so I don't really want to just mash the power button.  Any ideas?

  • Community Expert

If it doesn't reboot after 5 minutes you will need to force it.

  • Author

The machine did eventually reboot.  After stopping the array, removing the pool, and restarting the array, both cache disks showed as mountable in the unassigned devices section.  So that felt like progress!  However, after putting them back in as pool devices and starting up the array they show as unmountable again.  

 

Here are the logs: 

media-diagnostics-20230712-1737.zip

  • Community Expert
  • Solution
Jul 12 17:36:28 Media kernel: BTRFS error (device sdb1): devid 3 uuid c392e7b9-debe-4e19-a03b-309f9c774f00 is missing

 

This is a strange one, it's now complaining a 3rd device from a different filesystem is missing, see if it can be mounted degraded/read-only using the instructions here, if it works backup the data to the array or somewhere else.

 

 

  • Author

Ok, after a few days of work I was able to get things rolling again.  I used the instructions you linked to and used BTRFS restore to back up the cache to the array.  Once that completed I shut down the system and removed the two old cache SSDs to prevent myself screwing them up any further.  Then I set the two new NVMe's to be the new cache pool and formatted them accordingly.  I then copied my backed up cache contents to the new cache pool.  Had to rebuild my docker image and do some troubleshooting with Plex, but for the most part I am back up and running.

 

Thank you SO much JorgeB for your patience and helpful assistance throughout this process.  I had to further my linux education to accomplish all the steps needed, but in the end it worked and I don't have to start over.  If I can buy you a beer or something, please let me know!

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.