Jon (j_b) wrote,
Jon
j_b

[note to self]


http://lists.debian.org/debian-user/2003/debian-user-200304/msg03966.html

Problem booting software RAID (woody)

* To: debian-user
* Subject: Problem booting software RAID (woody)
* From: Fraser Campbell
* Date: Tue, 22 Apr 2003 22:53:28 -0400

Hi,

I have a minimal woody system up and running and am now trying to convert it
to software raid1. Here is the current partitioning scheme:

/dev/md0 ext3 on /
/dev/md1 ext3 on /usr
/dev/md2 reiserfs on /tmp
/dev/md4 reiserfs on /home
/dev/md5 reiserfs on /var
/dev/md3 swap

The raid arrays are all raid1, made up of identical partitions from /dev/hda
and /dev/hdb. The drives are both 80G Seagate Barracude ATA-IV. What I have
done:

- installed minimal woody system and applied security updates
- changed all partitions to type fd (raid autodetect)
- install raidtools2 and kernel-image-2.4.20-1-686 (from proposed-updates)
- created a /etc/raidtab
- /dev/hdb[1-6] devices are listed first as "raid-disk 0"
- /dev/hda[1-6] devices are listed second as "failed-disk 1"
- formatted the 6 required raid devices
- copied (properly) all data over to raid devices
- chroot into /dev/md0
- modify /etc/fstab in chroot as appropriate
- modified boot and root options in /etc/lilo.conf (within chroot) to
boot=/dev/md0 and root=/dev/md0
- ran lilo

Since the above did not work I also tried just installing lilo in the mbr
(boot=/dev/hda, root=/dev/md0) but without success. I have done similar
conversions in the past with redhat systems (from 6.2 onwards) without any
problems.

When I run lilo I get the following:

Warning: Int 0x13 function 8 and function 0x48 return different
head/sector geometries for BIOS drive 0x80
Warning: Int 0x13 function 8 and function 0x48 return different
head/sector geometries for BIOS drive 0x81
Warning: using BIOS device code 0x81 for RAID boot blocks
Warning: /dev/md0 is not on the first disk
Added Linux *
Added LinuxOLD
The boot record of /dev/md0 has been updated.

I have tried playing with the raid-extra-boot option and also the install-mbr
utility both without success.

Whenever I manage to get lilo actually booting with a raid config the kernel
panics with a message like "cannot mount /dev2/root".

I have read the raid howtos at tldp.org, checked the Debian FAQ and skimmed
through the isntallation manual but I still haven't found the magic bullet to
get this working. Does anyone know of a Debian specific howto? What might I
be missing? Must the raid support be compiled into the kernel statically ...
I don't think so since my initrd does include it?

Thanks for any help.
--


Re: SUCCESS ... Problem booting software RAID (woody)

* To: debian-user
* Subject: Re: SUCCESS ... Problem booting software RAID (woody)
* From: Fraser Campbell
* Date: Wed, 23 Apr 2003 11:59:51 -0400

On April 22, 2003 10:53 pm, Fraser Campbell wrote:

> I have read the raid howtos at tldp.org, checked the Debian FAQ and skimmed
> through the isntallation manual but I still haven't found the magic bullet
> to get this working. Does anyone know of a Debian specific howto? What
> might I be missing? Must the raid support be compiled into the kernel
> statically ... I don't think so since my initrd does include it?

Ok, I finally gave up on using the stock Debian kernel and recompiled my
kernel. The only change I made from the stock Debian config was to make the
raid modles static (not modular). The system now boots into root raid just
fine.

If anyone knows whether it's possible to boot a root raid with the stock
Debian kernel please let me know ... perhaps some initrd tweaks?

Next thing to do is verify that I can boot off both disks, we'll see how that
goes ;-)


...glad someone fell screaming off the cliff I'm approaching already, I do want to do a graceful Acapulco-style dive...
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 2 comments