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.

Help! Have I messed up my cache while trying to upgrade the drives?

Featured Replies

In my server I have 2 512gb SSDs, they were running as a cache pool. I was sure it was in RAID1 mode, but TBH I don't know how to check this.
I installed 2 new 1tb NVMe drives, intending to use them as a new cache pool.
(all 4 drives are installed at the same time).
 

After booting Unraid, cache running as before on the SSD drives, 2 new NVMe drives showing unassigned. So far so good.

I proceeded to follow the instructions found here https://forums.unraid.net/topic/46802-faq-for-unraid-v6/#comment-480419

 

 - I stopped the array
 - I changed Cache 2 drive to point to one of the NVMe drives.
 - I started the array

 

No sign of any brtfs device replace beginning or any pool activity.
The cache is offline, it shows as Unmountable: Unsupported or no file system.
The SSD that was removed from the cache shows as unassigned.

Hmm. I tried putting things back to how they were.

 

 - I stopped the array
 - I changed Cache 2 device to the now unassigned SSD.
 - I started the array

 

The cache is still offline, showing as Unmountable: Unsupported or no file system.

Following the instruction here https://forums.unraid.net/topic/141562-cache-unmountable-unsupported-or-no-file-system-after-update/?do=findComment&comment=1280258

 

 - I stopped the array
 - I changed Cache device to no-device
 - I changed Cache 2 device to no-device
 - I started the array (checking the no cache warning checkbox)

 

Array starts without any cache, as expected.

I then restored it:

 

 - I stopped the array
 - I changed Cache device to the SSD it was set to originally
 - I changed Cache 2 device to the SSD it was set to originally
 - I started the array

 

Array starts, cache is still offline, showing as Unmountable: Unsupported or no file system.

 

Please help!

 

At this point I would settle just to have things back to how they were, all my dockers are gone etc. 😢

server-diagnostics-20240925-2007.zip

Solved by JorgeB

  • Author

I have found in my unraid flash drive (a backup taken a while ago) that the pool was indeed raid1, at least according to
config/pools/cache.cfg line 3:

diskFsProfile="raid1"

 

  • Author

Also, in case it helps, i ran btrfs fi show

Quote

 

Label: none  uuid: 8ec33423-8912-41b5-8b37-e1c5d2886455
        Total devices 1 FS bytes used 388.00KiB
        devid    1 size 20.00GiB used 2.02GiB path /dev/loop2

Label: none  uuid: 960caaa5-b39f-4b75-9e59-7a823e8dbd9d
        Total devices 1 FS bytes used 408.00KiB
        devid    1 size 1.00GiB used 126.38MiB path /dev/loop3

warning, device 2 is missing
ERROR: cannot read chunk root
Label: none  uuid: 6ff47540-cf8f-4f92-9574-c652f94a843a
        Total devices 2 FS bytes used 98.39GiB
        devid    3 size 476.94GiB used 111.00GiB path /dev/sdc1
        *** Some devices missing

 



I don't know why it says some devices missing. They're both there as far as I can tell. Argh

 

image.png

  • Author

Reading through this thread, it seems very similar.


I am wary of running the commands listed, they seem quite "deep", and i have only a shallow understanding of the underlying systems here.

It seems I'm not the only one who has fallen foul of following the instructions ☹️

Fortunately, unlike those people I have not rebooted, so the diagnostics posted maybe can be more helpful?

Edited by Proffles

  • Community Expert

type

sfdisk /dev/sdb

then type

2048

and hit enter, post the output of that

  • Author

Ok thanks, here:
image.png.7c4b1e14ced4c273a792b4511f1344b3.png

  • Community Expert

Hit CTRL + C to abort and repeat but with 64:

 

type

sfdisk /dev/sdb

then type

64

and hit enter, post the output of that

  • Author

okiedokie:
image.png.87570ba570f36bd0b82b5501a8e1f93d.png

  • Community Expert
  • Solution

Type N and Enter to keep the signature, then 

write

and enter, now post the output from 

btrfs fi show

 

  • Author

Cheers, this is the output:

 

image.png

  • Community Expert

Restart the array and post new diags.

  • Author

Great! thank you yes now looks like things are back to how they were to begin with. Phew!

But now, I am back to how I was to begin with, with the new cache drives waiting to be used. Do you know why following the instructions on this FAQ page did not work?

Can you suggest a revised procedure to use, as it seems the one listed is somewhat risky for some reason. Thank you for your help! 🙂

image.thumb.png.4f99725fcc201d999674722affe1cfbc.png

server-diagnostics-20240926-1316.zip

  • Community Expert
29 minutes ago, Proffles said:

But now, I am back to how I was to begin with, with the new cache drives waiting to be used. Do you know why following the instructions on this FAQ page did not work?

Can you suggest a revised procedure to use, as it seems the one listed is somewhat risky for some reason. Thank you for your help!

That procedure should work fine as long as you are careful that the pre-conditions are met.    For instance at the moment your pool is NOT fully redundant as it is using the Single profile for metadata and System (although it IS using RAID1 for data).   You need these to all be a redundant profile such as RAID1.

  • Author

Ok, thank you. Evidently I'm not familiar enough with this topic.

Reading your reply and trying to understand it in terms of more familiar filesystems, am i correct in thinking that effectively "partitions" are RAID1 instead of whole drives.
BTRFS uses some partitions to work properly, and thus all partitions need to be set to RAID1 mode.

If this is correct, do you mind helping me understand how to check what partitions there are, what they are currently set to, and how to set them to RAID1 mode?

Thank you!

  • Author

Looking at the details page of one of the cache drives, i can see this balance option

image.png.39f7e75f73fec53dc59117720987dbad.png

If i set the dropdown to "Convert to raid1 mode" and click Balance, will this handle it? for all partitions? What about the other cache drive, how does it know what to do with it?

Thanks!

  • Community Expert
4 minutes ago, Proffles said:

Ok, thank you. Evidently I'm not familiar enough with this topic.

Reading your reply and trying to understand it in terms of more familiar filesystems, am i correct in thinking that effectively "partitions" are RAID1 instead of whole drives.
BTRFS uses some partitions to work properly, and thus all partitions need to be set to RAID1 mode.

If this is correct, do you mind helping me understand how to check what partitions there are, what they are currently set to, and how to set them to RAID1 mode?

Thank you!


it is not the partitions - just the internal machinations of btrfs.

 

If you click on the pool name on the Main tab you can see what profile the pool is set to use (and potentially change it).    You probably at this point judt need to run a balance from their to get everything to RAID1 profile.

 

If there are any queries then @JorgeB is the expert on resolving such issues (ad you have found).

  • Author

Ok thanks. I clicked the button! It now looks like this:

image.png.65e6a082eb3e137a457ebfdab4e8ad0d.png


Can I safely attempt the upgrade again now? What is the GlobalReserve "not partition" bit, does that not need to also be RAID1?

  • Community Expert
1 hour ago, Proffles said:

Can I safely attempt the upgrade again now?

Should be fine now, global reserve profile can be ignored.

  • Author

Thank you both for your help.
I followed the instructions again, and this time it appears to now be working, i can see a lot of writes on the pool and a BTRFS operation is running.

Hopefully it goes smoothly from this point on!

  • Author

Woohoo. All done. thank you

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.