brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: change the RAID profile of a Unraid BTRFS pool with Balance

Unraid
~/tips/tip-unraid-pool-change-raid-profile

cat ~/tips/tip-unraid-pool-change-raid-profile.md

Switches a BTRFS pool between Single, RAID 1 and other profiles from the Main tab while the array runs.

A pool does not have to stay in the profile it started with. Say you built a two-drive pool for speed and now want a mirror, or you pulled a drive and need the leftover one back on a plain profile. Unraid does this from the web UI.

Start the array in normal mode, then open the Main tab and click the name of the pool. Scroll to Balance Status. It shows the current RAID level for data and metadata.

  • Pick the new profile in the drop-down.
  • Click Balance to start the conversion.

The docs list Single, RAID 0, RAID 1, RAID 10, RAID 5 and RAID 6 for BTRFS pools. RAID 1 is the Unraid default and the one the docs suggest for Docker and VM storage. RAID 5 and 6 are marked experimental on BTRFS, so keep those away from data you care about. The docs also say the array does not need to be stopped and no data is lost.

One use I find handy: the docs say you cannot remove a device from a two-device RAID 1 pool in the GUI until the pool is switched to the Single profile, so this is the first step of that job.

Caveat: a balance can take hours or even days, depending on how much data is in the pool and how fast the drives are. If it seems stuck, the docs suggest checking the log for btrfs entries, clicking Cancel Balance, restarting the array and trying again. Keep 10 to 15 percent of the pool free while it runs.

Further reading: Unraid docs: Cache pools

Going deeper: Guide: your Unraid cache is full and Docker stopped, how to find out why and fix it

More Unraid tips Replace a disk in a redundant Unraid pool from the Main tab Test every Unraid drive with the DiskSpeed container See the XML behind a VM with the inline XML view in Unraid 7 Choose where a new VM's disk image is created with Unraid's storage override grep -i "Memory cgroup out of memory" /var/log/syslog All Unraid tips (77) All topics

Link