January 25, 20251 yr Hi everyone, I am running Unraid on an HPE ML350 Gen10 and all my drives are hot-swappable. Before Unraid officially supported ZFS, I used to replace the drive by simply unplugging the old drive and replacing it using the command line so my server would not have any downtime. It is crucial for me to NOT have any downtime because of all the services I am running on it and I believe ZFS was designed to avoid downtime. However, since ZFS was supported, I had to stop the array, replace the drive, assign the new drive and start the array to replace a drive. Now I need to upgrade all 8 drives in a cage and this becomes a serious problem. May I know if I can still use the ZFS command to replace the drive without stopping the array? Will this mess up the drive assignment etc.? Thanks
January 26, 20251 yr Community Expert You can do that, assuming you do it correctly, but once you stop the array you will need to reimport the pool to sync it with the GUI.
May 29, 20251 yr Author Solution It's been a while, and this is not addressed properly. Anyway, for anyone who runs into the same issue. You can replace the drive withzpool replace you_tank_name /dev/sd* /dev/sd*After resilvering, stop the array, unassign all drives from the pool, click the pool name, and delete the pool. Then add a new pool and assign all the drives back.
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.