Bug 619806 - Unable to do fresh install into dmraid (fake-raid) partition(s).
Summary: Unable to do fresh install into dmraid (fake-raid) partition(s).
Status: VERIFIED FIXED
Alias: None
Product: openSUSE 11.3
Classification: openSUSE
Component: Installation (show other bugs)
Version: RC 2
Hardware: x86-64 openSUSE 11.3
: P5 - None : Major with 5 votes (vote)
Target Milestone: ---
Assignee: Xin Wei Hu
QA Contact: Jiri Srain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-04 20:48 UTC by Forgotten User GTSR6JWjet
Modified: 2010-07-16 09:14 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User GTSR6JWjet 2010-07-04 20:48:15 UTC
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

I tried to install 11.3 RC2 (standard DVD) on AMD SB600 motherboard with SATA hard drive(s) configured in (fake) RAID mode in the BIOS.
During installation the ATi/AMD fake raid disk is accessible (via /dev/mapper/...), partition table can be printed by fdisk and the installer shows all existing partitions just fine and allows to edit them or to use automatic partitioning. However, the installation then stumbles upon formatting such partitions (no matter whether created manually or automatically). Installer says they are /dev/mapper/pdc_xxxxxxx_partX (e.g. /dev/mapper/pdc_pdc_bdgehdg_part1 should be formatted ext4 for /boot), however such path does not exist:

ls /dev/mapper
control pdc_bdgehdg pdc_faciag

cat /proc/partitions
.....
  8 32 78150744 sdc
.....
253  1 77148416 dm-1

I'm not very well familiar with DM so maybe I'm confused but it looks like individual partitions of such disk are not exposed by the kernel at this point, hence all further installation steps fail.

Reproducible: Always

Steps to Reproduce:
1. Get a motherboard featuring ATi/AMD raid (like those with SB600) and one SATA hard disk.
2. Select raid mode for SATA in system BIOS, enter raid setup, create raid 0 with 1 hard disk.
3. Try to install from 11.3 RC2 standard DVD.
Actual Results:  
Installation fails.

Expected Results:  
Installer should either complete successfully or refuse to use such raid drives if they can not be supported.
Comment 1 Forgotten User GTSR6JWjet 2010-07-04 20:53:58 UTC
(In reply to comment #0)

> /dev/mapper/pdc_pdc_bdgehdg_part1

just a little typo, I actually meant

/dev/mapper/pdc_bdgehdg_part1
Comment 2 Xin Wei Hu 2010-07-05 07:50:05 UTC
Hi Nikolai,

  It might be the case that MD has take over the fake-raid devices by default. 
You can check that by running "cat /proc/mdstat".

  Thanks.
Comment 3 Xin Wei Hu 2010-07-05 10:24:08 UTC
Hi Nikolai,

  Would you try my latest submit in Base:System ? I just fixed an ancient issue
in SuSE specific patch, which is related to this bug.

  Thanks.
Comment 4 Forgotten User GTSR6JWjet 2010-07-05 17:57:32 UTC
(In reply to comment #2)
> Hi Nikolai,
> 
>   It might be the case that MD has take over the fake-raid devices by default.

AFAIK these are totally unrelated.
MD is linux software raid, a consistent full-fledged native solution.
DM can provide some minimal support for those proprietary legacy fake-raids, created by various firmwares.
 
> You can check that by running "cat /proc/mdstat".

Ok, I'll do this as soon as I get to that box again. 
However, if md was active then some mdX partitions would appear in /proc/partitions. But they didn't. Also, the installer didn't say anything about md, but kept talking about dm (which is correct, AFAICS)

> 
>   Thanks.
Comment 5 Forgotten User GTSR6JWjet 2010-07-05 23:43:55 UTC
(In reply to comment #3)
> Hi Nikolai,
> 
>   Would you try my latest submit in Base:System ? I just fixed an ancient issue
> in SuSE specific patch, which is related to this bug.

1) You were right partly about md replacing fake-raid: it is apparently possible with modern intel controllers to switch to md smoothly. However, such option is irrelevant to the subject (and unavailable on non-intel raids anyway).

2) The issue is not AMD-specific: I've just reproduced it on intel ich10 (configured for raid1 in the BIOS) Same error: "formatting device mapper volume /dev/mapper/isw_...._part2 - system error code was: -3030"

3) The issue still remains in factory repo as of 1 hour ago. (I suppose your commit in question is already there)


>   Thanks.
Comment 6 Xin Wei Hu 2010-07-06 03:27:39 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > Hi Nikolai,
> > 
> >   Would you try my latest submit in Base:System ? I just fixed an ancient issue
> > in SuSE specific patch, which is related to this bug.
> 
> 1) You were right partly about md replacing fake-raid: it is apparently
> possible with modern intel controllers to switch to md smoothly. However, such
> option is irrelevant to the subject (and unavailable on non-intel raids
> anyway).
> 
> 2) The issue is not AMD-specific: I've just reproduced it on intel ich10
> (configured for raid1 in the BIOS) Same error: "formatting device mapper volume
> /dev/mapper/isw_...._part2 - system error code was: -3030"
> 
> 3) The issue still remains in factory repo as of 1 hour ago. (I suppose your
> commit in question is already there)

I submitted it and it was accepted 8 hours ago. However, I cannot find it yet.
Would you check if the last changelog is:

===
* 一  7月 05 2010 xwhu@novell.com
- bnc#619566, fix error in "dmsetup export" patch,
===
It works in my intel environment.

Thanks.
Comment 7 Forgotten User GTSR6JWjet 2010-07-06 09:25:02 UTC
(In reply to comment #6)
[...] 
> I submitted it and it was accepted 8 hours ago. However, I cannot find it yet.
> Would you check if the last changelog is:
> 
> ===
> * 一  7月 05 2010 xwhu@novell.com
> - bnc#619566, fix error in "dmsetup export" patch,
> ===

Which package exactly was updated? I'm not very familiar with factory repos, I just used the online http://download.opensuse.org/factory/repo/oss/

Also, I've just noticed a similar problem mentioned in the (recently resolved) bug 598193, comment #30:
"No dm partitions had been created ..."
"installation failed with 3030 error ..."

No idea if these are really related though.

> It works in my intel environment.
> 
> Thanks.
Comment 8 Forgotten User GTSR6JWjet 2010-07-06 18:54:51 UTC
Ok. I've just tried net install from factory again. The only difference I noticed is a long delay (several minutes maybe) before the "Preparing discs..." progress bar appears (That is, just after I confirm to proceed with formatting etc...) The error message is still the same.

Now, I switched to the terminal and typed  "dmraid -ay" (as a random guess)
After that all existing partitions wonderfully appeared.

/proc/partitions:
253 0 488383488 dm-0
253 1  10241406 dm-1
253 2   1051648 dm-2
253 3   6289408 dm-3
253 4  31455232 dm-4

/dev/mapper/:
control isw_xxx_Volume0 isw_xxx_Volume0p1 isw_xxx_Volume0p2 isw_xxx_Volume0p3 isw_xxx_Volume0p4

Note that the naming of partitions under /dev/mapper/ is not exactly the same as the installer expects ("isw_xxx_Volume0p4" vs. "isw_xxx_Volume0_part4").

So my guess is:
1) "dmraid -ay" (or equivalent) is missing in the installer somewhere.
2) The installer uses wrong naming for dm-raid partitions (*_partX instead of *pX)
Comment 9 Arvin Schnell 2010-07-06 19:36:00 UTC
YaST does a "dmraid -ay -p". The "-p" is used since udev creates the
device nodes for the partitions (at least upto RC2). And YaST uses the
correct naming for dm-raid. "dmraid -ay -p" uses the wrong.
Comment 10 Forgotten User GTSR6JWjet 2010-07-06 20:37:22 UTC
(In reply to comment #9)
> YaST does a "dmraid -ay -p". The "-p" is used since udev creates the
> device nodes for the partitions (at least upto RC2). 

Ah, "-p" explains that. Anyway. I just tried RC2 once again carefully. At this time, before confirming formatting disks, I switched to the terminal and did the following.

- verified that NO partitions were available (under /proc/partitions and /dev/mapper/...)

- did "dmraid -ay".

- verified that all partitions appeared both under /proc/partitions and /dev/mapper/...

- manually created symlinks from /dev/mapper/isw_xxx_Volume0pX to /dev/mapper/isw_xxx_Volume0_partX to make installer happy

- returned to installer and confirmed formatting.

After that, installation went on fine and completed successfully. Upon reboot, however, the kernel complained that /dev/mapper/isw_xxx_Volume0_part4 does not exist. This wasn't already surprising though.

So, whichever naming for partions is "correct" and whoever (udev, dm) is responsible for creating them, this is broken in RC2 (and probably factory too). It still does not work.

> And YaST uses the
> correct naming for dm-raid. "dmraid -ay -p" uses the wrong.
Comment 11 Forgotten User GTSR6JWjet 2010-07-06 20:57:22 UTC
After a bit more reading: it seems this is in fact a duplicate of Bug 598193, no?
Comment 12 Xin Wei Hu 2010-07-07 06:27:28 UTC
(In reply to comment #11)
> After a bit more reading: it seems this is in fact a duplicate of Bug 598193,
> no?

Bug 598193 originally is about the udev rule to create device files for device-mapper devices.
This one, IMHO, is about the /etc/udev/rules.d/70-kpartx.rules not running correctly.

The underling reason of these issues are very different.
Comment 13 Forgotten User GTSR6JWjet 2010-07-07 09:40:55 UTC
(In reply to comment #12)
[...]
> This one, IMHO, is about the /etc/udev/rules.d/70-kpartx.rules not running
> correctly.

Ok, do you need some more information/testing from me? 

Currently, I have a shiny new box by hand, ready for experiments. I'll do my best to help fixing this before the final release. (As otherwise I'll probably have to refrain from switching to 11.3 altogether)
Comment 14 Xin Wei Hu 2010-07-07 09:58:59 UTC
(In reply to comment #13)
> (In reply to comment #12)
> [...]
> > This one, IMHO, is about the /etc/udev/rules.d/70-kpartx.rules not running
> > correctly.
> 
> Ok, do you need some more information/testing from me? 
> 
> Currently, I have a shiny new box by hand, ready for experiments. I'll do my
> best to help fixing this before the final release. (As otherwise I'll probably
> have to refrain from switching to 11.3 altogether)

Your help's really appreciated.

Could you update both udev and device-mapper from 
http://download.opensuse.org/repositories/Base:/System/openSUSE_Factory/
and retest ?

Thanks.
Comment 15 Forgotten User GTSR6JWjet 2010-07-07 22:48:42 UTC
(In reply to comment #14)

> Could you update both udev and device-mapper from 
> http://download.opensuse.org/repositories/Base:/System/openSUSE_Factory/
> and retest ?

Ok. I did the following:

- Net install from factory, using regular (non-dm) hard drive.

- Verified that the problem with dmraid partitions remains. Namely, opened Yast partitioner and tried to create additional swap on dmraid partition - failure (error 3030).

- Updated packages udev, device-mapper, dmraid, multipath-tools, kpartx from Base:/System/openSUSE_Factory/

- Reboot (just in case).

- The problem disappeared. That is, Yast partitioner added new swap on dmraid partition and it was successfully formatted. Other (unused) dmraid paritions are also visible under /proc/partitions and /dev/mapper/isw_xxx_partX now. Good.

Now, how can I test that a fresh installation into dmraid partition(s) will also succeed now?

> 
> Thanks.
Comment 16 Xin Wei Hu 2010-07-16 09:14:16 UTC
(In reply to comment #15)
> Now, how can I test that a fresh installation into dmraid partition(s) will
> also succeed now?

Thanks for the feedback.

With the latest release, I think this has been fixed for fresh installation.