glabel + gmirror question

Hi all!
I have a stupid situation (which already issued with me, and I just forget about it and it appears againg:) )
I have a new PC with 2 HDD for working in mirror.
I'm very quick install FreeBSD 9.1 on one of HDD and use GPT scheme and set labels for all partitions on install and after installing system go home.
Now I remember that if I try now make mirror, it just cleans GPT metadata and system not boots, so I think how to solve that problem without reinstalling system (It is not so hard, I just don't want to do this:) )
Is it will work:
  1. Make gmirror with only one (second disk): gmirror label -v gm0 /dev/ada2
  2. Create all needed partitions on mirrors
  3. Edit /etc/fstab for it uses MIRROR for booting
  4. add geom_mirror_load="YES" to /boot/loader.conf
  5. With using pax transfer all contents from DISK1 to MIRROR
  6. reboot
  7. Add DISK1 to mirror
?
 
Thanks wblock@ I'm do that procedure already, and all working!
One more time I'm convince that FreeBSD is a very flexible and power system :)
 
Back
Top