[Hardy][Regression] dmraid45 target missing in latest kernel

Bug #220493 reported by Crimson_Fox
50
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned
Hardy
Fix Released
Medium
Unassigned

Bug Description

Fakeraid support for raid 5 seems to be missing in the latest kernel; the daily build (as of 4/21/08) of the Hardy liveCD would not work.

I enabled the universe repository and used the following commands after booting the live-cd on my system with built-in Nvidia fakeraid.

apt-get update
apt-get install dmraid
modprobe dm-raid4-5
dmraid -ay

Hardy Beta with Kernel 2.6.24-12: Works!
Hardy RC with Kernel 2.6.24-16: Returns "ERROR: device-mapper target type "raid45" not in kernel"

It would seem that whatever fix made it into 2.6.24-12 was removed/changed on 2.6.24-16.

Related branches

Revision history for this message
jim_24601 (jim-24601) wrote :

I can confirm this--Nvidia fakeraid 5; using the kubuntu x86-64 release install, the dm-raid4-5 module is present and appears to load successfully on modprobe. It reports itself as loaded, but otherwise has no effect. There is no dmesg output, 'dmsetup targets' does not list the raid45 target type, and 'dmraid -ay' fails with the above error. The beta with 2.6.24-12 kernel will happily activate and mount the RAID using the supplied dm-raid4-5.

My plan is to compile a new 2.6.24-16 kernel and dm-raid4-5 module from source and see if that works, but I won't get the chance for another couple of days.

Revision history for this message
benny (bennysan) wrote :

I confirm with Intel ICH9R :

root@ares:~# dmraid -s
/dev/sdb: "jmicron" and "isw" formats discovered (using isw)!
/dev/sda: "jmicron" and "isw" formats discovered (using isw)!
*** Group superset isw_bcjhcdcaee
--> Subset
name : isw_bcjhcdcaee_data
size : 1953536512
stride : 128
type : raid5_la
status : ok
subsets: 0
devs : 3
spares : 0

root@ares:~# lsmod | grep dm_raid
dm_raid4_5 25984 0
dm_mod 62660 2 dm_raid4_5,dm_mirror

root@ares:~# dmraid -ay
/dev/sdb: "jmicron" and "isw" formats discovered (using isw)!
/dev/sda: "jmicron" and "isw" formats discovered (using isw)!
ERROR: device-mapper target type "raid45" not in kernel

root@ares:~# dmesg | tail
[ 1093.896667] device-mapper: table: 253:0: raid45: unknown target type
[ 1093.896673] device-mapper: ioctl: error adding target to table

I will try to compile a new kernel asap.

Revision history for this message
Stefan Bader (smb) wrote :

It look like the module naming went a bit wrong. I put up a ppa for lum at https://launchpad.net/~stefan-bader-canonical/+archive. Could you please test that and give me feedback on the results? Thanks

Revision history for this message
Prince (pkarlos-76) wrote :

Okay by going to the site mentioned by Stefan I was able to test out his fix and get it working. This is what I did;

1. Added the sources listed on https://launchpad.net/~stefan-bader-canonical/+archive to apt
2. Did a apt-get upgrade which upgraded the linux-ubuntu-modules
3. Rebooted once that was complete
4. ctrl-alt f1 to see if any error messages to appear, and the following did ""ERROR: device-mapper target type "raid45" not in kernel"" however it did load my raid array and mount it as my /home and is working.

* Note; I did modify my startup in the previous distro to put a delay in the startup due to lag issues with my drives, however not sure if this carried over for the upgrade to hardy heron. SO Ill have to find the file and check this later to see if its still needed.

Revision history for this message
Crimson_Fox (crimson-fox-) wrote :

I can confirm this works on my NVidia fakeraid. I booted the Hardy live CD and ran:

dpkg -i linux-ubuntu-modules-2.6.24-16-generic_2.6.24-16.23ubuntu4_i386.deb
dmraid -ay

Looks like the module was renamed from dm-raid4-5 to dm-raid45, thanks Stefan!

Prince, the reason you're getting that error is because the module is not being loaded at boot. That's ok as long as you're not booting from the array. If you do want it loaded at boot time you're going to have to modify your initrd:

apt-get install initramfs-tools
echo "dm-raid45" >> /etc/initramfs-tools/modules
update-initramfs -u

You might have to reinstall dmraid as well, not sure.

Revision history for this message
jim_24601 (jim-24601) wrote :

I confirm, the patch fixes the problem. I installed the x86_64 deb, edited the initramfs modules to change the module name, updated the initramfs and rebooted. The new 2.6.24-16 kernel booted off my nvidia fakeraid perfectly happily. Thanks Stefan!

Revision history for this message
Prince (pkarlos-76) wrote :

I can confirm Crimson's solution for bootup also worked.

Revision history for this message
Stefan Bader (smb) wrote :

SRU Justification:

Impact: Regression for users of dmraid.

This is a regression in Hardy which is very simple to fix and otherwise prevents the use of fakeraid disks (limited hardware controllers on motherboards) with RAID level 4 and 5.

Fix description: Device-mapper targets normally follow a certain naming scheme, which enables loading missing target types. The fix will change the Makefile in LUM to build dm-raid45.ko instead of dm-raid4-5.ko.

Patch: [Attached]

Testcase: Activation of dmraid for RAID4 or RAID5 arrays fails with error message "dm-raid45 is not in kernel". Verification of fix has been documentet in the bug report.

Changed in linux:
assignee: nobody → stefan-bader-canonical
importance: Undecided → Medium
milestone: none → ubuntu-8.04.1
status: New → In Progress
status: In Progress → Fix Committed
Revision history for this message
martin lüdeke (martin-xn--ldeke-kva) wrote :

hello, excuse my bad english.
i am new in the linux world and i try to install ubuntu 8.04 hardy.
my computer is a dell precision T3400.
i have 3 harddrives in an raid 5 array.
on one partition is windows xp installed, so i have to start from live cd

i tried all thinks above and i had seen my array with "dmraid -s"
i also made it activ with "dmraid -ay".
than i tried to install, but there were read/write mistakes on harddrives. one harddrive is broken.

now i have a new one.

some days later, today i will try it again, but every think is changed on "https://launchpad.net/~stefan-bader-canonical/+archive"
who can help me?
i don' know how to rename
i need a complete way how to go!
or were can i get a life cd include raid functionality

Revision history for this message
Stefan Bader (smb) wrote :

I am sorry about the PPA. I had some cleanups there and temporarily removed some packages before I rebuild. This should be fixed in a few minutes. Renaming the module alone unfortunately does not help because the name of the modules is also part of the module itself (set on compile time).
I am in the progress of getting the fix into 8.04.1 (which would then also be on the live CD). The only other way is to have a matching module and copy that. I added one for 2.6.24-16 (i386) but this also changes with different kernels.

Revision history for this message
qweadawdq (asdasdasd1q2wqeq) wrote :

So let me see if i understand.

It is impossible to use the LiveCD from Hardy Heron to install it on a computer with Raid5?

I've managed to reach the X in Desktop (break=bottom, noapic noacpi..), and now i found this thread which has the raid45 module. But is it possible to install it from this environment? Or will we need another patched Install CD?

thank you already.
Phk

Revision history for this message
qweadawdq (asdasdasd1q2wqeq) wrote :

sorry, i now understand when you said:

"I am in the progress of getting the fix into 8.04.1 (which would then also be on the live CD). The only other way is to have a matching module and copy that. I added one for 2.6.24-16 (i386) but this also changes with different kernels."

Could you please post an AMD64 version of the module here? :)

thanks

Revision history for this message
martin lüdeke (martin-xn--ldeke-kva) wrote :

thanks @stefan,
but what shall i do with that file on my life session?
please give/show me a way how to operate, thanks.

Revision history for this message
Stefan Bader (smb) wrote :

@Phk, well ok this time. But in the meantime the ppa is rebuild. But I admit this requires a bit more bandwidth.

@martin, did you try Crimson_Fox's approach?
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/220493/comments/5?

Revision history for this message
martin lüdeke (martin-xn--ldeke-kva) wrote :

@ stefan, "https://bugs.launchpad.net/ubuntu/+source/linux/+bug/220493/comments/5"
that doesn't work, but i think i found a way. i will try it tomorrow if possible. if it works, i will send a message and the way.

Revision history for this message
Crimson_Fox (crimson-fox-) wrote :

Hey Martin, if you're trying to get it to work from a liveCD give this a shot:

sudo su
echo "deb http://archive.ubuntu.com/ubuntu hardy universe" >> /etc/apt/sources.list
apt-get update; apt-get install dmraid
cd /lib/modules/2.6.24-16-generic/ubuntu/md
wget http://launchpadlibrarian.net/14522732/dm-raid45.ko-amd64
mv dm-raid45.ko-amd64 dm-raid45.ko
dmraid -ay

Revision history for this message
Crimson_Fox (crimson-fox-) wrote :

BTW, that would be for the AMD64 build. If you're using the i386 build use this instead:

sudo su
echo "deb http://archive.ubuntu.com/ubuntu hardy universe" >> /etc/apt/sources.list
apt-get update; apt-get install dmraid
cd /lib/modules/2.6.24-16-generic/ubuntu/md
wget http://launchpadlibrarian.net/14473751/dm-raid45.ko
dmraid -ay

Revision history for this message
Jochen Schneider (panama-joe) wrote :

I did exactly as you described for AMD64, and I now have two modules in /lib/modules/2.6.24-16-generic/ubuntu/md: dmraid4-5.ko and dm-raid45.ko.

But I# am still getting the same error message when I do dmraid -ay:
ERROR: device-mapper target type "raid45" not in kernel

What am I doing wrong? 8-((

My computer is running on an ASUS M2N-SLI Deluxe with an Nvidia 570 SLI chipset.

Revision history for this message
Bob Maerten (bob-maerten) wrote :

In addition to the Crimson_Fox solution, I had to add the following line in the modules.dep /lib/modules/2.6.24-16-generic/modules.dep file in order to load the module :

/lib/modules/2.6.24-16-generic/ubuntu/md/dm-raid45.ko: /lib/modules/2.6.24-16-generic/kernel/drivers/md/dm-mod.ko

My 0,02€...

Revision history for this message
jonssonj (nljorgenj) wrote :

Hello all!

I have a raid set with 3 disks on my ASUS P5W DH Deluxe motherboard.

2 Samsung 400GB on the ICH7R controller.
1 WD 500GB on the "intel matrix storage" controller.

I get the following output when trying the dmraid -r command:

ERROR: isw: Error finding disk table slot for /dev/sdb
/dev/sdd: isw, "isw_dhedfdgcja", GROUP, ok, 781422765 sectors, data@ 0
/dev/sdc: isw, "isw_dhedfdgcja", GROUP, ok, 781422765 sectors, data@ 0

When I try to list each harddrive I get the following results:

sudo fdisk -u -l /dev/sdc
Disk /dev/sdc: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders, total 781422768 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00005659

Device Boot Start End Blocks Id System
/dev/sdc1 2048 2344251391 1172124672 7 HPFS/NTFS

sudo fdisk -u -l /dev/sdd
Disk /dev/sdd: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders, total 781422768 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xfee27ecd

Device Boot Start End Blocks Id System
/dev/sdd1 * 63 781417664 390708801 42 SFS

sudo fdisk -u -l /dev/sdb
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00000000

Disk /dev/sdb doesn't contain a valid partition table

Is this also a bug in the dmraid program or is it something that I do in the wrong way? I can add that this raid volume does work in windows vista and it contains about 600GB data.

BR
Jorgen

Revision history for this message
Jochen Schneider (panama-joe) wrote :

Hey, thanks a lot ... I guess that hint concerning adding an extra line to the modules.dep would have done the trick, but in the meantime I have installed Hardy AMD64 server ... when I do a modprobe dm-raid45, I get the following error:

FATAL: Error inserting dm_raid45 (/lib/modules/2.6.24-16-server/ubuntu/md/dm-raid45.ko): Invalid module format

@Stefan: is there any chance you can also provide a module for Hardy AMD64 server ... ?

Revision history for this message
martin lüdeke (martin-xn--ldeke-kva) wrote :
Download full text (4.3 KiB)

hello again, i' am back,
thanks to Stefan Bader, thanks to Crimson_Fox.

i found a way how to aktivate and see my "raid 5 array":
open terminal
copy and past:
sudo su
echo "deb http://archive.ubuntu.com/ubuntu hardy universe" >> /etc/apt/sources.list
apt-get update; apt-get install dmraid
cd /lib/modules/2.6.24-16-generic/ubuntu/md
wget http://launchpadlibrarian.net/14473751/dm-raid45.ko
dmraid -ay

than that happens:

"ubuntu@ubuntu:~$ sudo su
root@ubuntu:/home/ubuntu# echo "deb http://archive.ubuntu.com/ubuntu hardy universe" >> /etc/apt/sources.list
root@ubuntu:/home/ubuntu# apt-get update; apt-get install dmraid
Ign cdrom://Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423) hardy/main Translation-de
Ign cdrom://Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423) hardy/restricted Translation-de
Hole:1 http://security.ubuntu.com hardy-security Release.gpg [191B]
Ign http://security.ubuntu.com hardy-security/main Translation-de
Hole:2 http://archive.ubuntu.com hardy Release.gpg [191B]
Hole:3 http://archive.ubuntu.com hardy/main Translation-de [90,5kB]
Ign http://security.ubuntu.com hardy-security/restricted Translation-de
Hole:4 http://security.ubuntu.com hardy-security Release [44,0kB]
Hole:5 http://archive.ubuntu.com hardy/restricted Translation-de [989B]
Hole:6 http://archive.ubuntu.com hardy/universe Translation-de [414kB]
Hole:7 http://security.ubuntu.com hardy-security/main Packages [12,5kB]
Hole:8 http://security.ubuntu.com hardy-security/restricted Packages [14B]
Hole:9 http://security.ubuntu.com hardy-security/main Sources [4313B]
Hole:10 http://security.ubuntu.com hardy-security/restricted Sources [14B]
Hole:11 http://archive.ubuntu.com hardy Release [65,9kB]
Hole:12 http://archive.ubuntu.com hardy/main Packages [1178kB]
Hole:13 http://archive.ubuntu.com hardy/restricted Packages [6986B]
Hole:14 http://archive.ubuntu.com hardy/main Sources [338kB]
Hole:15 http://archive.ubuntu.com hardy/restricted Sources [1488B]
Hole:16 http://archive.ubuntu.com hardy/universe Packages [4297kB]
Es wurden 6454kB in 31s geholt (207kB/s)
Paketlisten werden gelesen... Fertig
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Reading state information... Fertig
Die folgenden NEUEN Pakete werden installiert:
  dmraid
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 8 nicht aktualisiert.
Es müssen 176kB Archive geholt werden.
After this operation, 614kB of additional disk space will be used.
Hole:1 http://archive.ubuntu.com hardy/universe dmraid 1.0.0.rc14-0ubuntu3 [176kB]
Es wurden 176kB in 0s geholt (198kB/s)
Wähle vormals abgewähltes Paket dmraid.
(Lese Datenbank ... 98223 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke dmraid (aus .../dmraid_1.0.0.rc14-0ubuntu3_i386.deb) ...
Richte dmraid ein (1.0.0.rc14-0ubuntu3) ...
 * Setting up DMRAID devices... ...

Read more...

Revision history for this message
martin lüdeke (martin-xn--ldeke-kva) wrote :

now i have a new problem:
i install ubuntu, but it doesn't boot, what's wrong now??
@stefan, when can we get the new liveCD?

Revision history for this message
Crimson_Fox (crimson-fox-) wrote :

Martin,

You're having two problems. First, the unpatched module is being installed by the liveCD. Second, the installer does not support dmraid; so it is not configuring the initrd to load the dmraid module on boot. A liveCD with the module installed would only address the first problem, so you'd still be out of luck. Fortunately you can fix both problems manually with the current liveCD.

To start off, boot up the live CD and run the commands you used on your post to get your raid array started.
Next we want to mount the file system you installed. I'm going to assume that you have your / and /boot on the same partition, if not, make sure you mount /boot as well.

mount /dev/mapper/<your root partition> /mnt

Next we're going to want to switch over to it so we can modify it.

mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
mount --bind /proc /mnt/proc
chroot /mnt

Ok, first we'll want to install the patched module so we do it the same way we did it for the liveCD.

cd /lib/modules/2.6.24-16-generic/ubuntu/md
wget http://launchpadlibrarian.net/14473751/dm-raid45.ko

Now we want to configure the initrd so that it loads the module on boot.

apt-get install dmraid initramfs-tools
echo "dm-raid45" >> /etc/initramfs-tools/modules
update-initramfs -u

Now we just need to clean up and reboot

exit
umount /mnt/proc
umount /mnt/sys
umount /mnt/dev
umount /mnt
dmraid -an
init 6

Let us know how this works out for you.

Revision history for this message
martin lüdeke (martin-xn--ldeke-kva) wrote :

the second harddrive is broken!?

Revision history for this message
martin lüdeke (martin-xn--ldeke-kva) wrote :

thanks to crimson_fox for quick help, but it does'nt work.

after reboot:

"No boot device available -
 strike F1 to retry boot, F2 for setup utility
  Press F5 to run onboard diagnostics"

at first i tried incl.:

"exit
umount /mnt/proc
umount /mnt/sys
umount /mnt/dev
umount /mnt
dmraid -an
init 6

second i tried without:

"exit
umount /mnt/proc
umount /mnt/sys
umount /mnt/dev
umount /mnt
dmraid -an"

only with:

"init 6" at the end

but it does'nt work.

Revision history for this message
Crimson_Fox (crimson-fox-) wrote :

Martin,

The reason it's not working is because your system isn't configured to boot from your array. With most built-in raid controllers you not only have to configure the BIOS to boot from the RAID controller, but you also have to specify which array you want to boot from on the RAID controller. This is because it is possible to configure multiple arrays within the same controller.

Make sure your BIOS is configured to boot from the array controller and then go into the utility you used to configure your arrays and check if the array you want to boot from is set to the boot array.

Revision history for this message
martin lüdeke (martin-xn--ldeke-kva) wrote :

hello crimson fox,
now i am so far as i never has been before.
i solved the two problems which you described.
my bios was right configured, but it doesn't boot.
during installation, i remembered, i have had problems with partitioning and formating.
so i tried again with installing, but now i didn't use gparted either the partition and formating program from install routine.
i did it with fdisk. afterwards i installed ubuntu and updated installed ubuntu like you told above.
now i reboot my system but i get a bad feedback.
the computer booted the raid array. then ubuntu booted for a long time (ca. 3 minutes)
after that time the busybox appeares:

BusyBox v1.1.3 (Debian 1:1.1.3-5ubuntu12) Built- in shell (ash)
Enter 'help' for list of built - in commands.

(initramfs)

so what shall i do with it?
can you help me a little bit more?

Revision history for this message
Crimson_Fox (crimson-fox-) wrote :

Martin,

It sounds like you're having trouble getting to your root file system after boot. Try booting into recovery mode and see what error message you're getting.

Revision history for this message
martin lüdeke (martin-xn--ldeke-kva) wrote :

you are right, i have trouble, i will show you two pictures

Revision history for this message
Crimson_Fox (crimson-fox-) wrote :

Martin,

I looks like the module is still not loading at boot. Shoot me an email with your contact info (skype or IM if you have it) at crimson_fox_ at hotmail.com and I'll see if I can help you work through it.

Revision history for this message
Tim Gardner (timg-tpi) wrote :

SRU Justification:

Impact: dmraid tools do not load correct module.

Patch Description: Rename module in makefile

Patch: http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-hardy-lum.git;a=commit;h=7c2cdac70ec77b8e3681e52e7e7414e45ca34cab

TEST CASE: See bug description

Changed in linux:
assignee: stefan-bader-canonical → timg-tpi
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into -proposed, please test and give feedback here

Changed in linux:
status: New → Fix Committed
Revision history for this message
Jochen Schneider (panama-joe) wrote :

Still didn't work automatically for me:
I upgraded my Hardy AMD64 Server installation via apt-get dist-upgrade. After that, there was still only the old module dm-raid4-5.ko in /lib/modules/2.6.24-18-server/ubuntu/md (and yes, I performed at least one reboot, which didn't help).
Only after adding the module from Stefan's PPA manually into that directory, and inserting a line into modules.dep it finally worked.

Package versions currently installed:
linux-image-server is 2.6.24-18.20
linux-ubuntu-modules ist 2.6.24-26
I just upgraded once more, there are no further updates available.

Steve Langasek (vorlon)
Changed in linux:
importance: Undecided → Medium
milestone: none → ubuntu-8.04.1
milestone: ubuntu-8.04.1 → none
Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 220493] Re: [Hardy][Regression] dmraid45 target missing in latest kernel

Jochen Schneider [2008-06-06 8:13 -0000]:
> Package versions currently installed:
> linux-image-server is 2.6.24-18.20
> linux-ubuntu-modules ist 2.6.24-26
> I just upgraded once more, there are no further updates available.

I guess you are using a mirror (de.archive?) which still does not have
the 2.6.14-19 version in hardy-proposed. That's the one which fixes
this bug.

Revision history for this message
Jochen Schneider (panama-joe) wrote :

Well, as of today there are still no updates available.
Yes, I am using mirror de.archive, that's the one that was configured by default.
How many days (or weeks?) does it take for this mirror to be updated?!?
Your post about the fix being accepted into -proposed is already three days old...

Revision history for this message
Jochen Schneider (panama-joe) wrote :

Please forget my last post - I had deactivated the proposed section on my server ... ;-)

Just performed a dist-upgrade, the module is renamed and my RAID5 array is finally accessible!
THANKS A LOT 8-))

Revision history for this message
Crimson_Fox (crimson-fox-) wrote :

I can verify that 2.6.24-19 in the hardy-proposed repository works for both i386 and amd64 on my nvidia fakeraid. I made a liveCD so people others can test it out, but have tried to attach it 3 times and failed. Any ideas on where I could put this?

Revision history for this message
martin lüdeke (martin-xn--ldeke-kva) wrote :

thanks to crimson fox, with the livecd works it good

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

Changed in linux:
status: Fix Committed → Fix Released
Revision history for this message
P3P (p3p) wrote : Working with Ubuntu updates

Thank you very much!
I was sure that I would need to patch kernel sources and compile them to get my raid5 working.
Raid5 kernel target for dmraid is still in experimental development, so I thought that compiled modules was unavailable. Thank you.

To get raid5 working on my Intel ICH9R (dmraid already installed and working for raid0):
I have enabled hardy-updates and hardy-proposed updates on my package manager.
I have installed latest kernel image and related packages (linux-image-2.6.24-19-generic, linux-ubuntu-modules-2.6.24-19-generic, etc).
apt-get install initramfs-tools
echo "dm-raid45" >> /etc/initramfs-tools/modules
update-initramfs -u
WORKING!!

Two questions:
I suppose that initramfs load dm-raid45 module at boot so can my system boot from a raid5 volume?
Will Ubuntu 8.04.1 release (July 2008) be capable of install in a raid5 volume from the live-cd installer?

Regards.

Revision history for this message
Crimson_Fox (crimson-fox-) wrote :

Yes, if you load the dm-raid45 module at boot you should be able to boot from fakeraid (it's my current config in fact). I was able to roll my own live CD with 2.6.24-19 and dmraid using UCK (http://uck.sourceforge.net/) to get this going.

I'm not sure if 8.04.1 will let you, but at long as it has 2.6.24-19 I don't see why not. Even if 8.04.1 includes the fix, the installer still does not support dmraid so you still have to tweak it to get it going (install the dmraid package and "sudo dmraid -ay" to start the array). You could also use rsync to try out the latest daily build of 8.04.1 to find out, that would probably give you the best idea if dmraid will work for you in 8.04.1. https://help.ubuntu.com/community/RsyncCdImage

Revision history for this message
P3P (p3p) wrote : Thanks to Crimson_Fox

Crimson_Fox I am very grateful to you for your advice.

Ubuntu Customization Kit and RsyncCdImage are two wonderful tools, just what I needed. Thank you.

Revision history for this message
Prince (pkarlos-76) wrote :

Okay, but what the heck did the kernel devs do now........a new 2.6.24.19-generic kernel was released into hardy updates and now I'm getting the message at logon raid45 not in kernel!!!!!!!!!

Revision history for this message
Prince (pkarlos-76) wrote :

I've attached a copy of my dmesg for review! This is a recently fresh ubuntu install from CD I am working from.

Revision history for this message
Steve Langasek (vorlon) wrote :

Prince,

The dm-raid45 module is shipped in the linux-ubuntu-modules-2.6.24-19-generic package, which is dependency of the 'linux-image-generic' package. And your dmesg output shows that the dm-raid45 module has been probed successfully. What is the actual problem this is causing for you? It looks to me like device-mapper looks for the module once before it's available, which generates a message, but afterwards the module loads fine and is used.

Revision history for this message
zorrek (zorrek) wrote :

Ok I've done everything I can find for "8.04 64bit Server" to make my nvidia RAID5 work.
if I do # dmraid -s
*** Set
name : nvidia_fegfedde
size : 2930319456
stride : 32
type : raid5_ls
status : ok
subsets: 0
devs : 4
spares : 0

Happy days! So then I...

# dmraid -ay
ERROR: device-mapper target type "raid45" not in kernel

If I do....
~# locate raid4
/lib/modules/2.6.24-16-server/kernel/drivers/md/raid456.ko
/lib/modules/2.6.24-16-server/ubuntu/md/dm-raid4-5.ko

What ! is raid456? How do I get a RAID 5 to work under Ubuntu? The Array is empty, I want to format it to ext3
How do i make this work?

Revision history for this message
zorrek (zorrek) wrote :

Some DMESG output

[ 22.183355] xor: automatically using best checksumming function: generic_sse
[ 22.230675] generic_sse: 8054.000 MB/sec
[ 22.230676] xor: using function: generic_sse (8054.000 MB/sec)
[ 22.231159] async_tx: api initialized (async)
[ 22.400319] raid6: int64x1 2560 MB/s
[ 22.569965] raid6: int64x2 3188 MB/s
[ 22.739592] raid6: int64x4 3263 MB/s
[ 22.909233] raid6: int64x8 2567 MB/s
[ 23.078870] raid6: sse2x1 3644 MB/s
[ 23.248506] raid6: sse2x2 4888 MB/s
[ 23.418154] raid6: sse2x4 5083 MB/s
[ 23.418156] raid6: using algorithm sse2x4 (5083 MB/s)
[ 23.418158] md: raid6 personality registered for level 6
[ 23.418159] md: raid5 personality registered for level 5
[ 23.418161] md: raid4 personality registered for level 4
[ 23.424890] fuse init (API version 7.9)
[ 23.434383] ACPI: Fan [FAN] (on)
[ 23.439484] ACPI: Thermal Zone [THRM] (40 C)
[ 23.741899] usbcore: registered new interface driver usbfs
.
.
.
[ 28.065191] Uniform CD-ROM driver Revision: 3.20
[ 28.065239] sr 4:0:1:0: Attached scsi CD-ROM sr0
[ 28.343641] device-mapper: uevent: version 1.0.3
[ 28.343670] device-mapper: ioctl: 4.12.0-ioctl (2007-10-02) initialised: <email address hidden>
[ 28.738657] device-mapper: table: 253:0: raid45: unknown target type
[ 28.738705] device-mapper: ioctl: error adding target to table
[ 28.761112] Attempting manual resume
[ 28.761116] swsusp: Resume From Partition 8:66
[ 28.761117] PM: Checking swsusp image.
[ 28.761271] PM: Resume from disk failed.

Revision history for this message
Phillip Susi (psusi) wrote :

Is this fix STILL waiting to be uploaded to -updates?

Revision history for this message
Phillip Susi (psusi) wrote :

It looks like this fix has not found its way into either hardy-updates, OR Intrepid.

Revision history for this message
Brian Murray (brian-murray) wrote :

I believe this is in hardy-updates:

bdmurray@superman:~$ modinfo dm-raid45
filename: /lib/modules/2.6.24-19-generic/ubuntu/md/dm-raid45.ko
license: GPL
author: Heinz Mauelshagen <email address hidden>
description: device-mapper raid4/5 target
license: GPL
author: Heinz Mauelshagen <email address hidden>
description: device-mapper device-mapper dirty log
license: GPL
author: Heinz Mauelshagen <email address hidden>
description: device-mapper dm memory cache
license: GPL
author: Heinz Mauelshagen <email address hidden>
description: device-mapper region hash
license: GPL
author: Heinz Mauelshagen <email address hidden>
description: device-mapper device-mapper target message parser
srcversion: E1BE8207EC7EC04F1B4FDA0
depends: dm-mod
vermagic: 2.6.24-19-generic SMP mod_unload 586

Revision history for this message
Jaroslav Sedlacek (yarda) wrote :

Unfortunately the update is not in hardy updates. I went yesterday through all the steps to install ubuntu on FakeRaid (Intel ICHR8/9 with raid 5 volume) and still did not succeed. The dm-raid45 works fine with CD. But the kernel that installs via:

apt-get install linux-image-2.6.24-19-generic

does not contain the dm-raid45 module. On cd, it is located in /lib/modules/2.6.24-19-generic/ubuntu, but in the installed system, there is no directory ubuntu under the kernel modules. Maybe I need to install some other package beside the linux-image....

Revision history for this message
Jaroslav Sedlacek (yarda) wrote :

Sorry for the confusion, I now found the problem.
It is necessary to install also:

linux-ubuntu-modules package. With this package it works even with booting from raid 5 partition.

Revision history for this message
Peter de Groot (peter-de-groot) wrote :

Ubuntu 8.1 -- Intepid,

This snip from the fake raid how-to looked promising....

In Intepid, dmraid is now in the 'main' respository, and can be installed without recondfiguring apt. Once dmraid is running, the live installer can handle installing to the raid. Ubiquity will fail when installing grub, and will not automatically add dmraid to the new installation. These need to be done manually.

However when I tried it, a
dmraid -ay it came up with dmraid4-5 not in kernel... or something similar ... sorry cannot be exact
as I have gone back to Hardy in frustration :-(

In Hardy I was able to get a dmraid .. sort of working ..... when I used the proposed repositry

Revision history for this message
Michael Fourdraine (mfourdraine) wrote :

Could this issue be connected to the problems users are experiencing detailed in bug 314395?

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/314395

Tim Gardner (timg-tpi)
Changed in linux (Ubuntu):
assignee: Tim Gardner (timg-tpi) → nobody
importance: Medium → Undecided
status: Fix Committed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.