Bug 6363 - Can't install new kernels (failed initrd generation) [raid]
Summary: Can't install new kernels (failed initrd generation) [raid]
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2012-06-07 00:59 CEST by Luiz Alberto Saba
Modified: 2015-05-19 10:13 CEST (History)
5 users (show)

See Also:
Source RPM: drakxtools-14.21-1.mga3.src.rpm
CVE:
Status comment:


Attachments
Output of sfdisk (4.28 KB, text/plain)
2012-06-08 22:01 CEST, Luiz Alberto Saba
Details

Description Luiz Alberto Saba 2012-06-07 00:59:42 CEST
Description of problem:
Installation of new kernels fail

Version-Release number of selected component (if applicable):


How reproducible:
Everytime I try to install a new kernel

Steps to Reproduce:
1.urpmi kernel-desktop-latest
2.Here's the messages:

      1/4: kernel-desktop-3.4.1-1.mga3   ########################
Error: Can't have a partition outside the disk!
Error: Can't have a partition outside the disk!
INTERNAL ERROR: unknown device sde1
MDK::Common::Various::internal_error() called from /usr/lib/libDrakX/devices.pm:186
devices::entry() called from /usr/lib/libDrakX/devices.pm:201
devices::make() called from /usr/lib/libDrakX/fs/type.pm:275
fs::type::call_blkid() called from /usr/lib/libDrakX/fs/type.pm:283
fs::type::type_subpart_from_magic() called from /usr/lib/libDrakX/fsedit.pm:271
fsedit::get_hds() called from /usr/sbin/bootloader-config:61


The sde1 device do not exist. It's a part of a raid 0 array.

Just ask me the relevant info you need.
Comment 1 Luiz Alberto Saba 2012-06-08 17:15:19 CEST
No news?
Comment 2 Dave Hodgins 2012-06-08 19:59:40 CEST
Please attach the output of "sfdisk -l -uS".

I'm not that familiar with raid, but the above should give
information on what get_hds is seeing.

CC: (none) => davidwhodgins

Comment 3 Luiz Alberto Saba 2012-06-08 22:01:17 CEST
Created attachment 2442 [details]
Output of sfdisk
Comment 4 Dave Hodgins 2012-06-09 00:18:54 CEST
Looks like two of the drives have problems.

/dev/sdb 182401 x 255 x 63 = 2,930,272,065 sectors
/dev/sdb2     ends at sector 2,930,276,351 which is past the end of the drive.

/dev/sde: 60801 x 255 x 63 = 976,768,065 sectors
/dev/sde2   ends at sector 1,952,987,135

The partition tables need to be corrected.
Comment 5 Luiz Alberto Saba 2012-06-09 03:05:00 CEST
sdb is an ext4 disk with 2 partitions and works just fine, with no problems at all.
sde is part of a raid and should NOT be recognized nor treated as a single drive. That's what is causing the problem when trying to generate inirds.
sde & sdf are both part of raid 0 and shoudn't be treated as disks individually.
Comment 6 Dave Hodgins 2012-06-09 23:14:56 CEST
The sdb drive is working fine, and will do so until it tries to write
anything into the last 4,286 sectors, which physically do not exist.
At that point, it will stop working fine.  It should be fixed.

As mentioned, I'm not that familiar with raid.  Is this hardware raid?
My best guess at this point, is that the drive has a partition table
in the mbr, that does not get overwritten by the raid initialization
software.

The partition table in that drive is not valid for the physical size
of the drive, and should be corrected.  The beginning of the drive
should have been overwritten with hex '00', before being added to
the raid array, as I understand it.

Adding Pascal to the cc list.  Even with incorrect partition tables,
that shouldn't block installing a kernel, so this is a valid bug
regarding libparted and the diskdrake tools.

CC: (none) => pterjan

Comment 7 Luiz Alberto Saba 2012-06-10 00:54:07 CEST
The "Official" name of the controller is Adaptec 1220SA.
lshw shows: 
 *-pci:0
          description: Host bridge
          product: 5520/5500/X58 I/O Hub to ESI Port
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 13
          width: 32 bits
          clock: 33MHz
        *-pci:0
             description: PCI bridge
             product: 5520/5500/X58 I/O Hub PCI Express Root Port 1
             vendor: Intel Corporation
             physical id: 1
             bus info: pci@0000:00:01.0
             version: 13
             width: 32 bits
             clock: 33MHz
             capabilities: pci msi pciexpress pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:0 ioport:b000(size=4096) memory:f7f00000-f7ffffff
           *-storage
                description: RAID bus controller
                product: Silicon Image, Inc.
                vendor: Silicon Image, Inc.
                physical id: 0
                bus info: pci@0000:01:00.0
                version: 01
                width: 64 bits
                clock: 33MHz
                capabilities: storage pm msi pciexpress bus_master cap_list rom
                configuration: driver=sata_sil24 latency=0
                resources: irq:28 memory:f7fffc00-f7fffc7f memory:f7ff8000-f7ffbfff ioport:bc00(size=128) memory:f7f00000-f7f7ffff

and lspci:
01:00.0 RAID bus controller: Silicon Image, Inc. Device 0242 (rev 01) (prog-if 01)
	Subsystem: Adaptec Device 0242
	Flags: bus master, fast devsel, latency 0, IRQ 28
	Memory at f7fffc00 (64-bit, non-prefetchable) [size=128]
	Memory at f7ff8000 (64-bit, non-prefetchable) [size=16K]
	I/O ports at bc00 [size=128]
	Expansion ROM at f7f00000 [disabled] [size=512K]
	Capabilities: [54] Power Management version 2
	Capabilities: [5c] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Legacy Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Kernel driver in use: sata_sil24

This raid set (sde & sdf) is a raid 0 with windows 7-64 installed (and working) (with boot).
Since the disks are in a recognised (& working) dm-raid, it's senseless (in my opinion, of course) to analyse them individually.
Comment 8 Luiz Alberto Saba 2012-06-10 03:32:42 CEST
Latest desktop kernel (3.4.2-desktop-1.mga3) could be installed.
Latest TMB (3.4.1-tmb-desktop-1.mga3) couldn't.
Comment 9 Luiz Alberto Saba 2012-06-10 04:35:53 CEST
3.4.2-tmb-desktop-1.mga3 also couldn't be installed.
Comment 10 Luiz Alberto Saba 2012-06-21 03:02:54 CEST
[root@lasaba ~]# LC_ALL=C urpmi kernel-desktop-latest kernel-desktop-devel-latest kernel-tmb-desktop-latest kernel-tmb-desktop-devel-latest
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release")
  kernel-desktop-3.4.3-1.mga3    1            1.mga3        x86_64  
  kernel-desktop-devel-3.4.3-1.> 1            1.mga3        x86_64  
  kernel-desktop-devel-latest    3.4.3        1.mga3        x86_64  
  kernel-desktop-latest          3.4.3        1.mga3        x86_64  
  kernel-tmb-desktop-3.4.3-1.mg> 1            1.mga3        x86_64  
  kernel-tmb-desktop-devel-3.4.> 1            1.mga3        x86_64  
  kernel-tmb-desktop-devel-late> 3.4.3        1.mga3        x86_64  
  kernel-tmb-desktop-latest      3.4.3        1.mga3        x86_64  
122MB of additional disk space will be used.
79MB of packages will be retrieved.
Proceed with the installation of the 8 packages? (Y/n) y


installing kernel-tmb-desktop-devel-latest-3.4.3-1.mga3.x86_64.rpm kernel-desktop-devel-3.4.3-1.mga3-1-1.mga3.x86_64.rpm kernel-tmb-desktop-devel-3.4.3-1.mga3-1-1.mga3.x86_64.rpm kernel-tmb-desktop-latest-3.4.3-1.mga3.x86_64.rpm kernel-tmb-desktop-3.4.3-1.mga3-1-1.mga3.x86_64.rpm kernel-desktop-3.4.3-1.mga3-1-1.mga3.x86_64.rpm kernel-desktop-devel-latest-3.4.3-1.mga3.x86_64.rpm kernel-desktop-latest-3.4.3-1.mga3.x86_64.rpm from /mageia/mga/distrib/cauldron/x86_64/media/core/release
Preparing...                     ################################################################################################################################################################################
      1/8: kernel-desktop-3.4.3-1.mga3
                                 ################################################################################################################################################################################
Error: Can't have a partition outside the disk!
Error: Can't have a partition outside the disk!
INTERNAL ERROR: unknown device sde1
MDK::Common::Various::internal_error() called from /usr/lib/libDrakX/devices.pm:186
devices::entry() called from /usr/lib/libDrakX/devices.pm:201
devices::make() called from /usr/lib/libDrakX/fs/type.pm:275
fs::type::call_blkid() called from /usr/lib/libDrakX/fs/type.pm:283
fs::type::type_subpart_from_magic() called from /usr/lib/libDrakX/fsedit.pm:271
fsedit::get_hds() called from /usr/sbin/bootloader-config:61
      2/8: kernel-tmb-desktop-3.4.3-1.mga3
                                 ################################################################################################################################################################################
Error: Can't have a partition outside the disk!
Error: Can't have a partition outside the disk!
INTERNAL ERROR: unknown device sde1
MDK::Common::Various::internal_error() called from /usr/lib/libDrakX/devices.pm:186
devices::entry() called from /usr/lib/libDrakX/devices.pm:201
devices::make() called from /usr/lib/libDrakX/fs/type.pm:275
fs::type::call_blkid() called from /usr/lib/libDrakX/fs/type.pm:283
fs::type::type_subpart_from_magic() called from /usr/lib/libDrakX/fsedit.pm:271
fsedit::get_hds() called from /usr/sbin/bootloader-config:61
      3/8: kernel-tmb-desktop-devel-3.4.3-1.mga3
                                 ################################################################################################################################################################################
      4/8: kernel-desktop-devel-3.4.3-1.mga3
                                 ################################################################################################################################################################################
      5/8: kernel-desktop-devel-latest
                                 ################################################################################################################################################################################
      6/8: kernel-tmb-desktop-devel-latest
                                 ################################################################################################################################################################################
      7/8: kernel-tmb-desktop-latest
                                 ################################################################################################################################################################################
      8/8: kernel-desktop-latest ################################################################################################################################################################################

nvidia-current (295.49-6.mga3.nonfree): Installing module.
..................
............

nvidia-current (295.49-6.mga3.nonfree): Installing module.
.................
...........
You should restart your computer for kernel-desktop-3.4.3-1.mga3, kernel-tmb-desktop-3.4.3-1.mga3
Manuel Hiebel 2012-06-21 19:32:27 CEST

CC: (none) => thierry.vignaud, tmb
Summary: Can't install new kernels (failed initrd generation) => Can't install new kernels (failed initrd generation) [raid]

Comment 11 Luiz Alberto Saba 2012-06-27 14:50:29 CEST
[root@lasaba ~]# LC_ALL=C urpmi kernel-desktop-latest kernel-desktop-devel-latest kernel-tmb-desktop-latest kernel-tmb-desktop-devel-latest
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release")
  kernel-desktop-3.4.4-1.mga3    1            1.mga3        x86_64  
  kernel-desktop-devel-3.4.4-1.> 1            1.mga3        x86_64  
  kernel-desktop-devel-latest    3.4.4        1.mga3        x86_64  
  kernel-desktop-latest          3.4.4        1.mga3        x86_64  
  kernel-tmb-desktop-3.4.4-1.mg> 1            1.mga3        x86_64  
  kernel-tmb-desktop-devel-3.4.> 1            1.mga3        x86_64  
  kernel-tmb-desktop-devel-late> 3.4.4        1.mga3        x86_64  
  kernel-tmb-desktop-latest      3.4.4        1.mga3        x86_64  
122MB of additional disk space will be used.
78MB of packages will be retrieved.
Proceed with the installation of the 8 packages? (Y/n) y


installing kernel-tmb-desktop-devel-latest-3.4.4-1.mga3.x86_64.rpm kernel-desktop-latest-3.4.4-1.mga3.x86_64.rpm kernel-desktop-devel-3.4.4-1.mga3-1-1.mga3.x86_64.rpm kernel-tmb-desktop-devel-3.4.4-1.mga3-1-1.mga3.x86_64.rpm kernel-desktop-devel-latest-3.4.4-1.mga3.x86_64.rpm kernel-desktop-3.4.4-1.mga3-1-1.mga3.x86_64.rpm kernel-tmb-desktop-3.4.4-1.mga3-1-1.mga3.x86_64.rpm kernel-tmb-desktop-latest-3.4.4-1.mga3.x86_64.rpm from /mageia/mga/distrib/cauldron/x86_64/media/core/release
Preparing...                     ################################################################################################################################################################################
      1/8: kernel-tmb-desktop-3.4.4-1.mga3
                                 ################################################################################################################################################################################
Error: Can't have a partition outside the disk!
Error: Can't have a partition outside the disk!
INTERNAL ERROR: unknown device sde1
MDK::Common::Various::internal_error() called from /usr/lib/libDrakX/devices.pm:186
devices::entry() called from /usr/lib/libDrakX/devices.pm:201
devices::make() called from /usr/lib/libDrakX/fs/type.pm:275
fs::type::call_blkid() called from /usr/lib/libDrakX/fs/type.pm:283
fs::type::type_subpart_from_magic() called from /usr/lib/libDrakX/fsedit.pm:271
fsedit::get_hds() called from /usr/sbin/bootloader-config:61
      2/8: kernel-desktop-3.4.4-1.mga3
                                 ################################################################################################################################################################################
Error: Can't have a partition outside the disk!
Error: Can't have a partition outside the disk!
INTERNAL ERROR: unknown device sde1
MDK::Common::Various::internal_error() called from /usr/lib/libDrakX/devices.pm:186
devices::entry() called from /usr/lib/libDrakX/devices.pm:201
devices::make() called from /usr/lib/libDrakX/fs/type.pm:275
fs::type::call_blkid() called from /usr/lib/libDrakX/fs/type.pm:283
fs::type::type_subpart_from_magic() called from /usr/lib/libDrakX/fsedit.pm:271
fsedit::get_hds() called from /usr/sbin/bootloader-config:61
      3/8: kernel-tmb-desktop-devel-3.4.4-1.mga3
                                 ################################################################################################################################################################################
      4/8: kernel-desktop-devel-3.4.4-1.mga3
                                 ################################################################################################################################################################################
      5/8: kernel-desktop-devel-latest
                                 ################################################################################################################################################################################
      6/8: kernel-tmb-desktop-devel-latest
                                 ################################################################################################################################################################################
      7/8: kernel-desktop-latest ################################################################################################################################################################################
      8/8: kernel-tmb-desktop-latest
                                 ################################################################################################################################################################################

nvidia-current (295.49-6.mga3.nonfree): Already installed on this kernel.

nvidia-current (295.49-6.mga3.nonfree): Installing module.
...................
............
You should restart your computer for glibc, kernel-desktop-3.4.4-1.mga3, kernel-tmb-desktop-3.4.4-1.mga3
Comment 12 Dave Hodgins 2012-07-01 22:30:47 CEST
Adding more examples of the kernel installation failing will not help.

The problem is already clear, in that bootloader-config fails due to the
"Error: Can't have a partition outside the disk!".

Either fix the partition tables, or wait till the drakxtools-backend is
fixed so that it isn't blocked by a libparted error.
Comment 13 Nic Baxter 2015-03-10 07:50:50 CET
Will this be fixed? Seems unlikely to me since partitions should be aligned correctly.

CC: (none) => nic

Comment 14 Thierry Vignaud 2015-05-15 16:57:15 CEST
I think this should be fixed as of Mga 5 RC.
Can you test it?

Keywords: (none) => NEEDINFO

Comment 15 Thierry Vignaud 2015-05-19 10:13:11 CEST
Presumed fixed

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


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