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.

Shrink Cache Pool

Featured Replies

Hello there Unraid community.

Unraid 6.2.4

 

I have a SSD Cache currently made of 3 disks

(sdm) 480GB SSD
(sdo) 240 GB SSD
(sdj) 240 GB SSD


I am currently using 22.0GB with 458GB Free.

 

I would like to remove the 480GB SSD to use for something else. Albeit I have been using Unraid for almost a year some of the procedures are still a little difficult to grasp. It's currently using a BTRFS file system. Any help would be much appreciated. I did think about removing the biggest disk and letting it rebuild, however I don't want to put something else in its place, I just want to shrink the cache pool.

 

Thanks in advance.

  • Author

Hi Johnnie

 

Thank you for the quick reply. Just to let you know I tried this and it worked :)

 

I thought if someone else happened to stumble upon this I might share my experience.

 

So basically the advice above says I need to run this

'btrfs device remove /dev/sdm1 /mnt/cache'

 

To validate which drive to pick you can run the below to show the cache pool file systemB

root@Tower:~# btrfs filesystem show
Label: none  uuid: 41f91f58-0b73-48aa-b3c7-a65acdb13903
        Total devices 3 FS bytes used 20.40GiB
        devid    1 size 447.13GiB used 203.03GiB path /dev/sdm1
        devid    2 size 223.57GiB used 102.00GiB path /dev/sdo1
        devid    3 size 223.57GiB used 100.03GiB path /dev/sdj1

Label: none  uuid: 3fa3efba-3568-4155-b514-198edbd4cb23
        Total devices 1 FS bytes used 1.32GiB
        devid    1 size 10.00GiB used 4.02GiB path /dev/loop0

 

You can then identify the drive and the partition. It probably took me about 30-35 minutes for the drive to become empty after running the command. I opened a second SSH and ran the above command a few times to keep a track of progress. 

 

I've attached a little photo to help explain it too, in the end I ended up adding 2 more drives. 

Unraid_CachePool.thumb.png.6ed12e5f9e8fb35b6e6c9b68b83a5028.png

 

 

 

 

 

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.