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 a Disk from Cache Pool

Featured Replies

Hi All,


I am new to unRAID, but love it so far! I have been setting up my personal server for the last few days and have it setup almost completely.

 

Assuming that cache disks work in the same way the arrays do, I added an old 60GB SSD (Cache2) to the existing Cache (128GB SSD).


Only then, did I notice that they were being pooled...

 

They appear as a 94GB BTRFS pool (which is less than it was with one drive).

59a8db6e2c421_CacheDrives.thumb.png.5650158d8d618f39d28930942150d94e.png

 

This was a terrible decision on my part as this drive is much less responsive (it is old) and now I have less cache and a slower drive.

 

I would like to go back to the way it was, but I know it is not simple as that. I really don't want to damage anything, so please advise how I can remove the 60GB drive from the pool without messing up anything.

 

On a related note, I do not have a parity setup yet (I was going to do that at the end after I added all of the disks). Please let me know if this can cause an issue when I remove the second Cache drive...

 

Thank you!

- lankanmon

Edited by lankanmon

Do the comments and links further down in this thread here help?

 

 

  • Author
15 hours ago, johnnie.black said:

 

Thanks, I'll give this a try.

As I've said, I have not setup a parity drive yet. Will this be an issue when following the instructions?

Please advise!

Thank you!

  • Community Expert
4 minutes ago, lankanmon said:

I have not setup a parity drive yet. Will this be an issue when following the instructions?

 

 

Nope.

  • Author
3 minutes ago, johnnie.black said:

 

 

Nope.

Great! I'll do this right now and let you know how it turns out. I assume I need to do all the steps since I only have two drives on RAID1.

 

Thank you!

  • Author
4 hours ago, johnnie.black said:

 

 

Nope.

Just a quick question:

In the instructions, it specifies to ensure the drive is correctly selected (ex. /dev/sdX1).

 

Now in the GUI, my drives are shown as only: 

Cache       (sdb)
Cache 2    (sdc)

 

So where do I find the partition number (if there is any)?

or do I just put:

/dev/sdb and /dev/ sdc

or

/dev/ sdb1 and /dev/ sdc1

 

edit: Also, I ran the command: 

 

Quote

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

and it appears to have done nothing...

 

By that, I mean it ran, but when I check the status with:

Quote

watch btrfs balance status /mnt/cache

It shows:

Quote

Every 2.0s: btrfs balance status /mnt/cache

sh: 1: btrfs: not found
 

 

BTW: I also ran: ~# btrfs filesystem df /mnt/cache

Quote

Data, RAID1: total=52.00GiB, used=50.35GiB
Data, single: total=9.00GiB, used=8.64GiB
System, single: total=32.00MiB, used=16.00KiB
Metadata, single: total=1.00GiB, used=388.48MiB
GlobalReserve, single: total=58.69MiB, used=0.00B

 

and they are not all "single" as you said to check for...

 

Any ideas? Maybe does the array need to be stopped?

 

Thanks!

Edited by lankanmon
Added Update...

  • Author
20 hours ago, johnnie.black said:

 

So in addition to what I said above, I also ran the:

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

without the --bg flag to see if I can determine why it is not running and I got:

~# btrfs balance start -f -dconvert=single -mconvert=single /mnt/cache                                                                                   
ERROR: error during balancing '/mnt/cache': Operation now in progress

I am not sure how to deal with it though...

What do you think?

  • Community Expert
3 hours ago, lankanmon said:

I am not sure how to deal with it though...

What do you think?

 

Post the output of

btrfs balance status /mnt/cache

 

and

 

btrfs filesystem df /mnt/cache 

 

 

  • Author
9 hours ago, johnnie.black said:

 

Post the output of


btrfs balance status /mnt/cache
 

 

~# btrfs balance status /mnt/cache
No balance found on '/mnt/cache'

 

9 hours ago, johnnie.black said:

and

 


btrfs filesystem df /mnt/cache 

 

 

 

~# btrfs filesystem df /mnt/cache
Data, RAID1: total=55.90GiB, used=54.07GiB
Data, single: total=4.00GiB, used=3.75GiB
System, single: total=4.00MiB, used=16.00KiB
Metadata, single: total=1.00GiB, used=391.31MiB
GlobalReserve, single: total=59.16MiB, used=0.00B

 

  • Community Expert

If you haven't yet backup any important data on the cache pool, reboot and run the balance again.

  • Author
2 minutes ago, johnnie.black said:

If you haven't yet backup any important data on the cache pool, reboot and run the balance again.

 

I've been using CA Backup / Restore Appdata to backup daily, but I will run it once more and do a reboot to see if that helps.

 

Thanks!

  • Author
On 02/09/2017 at 0:46 PM, johnnie.black said:

If you haven't yet backup any important data on the cache pool, reboot and run the balance again.

Yes, this helped. I don't know why, but after restarting, the commands worked. I followed all fo the steps as you outlined and it worked!

 

Thank you!

  • lankanmon changed the title to (Solved) Removing a Disk from Cache Pool

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.