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.

[SOLVED] Removing 1 Cache drive from a 2 drive Mirror

Featured Replies

I have been going through forum links but they are all dated from a few years ago and the guides are not working.

 

I am trying to remove 1 cache drive from a 2 drive cache pool. when i stop the array, remove the drive, it wont let me start it back up with 1 drive.

  • Author

Somehow its now a raid 0, i guess i just need to clear all cache drives and re-add a single one.

 

Whats the best process for this? I already have appdata backed up, but whats the best practice for the system folder? change cache form prefer to no?

  • Community Expert

If you have the space you can convert back to raid1 and then remove a device, both procedures are in the FAQ pinned on this sub-forum.

  • Author
14 hours ago, JorgeB said:

If you have the space you can convert back to raid1 and then remove a device, both procedures are in the FAQ pinned on this sub-forum.

My system is doing some strange stuff. my cache array is now showing 250gb instead of 500gb. I tried to convert to raid 1, but its doing nothing. I trying a full balance now, then will try to convert to raid 1.

 

I tried following the guide before and when I removed the cache drive, it would not let me start the array since there was not a 2nd cache disk assigned.

 

My cache is showing as:
Data, DUP: total=165.00GiB, used=164.59GiB

System, DUP: total=32.00MiB, used=48.00KiB

Metadata, DUP: total=1.00GiB, used=615.00MiB

GlobalReserve, single: total=224.03MiB, used=0.00B

 

Edited by Spikerman

  • Author

Looks like i'm getting a error trying to convertbalance: invalid convert data profile raid1

 

mover wont run as well.

 

attached is my diagnostic logtower-diagnostics-20201211-1445.zip

Edited by Spikerman

  • Community Expert

Cache is currently a single device, so it can't be converted to raid1:

 

             Data      Metadata  System              
Id Path      DUP       DUP       DUP      Unallocated
-- --------- --------- --------- -------- -----------
 1 /dev/sdb1 328.00GiB   2.00GiB 64.00MiB   135.70GiB
-- --------- --------- --------- -------- -----------
   Total     164.00GiB   1.00GiB 32.00MiB   135.70GiB
   Used      163.59GiB 616.27MiB 48.00KiB     

For some reason you are using the DUP profile for data, convert to single.

  • Author

When I try to convert to single mode, I get this error in console:

Quote

Dec 12 07:26:14 Tower ool www[23487]: /usr/local/emhttp/plugins/dynamix/scripts/btrfs_balance 'start' '/mnt/cache' '-dconvert=single -mconvert=raid1'

Dec 12 07:26:14 Tower kernel: BTRFS error (device sdb1): balance: invalid convert metadata profile raid1

 

Edited by Spikerman

  • Community Expert

You cannot have the -—mconvert=raid1 option with only a single device in the pool

  • Author

@itimpiit shows two devices in pool

image.thumb.png.b52e1c046d5d27438dd8323255ee8dfc.png

and when I go to convert here, it pipes out that error when trying to setup a single

image.thumb.png.f0aff9fb4f439fdbe9b8f1680a186732.png

  • Author

bump

  • Community Expert
17 hours ago, Spikerman said:

it shows two devices in pool

But that's not correct, like I mentioned above

On 12/12/2020 at 9:24 AM, JorgeB said:

Cache is currently a single device, so it can't be converted to raid1:

You can balance to single and remove the other device.

  • Author

@JorgeB how do I balance it to single then? Is there a command I need to use directly in terminal?

  • Author

bump

  • Community Expert
btrfs balance start -dconvert=single /mnt/cache

 

  • Author

ran the command and now cache is showing as

Quote

 

Data, single: total=164.00GiB, used=163.59GiB

System, DUP: total=32.00MiB, used=48.00KiB

Metadata, DUP: total=2.00GiB, used=617.25MiB

GlobalReserve, single: total=226.34MiB, used=0.00B

 

I am following your faq post @JorgeB on the process.

Quote

 

Procedure:

 

stop the array

unassign pool disk to remove

it's OK to reorder remaining pool members if you want (but see point below), i.e., you had a three device pool and removed cache2, you can assign cache3 to slot2 before starting the array (you can also do it later)

while it's OK to reorder members it's currently not OK to change the number of cache slots at the same time you remove a device, you can do that after the pool is balance down, i.e., just don't do both things at the same time.

start the array

a balance and/or a device delete will begin depending on the profile used and number of pool members remaining, wait for cache activity to stop, the stop array button will be inhibited during the operation, this can take some time depending on how much data is on the pool and how fast your devices are.

when the cache activity stops or the stop array button is available the replacement is done.

 

I'm trying to remove the 2nd cache drive, but when I set it as unassigned I cannot start the array to perform the balance down.

  • Community Expert

Cache2 is already not part of the pool, despite what the GUI shows, you just need to stop the array, unassign cache2, need to click the check box to allow array start and start the array, no balance will be needed.

  • Author

@JorgeB got it, thanks! I totally missed the checkbox, it needs to be bigger! haha

  • JorgeB changed the title to [SOLVED] Removing 1 Cache drive from a 2 drive Mirror

Archived

This topic is now archived and is closed to further replies.

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.