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.

I want to swap a cache drive how do I do that?

Featured Replies

I have a 1TB Sata SSD I am currently using for my cache drive. I recently installed a 1 TB NVME drive that I want to use as the cache drive instead.

 

Ideally I would like to copy what is on the SSD over to the NVME and then just assign the NVME to the prior SSD drive slot.

I tried using file manager to copy the drive over. That worked. But then when I took the pools offline and tried to assign the NVME to the SSD slot it just responded "wrong" and would not let me restart the pool.

Since this isnt parity protected am I still required to create a new "new config" and start parity all over?

  • Community Expert

Do you also have array disks assigned? You can just recreate the pool, but a new config will also work.

  • Author

yes I have array disks assigned. Why must I be forced to recalculate parity on a non parity protected drive?

  • Community Expert

If there's no parity you can't recalculate parity, you can just do a new config (Tools - New Config) and re-assign the devices as you like.

  • Author
56 minutes ago, JorgeB said:

If there's no parity you can't recalculate parity, you can just do a new config (Tools - New Config) and re-assign the devices as you like.

What I am saying is if I do as you suggest the "new config" will require recalculating the parity for the array drives.

I cant swap or reassign the cache drives without creating a "new config"

Edited by xokia

  • Community Expert

You can skip New Config by deleting the pool, creating it again with the correct settings and assigning the new drive to it.

  • Community Expert

Sorry, misunderstood, if it's just a pool device you don't need to do a new config:

 

7 hours ago, JorgeB said:

You can just recreate the pool

 

  • Author
4 hours ago, JorgeB said:

Sorry, misunderstood, if it's just a pool device you don't need to do a new config:

 

 

When I tried that it told me I was "wrong" and prevented me from starting.

 

I copied ssd cache ->nvme cache using file manager

stopped the array

unassigned the ssd cache and assigned the nvme cache to the prior SSD slot.

When I did that I get a red X and it says "wrong"

It wont let me add a different drive to a slot used by a prior drive.

 

I am way past the easy fix at this point and I created a "new config" to allow me to assign the new cache drive.

Once it complete I'll post some pictures hopefully it makes it more clear.

Edited by xokia

  • Community Expert
11 hours ago, xokia said:

When I tried that it told me I was "wrong" and prevented me from starting

You just recreate the pool, unassign previous pool device, start array, stop array, assign new pool device (this assumes you are on v6.12, it's a little different with v7.0.0)

  • 2 weeks later...
  • Author
On 12/5/2024 at 1:05 AM, JorgeB said:

You just recreate the pool, unassign previous pool device, start array, stop array, assign new pool device (this assumes you are on v6.12, it's a little different with v7.0.0)

I wish it would have been that easy but it would not allow me to do that. When I tried their was a big red X next to the cache drive and it stated "wrong"

 

I had to create a new config with the cache drives swapped and then recalculate parity. It all works now. I have not upgraded to 7.0 yet I'd like to hear its stable and everything works before making that jump.

Edited by xokia

  • Community Expert
11 hours ago, xokia said:

When I tried their was a big red X next to the cache drive and it stated "wrong"

You just need to check the "I want to do this" box next to array start button, again assuming v6.12

  • 2 months later...
  • Author

No way to change cache drive without rewriting parity

So this is annoying. I want to change a cache drive and I MUST recalculate parity

 

I swapped in a larger cache drive
image.thumb.png.2e78cea3cc10801b7b0e0b05439f529c.png

 

Chose preserve current assignment

image.png.efc22b9bcade9780c10d0b6c584a7608.png

 

Then go to start the array
image.thumb.png.4df57e565f5e7742ae379a3895ff67d5.png

 

For those saying you can swap out the parity drive without a costly parity rebuild IDK know how you folks are accomplishing that. That information does not seem correct.

  • Community Expert
10 hours ago, xokia said:

No way to change cache drive without rewriting parity

There is, something is not correct.

  • Community Expert
11 hours ago, xokia said:

Then go to start the array

You must check the "parity is already valid" checkbox nest to array start button. 

It still says "will be overwritten" on the parity drive line but that's not actually going to happen in this case.

Edited by Kilrah

  • Community Expert
On 2/17/2025 at 9:07 PM, xokia said:

No way to change cache drive without rewriting parity

So this is annoying. I want to change a cache drive and I MUST recalculate parity

You can.   

 

The message about overwriting parity when formatting needs some slight rewording to make it clear it only applies to formatting a drive that is part of an Unraid parity protected array - it does not apply to formatting a pool.   It was originally introduced when the only use for a pool was as a 'cache' drive and to stop people thinking that if a drive showed as unmountable in the main array it needed formatting when instead the correct action to take was to try and recover the file system.  When formatting a pool the existing contents are simply overwritten (no matter how many drives make up the pool).

  • Author
On 2/19/2025 at 1:04 AM, itimpi said:

You can.   

 

The message about overwriting parity when formatting needs some slight rewording to make it clear it only applies to formatting a drive that is part of an Unraid parity protected array - it does not apply to formatting a pool.   It was originally introduced when the only use for a pool was as a 'cache' drive and to stop people thinking that if a drive showed as unmountable in the main array it needed formatting when instead the correct action to take was to try and recover the file system.  When formatting a pool the existing contents are simply overwritten (no matter how many drives make up the pool).

This has bit me twice when swapping out a cache pool for a larger cache drive. 1.3 days to rebuild the parity. Hopefully you folks can improve this in the latest update (wether that is improved documentation or a more user friendly GUI IDK). I didn't see anyway to proceed without rebuilding the entire thing. So sucked it up and rebuilt the parity. I couldn't restart the array without agreeing to restart parity.

Can I dynamically change the cache pool size? My cache pools are NVME or SSD. I have a bunch of files I leave in the cache pool because they are lots of small files. Seek times on HDD are terrible specially for lots of small files. This has served me well but I may hit my specified size sometime in the near future.

Edited by xokia

  • Community Expert
56 minutes ago, xokia said:

I didn't see anyway to proceed without rebuilding the entire thing.

Mentioned it to you in my previous post.

  • Community Expert
1 hour ago, xokia said:

Can I dynamically change the cache pool size? My cache pools are NVME or SSD. I have a bunch of files I leave in the cache pool because they are lots of small files. Seek times on HDD are terrible specially for lots of small files. This has served me well but I may hit my specified size sometime in the near future.

If you have used btrfs as the file system type for your 'cache' pool then you can easily add more drives to increase the available space.    If it is already redundant (i.e. in RAID1 profile) then you can swap out individual drives one at a time for larger ones. 

  • Author
11 hours ago, Kilrah said:

Mentioned it to you in my previous post.

Your post came after I rebuilt. I didnt wait around for an answer.

  • Author
10 hours ago, itimpi said:

If you have used btrfs as the file system type for your 'cache' pool then you can easily add more drives to increase the available space.    If it is already redundant (i.e. in RAID1 profile) then you can swap out individual drives one at a time for larger ones. 

I am using btrfs for cache pools. I think I read somewhere that was what you wanted for SSD and NVME drives.

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.