Skip to contentSkip to conversation

dm-mon fails to load raid1 target

DISCUSSION Molle Bestefich 2 participants 3 messages Jan 30, 2005 – Feb 1, 2005 Device mapper

lore
Share & tools
lore
#0 lore raw

Hi

I can't get dm_mon to load the raid1 target.

The syslog says (timestamps removed):
livecd device-mapper: : unknown target type livecd
livecd device-mapper: error adding target to table

Seems that there's a completely blank syslog message (reproducible), and a surplus colon in the first message. Might be related to the dmraid tool. Anyway.

I'm booting with a Gentoo CD [gen2dmraid 0.99 - kernel: 2.6.9, driver 4.1.0, library 1.00.17-ioctl].

The /lib/modules/.../raid1.ko file is present.

I tried modprobe raid1 (fine), this didn't add the mirror target to "dmsetup targets".
Tried unloading dm-mon, reloading raid1, loading dm-mon, still no mirror target.

Any hints on what is going wrong / what I am doing wrong?

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

#1 lore raw
Quoted 3 lines · Molle Bestefich

Hi

I can't get dm_mon to load the raid1 target.

Do you mean "dm_mod", which is the core of the DM driver?

Quoted 4 lines

The syslog says (timestamps removed):
livecd device-mapper: : unknown target type livecd
livecd device-mapper: error adding target to table

This means a user-space program tried to load a device-table for a target-type that doesn't exist or couldn't be loaded.

Quoted 8 lines

Seems that there's a completely blank syslog message (reproducible), and a surplus colon in the first message. Might be related to the dmraid tool. Anyway.

I'm booting with a Gentoo CD [gen2dmraid 0.99 - kernel: 2.6.9, driver 4.1.0, library 1.00.17-ioctl].

The /lib/modules/.../raid1.ko file is present.

That is the module for MD/Software-RAID RAID-1, not the Device-Mapper mirroring module. They are completely different drivers that just happen to be in the same directory in the kernel source and module trees.

Quoted 6 lines

I tried modprobe raid1 (fine), this didn't add the mirror target to "dmsetup targets".
Tried unloading dm-mon, reloading raid1, loading dm-mon, still no mirror target.

Any hints on what is going wrong / what I am doing wrong?

The Device-Mapper mirroring target is called "dm-mirror". Check your kernel configuration and make sure you have CONFIG_DM_MIRROR set to "y" or "m". If necessary, you may need to rebuild your kernel to enable it. Once it's enabled, run "dmsetup targets" and look for a "mirror" entry. If you've compiled DM mirroring as a module, try "modprobe dm-mirror", and then run "dmsetup targets" again.

Signature · 8 lines
Kevin Corry
[email protected]
http://evms.sourceforge.net/

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
#2 lore raw
Quoted 4 lines · Kevin Corry
Quoted 1 line · Molle Bestefich

I can't get dm_mon to load the raid1 target.

Do you mean "dm_mod", which is the core of the DM driver?

Yes :-).

Quoted 6 lines
Quoted 2 lines

The syslog says (timestamps removed):
[...]

This means a user-space program tried to load a device-table for a target-type that doesn't exist or couldn't be loaded.

Quoted 8 lines
Quoted 4 lines

I'm booting with a Gentoo CD [gen2dmraid 0.99 - kernel: 2.6.9, driver 4.1.0, library 1.00.17-ioctl].

The /lib/modules/.../raid1.ko file is present.

That is the module for MD/Software-RAID RAID-1, not the Device-Mapper mirroring module. They are completely different drivers that just happen to be in the same directory in the kernel source and module trees.

Ack. Thank you for clearing that up.

I've never been able to install a working copy of Linux on my PC, so I don't know squat.

Linux cannot use the disks on my ATARAID controller, even though it says on the box that the controller supports Linux. Using the proprietary driver, I can't recompile the kernel with eg. appropriate sound card drivers and the open source ATARAID driver isn't up-to-date with the metadata format.

I'm trying again now that DM and DMRAID has arrived, but (as is probably apparent), I haven't got a clue what I'm doing :-)

Quoted 8 lines
Quoted 1 line

Any hints on what is going wrong / what I am doing wrong?

The Device-Mapper mirroring target is called "dm-mirror". Check your kernel configuration and make sure you have CONFIG_DM_MIRROR set to "y" or "m". If necessary, you may need to rebuild your kernel to enable it. Once it's enabled, run "dmsetup targets" and look for a "mirror" entry. If you've compiled DM mirroring as a module, try "modprobe dm-mirror", and then run "dmsetup targets" again.

Gerte, is there somehow that I can persuade you to build a new LiveCD with dm-mirror support?

I would like to do it myself, but am a bit stuck since no Linux distro will install on my PC :-/..

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel