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.

Remove a drive from a Cache pool

Featured Replies

So I had 2 250Gb SSDs as my main cache. They were in RAID1.

I used this cache as a temp download for SAB. And as much as I download I didn't like all the extra writes to the drive.

I got another 120Gb SSD and want to use it as a scratch disk for mainly downloads, and didn't care for any protection on it.

I tried using Unassigned devices to mount it, but docker and SAB didn't play very nicely.

 

So I just ended up going to the cache tab and adding the 120Gb ssd to the 2 250Gb.

Now it created a pool of 310Gb. but I want to get the drive out. When I remove it, it freaks out.

When I connect to the share, it still says its only 250Gb.

I haven't balanced it the pool or anything.

 

I just want to know how to remove it before I screw it up more and lose the data.

I just want the drive back out of the "pool" and the orginal 2 250 back in RAID1.

  • Community Expert

-if there's important data on the cache pool backup in case something goes wrong.

-stop array

-unassign the SSD you want to remove

-clear it by typing on the console:

 

blkdiscard /dev/sdX

replace X with actual letter.

 

-start the array with the only two remaining cache devices, check that cache pool mounts and on the cache webpage "btrfs filesystem show" total devices are correct and it's not displaying "***some devices missing"

 

  • Author

When I do that is just says "Unmountable" when I start the array back up.

  • Community Expert

It will do that if the SSD was not properly cleared, did you get any error running blkdiscard?

  • Author

You have to wipe the ssd? I backed everything up. But that still scares me.

  • Community Expert

You have to wipe or disconnect the SSD you want to remove, or you'll get unmountable cache pool.

  • 2 weeks later...
  • Author

That still didn't work.

 

I stopped the array. Unassigned the drive. and then physically removed it. (I have hot-swappable bays so its pretty easy.)

started the array back up and it still "Unmountable"

  • Community Expert

That usually happens when the pool is not well balanced, see the FAQ for the complete procedure.

  • Author

I cannot find any documentation on balancing cache pools.

 

I go to the 1 cache drive, on that page it says this.

No balance found on '/mnt/cache'

 

I clicked balance and in the syslog it prints

Oct 29 11:49:48 MediaServer php: /usr/local/emhttp/plugins/dynamix/scripts/btrfs_balance 'start' '/mnt/cache' '-dconvert=raid1 -mconvert=raid1'

 

I don't know if that worked or not, if it's in the process of balancing or what.

Screen_Shot_2016-10-29_at_12_08.41_PM.png.742d04e8d205caf09134dd84b580febd.png

  • Author

Sorry for all the hassle.

 

When I execute the command

root@MediaServer:~# btrfs device remove /dev/sdi /mnt/cache

 

If the array is started I get

ERROR: error removing device '/dev/sdi': Device or resource busy

 

If the array is stopped I get

ERROR: cannot access '/mnt/cache': No such file or directory

Screen_Shot_2016-10-29_at_12_48.19_PM.png.102d26af4d2b08c1ae47a45fa5675fe8.png

  • Community Expert

It's missing the 1:

 

btrfs device remove /dev/sdi1 /mnt/cache
  • Author

Yep just realized that, it worked! Thank You sooo much!

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.