March 12, 20251 yr Hi - I've seen a few posts on this but they all refer to version 6.X, so I just want to check what the recommended process is for version 7.0.0. I have a cache pool with 4 drives (2 x 240 GB and 2 x 500 GB) in it using BTRFS in RAID 1. I have 2 new 1TB drives, and want to replace the 4 existing ones. I can see that I can replace 1 drive at a time in the pool and letting the system rebuild after each replacement using the GUI, and I then end up with the 2 new drives, as well as 2 of the old drives. I'm then not sure exactly how to remove the remaining 2 drives. Do i: Remove 1 of them, balance / let it rebuild, then remove the last? This is in the manual here, as long as metadata is turned on (which I think I have - see screenshot below). Use the CLE methos as described in the manual here, which I'd prefer not to do if I can help it. Thanks in advance! I think I have metadata turned on in RAID 1:
March 13, 20251 yr Community Expert There's an issue with Btrfs raid1 pool removal in 7.0.x, it should be fixed for 7.0.2, but for now, you would need to use the CLI to remove the devices, those linked instructions will work, except the part to reimport the pool, for v7.0 use this instead, this would be to reimport with just the two remaining devices: on main click on the first device for that pool and then "remove pool" back on main, create a new pool with the same name and two slots assign the pool devices, leave the filesystem set to auto start the array to import the pool
March 13, 20251 yr Author Thanks @JorgeB - I'm glad I checked! I'm now away from my server for a few days due to work, so I'll take a look when I'm back and see if I can complete the upgrade. Is there an easy way to completely back up the cache data to the array (not move, but back up)?
March 16, 20251 yr Author On 3/13/2025 at 7:57 AM, JorgeB said: There's an issue with Btrfs raid1 pool removal in 7.0.x, it should be fixed for 7.0.2, but for now, you would need to use the CLI to remove the devices, those linked instructions will work, except the part to reimport the pool, for v7.0 use this instead, this would be to reimport with just the two remaining devices: on main click on the first device for that pool and then "remove pool" back on main, create a new pool with the same name and two slots assign the pool devices, leave the filesystem set to auto start the array to import the pool OK, I'm back at my server and about to start this, but I don't quite understand the instructions above, sorry! To go from the 4 old SSDs currently in the cache to 2 new SSDs and copy all the cache data to the new disks, do I just do the 4 steps above, or do I need to do anything else as well? Thanks.
March 17, 20251 yr Community Expert First you need to replace two of the deices with the new ones, one at a time, then remove the two old devices, again one at a time and using the CLI, finally you need to reimport the pool with the remain two devices, any doubts ask, and post current diags.
March 17, 20251 yr Author 9 hours ago, JorgeB said: First you need to replace two of the deices with the new ones, one at a time, then remove the two old devices, again one at a time and using the CLI, finally you need to reimport the pool with the remain two devices, any doubts ask, and post current diags. OK, thanks - I'll give that a go then. Cheers!
April 3, 20251 yr Author Hi @JorgeB, So I've been away from my server for a few weeks, and now back and ready to proceed, albeit a little nervous! I think I've mapped out all the steps needed, in sequence, using the drive info for my cache as set up in the image below: Steps to Follow (combination of your instructions above and the linked Docs): Turn off Docker & VMs Replace the first disk (sdd / Cache 2) Stop the array. (optional) Physically detach the disk from your system you wish to remove. Attach the replacement disk (must be equal to or larger than the disk being replaced). Refresh the Unraid WebGUI when under the Main tab. Select the pool slot that previously was set to the old disk and assign the new disk to the slot. Start the array. Device replacement will start automatically. Turn off Docker & VMs Replace second disk (sdh / Cache 3) Stop the array. (optional) Physically detach the disk from your system you wish to remove. Attach the replacement disk (must be equal to or larger than the disk being replaced). Refresh the Unraid WebGUI when under the Main tab. Select the pool slot that previously was set to the old disk and assign the new disk to the slot. Start the array. Device replacement will start automatically. Remove unnecessary disk 1 (sdg / Cache) With the array running type on the console: btrfs device remove /dev/sdg1 /mnt/cache Remove unnecessary disk 2 (sdc / Cache 4) With the array running type on the console: btrfs device remove /dev/sdc1 /mnt/cache Turn off Docker & VMs Import the 2 remaining new disks into the pool on main click on the first device for that pool and then "remove pool" back on main, create a new pool with the same name and two slots assign the pool devices, leave the filesystem set to auto start the array to import the pool Hopefully that's right and has everything I need to do...! Many thanks.
April 4, 20251 yr Community Expert Looks OK to me, but you can leave Docker & VMs running during the whole procedure.
April 12, 20251 yr Author Hi @JorgeB, I think I did everything as per the above steps, but after creating the new pool and adding the 2 1TB SSDs, then restarting the array, I get the error that: "Unmountable: unsupported or no file system". I tried swapping the 2 cahce drive into position 1 and 2 to see if that helped, but got the same result. I've attached the syslog here as well. Edited April 13, 20251 yr by PitRejection2359 removed log.
April 12, 20251 yr Community Expert Please post the complete diagnostics and the output from: btrfs fi show
April 12, 20251 yr Author thanks. output and full diagnostics attached tatooine-diagnostics-20250412-1326.zip
April 13, 20251 yr Community Expert Solution Everything looks normal, try rebooting, sometimes it helps, unclear why, and if that doesn't help, try reimporting the pool: on main click on the first device for that pool and then "remove pool" back on main, create a new pool with the same name and number of slots assign the pool devices, leave the filesystem set to auto start the array to import the pool
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.