View Single Post
  #8   (View Single Post)  
Old 1st April 2009
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

Code:
# fdisk -B /dev/adX
Where adX is replaced with the correct device name for your harddrive. That will install the boot code into sector 0 of that harddrive. You want to do that for all the other drives in your mirror set (the primary drive already has it, obviously). That will enable the other drives to be used as boot drives.

Since the device names will be different, you will need to either:
* create a /boot.config file with the correct settings, or
* manually enter the correct settings at the boot: prompt when it fails

/boot.config is used/read before /boot/loader is run. It's part of the boot loader.

See the man page for all the details.

You want to create this on the mirror. Then if a drive dies, you can just edit it to point to the other drive, and it should survive a reboot. Worked on my home machine with a three-drive gmirror setup, before I moved over to using a USB flash drive to boot from.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote