mdadm error - superfluous RAID member



Hi,

I'm trying to re-use an older server, installing squeeze (6.0.5). I'm using software RAID and LVM on the machine (details below). But I must be doing something wrong with the disk set up stage in the installer, as when it boots I see an error flash up quickly:

error: superfluous RAID member (5 found)

It appears that the initramfs then gets loaded, the RAID detection fails and it then looks for the LVM volume group, which it can't find (as the LVM group exists on the RAID device). I see this output:

Loading, please wait...
mdadm: No devices listed in conf file were found.
Volume group "vgbiff" not found
Skipping volume group vgbiff
Unable to find LVM volume vgbiff/lvroot
<same messages appear but for lvswap>
Gave up waiting for root device <snip>
...

It then drops me into the BusyBox shell, with initramfs prompt.

I can then activate the RAID simply by doing

(initramfs) mdadm --assemble --scan
mdadm: /dev/md/0 has been started with 5 drives and 1 spare.

and then activate the volume group, using:

(initramfs) vgchange -a y
2 logical volume(s) in volume group "vgbiff" now active

Exiting the busybox shell then boots the system.

The basic configuration is:
- Xeon (64-bit capable) w/4GB RAM
- PCI SCSI controller
- 6 x 73GB SCSI drives

During install, on each drive I created a 500MB primary partition (with /dev/sda1 being for /boot) and then a second partition for Linux s/w RAID (label set to fd).

In /dev/md0 I then created a LVM partition, and set up the volume group to contain two volumes - one for swap, and one for /. /dev/md0 is comprised of 5 drives running in RAID5, with one hot spare.

During installation, I took pains to wipe all the drives and create all partitions anew.

When booted, I checked /etc/default/mdadm. The values INITRDSTART='all' and AUTOSTART=true are both set. I also set VERBOSE=true to give me more output when creating a new initramfs. I checked the contents of /etc/mdadm/mdadm.conf - which seems fine.

I then issued "update-initramfs -vu", and saw the following:

I: mdadm: using configuration file: /etc/mdadm/mdadm.conf
I: mdadm: will start all available MD arrays from the initial ramdisk.
I: mdadm: use `dpkg-reconfigure --priority=low mdadm` to change this.

and the last output before cpio builds the initial ramdisk is

Calling hook dmsetup

- so, in my limited knowledge, this suggests the drive mapper is incorporated into the initramfs also.

When I take a peek into /boot/grub/grub.cfg I see:

insmod raid
insmod raid5rec
insmod mdraid
insmod lvm

in the 00_header section.


I'm running low on ideas now. Re-installing grub doesn't help. Running "update-grub" simply dumps out many more of those error messages:

error: superfluous RAID member (5 found).
<repeats 17 times>

So it does point to grub being at fault somewhere, rather than the initrd.

Have I missed something blindingly obvious?


Thanks again,
Steve

--
Steve Dowe

Warp Universal Limited
http://warp2.me/sd


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/4FD8539B.9080700@xxxxxxxxxxxxxxxxxxx



Relevant Pages

  • Re: E520 ands BIOS HD Setting
    ... I can't prevent a RAID setup using the two disks independantly? ... made a "Y" adapter cable to run from the older style power plug which is ... disks of different sizes could be used in a raid configuration, but there may be some wasted space as the the size of the smaller size will dictate the maximum usable size of all the drives in the raid. ... You can find drive installation instructions in the manual under 'removing and installing parts'... ...
    (alt.sys.pc-clone.dell)
  • Re: FC5 - Installing new software RAID1 with 2 SATA drives
    ... system with 2 SATA drives. ... raid is the correct way to go. ... I am installing FC5 on new hard ... I reboot and the boot loader ...
    (Fedora)
  • Re: The case against LVM
    ... Each group has their own filesystem, ... I guess your the IT expert and you have REAL Experience to back your support for LVM. ... the cost of high capacity drives were out of my range. ... I added two drives as a second raid 1 device and created an LVM. ...
    (Fedora)
  • Re: How to rebuild while preserving an LVM disk
    ... Separate from my OS disk, I have to SATA drives built into a raid-0 with md, and then an lvm physical volume group built on that. ... If I unplug the raid drives, and rebuild my system, how can I hook them back up? ... I had the installer create a separate /home partition. ...
    (Fedora)
  • Re: Raid 0 Configuration
    ... Using 2-750GB SATA Drives. ... Once you do this, and reboot, you have the option to boot into the RAID Configurations "Shift F10" on this motherboard. ... Wants you get to this configuration, the motherboard no longer sees the CD-ROM (for boot purposes and installing the OS) nor can it see either of the harddrives. ...
    (microsoft.public.windowsxp.configuration_manage)