Bug 16035 - cannot install mga5 on raid0 ("I cannot read the partition table of device sdb, it's too corrupted for me")
Summary: cannot install mga5 on raid0 ("I cannot read the partition table of device sd...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2015-05-24 16:36 CEST by Nicolas Lécureuil
Modified: 2017-04-15 02:42 CEST (History)
3 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
Bug file (174.79 KB, text/plain)
2015-05-24 17:37 CEST, Nicolas Lécureuil
Details
asked debug (9.42 KB, text/plain)
2015-05-25 13:31 CEST, Nicolas Lécureuil
Details

Description Nicolas Lécureuil 2015-05-24 16:36:18 CEST
As i got back a machine in RAID i tried to install mga5 in it.

It refuses, it tells me 

"I cannot read the partition table of device sdb, it's too corrupted for me :(
 I can try to go on, erasing over bad partition ( ALL DATA will be lost!).
 The other solution is to not allow DrakX to modify the partition table.
 (the error is unknown partition table format on disk /dev/sdb. )

Do you agree to lose all the partitions ?"




Reproducible: 

Steps to Reproduce:
Nicolas Lécureuil 2015-05-24 16:36:41 CEST

Assignee: bugsquad => thierry.vignaud

Comment 1 Thierry Vignaud 2015-05-24 16:41:39 CEST
As usual, please attach you report.bug file.
Just:
- rerun the installer up to the issu
- plug a USB key
- go to tty
- run the "bug" command
- attach the "report.bug" file you'll found on this USB key here

Keywords: (none) => NEEDINFO

Comment 2 Nicolas Lécureuil 2015-05-24 17:37:20 CEST
Created attachment 6634 [details]
Bug file
Nicolas Lécureuil 2015-05-24 21:39:47 CEST

CC: (none) => pterjan

Comment 3 Nicolas Lécureuil 2015-05-25 12:44:07 CEST
i don't know if it helps but some years ago before giving this machine ( that i now got back ) it passed to install a mga1 ( but didn't worked since ).
Comment 4 Thierry Vignaud 2015-05-25 12:57:03 CEST
That's not the error your logs are showing:
* error: unknown partition table format on disk /dev/sdb at /usr/lib/libDrakX/partition_table.pm line 255.

(which is a MBR one according to fdisk)

Can you try the live ISO, alter /usr/lib/libDrakX/partition_table/raw.pm:
After  line 244, which is:
    my ($pt, $info) = eval { $hd->read_one(0) };
insert the following line :
use Data::Dumper; warn Data::Dumper->Dump([ $hd, $pt, $info ], [ qw(hd pt info) ]);

Then run diskdrake&>/tmp/out.txt then attach your /tmp/out.txt file here.
Comment 5 Thierry Vignaud 2015-05-25 12:58:25 CEST
Also first insert (before the Dumper one) the following lines:
if (my $res = $@) {
   warn ">> ERROR='$err'\n";
   log::l(">> ERROR='$err'");
}
Comment 6 Nicolas Lécureuil 2015-05-25 13:31:15 CEST
Created attachment 6639 [details]
asked debug
Comment 7 Pascal Terjan 2015-05-25 14:07:08 CEST
What kind of raid is it supposed to be?

sda seems contain a partition table with all partitions in the table being on the first disk.

It looks like the first disk was used without being in a raid and the second one just has garbage.
Comment 8 Nicolas Lécureuil 2015-05-25 14:11:47 CEST
iirc this is RAID0, how to confirm ?
Comment 9 Thierry Vignaud 2015-05-25 14:14:43 CEST
The following is a libparted error:
"Error: Impossible d'ouvrir /dev/sdb - étiquette de disque non reconnue."

Also sdb is missing from fdisk output.

Last but not least the kernel said:
"sdb: unknown partition table"

So if neither the kernel, diskdrake, libparted nor fdisk can read its partition table, I think the issue is with the disk which have a broken partition table.

Can you attach the /etc/mdadm.conf from the installed OS?
Comment 10 Nicolas Lécureuil 2015-05-25 14:38:04 CEST
i am reinstalling debian on it to tell but seems pascal is right and tht it only installs on the sda for debian ( does not complain but treat as 2 disks and not raid ).
Comment 11 Nicolas Lécureuil 2015-05-25 14:38:51 CEST
i am reinstalling  because i did the mistake right now to tell "yes delete the partition" to see if this would fix but it didn't.
Comment 12 Thierry Vignaud 2015-05-25 17:37:55 CEST
Reducing severity as it happened on one box only and all tools agree that this sdb is unparsable.

Severity: critical => normal

Comment 13 Nicolas Lécureuil 2015-05-25 17:42:14 CEST
iirc, from my memory in mga1 that was telling it was using raid software or something like this and was asking the permission to load something like a module.

Step i don't have anymore.
Comment 14 Nicolas Lécureuil 2015-05-25 17:44:36 CEST
in the installer in the partitionning part i see the 2 disks, "before" only one line was shown.
Comment 15 Sander Lepik 2015-05-25 21:18:18 CEST
Nicolas, you never mentioned what kind of RAID it should be. Soft-RAID or fake-RAID? If it's fake-RAID then does the BIOS still confirm that it's set up as RAID, not as two disks? It should need the module only when it's some kind of fake-RAID that needs kernel module to display the disks as one. Also, if it's fake-RAID then who's product is it and which modules does it need?

CC: (none) => mageia

Comment 16 Nicolas Lécureuil 2015-05-25 21:21:33 CEST
if i new i would fix.
i provide the info asked i don't know more. 
If you need specific informations ask i will answer. 
For the bios all should be ok i never modified it.
Comment 17 Nicolas Lécureuil 2015-05-25 21:53:17 CEST
you can decrease the priority as i can install using one disk. 
I am still available to give infos, tests for the raid fix
Comment 18 Sander Lepik 2015-05-25 22:39:00 CEST
Well, it's still important to know which kind of RAID it is. Is there anything about it in the BIOS? If it's fake-RAID there should be some configuration for it in the BIOS and also some information who produced this hardware.
Comment 19 Nicolas Lécureuil 2015-05-25 23:05:35 CEST
sorry this is in french but this confirm this is RAID0 : http://www.01net.com/article/298244.html

anyway look to the comment #6 for more infos about the HW ( this is a sony Vaio VGC-RC102 ).
Comment 20 Nicolas Lécureuil 2015-05-25 23:11:57 CEST
as i needed it to work, i fixed the partition table by adding one with gparted.
Comment 21 Nicolas Lécureuil 2015-05-25 23:12:27 CEST
but that of course doesn't close this bug as the raid part still broken :)
Comment 22 Pascal Terjan 2015-05-25 23:16:27 CEST
Nothing seems to be broken. It seems there is currently no RAID configured (probably by previous install).

Fake RAID is configured by the BIOS by just adding some information on the disks to tell the operating system that it should emulate RAID.

If you ignore it and partition one disk, the information will be overwritten and there will be no RAID until you re-create one in the BIOS.
Comment 23 Nicolas Lécureuil 2015-05-26 00:00:13 CEST
ok so nothing wrong here ? 
When possible shouldn't the isntaller propose this ?
Thierry Vignaud 2016-07-04 18:20:52 CEST

Summary: cannot install mga5 in a raid0 Machine => cannot install mga5 on raid0 ("I cannot read the partition table of device sdb, it's too corrupted for me")

Luis Menina 2017-04-15 02:42:43 CEST

CC: (none) => liberforce


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