md: Could not lock hda

Submitted by The Evil Muppet
on July 27, 2004 - 5:59am

Hi everyone!

I'm trying to add a second software RAID device to a system. I've created an image based on Mandrake 10 on a 20 GB hard disc that has the entire drive as a single RAID device (md0) that in turn contains an LVM2 physical volume.

This image boots without problems and works. The problem comes up when cloning the image to another disc. Upon imaging to the disc, things work fine until I attempt to assign the extra space to a second MD device. I can do it but getting the thing to start from the initial ramdisk results in:

md: could not lock hda
md: md_import_device returned -16
md: bug in file drivers/md/md.c line 1502

mkraid runs without a problem and raidstart --all does correctly start the array after boot.

Does anyone have any ideas? I'm running the "vanilla" mandrake kernel, 2.6.3-15mdk.

Thanks all!

Quick hack solution

The Evil Muppet
on
July 27, 2004 - 6:12am

Hi all!

I've found a quick and dirty solution to this - I've just added a raidautostart statement to linuxrc inside my initrd image.

I'd also added the mknod statements I thought would be required, but did that previously as well (when I was hitting a wall).

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.