Ubuntu

grub-install /dev/mapper/isw_$UUID_$NAME0 failing with ICH10R raid 1+0

Reported by Robert Collins on 2011-06-29
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
High
Unassigned

Bug Description

/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/isw_bichcdfhcg_ARRAY0. Check your device.map.

is the error.

the array has four drives in it:
/dev/sda 1000204886016 ATA ST31000528AS
/dev/sdb 1000204886016 ATA ST31000528AS
/dev/sdc 1000203804160 ATA SAMSUNG HD103UJ
/dev/sdd 1000203804160 ATA SAMSUNG HD103UJ
/dev/mapper/isw_bichcdfhcg_ARRAY0 2000402251776 Linux device-mapper (striped)
/dev/mapper/isw_bichcdfhcg_ARRAY0-1 1000201129984 Linux device-mapper (mirror)
/dev/mapper/isw_bichcdfhcg_ARRAY0-0 1000201129984 Linux device-mapper (mirror)
/dev/mapper/isw_bichcdfhcg_ARRAY0p1 41094144 Linux device-mapper (linear)
/dev/mapper/isw_bichcdfhcg_ARRAY0p2 9141485568 Linux device-mapper (linear)
/dev/mapper/isw_bichcdfhcg_ARRAY0p3 104857600000 Linux device-mapper (linear)
/dev/mapper/isw_bichcdfhcg_ARRAY0p5 4194304000 Linux device-mapper (linear)
/dev/mapper/isw_bichcdfhcg_ARRAY0p6 1882164559872 Linux device-mapper (linear)

the root device is striped on two mirror devices : so the right drive to use is a stripe set (with in this case 64k stripes) - but the bios will bring it up... I'm not sure (yet) why grub-probe needs to care.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: grub-pc 1.99~rc1-13ubuntu3
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
Architecture: amd64
Date: Thu Jun 30 09:43:42 2011
LiveMediaBuild: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: grub2
UpgradeStatus: No upgrade log present (probably fresh install)

Robert Collins (lifeless) wrote :
Robert Collins (lifeless) wrote :

See also bug 560748 which will make it hard for folk to reach this stage of the installation process

Robert Collins (lifeless) wrote :

No device.map gets written.

Robert Collins (lifeless) wrote :

+ [ x/dev/mapper/isw_bichcdfhcg_ARRAY0 != x ]
+ echo /dev/mapper/isw_bichcdfhcg_ARRAY0
+ grep -qx (.*)
+ /usr/sbin/grub-probe --device-map=/boot/grub/device.map --target=drive --device /dev/mapper/isw_bichcdfhcg_ARRAY0
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/isw_bichcdfhcg_ARRAY0. Check your device.map.
+ install_drive=

Robert Collins (lifeless) wrote :
Robert Collins (lifeless) wrote :

This is the device.map I got from running
grub-mkdevicemap
and then adding the array0 device.

its visible in /dev/mapper:
# ls /dev/mapper/
control isw_bichcdfhcg_ARRAY0-1 isw_bichcdfhcg_ARRAY0p3
isw_bichcdfhcg_ARRAY0 isw_bichcdfhcg_ARRAY0p1 isw_bichcdfhcg_ARRAY0p5
isw_bichcdfhcg_ARRAY0-0 isw_bichcdfhcg_ARRAY0p2 isw_bichcdfhcg_ARRAY0p6

Colin Watson (cjwatson) on 2011-06-29
Changed in grub2 (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Robert Collins (lifeless) wrote :

# dmsetup table
isw_bichcdfhcg_ARRAY0p6: 0 3676102656 linear 252:2 230932480
isw_bichcdfhcg_ARRAY0p5: 0 8192000 linear 252:2 222738432
isw_bichcdfhcg_ARRAY0-1: 0 1953517832 mirror core 2 131072 nosync 2 8:32 0 8:48 0 1 handle_errors
isw_bichcdfhcg_ARRAY0p3: 0 204800000 linear 252:2 17936384
isw_bichcdfhcg_ARRAY0-0: 0 1953517832 mirror core 2 131072 nosync 2 8:0 0 8:16 0 1 handle_errors
isw_bichcdfhcg_ARRAY0p2: 0 17854464 linear 252:2 81920
isw_bichcdfhcg_ARRAY0: 0 3907035648 striped 2 128 252:0 0 252:1 0
isw_bichcdfhcg_ARRAY0p1: 0 80262 linear 252:2 63

Robert Collins (lifeless) wrote :

This permits probe to work somewhat (but is wrong - its grabbing the array0-1 device, not array0).

Robert Collins (lifeless) wrote :

This version detects (hd6) (which is the right thing in the manually made device.mapper) and claims to successfully install to it, though it warns about 'flexnet in sector 32'. wish me luck.

tags: added: patch
Colin Watson (cjwatson) wrote :

Thanks! I made a couple of slight style amendments and have pushed this.

Changed in grub2 (Ubuntu):
status: Confirmed → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package grub2 - 1.99-12ubuntu2

---------------
grub2 (1.99-12ubuntu2) oneiric; urgency=low

  * Handle probing striped DM-RAID devices (thanks, Robert Collins;
    LP: #803658).
 -- Colin Watson <email address hidden> Wed, 14 Sep 2011 13:10:54 +0100

Changed in grub2 (Ubuntu):
status: Fix Committed → Fix Released
Robert Collins (lifeless) wrote :
Download full text (5.3 KiB)

Just applied the test package:
Preconfiguring packages ...
(Reading database ... 343009 files and directories currently installed.)
Removing apport-gtk ...
Removing apport ...
invoke-rc.d: policy-rc.d denied execution of stop.
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for shared-mime-info ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
(Reading database ... 342937 files and directories currently installed.)
Preparing to replace grub-pc 1.99-21ubuntu3.1 (using .../grub-pc_2.00-2ubuntu1~ppa1~precise_amd64.deb) ...
Unpacking replacement grub-pc ...
Preparing to replace grub-pc-bin 1.99-21ubuntu3.1 (using .../grub-pc-bin_2.00-2ubuntu1~ppa1~precise_amd64.deb) ...
Unpacking replacement grub-pc-bin ...
Preparing to replace grub2-common 1.99-21ubuntu3.1 (using .../grub2-common_2.00-2ubuntu1~ppa1~precise_amd64.deb) ...
Unpacking replacement grub2-common ...
Preparing to replace grub-common 1.99-21ubuntu3.1 (using .../grub-common_2.00-2ubuntu1~ppa1~precise_amd64.deb) ...
invoke-rc.d: policy-rc.d denied execution of stop.
Unpacking replacement grub-common ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Processing triggers for ureadahead ...
Setting up grub-common (2.00-2ubuntu1~ppa1~precise) ...
Installing new version of config file /etc/grub.d/00_header ...
Installing new version of config file /etc/grub.d/05_debian_theme ...
Installing new version of config file /etc/grub.d/41_custom ...
Installing new version of config file /etc/grub.d/10_linux ...
Installing new version of config file /etc/grub.d/30_os-prober ...
Installing new version of config file /etc/grub.d/20_linux_xen ...
invoke-rc.d: policy-rc.d denied execution of start.
Setting up grub2-common (2.00-2ubuntu1~ppa1~precise) ...
Setting up grub-pc-bin (2.00-2ubuntu1~ppa1~precise) ...
Setting up grub-pc (2.00-2ubuntu1~ppa1~precise) ...
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-25-generic
Found initrd image: /boot/initrd.img-3.2.0-25-generic
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/isw_bichcdfhcg_ARRAY0p6. Check your device.map.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/isw_bichcdfhcg_ARRAY0p6. Check your device.map.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/isw_bichcdfhcg_ARRAY0p6. Check your device.map.
Found linux image: /boot/vmlinuz-3.2.0-24-generic
Found initrd image: /boot/initrd.img-3.2.0-24-generic
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/isw_bichcdfhcg_ARRAY0p6. Check your device.map.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/isw_bichcdfhcg_ARRAY0p6. Check your ...

Read more...

Robert Collins (lifeless) wrote :

$ sudo /usr/sbin/grub-probe --device-map=/boot/grub/device.map --target=drive --device /dev/mapper/isw_bichcdfhcg_ARRAY0
(hd0)

IIRC That means its all happy, and the other errors are for higher order partitions.

Robert Collins (lifeless) wrote :

$ sudo /usr/sbin/grub-probe -vv --device-map=/boot/grub/device.map --target=drive --device /dev/mapper/isw_bichcdfhcg_ARRAY0p1
/usr/sbin/grub-probe: info: /dev/dm-3 is not DM-RAID.
/usr/sbin/grub-probe: info: Looking for /dev/mapper/isw_bichcdfhcg_ARRAY0p1.
/usr/sbin/grub-probe: info: /dev/dm-3 is not DM-RAID.
/usr/sbin/grub-probe: info: /dev/dm-3 is not DM-RAID.
/usr/sbin/grub-probe: info: /dev/dm-3 is not DM-RAID.
/usr/sbin/grub-probe: info: Looking for /dev/mapper/isw_bichcdfhcg_ARRAY0p1.
/usr/sbin/grub-probe: info: /dev/dm-3 is not DM-RAID.
/usr/sbin/grub-probe: info: /dev/dm-3 is not DM-RAID.
/usr/sbin/grub-probe: info: /dev/dm-3 is not DM-RAID.
/usr/sbin/grub-probe: info: Looking for /dev/mapper/isw_bichcdfhcg_ARRAY0p1.
/usr/sbin/grub-probe: info: /dev/dm-3 is not DM-RAID.
/usr/sbin/grub-probe: info: /dev/dm-3 is not DM-RAID.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/mapper/isw_bichcdfhcg_ARRAY0p1. Check your device.map.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers