Table of Contents
Error replace hard disk in zpool in TrueNAS
Got following error when trying to replace hard disk in zpool. Reboot is required.
middlewared.service_exception.CallError: [EFAULT] Partition type 6a898cc3-1dd2-11b2-99a6-080020736631 not found on sda
Partition exists
First issue with the partition which exists in the old hard disk. Use fdisk to remove all partitions. But still could not replace.
Use force option
Then click on force check box, the replacing was started, but stopped at 15%. Tried many times, but still failed. Search google, people got same issue, but they said sudden worked.
Run partprob
Run partprob, error shows the kernel didn't know the new partition table, reboot is required.
Check partition after reboot
After reboot, checked partition table, found TrueNAS had updated partition as others, which has one 2GB swap. Then force replace hard disk in pool again, then worked
Conclution
This is TrueNAS bug, which didn't close devices in kernel before repartition hard disk, this caused partition is opened and could not reread the new partition table into kernel.
Solution
Reboot
References
Cant create Pool on TrueNAS Scale (it does work on TrueNAS Core under same Hardware)
Cant create Pool on TrueNas Scale