Koozali.org: home of the SME Server

Boot from each of the mirrors

Jochen

Boot from each of the mirrors
« on: October 24, 2003, 09:14:39 AM »
Hi !

We'd like to use SME server as a backup machine on the network. We're using the software RAID-1 option.

We have successfully tested to pull out drives and rebuild the RAID from the primary drive.

What doesn't work, is rebuilding the raid from the second drive because the machine doesn't boot.

Is the MBR only on one drive of the RAID or on both?

Any suggestion how to solve that?

Jochen

mdstat:

cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md2 : active raid1 hda3[0] hdc3[1]
      264960 blocks [2/2] [UU]

md1 : active raid1 hda2[0] hdc2[1]
      116848704 blocks [2/2] [UU]

md0 : active raid1 hda1[0] hdc1[1]
      104320 blocks [2/2] [UU]

unused devices:

Ray Mitchell


Dan Brown

Re: Boot from each of the mirrors
« Reply #2 on: October 24, 2003, 07:42:12 PM »
Take a look at /etc/lilo.conf.  What does the "boot=" line say?  If it's /dev/hda, there's your problem.  It should be /dev/md0.  Change that, and rerun /sbin/lilo.  That should fix it.