Recovering a failed GPT disk
- before hot replacing a disk, say
ada5, run
# zpool offline zroot ada5- and check
# zpool status
- Insert a new physical disk
- Copy the partition table to the new disk from a healthy one
- Label all partitions with the commands:
# gpart modify -l LABEL -i1 ada5