February 7Feb 7 Replacing two old cache SSDs in Unraid (what worked for me)Why I did thisMy cache pool was running on two Samsung 850 EVO 500GB SSDs that were close to 10 years old. They were still working, but given their age I wanted to replace them proactively before a failure, while keeping the cache pool and data intact.My setupUnraid 7.2.3Cache pool: Btrfs, RAID1Old drives: 2 × Samsung 850 EVO 500GBNew drives: 2 × Samsung 870 EVO 500GBSATA hot-plug enabled in BIOSI did not shut the server down at any point during this process. All drive swaps were done live.Before starting (important)Before touching any disks, I ran an Appdata Backup using CA Backup/Restore. Nothing went wrong, but having a current backup made the whole process much less stressful.What I expected (and what didn’t work)I expected to be able to hot-swap each old SSD with a new one using Unraid’s Replace function. Instead, when I tried to replace the first drive, Unraid failed with an error like:Wrong Pool State – replacement device too smallEven though both drives were advertised as 500GB, Unraid compares usable size, not marketing size, and the replacement was rejected.What actually worked (important part)This is not a true “replace”. It’s a remove → re-add process.I did this one drive at a time.First driveStop the arrayPhysically remove one old cache SSD (hot-swap, server stayed on)Start the arrayUnraid reports a missing cache pool deviceCheck the box to remove the missing pool diskStop the array againSet Cache Slots = 2Unraid drops this to 1 automatically, which is easy to missAssign the new SSD to the empty cache slotStart the arrayLet Btrfs balance run (it started automatically for me – do not interrupt it)Verify RAID1 with:btrfs filesystem df /mnt/cacheDo not proceed until Data, Metadata, and System all show RAID1.Second driveOnce RAID1 was fully restored, I repeated the exact same steps for the second old SSD.How I verified successAfter each replacement, I ran:btrfs filesystem df /mnt/cacheThe final, correct state for my setup was:Data, RAID1: total=69.00GiB, used=67.36GiB System, RAID1: total=32.00MiB, used=16.00KiB Metadata, RAID1: total=2.00GiB, used=375.28MiB GlobalReserve, single: total=120.09MiB, used=0.00BThe Unraid UI showed “Pool of two devices” with both new SSDs.Key takeawaysSame advertised size does not guarantee a cache replacement will workIf you see “replacement device too small”, remove the old device first, then add the new oneDo not start the second replacement until btrfs filesystem df /mnt/cache shows Data, Metadata, and System as RAID1.Watch the cache Slots setting – it will trip you up if you miss itLet Btrfs balance finish before doing anything elseIf hot-plug is enabled, this can be done without shutting the server downThis was done after I did this so my instructions may not be perfect but hopefully they help...Thanks! Edited February 7Feb 7 by TexasDave Cleaned up formatting
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.