grub-install fails to install on a raid1 array

Bug #701351 reported by linas
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: grub2

This bug is very similar to https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/527401 but different with a twist: I'm running mdraid version 1.0, whereas the above bug explicitly states that the fix is for version 0.9.
To recap:

# lsb_release -rd
Description: Ubuntu 10.04.1 LTS
Release: 10.04

# apt-cache policy grub2
grub2:
  Installed: 1.98-1ubuntu9
  Candidate: 1.98-1ubuntu9
  Version table:
 *** 1.98-1ubuntu9 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/universe Packages
        100 /var/lib/dpkg/status
     1.98-1ubuntu5 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid/universe Packages

# grub-install --recheck --modules="mdraid raid" /dev/md1
/usr/sbin/grub-probe: error: no mapping exists for `md1'.
/usr/sbin/grub-probe: error: no mapping exists for `md1'.
/usr/sbin/grub-setup: error: no mapping exists for `md1'.

# grub-probe -t fs /boot
grub-probe: error: no mapping exists for `md1'.

# grub-install -v
grub-install (GNU GRUB 1.98-1ubuntu9)

# cat /proc/mdstat

md1 : active raid1 sdc1[3] sda1[0]
      530100 blocks super 1.0 [3/2] [UU_]

NOTE: "super 1.0" above means this is mdraid version 1.0, not 0.9

Comments in bug 527401 (specifically comment 9) suggests that perhaps grub does not (yet?) support raid versions 1.0, 1.1 or 1.2

The upshot is that I'm unable to write the MBR and install grub on either /dev/sda, /dev/sdb or /dev/sdc :-(

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub2 (Ubuntu):
status: New → Confirmed
Revision history for this message
gmoore777 (guy-moore) wrote :

I believe I have this exact problem using LucidLynx Alternate CD 10.04.4.

I put my specifics here:
http://ubuntuforums.org/showthread.php?p=11709060

I even edited /etc/mdadm/mdadm.conf as suggested in comment #55 of
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/527401,
but that didn't change anything.

I am still unable to run in an Alternate CD rescue mode shell:
    grub-install --no-floppy --force --modules="raid mdraid" /dev/md0`

I get 3 errors of:
    /usr/sbin/grub-probe: error: no mapping exists for `md0'.

How does anyone set up RAID1 using LucidLynx.
Has this been broken for 2 years?

Revision history for this message
Phillip Susi (psusi) wrote :

You need to install grub to each underlying physical disk, not the raid array.

Changed in grub2 (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
hamish (hamish-b) wrote :

For the record, grub-install doesn't work even if you set the target as the raw /dev/sda.
Same error message.

(lucid 10.04 LTS server, md raid1 metadata ver 1.2, grub 1.98-1ubuntu13)

thanks,
Hamish

Changed in grub2 (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Phillip Susi (psusi) wrote :

10.04 is no longer supported. If you have a problem installing grub on a supported release, please file your own bug with the logs attached.

Changed in grub2 (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.