I have installed FreeBSD 9 on a HP Microserver. The system has 4 bays which I'll use for data disk and i have moved an operating system disk into the optical bay from which I am booting.
The layout of the disk is that the 4 bays are ada0 to ada3 and the optical drive bay is ada4. I can't change this as this is a BIOS assignment. I can chose to boot from the optical drive bay via the BIOS.
So everything boots and works except if I change the configuration of the 4 drive bays, eg take out one disk:
If i take out one disk ada4 becomes ada3 so what happens the BSD Boot Loader still boots but it than can't find the root file system because it assumes it's on /dev/ada4p2 (p1 is boot loader) but it's now on /dev/ada3p2.
Is there a way that I can tell the boot loader to boot from partition 2 instead of the full path so it wouldn't matter what disk naming the boot disk has?
Any other way I could solve this problem?
NOTE: Of course I won't constantly swapping disk but i am worried in an event that one disk fails the last thing I need is dealing with a system that won't boot anymore because the boot partition has move to /dev/ada?
Thanks for any advise!
The layout of the disk is that the 4 bays are ada0 to ada3 and the optical drive bay is ada4. I can't change this as this is a BIOS assignment. I can chose to boot from the optical drive bay via the BIOS.
So everything boots and works except if I change the configuration of the 4 drive bays, eg take out one disk:
If i take out one disk ada4 becomes ada3 so what happens the BSD Boot Loader still boots but it than can't find the root file system because it assumes it's on /dev/ada4p2 (p1 is boot loader) but it's now on /dev/ada3p2.
Is there a way that I can tell the boot loader to boot from partition 2 instead of the full path so it wouldn't matter what disk naming the boot disk has?
Any other way I could solve this problem?
NOTE: Of course I won't constantly swapping disk but i am worried in an event that one disk fails the last thing I need is dealing with a system that won't boot anymore because the boot partition has move to /dev/ada?
Thanks for any advise!