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.

Trouble swapping cache drive - "Wrong pool state"

Featured Replies

Hi! I've been "using" (read started and basically let it run) unraid for going on 4 yrs and thought it was time to swap out the old sata cache ssd for a nvme drive. However I think I messed up.

 

After some searching I followed a reddit post that seemed straight forward. I added the new nvme drive to the cache pool and let it balance. When it was done I stopped the array and unassigned the old ssd and restarted the array. After a while I stopped the array again to change the slots back to 1 but I can't. And now here I am where the array won't start with the error "Wrong pool state". I can't change the slot count to 1 either.

 

I looked at the thread by @FrForget and @JorgeB but I don't think I have the same issue. I included diagnostics and a screenshot of the cmd line asked in that thread.

 

What do I do now? Thanks.

 

XOt2uON.pngkWa9cbX.png

edi-diagnostics-20250322-1456.zip

Edited by Wim
Added link to mentioned forum thread.

Solved by JorgeB

  • Community Expert

 

 

 

  • Community Expert

it looks like you have a btrfs mirroed cahced pool

 

image.png.9dedf05035ab645b0b2e3b9061022eb9.png

 

You have removed the disk and unassgiend the didk And you see the new disk unrer unasigned disks?
image.thumb.png.16b28a7ad802e929a2fcdadb673ad51b.png

?

 

As you should go to settings and stop VMs, stop Dockers, and stop LXC if running to turn off. If enabled turn off array auto start.

you should be at the step to start the arrary with the missing disk and to turn off the machine. remove the drive and install teh new drive.

Then at the reboot Main > start screen select the new disk start the array and format the new disk.

  • Author
17 minutes ago, bmartino1 said:

it looks like you have a btrfs mirroed cahced pool

 

image.png.9dedf05035ab645b0b2e3b9061022eb9.png

 

You have removed the disk and unassgiend the didk And you see the new disk unrer unasigned disks?
image.thumb.png.16b28a7ad802e929a2fcdadb673ad51b.png

?

 

As you should go to settings and stop VMs, stop Dockers, and stop LXC if running to turn off. If enabled turn off array auto start.

you should be at the step to start the arrary with the missing disk and to turn off the machine. remove the drive and install teh new drive.

Then at the reboot Main > start screen select the new disk start the array and format the new disk.

So to clarify the Samsung 840 Pro that is currently unassigned is the OLD drive. The drive currently assigned as Cache 2, Kingston 2 TB, is the NEW drive. 

 

What I've done so far is the following

1. I added the new drive to the pool and let them go through the balance process.

2. When that was done I stopped the array and unassigned the old Samsung 840 Pro.

3. I then started the array again and waited a while before stopping the array to change back to 1 slot. 

This is pretty much where I am now. As it is currently I can not start the array and can not change back to 1 slot.

 

Should I "move" the new drive to the first position sort of like this and then click "Yes, I Want to do this"?

kmkhdZk.png

 

Watching the video you posted, I guess that is the process I should've used instead of this one which at first glance seemed more straight forward...

  • Community Expert

There's currently a bug with 7.0.x fore removing btrfs raid1 devices, you must use the CLI, first reimport the pool with the remaining device:

 

on main click on the first device for that pool and then "remove pool"
back on main, create a new pool with the same name and 1 slot
assign the remaining pool device, leave the filesystem set to auto
start the array to import the pool

 

Then post new diags

 

 

  • Author
3 minutes ago, JorgeB said:

There's currently a bug with 7.0.x fore removing btrfs raid1 devices, you must use the CLI, first reimport the pool with the remaining device:

 

on main click on the first device for that pool and then "remove pool"
back on main, create a new pool with the same name and 1 slot
assign the remaining pool device, leave the filesystem set to auto
start the array to import the pool

 

Then post new diags

 

 

Hi @JorgeB! Thanks for taking the time. Here are the diags after doing what you suggested. Linking a screenshot as well of what it looks like currently.

 

B3VaxwZ.png

edi-diagnostics-20250323-1129.zip

  • Author

@JorgeB Side note, would an update to 7.1 help or is that a bad idea at this stage until my current issue is sorted out?

  • Community Expert

If you can add the device back, you could then upgrade to 7.1 and remove it using the GUI, but it's not complicated to remove it using the GUI, I can post the instructions if you prefer that.

  • Author

Oh okay, I think I'd prefer to sort it out before updating then. So what are the next steps if we continue where we left off yesterday?

  • Community Expert
  • Solution

With the array running type:

 

btrfs dev remove missing /mnt/cache

 

That should be quick, and when done, stop the array and reimport the pool again just like before, and you should be all set.

  • Author

That did it, awesome! Thanks a bunch for all the help.

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.