XFS mirror rebuild
-
22.05-RELEASE (amd64)
I had one drive of a new 2 drive ZFS mirror suffer early death. The identical replacement has been installed and the appliance is running all be it in a DEGRADED state.
Is there some method to rebuild the array and remain on-line?
Ted
-
You need to use zpool replace but I don't think we have a specific doc for that yet.
For example: https://farrokhi.net/posts/2020/05/replacing-a-faulty-disk-in-zfs/
Steve
-
@stephenw10 That's the answer.
Thanks
Ted -
No problem. Let us know if you have any issues getting that replaced. It's not something many people have attempted. It would be good to know if that guide is sufficient or if more details are required etc.
Steve
-
@stephenw10 The above procedure did the job.
It would have been just as quick to backup config, re-install and restore config.
In a high availability environment with hot-swap drives, the procedure would be a great solution to avoid any downtime.
Thanks for the info.
Ted