After falling in love with unraid I wanted to improve my test install with new larger hard drives. I had 100GB of docker related files that I wanted to keep spread across 3 old data drives + 1 parity drive. In the below process I consolidate the 100GB into a single drive, install the new drives and enable drive encryption.
Important: This process temporarily removes parity drive protection, only follow these steps if you’re able to recover from data destruction
Here’s the steps to replace a drive in unraid:
- Shut down the docker service (Settings > Docker) and VM Manager (Settings > VM) and disable auto start (Settings > Disk)
- ssh into unraid (or use the web terminal)
- Manually consolidate any data you wish to keep onto the single disk1 (e.g. cp -rv /mnt/disk2/* /mnt/disk1/). This drive will remain in the server
- Shut down the server and remove the old drives (parity disk, disk2 and disk3)
- Install the 3 new drives (parity, disk2 and disk3) and turn on the server
- Go to Tools > New Config and clear the current disk configuration
- Go to Settings > Disk and set the default filesystem to xfs encrypted
- Go to Main tab and assign the old drive back into disk1 position
- Assign the new parity, disk2 and disk3 drives into desired positions
- Click on disk2 / disk3 and confirm their filesystem type is set to xfs encrypted
- Start the array and enter a new encryption key
- Tick the box to confirm formatting of the two new encrypted data drives, disk2 and disk3
- Wait for format to complete
- ssh back in and confirm old data is still available on /mnt/disk1/
- Now start a fresh parity build which will build up protection on the 3 drives
- Restart docker/vm services under Settings again
If you get any “orphan image” errors in docker you can resolve by following these instructions.
Alternatively you can try the unbalance plugin which provides a nice UI for some of the above process.