0

I've installed Ubuntu 12.04.1 in a new server and set up the 4 hard drives with 3 RAID 1 devices, the configuration is such that the first two drives have md0 (swap space) and md1 (/) with the third and fourth drives having md2 (/var).

I've been testing the operation under a drive failure and found that the system boots fine if I remove disk two but if I remove disk one then the system gets to grub and then just restarts. I'm confused as to why grub appears to be loading properly from disk two but then the boot fails.

1 Answers1

1

It is normal behavior, when you install grub on the second disk, when the first disk is present too. In case if the first disk is removed, the second disk became as the first, but in the grub config it has to find other boot files on the second drive, which have not this files.

You have to copy MBR from first disk to the second:

dd if=/dev/sda of=/dev/sdb bs=512 count=1

MBR of the first and second disk has to be identical...

Jan Marek
  • 2,120
  • 1
  • 13
  • 14