[Mod: Split off from a 6 year old thread; Thread freebsd-10-2-install-with-gpt-and-gmirror.55400]
wblock@.
I got a machine with degraded disk for healing, so my algorithm is:
Please provide your thoughts on what might be the issue with recreating the mirror.
Hello, is there a handbook page that would explain how to deal with GPT mirroring? All my servers happened to be GPT with mirroring like described in the ateamsystems article.Please provide more information on who provided these instructions. They use the shaky method of mirroring multiple GPT partitions, which works fine, except maybe when recreating the mirror. bsdinstall(8) changes from time to time, and that could be a problem also. Maintaining the process will be up to whoever defined it.
wblock@.
I got a machine with degraded disk for healing, so my algorithm is:
Code:
$ geom disk list # identify the serial number of the broken disk
# shotdown the machine, remove old disk and insert a new one say /dev/da1
# boot in single-user mode
$ gpart backup da0 | grart restore /dev/da1 # restore
$ gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 da1
$ gmirror forget root
$ gmirror forget boot
$ gmirror forget swap
$ gmirror insert boot /dev/da1p1
$ gmirror insert root /dev/da1p2
$ gmirror insert swap /dev/da1p3
$ gmirror status # check the status of the rebuild and reboot