Bug 6180 - Installer cannot upgrade on fake-RAID drive
Summary: Installer cannot upgrade on fake-RAID drive
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: High normal
Target Milestone: ---
Assignee: Pascal Terjan
QA Contact:
URL:
Whiteboard: (MGA2)
Keywords: NEEDINFO
Depends on:
Blocks: 3342
  Show dependency treegraph
 
Reported: 2012-05-31 00:59 CEST by Dan Fandrich
Modified: 2013-11-07 22:06 CET (History)
9 users (show)

See Also:
Source RPM: dmraid
CVE:
Status comment:


Attachments
Screenshot of bogus error message (122.81 KB, image/png)
2012-05-31 01:10 CEST, Dan Fandrich
Details
Truncated bug log at time of issue (93.49 KB, text/plain)
2012-05-31 01:17 CEST, Dan Fandrich
Details
Requested report.bug.gz (292.92 KB, application/x-gzip)
2013-01-25 09:28 CET, Nicholas Regitz
Details

Description Dan Fandrich 2012-05-31 00:59:53 CEST
This bug seems related to bug #4193, but seemingly occurs on the next step after that one was fixed. The installer now recognizes my dmraid RAID1 set of disks, but then gives up on RAID with a message that the main mapper device node is corrupt, when clearly it isn't. fdisk -l on that node displays the expected output when run from the console. The blkid command that shows up last in the log also works from the console, and displays the expected ID_PART_TABLE_TYPE=dos. All the dmraid nodes in /dev/mapper/ are there. The installer is displaying an error message where none should be.
Comment 1 Dan Fandrich 2012-05-31 01:10:19 CEST
Created attachment 2405 [details]
Screenshot of bogus error message
Comment 2 Dan Fandrich 2012-05-31 01:17:19 CEST
Created attachment 2406 [details]
Truncated bug log at time of issue
Marja Van Waes 2012-06-04 15:03:38 CEST

Blocks: (none) => 3342

Marja Van Waes 2012-06-10 23:50:45 CEST

CC: (none) => marja11
Version: 2 => Cauldron
Assignee: bugsquad => pterjan
Source RPM: (none) => drakx-installer-stage2
Whiteboard: (none) => (MGA2)

Comment 3 Marja Van Waes 2012-07-06 15:04:59 CEST
Please look at the bottom of this mail to see whether you're the assignee of this  bug, if you don't already know whether you are.


If you're the assignee:

We'd like to know for sure whether this bug was assigned correctly. Please change status to ASSIGNED if it is, or put OK on the whiteboard instead.

If you don't have a clue and don't see a way to find out, then please put NEEDHELP on the whiteboard.

Please assign back to Bug Squad or to the correct person to solve this bug if we were wrong to assign it to you, and explain why.

Thanks :)

**************************** 

@ the reporter and persons in the cc of this bug:

If you have any new information that wasn't given before (like this bug being valid for another version of Mageia, too, or it being solved) please tell us.

@ the reporter of this bug

If you didn't reply yet to a request for more information, please do so within two weeks from now.

Thanks all :-D
Comment 4 Thierry Vignaud 2012-09-04 17:20:50 CEST
Pascal, it may be due to:
 error: bad dmraid (missing partition mapper/nvidia_gcdebahfp1), you may try rebooting install with option "nodmraid" at /usr/lib/libDrakX/fsedit.pm line 226.
Maybe a timing issue?

CC: (none) => thierry.vignaud

Comment 5 Dan Fandrich 2012-09-04 22:12:56 CEST
I just spotted something that may be the key. I just tried installing from the Mageia 2 final install DVD and while the device names are slightly different, the message on the screen says "missing partition mapper/pdc_gcdebahfp1", while the node on disk is actually called mapper/pdc_gcdebahf1 (note the missing "p" before the 1). So, it seems that somehow the installer is confused about what the nodes are actually supposed to be called, or the nodes are given names that are not what they are supposed to be.
Comment 6 Thierry Vignaud 2012-09-04 22:30:28 CEST
What about Mageia 3 alpha 1?
Comment 7 Dan Fandrich 2012-09-04 22:52:19 CEST
I should be able to try it as soon as it's released.
Comment 8 Dan Fandrich 2012-09-08 20:23:46 CEST
Same results on Mageia 3 alpha 1. Of the two options in comment #5, I'm leaning towards the second, i.e. the nodes in /dev/mapper/ have been given the wrong names, especially since the names on a an installed Mageia 1 system include the "p" before the partition number.
Thierry Vignaud 2012-09-08 23:38:30 CEST

CC: (none) => pterjan

Comment 9 Thierry Vignaud 2012-09-08 23:39:10 CEST
Humm, Colin, Pascal, could it be that we lack some udev rules?

CC: (none) => mageia

Comment 10 Dan Fandrich 2012-09-08 23:45:34 CEST
dmraid when run from the command-line seemed to want to create names without the 'p'. It looks like adding "--partchar p" ought to fix that, but dmraid complained about that option and wouldn't run when it was used.

Anyway, I manually created the names with 'p' from the terminal and installation continued fine.
Comment 11 Thierry Vignaud 2012-09-09 00:08:41 CEST
Humm, Thomas you added 24_drop_p_for_partition_conditional.patch in dmraid-1.0.0-0.rc16.8.mga2:
"fix conditional adding of 'p' if partition name"
(http://svnweb.mageia.org/packages/cauldron/dmraid/current/SOURCES/24_drop_p_for_partition_conditional.patch?view=markup)
I wonder if that could be the issue...

CC: (none) => tmb

Comment 12 Thierry Vignaud 2012-09-09 00:29:21 CEST
The other issue I think about is that we don't include /etc/udev/rules.d/kpartx.rules
However thomas you made dmraid requires kpartx.
Maybe do we miss those rules
Comment 13 Thierry Vignaud 2012-09-09 00:43:05 CEST
Thomas that patch doesn't exist in Fedora, only in Ubuntu and I think it's the ussye

Source RPM: drakx-installer-stage2 => dmraid

Comment 14 Nicholas Regitz 2013-01-18 06:15:46 CET
(In reply to comment #10)
> Anyway, I manually created the names with 'p' from the terminal and
> installation continued fine.

Hey Dan, can you please tell me how to change the names and continue the installation?

CC: (none) => CJ-Zelda-Link

Comment 15 Dan Fandrich 2013-01-18 08:07:38 CET
I don't remember exactly which way I did it, but any of mknod, mv or ln -s should work. Switch to the debug terminal and fix the file names in /dev/mapper/. I believe they are available to be fixed at the last screen in the installer before it gives the error message.
Comment 16 Nicholas Regitz 2013-01-19 19:11:14 CET
Thank you very much. ln -s was a great idea. works fine.
but after the installation finished, i must use it again to install grub manually.
Comment 17 Thierry Vignaud 2013-01-19 19:13:32 CET
Maybe a missing udev rule.
Can you attach your /root/drakx/report.bug.xz?

Keywords: (none) => NEEDINFO
CC: (none) => bluca

Comment 18 Nicholas Regitz 2013-01-25 09:28:19 CET
Created attachment 3434 [details]
Requested report.bug.gz

Here is the requested report.bug.gz
I hope it helps.
Comment 19 Emmanuel Dieul 2013-06-22 07:49:03 CEST
I had the same problem on official Mageia 3 DVD (x86_64) and Nvidia NForce 790 Ultra SLI raid controller. The solution above (ln -s) works well.

After MCP55 driver installation and before activating the raid driver, I switched to the debug console via [Alt]+[F2]. A listing of /dev/mapper gave me this :
   - nvidia_iibadebh
   - nvidia_iibadebh1
   - nvidia_iibadebh2
   - nvidia_iibadebh3
   - nvidia_iibadebh5
As the raid driver asks a "p" before the partition number (I knew it with a previous failed installation), I created symbolic links like this :
   - nvidia_iibadebhp -> nvidia_iibadebh
   - nvidia_iibadebhp1 -> nvidia_iibadebh1
   - nvidia_iibadebhp2 -> nvidia_iibadebh2
   - nvidia_iibadebhp3 -> nvidia_iibadebh3
   - nvidia_iibadebhp5 -> nvidia_iibadebh5

With this modification, the activation of the raid driver works well: it finds all the partitions.

CC: (none) => emmanuel.dieul

Comment 20 stephane FLAVIGNY 2013-08-25 09:07:49 CEST
Dear,

I make à fresh install, I have a same problem with asus A7N8X-sli.

Stéphane.

CC: (none) => megastorage

stephane FLAVIGNY 2013-08-25 09:08:36 CEST

Priority: Normal => High
Hardware: i586 => All
Version: Cauldron => 3

Comment 21 stephane FLAVIGNY 2013-08-25 11:52:02 CEST
I confirm too with symbolic links that work and I can continu the installation.

But failed at the mkinitrd...

Stéphane.
Comment 22 Dan Fandrich 2013-08-25 16:21:42 CEST
I had a problem with the initrd as well. I don't recall exactly what I did to fix it, but I think it was as simple as rebooting after the initial installation, then manually generating it.
Comment 23 stephane FLAVIGNY 2013-08-25 17:20:41 CEST
After reboot, grub start, start the system.

The system stop on: 
dracut Warning: Could not boot
dracut Warning: "/dev/mapper/sil_******PX"does not exit.

in /dev/mapper/ I have : sil_******X without "P".

I don't know how to solve it.
Comment 24 Samuel Verschelde 2013-08-27 13:27:50 CEST
Changing version to cauldron since we can't fix installer for released versions (that's what alphas and betas are for)

Version: 3 => Cauldron

Comment 25 stephane FLAVIGNY 2013-10-12 09:53:23 CEST
Same problem with mag4_a3

Stéphane.
Comment 26 stephane FLAVIGNY 2013-11-07 18:40:59 CET
Dear,


I testing today, it's solve for me.

With my configuration with dmraid.

No error from the installation.

I send from cauldron.

Thanks.

Stephane.
Comment 27 Thierry Vignaud 2013-11-07 22:06:14 CET
Fixed by dmraid-1.0.0-0.rc16.15.mga4
Closing

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.