multipath-tools incompatible with dmraid

Bug #992975 reported by Jacek Kuzemczak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dmraid (Ubuntu)
In Progress
Medium
Phillip Susi

Bug Description

After upgrading to 12.04 from 11.10 my RAID array vanished and refused to mount.

Entering the command "sudo dmraid -ay -vvv -d -i" shows this towards the end of the output.

NOTICE: added /dev/dm-7 to RAID set "sil_biadafcbaiac"
DEBUG: _find_set: searching sil_biadafcbaiac
DEBUG: _find_set: found sil_biadafcbaiac
DEBUG: _find_set: searching sil_biadafcbaiac
DEBUG: _find_set: found sil_biadafcbaiac
NOTICE: added /dev/dm-6 to RAID set "sil_biadafcbaiac"
DEBUG: _find_set: searching sil_biadafcbaiac
DEBUG: _find_set: found sil_biadafcbaiac
DEBUG: _find_set: searching sil_biadafcbaiac
DEBUG: _find_set: found sil_biadafcbaiac
NOTICE: added /dev/sdd to RAID set "sil_biadafcbaiac"
DEBUG: _find_set: searching sil_biadafcbaiac
DEBUG: _find_set: found sil_biadafcbaiac
DEBUG: _find_set: searching sil_biadafcbaiac
DEBUG: _find_set: found sil_biadafcbaiac
NOTICE: added /dev/sdc to RAID set "sil_biadafcbaiac"
DEBUG: checking sil device "/dev/dm-7"
ERROR: sil: wrong # of devices in RAID set "sil_biadafcbaiac" [4/2] on /dev/dm-7
DEBUG: checking sil device "/dev/sdc"
ERROR: sil: wrong # of devices in RAID set "sil_biadafcbaiac" [4/2] on /dev/sdc
DEBUG: checking sil device "/dev/dm-6"
ERROR: sil: wrong # of devices in RAID set "sil_biadafcbaiac" [4/2] on /dev/dm-6
DEBUG: checking sil device "/dev/sdd"
ERROR: sil: wrong # of devices in RAID set "sil_biadafcbaiac" [4/2] on /dev/sdd
DEBUG: set status of set "sil_biadafcbaiac" to 2

Note that dm-7 and sdc are in fact the same disk, the same goes for dm-6 and sdd. Prior to the 12.04 update dmraid would simply ignrore the sd* disks.

Ubuntu Version
Description: Ubuntu 12.04 LTS
Release: 12.04

Version
Installed: 1.0.0.rc16-4.1ubuntu8

What I expected to happen
After rebooting fromthe upgrade to 12.04 my RAID drive would be there

What happened instead
It was not there, a bit of investigation found the above problem.

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

Can you please post the output of sudo dmsetup info?

Revision history for this message
Jacek Kuzemczak (t-jacok-y) wrote :

Quck responce ! Thanks for that !

It looks like dmsetup needs a device, which one should i use ?

Revision history for this message
Jacek Kuzemczak (t-jacok-y) wrote :

Oh info. Sorry haha, here you go.

Jacek@local: ~ $ sudo dmsetup info
Name: 350014ee2593a1f7c
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 0
Event number: 1
Major, minor: 252, 5
Number of targets: 1
UUID: mpath-350014ee2593a1f7c

Name: 350000f00dbc35783
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 2
Event number: 1
Major, minor: 252, 1
Number of targets: 1
UUID: mpath-350000f00dbc35783

Name: 350000f00db506277-part1
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 0
Event number: 0
Major, minor: 252, 6
Number of targets: 1
UUID: part1-mpath-350000f00db506277

Name: 350000f00dbc35783-part5
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 2
Event number: 0
Major, minor: 252, 4
Number of targets: 1
UUID: part5-mpath-350000f00dbc35783

Name: 350014ee203e5085a
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 0
Event number: 1
Major, minor: 252, 7
Number of targets: 1
UUID: mpath-350014ee203e5085a

Name: 350000f00dbc35783-part2
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 1
Event number: 0
Major, minor: 252, 3
Number of targets: 1
UUID: part2-mpath-350000f00dbc35783

Name: 350000f00dbc35783-part1
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 1
Event number: 0
Major, minor: 252, 2
Number of targets: 1
UUID: part1-mpath-350000f00dbc35783

Name: 350000f00db506277
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 1
Event number: 1
Major, minor: 252, 0
Number of targets: 1
UUID: mpath-350000f00db506277

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

You seem to have multipath-tools installed, and it looks like this may be the cause of the problem. If you don't need it, removing it should work around the bug.

Phillip Susi (psusi)
Changed in dmraid (Ubuntu):
assignee: nobody → Phillip Susi (psusi)
importance: Undecided → Medium
status: New → In Progress
summary: - Detects each drive in the array twice
+ multipath-tools incompatible with dmraid
Revision history for this message
Jacek Kuzemczak (t-jacok-y) wrote :

I do have that installed, I thought it was a dependency of dmraid. I will try removing it though.

Thanks for the help :)

Revision history for this message
Jacek Kuzemczak (t-jacok-y) wrote :

Hi again, I sent the previous comment from my laptop, it turns out that I don't actually have multipath-tools installed :s

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

Can you double check that, because you have multipath dm targets, so I'm not sure how you could have those without having multipath-tools installed.

Revision history for this message
Jacek Kuzemczak (t-jacok-y) wrote :

I guess that is what the mpath is telling you ? Well when I tried to remove it when I got home, this was the result

Jacek@local: ~ $ sudo apt-get remove multipath-tools*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'multipath-tools-boot' for regex 'multipath-tools*'
Note, selecting 'multipath-tools' for regex 'multipath-tools*'
Note, selecting 'multipath-tools-dbg' for regex 'multipath-tools*'
Note, selecting 'multipath-tools-initramfs' for regex 'multipath-tools*'
Package multipath-tools is not installed, so not removed
Package multipath-tools-boot is not installed, so not removed
Package multipath-tools-dbg is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I know it was installed at some point, since I recognise the name. I beleive it was a dependancy of another package, to be honest I have no idea what it does.

Feel like this is more likely to be my fault with every comment ;)

Revision history for this message
Jacek Kuzemczak (t-jacok-y) wrote :

Quick update for anyont finding this having the same problem. Installing multipath-tools and then removing it again seemed to fix the problem for me. Kinda confuding.

Revision history for this message
Jacek Kuzemczak (t-jacok-y) wrote :

Excuse my typing ;)

Revision history for this message
lulo (lulojs11) wrote :

hello all !...my problem is not the same...or...the same...not sure if not the same (sorry my bad english)
main controller is AMD SB950 via MSI 990FXA-GD80...2 disk - raid 0 (fakeraid)...windows 7 install correctly and working...ubuntu is not install and not finding anny raid-0. Pmagic-2015-05-30 is not correct mapping this array (using boot option dmraid ...module dm-mod is load from kernel):

ls -l /dev/mapper/*
crw------- 1 root root 10, 236 maj 31 02:04 control

and not find anny /dev/dm-0(1,2,3*)

can use "dmraid -ay" is finding:

root@PartedMagic:~# ls -l /dev/mapper
total 0
crw------- 1 root root 10, 236 maj 31 02:04 control
brw-rw---- 1 root disk 254, 0 maj 31 02:04 ddf1_Linux
root@PartedMagic:~# ls -l /dev/dm*
brw-rw---- 1 root disk 254, 0 maj 31 11:14 /dev/dm-0
root@PartedMagic:~#

and

bash-4.1# dmraid -s
/dev/sdb: "pdc" and "ddf1" formats discovered (using ddf1)!
/dev/sda: "pdc" and "ddf1" formats discovered (using ddf1)!
*** Group superset .ddf1_disks
--> Active Subset
name : ddf1_Linux
size : 3906722560
stride : 128
type : stripe
status : ok
subsets: 0
devs : 2
spares : 0
bash-4.1#

not finding installed windows 7...only:

bash-4.1# ls -l /dev/sd*
brw-rw---- 1 root disk 8, 0 maj 31 11:20 /dev/sda
brw-rw---- 1 root disk 8, 1 maj 31 02:04 /dev/sda1
brw-rw---- 1 root disk 8, 2 maj 31 02:04 /dev/sda2
brw-rw---- 1 root disk 8, 16 maj 31 11:20 /dev/sdb

My qeustion...if use this fix http://answerpot.com/showthread.php?3532655-Changing%20from%20dm-raid45.ko%20to%20dm-raid.ko for ubuntu boot process ... ubuntu install correctly and finding more OS ? (ubuntu + windows 7)

latest fix multipath-tools and dmraid dmsetup and kpartx is fixing only if use for fakeraid = raid-5(and 1,4,6,10)...how use if fakeraid = raid-0 on this controller ?

???
???
???

Revision history for this message
lulo (lulojs11) wrote :

Find this discussion http://www.spinics.net/lists/ataraid/msg03440.html and supprise...ubuntu tim not implement dmraid for this controller and all raid mode not working for this controller ???

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

lulo, your issue is unrelated to this bug report.

Revision history for this message
lulo (lulojs11) wrote :

my question how to build this array for ubuntu-12.04 and install it...can multipath-tools, dmaraid, dmsetup, kpartx, etc. its still not working for this controller...where bug is for this (my or not only my) problem ?...its sure is this bug not dependency for my problem ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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