[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#568975: ([squeeze/lenny][i386][2010-02-04] grub-installer fails, system unbootable)




I think I've identified the issue here. Details at the end.

In short:
partman-auto-raid v15 creates /dev/md0 with a v1.1 superblock.

The version of grub being used (0.97-47lenny2) doesn't handle this
version of the superblock metadata AFAICT (see e.g. #554500).

This seems to be causing the grub-probe and grub --batch calls
to fail (around line 373 and following in /usr/sbin/grub-install).
I've attached some syslog output to show this.
When grub-installer failed, I hacked grub-install and grub-installer
a little to display what is going on, then reran the grub-installer
step from the installer menu and extracted the resulting output
from the syslog.


Should this be reassigned to partman-auto-raid?
The options for resolving it (so lenny-via-squeeze works) seem to be:
 - add a debconf configuration item to specify the metadata version
or
 - add some hokey logic to detect the suite we're installing
   and turn on --metadata=0.90 when creating the array

Is there any way of converting the RAID sets to v0.90 metadata?

Cheers
Vince

Details:

# grep partman-auto-raid /var/log/syslog

Feb 11 04:41:48 anna[5724]: DEBUG: retrieving partman-auto-raid 15
Feb 11 04:42:28 partman-auto-raid: Selected spare count: 0
Feb 11 04:42:28 partman-auto-raid: Spare devices count: 0
Feb 11 04:42:28 partman-auto-raid: mdadm: Note: this array has metadata at the start and
Feb 11 04:42:28 partman-auto-raid:     may not be suitable as a boot device.  If you plan to
Feb 11 04:42:28 partman-auto-raid:     store '/' or '/boot' on this device please ensure that
Feb 11 04:42:28 partman-auto-raid:     your boot-loader understands md/v1.x metadata, or use
Feb 11 04:42:28 partman-auto-raid:     --metadata=1.0
Feb 11 04:42:28 partman-auto-raid: mdadm: Note: this array has metadata at the start and
Feb 11 04:42:28 partman-auto-raid:     may not be suitable as a boot device.  If you plan to
Feb 11 04:42:28 partman-auto-raid:     store '/' or '/boot' on this device please ensure that
Feb 11 04:42:28 partman-auto-raid:     your boot-loader understands md/v1.x metadata, or use
Feb 11 04:42:28 partman-auto-raid:     --metadata=1.0
Feb 11 04:42:28 partman-auto-raid: mdadm: Defaulting to version 1.1 metadata
Feb 11 04:42:28 partman-auto-raid: mdadm: array /dev/md0 started.
...

# grep grub /var/log/syslog
Feb 11 04:41:46 anna[5724]: DEBUG: retrieving grub-installer 1.49
Feb 11 04:48:25 in-target:   linux-doc-2.6.26 grub lilo
Feb 11 04:49:44 main-menu[769]: INFO: Menu item 'grub-installer' selected
Feb 11 04:49:44 grub-installer: info: architecture: i386/generic
Feb 11 04:49:45 grub-installer: info: Identified partition label for /dev/md0: loop
Feb 11 04:49:45 grub-installer: dpkg - warning: ignoring request to remove grub-pc which isn't installed.
Feb 11 04:49:46 in-target: Couldn't find package grub-legacy
Feb 11 04:49:47 in-target:   grub-common
Feb 11 04:49:47 in-target:   grub-legacy-doc multiboot-doc
Feb 11 04:49:47 in-target:   grub grub-common
Feb 11 04:49:47 in-target: Get:1 http://ftp.au.debian.org lenny/main grub-common 1.96+20080724-16 [189kB]
Feb 11 04:49:47 in-target: Get:2 http://ftp.au.debian.org lenny/main grub 0.97-47lenny2 [389kB]
Feb 11 04:49:47 in-target: Selecting previously deselected package grub-common.
Feb 11 04:49:47 in-target: Unpacking grub-common (from .../grub-common_1.96+20080724-16_i386.deb) ...
Feb 11 04:49:47 in-target: Selecting previously deselected package grub.
Feb 11 04:49:47 in-target: Unpacking grub (from .../grub_0.97-47lenny2_i386.deb) ...
Feb 11 04:49:48 in-target: Setting up grub-common (1.96+20080724-16) ...
Feb 11 04:49:48 in-target: Setting up grub (0.97-47lenny2) ...
Feb 11 04:49:49 grub-installer: info: Installing grub on '(hd0)'
Feb 11 04:49:49 grub-installer: info: grub-install supports --no-floppy
Feb 11 04:49:49 grub-installer: info: Running chroot /target grub-install --no-floppy --recheck "(hd0)"
Feb 11 04:49:49 grub-installer: You shouldn't call /sbin/grub-install. Please call /usr/sbin/grub-install instead!
Feb 11 04:49:49 grub-installer:
Feb 11 04:49:49 grub-installer: Searching for GRUB installation directory ...
Feb 11 04:49:49 grub-installer: found: /boot/grub
Feb 11 04:49:52 grub-installer: grub-probe: error:
Feb 11 04:49:52 grub-installer: no mapping exists for `md0'


# cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sdb3[1] sda3[0]
      727575685 blocks super 1.1 [2/2] [UU]
[>....................] resync = 4.2% (30862464/727575685) finish=144.3min speed=80450K/sec

md1 : active raid1 sdb2[1] sda2[0]
      4000177 blocks super 1.1 [2/2] [UU]
        resync=DELAYED

md0 : active raid1 sdb1[1] sda1[0]
      995990 blocks super 1.1 [2/2] [UU]

unused devices: <none>

# mdadm --examine /dev/sda1
/dev/sda1:
          Magic : a92b4efc
        Version : 1.1
    Feature Map : 0x0
     Array UUID : e370f4cb:02d9861a:faac79fb:84ee0795
           Name : install:0  (local to host install)
  Creation Time : Thu Feb 11 04:42:28 2010
     Raid Level : raid1
   Raid Devices : 2

 Avail Dev Size : 1991981 (972.81 MiB 1019.89 MB)
     Array Size : 1991980 (972.81 MiB 1019.89 MB)
  Used Dev Size : 1991980 (972.81 MiB 1019.89 MB)
    Data Offset : 16 sectors
   Super Offset : 0 sectors
          State : clean
    Device UUID : 4d226c97:466959bf:405c747d:b2f76dc1

    Update Time : Thu Feb 11 04:54:56 2010
       Checksum : fbd4d347 - correct
         Events : 34


   Device Role : Active device 0
   Array State : AA ('A' == active, '.' == missing)

Attachment: syslog.chunk.gz
Description: Binary data


Reply to: