Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Jochen on October 24, 2003, 09:14:39 AM

Title: Boot from each of the mirrors
Post by: Jochen 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:
Title: Re: Boot from each of the mirrors
Post by: Ray Mitchell on October 24, 2003, 11:59:13 AM
Have you followed:
http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/raidmonitor/raid-recovery-howto.html
Regs
Ray
Title: Re: Boot from each of the mirrors
Post by: Dan Brown 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.