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.

Attempting to upgrade cache drive pool

Featured Replies

I am attempting to finish upgrading 2 cache pool drives.  I had dual NVMA M.2 480GB ADATA drives in RAID1 for my cache pool.  I was running out of space and wanted to upgrade them both to 1TB drives.  I started following these directions from the FAQ thread:

 

The first drive seemed to upgrade fine, but every time I attempt to replicate the instructions for upgrading the second drive it gives me errors about a missing disk.  

 

I have attached Diagnostics from the current status which is with 1 drive upgraded to 1TB, and the 2nd drive still being the 480GB.  I am hoping someone can take a look and let me know if it seems to be in the correct state for me to replicate the instructions to replace the second drive.  Once I attempt it I can take additional diagnostics if the operation fails.

 

Thank you!

 

milkyway-diagnostics-20250514-1251.zip

Solved by Rhuarc

  • Community Expert

Post the output from

btrfs fi show

 

  • Author

Thank you for helping out!

 

image.png.5d30a22fb81f41e53b2738c0b4cd3cd1.png

Edited by Rhuarc

  • Community Expert

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 only nvme0n1 device, leave the filesystem set to auto
start the array to import the pool degraded, if it mounts, run a scrub and post the results, since I'm seeing some corruption errors for that pool

  • Author

Is this going to delete the stuff on the pool, or should I be fine?

 

Theoretically both devices should have all of the files from the pool, correct?

 

  • Author

Here are the results of the scrub with only the 480GB drive, no errors found.  Also grabbed an update Diagnostics incase that helps.

 

image.png.c6b94f5ee127117c76e8ae56dcf6d3c6.png

 

Edit:  I did just get this error in the log.  No idea if this applies or is something completely different.

image.thumb.png.0ad7217b3d61601f1866df5ed91928c3.png

milkyway-diagnostics-20250515-0021.zip

Edited by Rhuarc

  • Community Expert
45 minutes ago, Rhuarc said:

No idea if this applies or is something completely different.

That is the docker image, you can recreate it later, for now, stop the array, assign the other pool device to replace the missing device, and start the array, once it's done balancing post new diags.

  • Author

This is what I got when I assigned the 1TB that had been in the pool to the second slot in the pool.

 

It will not let me start the Array with the second (1TB) device in slot 2 of the pool.

image.png.efaaa8d81c2c6f76c7fe80c9b90d583b.png

  • Community Expert

My bad, we have to remove the missing device and reimport the pool, unassign that device, start the array, then type:

 

btrfs dev remove missing /mnt/cache

 

Then stop the array and reimport the pool again, same steps as above, but it should now reimport as a single device pool, then add the other device.

 

 

  • Author

I think I understand, but are you saying basically to stop the array, remove the second device, reimport the pool, then...  actually I'm not exactly sure what I am supposed to do.  I don't want to screw this up.  I apologize for the confusion!

 

I tried just removing the second device and starting the array and it says too many missing or unassigned devices.  I am guessing maybe I have to drop teh number of devices on the pool back down to 1 for now?

Edited by Rhuarc

  • Author

I believe I followed the instructions correctly, and I seemed to get a lot of errors while it was adding the second larger drive.  I have included diagnostics and a screenshot of the cache pool info.  I think it is running the balance now, but I am concerned with all of the errors that I saw when it added the second drive.

image.thumb.png.164ada5f864672e3cd9d5e743ffab36a.png

 

Edit: These errors continue to show up in the logs as it runs the balancing operation I think.  The number of write errors under pool device stats continues to go up as well.

image.thumb.png.b88fef370f219ddd30d250afd391f49e.png

milkyway-diagnostics-20250515-0206.zip

Edited by Rhuarc

  • Community Expert

The new NVMe device dropped offline, is this a new device?

 

May 15 02:01:35 MILKYWAY kernel: nvme nvme1: Device not ready; aborting reset, CSTS=0x1
May 15 02:01:35 MILKYWAY kernel: nvme nvme1: Abort status: 0x371
### [PREVIOUS LINE REPEATED 2 TIMES] ###
May 15 02:03:43 MILKYWAY kernel: nvme nvme1: Device not ready; aborting reset, CSTS=0x1
May 15 02:03:43 MILKYWAY kernel: nvme nvme1: Disabling device after reset failure: -19

 

You can reboot and try again.

  • Author

I had gotten 2 new NVME drives, I thought maybe this drive was bad so I am trying the other one, but now I am having trouble re doing the steps to get it to import the original 480GB as a single cache.  This is what I have now,  then I am trying to run the command.

image.png.fb3e70017c892cf5a61e7963569844c0.png

 

This is what I get now trying to run the command you gave me.

image.png.4ff7c25ade61a2a83201ba6f63d47249.png

 

Edit: Latest Diagnostics attached

milkyway-diagnostics-20250515-0337.zip

Edited by Rhuarc

  • Community Expert

Diags are missing some data, post the output from

 

btrfs fi usage -T /mnt/cache

 

  • Author

This is with the 1 drive showing as missing.

Thank you for all of your help!

 

image.png.5e6fe9dcfd15e0410cc5813ed3bd75ee.png

  • Community Expert

With the array still running type:

 

btrfs balance start -dconvert=single,soft -mconvert=single /mnt/cache

 

When that's done, you can remove the missing device with 

 

btrfs dev remove missing /mnt/cache

 

And then reimport the pool again.

  • Author

Putting in the first command this is what it says, and this showed up in the logs.  Do I want to force it by adding something?

 

image.thumb.png.56fa13dfcdf74b0400bf6f0ab889e45a.png

  • Community Expert
11 hours ago, Rhuarc said:

Do I want to force it by adding something?

Yes, forgot about that, use:

 

btrfs balance start -f -dconvert=single,soft -mconvert=single /mnt/cache

 

  • Author

Ok, that worked!  So here is the current state.  The array is started and only the one cache drive is showing up.

image.png.37c1d7f96f6c4ffdd1b1243e571b5eea.png

 

Do I now go through the original process of adding the new drive and letting it go through the balance process and then hopefully adding in the second new drive to replace the current one?

 

Edit: Added a current diagnostics.

milkyway-diagnostics-20250516-0017.zip

Edited by Rhuarc

  • Community Expert
1 hour ago, Rhuarc said:

Do I now go through the original process of adding the new drive and letting it go through the balance process and then hopefully adding in the second new drive to replace the current one?

Correct.

  • Author

I did this and seem to be getting a lot of write errors in the logs.  It looks like the btrfs process is running on the UI, but tons of errors are going through the logs.  The drive is a brand new drive so I highly doubt it is an issue with the new one.  Although last time I tried this the btrfs process did not really run, so maybe this is what is supposed to happen?

milkyway-diagnostics-20250516-0137.zip

Edited by Rhuarc

  • Author

The process finished, the stop button is now available.  There were a ton of errors in the logs.  Any way to confirm that the cache pool is correct now and I can start replacing the second drive?

 

Edit:  This is what is currently showing on the cache pool status.

image.thumb.png.4679d3ca5be3b2fa8c25d32ae14e8531.png

milkyway-diagnostics-20250516-0211.zip

Edited by Rhuarc

  • Community Expert

Problems again with the new NVMe device:

 

May 16 01:32:52 MILKYWAY kernel: nvme nvme0: Device not ready; aborting reset, CSTS=0x1
May 16 01:32:52 MILKYWAY kernel: nvme nvme0: Abort status: 0x371
### [PREVIOUS LINE REPEATED 2 TIMES] ###
May 16 01:35:00 MILKYWAY kernel: nvme nvme0: Device not ready; aborting reset, CSTS=0x1
May 16 01:35:00 MILKYWAY kernel: nvme nvme0: Disabling device after reset failure: -19

 

  • Author
  • Solution

Is this an error that I will need to keep trying to reimport the new drive, or will restarting the server potentially fix it?  I do have a second new drive that I can install, but I am guessing that I will have to do this whole process all over again with the other new drive?

  • Community Expert
7 minutes ago, Rhuarc said:

I do have a second new drive that I can install, but I am guessing that I will have to do this whole process all over again with the other new drive?

Most likely, but reboot and post new diags first.

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.