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.

Btrfs pool: Replacing 2x500GB mechanical drives with 2x250GB SSD

Featured Replies

What's the easiest way to do this?

 

Want to replace the two 500GB mechanical drives in my cache pool with 2x250GB SSD. There are no other drives in the pool and utilization is about 100GB

 

Not really sure how integrated the UI is with the btrfs commands (for instance will a device delete command be issued if I remove a drive in the UI and shrink number of disks in pool by 1? Haven't been able to find much info on this here, but perhaps I am looking in the wrong places..

 

I'm thinking that instead of using UI or by commands going through expanding pool, replacing and rebalancing, it might just be easier to copy all of the pool data on to the array, remove the old pool and create a new one - and then copy pool data back (and re-mark pool based shares as cache-only)

 

?

 

Cheers,

 

T

  • Community Expert

You have two options, follow the cache replace procedure or let Unraid rebuild mirror, if you opt for the second option:

 

  • Power down server and disconnect one of the cache disks (you can’t just unassign the disk because trying to start array with one unassigned but connected cache disk will make cache appear as unmountable)
     
  • Start server, assign one of the SSDs as second cache, start array, Unraid will automatically rebuild mirror, you can watch progress on cache web page (balance info)
     
  • When balance completes repeat process to replace other disk

 

This worked for me but always good to have a cache backup, may also be a good idea to run a scrub before and after.

 

  • Author

Thank you for replying.

 

Looking the procedure you linked to, it seems to apply to single-drive cache scenarios - the article was also last updated (2013) before btrfs pool cache was introduced.

 

So looks like option 2 is the one that would work for me.

 

Bonus question: If I wanted to use only one drive for cache, how would I then go about shrinking the pool to only one disk?

  • Community Expert

Looking the procedure you linked to, it seems to apply to single-drive cache scenarios - the article was also last updated (2013) before btrfs pool cache was introduced.

 

It should work the same way for a cache pool, after coping data just disconnect old cache disks, connect new ones and create new pool.

 

 

Bonus question: If I wanted to use only one drive for cache, how would I then go about shrinking the pool to only one disk?

 

Shutdown server, disconnect one of the cache disks, start server, start array.

  • Author

Thanks - I succesfully made the swap today and everything is running fine.

 

I love this forum  :)

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.