migrating to RAID with kernel 2.6

From: Jack Wasey (news_at_jackwasey.com)
Date: 03/31/04


Date: Wed, 31 Mar 2004 01:13:21 +0300

I must have read 150 howtos,faqs,docs and postings, but I really have
made no progress. Please help me boot my system directly into RAID. I'd
really appreciate any help.

The system is a Debian box, running kernel 2.6.4. I'm trying to convert
the two IDE hard disks to run as a mirrored RAID1 array, attached to the
onboard PROMISE fasttrak controller. Despite the PROMISE controller,
this is effectively a Software RAID solution, as the kernel just sees
two IDE devices. I want to mirror all the partitions, although I'd be
happy to let /boot be separate if necessary.

  On boot, I get the following error:

  md: Autodetecting RAID arrays.
  md: autorun ...
  md: ... autorun DONE.
  ...
  ...
  VFS: Cannot open root device "905" or md5
  Please append a correct "root=" boot option
  Kernel panic: VFS: unable to mount root fs on md5

  So, no raid arrays are detected. The partitions have hex code 'fd'
(linux raid autodetect).

  Each partition boot,root,usr and var is mirrored exactly on the other
disk. This is all fine, and under KNOPPIX, I can use mdadm to set up the
arrays, mount them, and everything works as expected. My kernel has
everything appropriate compiled in: md, raid1, ext2, ext3 and so on, and
I boot it directly, not via initrd.

  An excerpt from my lilo.conf is at the moment (although I've made many
changes):
  lba32
  boot=/dev/md2
  raid-extra-boot=/dev/hde,/dev/hdg
  root=/dev/md5

  lilo runs successfully, but evidently, the raid device isn't available
at boot time on device major number 9. I didn't assign md0 or md1: is
this the problem? I matched the mdx numbers to the original partition
numbers.

  Please can anyone point me in the right direction?

  Many thanks,
  Jack



Relevant Pages

  • [SLE] GRUB/RAID/Root Partition problem
    ... I am running SuSE 9.1 on a dual boot system with XP Home. ... /dev/hda7 35.1GB Linux RAID ... Last night after moving the computer's location, SuSE locked up on load. ... I have around 100GB of data on the RAID partitions that I ...
    (SuSE)
  • RAID 1 error question - boot problem.
    ... Two drives, two partitions each drive which one is a mirror. ... The system wouldn't restart on the reboot and came up with an error after creating the raid arrays and then saying that it cannot find /dev/md0. ... Using an Ubuntu disk the system was booted into a live system and using gparted the partitions were shown to be as above with as I see it, ...
    (Fedora)
  • Re: Problems with software RAID on SATA
    ... Connected to this are two 320GB drives ... >>which I want to turn into a RAID1 array. ... >>I'm almost certain it's a problem with initting the RAID arrays at boot. ...
    (Debian-User)
  • Re: [opensuse] RE: Creating a Mirror (RAID) Partition for root + boot drive
    ... single volume from many partitions from many physical disks. ... What I have not been able to do is create a RAID redundancy of the ... however when I boot the PC from HDD after Install the PC ... boot-loader or I have stuffed up the Mirror ...
    (SuSE)
  • Re: Transitioning to 64bit, is it worth it, and how
    ... large LVM on raid 1 partition for the rest. ... So in the installer I deleted the /boot and swap partitions and recreated them. ... as soon as I tried rebooting this new system the BIOS told me it couldn't find a boot disk. ... After much frustration I decided to just try installing the new system without raid on root and boot partitions. ...
    (Debian-User)