ronmcmxci Posted June 14, 2023 Share Posted June 14, 2023 (edited) Hi all, I need to replace a disk in a pool and was reading the docs: https://docs.unraid.net/unraid-os/manual/storage-management#replace-a-disk-in-a-pool In summary: Stop the array. 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. If presented with an option to Format the device, click the checkbox and button to do so. Full stop I may be misinterpreting this but it reads like this is to be done while the Unraid server is running. Is this required or can I do the drive swap while the server is powered off? Some drives are inaccessible while the server is running. For example: Stop the array. Disable auto-start Shut down Unraid 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). Start Unraid Open 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. If presented with an option to Format the device, click the checkbox and button to do so. Thanks! Edited June 14, 2023 by ronmcmxci 1 Quote Link to comment
Solution JonathanM Posted June 14, 2023 Solution Share Posted June 14, 2023 39 minutes ago, ronmcmxci said: reads like this is to be done while the Unraid server is running. Definitely not. While some hardware may work, it's not a universal thing. Hotswap has to be supported by the HBA and the drive cage, so it's safer to power down when unplugging and plugging drives. The only quibble I have with your summary and the original is the last step, I'm not sure why it's there to be honest. Formatting would erase the pool, so don't do that unless you don't need the data on it. @JorgeB, could you check that to see if I misread something? Quote Link to comment
ronmcmxci Posted June 14, 2023 Author Share Posted June 14, 2023 Okay that makes much more sense. Just to confirm, I can leave the data on the pool? Quote Link to comment
JonathanM Posted June 14, 2023 Share Posted June 14, 2023 I would make a current backup in case something goes wrong, but yes, theoretically it should keep the data. Quote Link to comment
ronmcmxci Posted June 15, 2023 Author Share Posted June 15, 2023 Just to confirm, after assigning the new drive in the pool slot for the old drive I should see this? Cache 4 is the drive I'm replacing. Empty slot after removing old drive: After assigning new drive: Quote Link to comment
JorgeB Posted June 15, 2023 Share Posted June 15, 2023 Assuming that's a redundant btrfs pool you can proceed. 1 Quote Link to comment
JasonK Posted June 15, 2023 Share Posted June 15, 2023 i just upgraded my cache pool from 2x256gb ssds to 2x512gb ssds Here's what I did: 1) shut down array 2) pull 1 256gb drive 3) replace with 512gb drive 4) start array 5) unraid detects missing pool disk. assign new 512gb in its slot 6) start array 7) unraid rebuilds 512gb drive with data from other 256gb drive in pool once rebuild is done, shut down server repeat 1-7 for the other drive no issues, no muss, no fuss. sure it took a bit longer than some other methods, but i didn't need to mess with anything and it "just works" 1 Quote Link to comment
ronmcmxci Posted June 15, 2023 Author Share Posted June 15, 2023 I'm all set here. Easy with no problems. Thanks all 1 Quote Link to comment
SuperDodge Posted August 18, 2023 Share Posted August 18, 2023 How do I know when the rebuild is done and it's safe to replace the next drive?How do I know when the rebuild is done and it's safe to replace the next drive? Quote Link to comment
JorgeB Posted August 18, 2023 Share Posted August 18, 2023 When the pool activity stops, you can also check the syslog. Quote Link to comment
Recommended Posts
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.