bugGNU GRUB - Bugs: bug #34250, grub-probe error: found two disks...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #34250: grub-probe error: found two disks with the index 0 for RAID md0 / superfluous RAID member (2 found)

Submitted by:  Pedro Monteiro <ptsmonteiro>
Submitted on:  Thu 08 Sep 2011 02:06:38 PM UTC  
 
Category:  Installation Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  Pedro Monteiro
Open/Closed:  Closed Release: 
Release:  other Reproducibility:  Every Time
Planned Release:  None

( Jump to the original submission)

Wed 16 Sep 2015 04:28:37 PM UTC, comment #6: 

This message does not exist in upstream grub sources. Bug is marked as fixed. So I assume it is fixed. 12.04 is really old and it is quite possible that it is still present there. You need to raise this with Ubuntu if you want it to be fixed there.

Andrei Borzenkov <arvidjaar>
Project Member
Wed 16 Sep 2015 11:48:37 AM UTC, comment #5: 

I've two questions about this issue:
1. Is there any known workaround for this behaviour of grub-probe, which does not require recreating the software RAID (having 0.90 superblocks in my case)?
2. In my case update-grub2 was invoked by the post-inst script during a package update on a Ubuntu 12.04 LTS server and this behaviour was new to me. If I simply ignore this error message: When will the system become unbootable?

Best regards and many thanks in advance.

Peter Funk <pefu>
Wed 16 May 2012 10:37:55 PM UTC, comment #4: 

Following on from Pedro's comment, I opted for a workaround which I think is more convenient. The 0.90 superblock is 4KiB in size and may begin at a boundary up to 128KiB from the end of the partition. What I did was to ensure that the end boundary of the final partition was decreased by 132KiB from what it otherwise would be. This is easy to accomplish with GNU parted by specifying a value of -264 for the end boundary. After doing so, I no longer encountered the issue with grub-probe, even though the final partitions were members of an array.

Kerin Millar <kerframil>
Fri 21 Oct 2011 09:30:49 AM UTC, comment #3: 

Same problem here with Debian Wheezy:

# update-grub2
error: found two disks with the index 2 for RAID md1.
error: found two disks with the index 2 for RAID md1.
Generating grub.cfg ...
error: found two disks with the index 2 for RAID md1.
error: found two disks with the index 2 for RAID md1.
error: found two disks with the index 2 for RAID md1.
error: found two disks with the index 2 for RAID md1.
error: found two disks with the index 2 for RAID md1.
error: found two disks with the index 2 for RAID md1.
error: found two disks with the index 2 for RAID md1.
error: found two disks with the index 2 for RAID md1.
error: found two disks with the index 2 for RAID md1.
error: found two disks with the index 2 for RAID md1.
error: found two disks with the index 2 for RAID md1.
Found linux image: /boot/vmlinuz-3.0.0-1-amd64
Found initrd image: /boot/initrd.img-3.0.0-1-amd64
error: found two disks with the index 2 for RAID md1.
error: found two disks with the index 2 for RAID md1.
error: found two disks with the index 2 for RAID md1.
error: found two disks with the index 2 for RAID md1.
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
error: found two disks with the index 2 for RAID md1.
done

I have a three disk raid-1 array

Kevin <kevinphilp>
Wed 28 Sep 2011 12:52:23 PM UTC, comment #2: 

The problem is that 0.9x metadata block doesn't have enough info to check it. With 1.x we have no such problem.

Vladimir Serbinenko <phcoder>
Project Administrator
Mon 12 Sep 2011 04:16:26 PM UTC, comment #1: 

Found the reason for the problem and a workaround.

The problem:

The problem is having a RAID partition as the last partition of the device. Because the superblock location of a partition that is the last on the device and the superblock location of an entire device is the same (both on the end of the device) the superblock metadata should be used to find which RAID device it's related to.
Apparently grub-probe misunderstands this info. In my case it was assuming I had a full hard drive RAID device instead of a single partition at the end.

The workaround:

Having found this erratic behavior, I changed my disk partition layout so that the RAID partition wouldn't be at the end of the disk. Now, the last partition was the swap partition.
That change itself didn't work because the mkswap command didn't erase the raid superblock data still in the partition at the end of the drive. I had to do a "mdadm --zero-superblock" at the disk device so that the only valid superblock would be the RAID partition superblock.

After all this, I finally got grub-probe to detect my configuration successfully.

Pedro Monteiro <ptsmonteiro>
Thu 08 Sep 2011 02:06:38 PM UTC, original submission:  

I've just upgraded from Ubuntu Maverick to Ubuntu Natty and I'm getting Grub related errors:

-----------------------------------------
Setting up linux-image-2.6.38-11-generic (2.6.38-11.48) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.38-11-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 2.6.38-11-generic /boot/vmlinuz-2.6.38-11-generic

  • dkms: running auto installation service for kernel 2.6.38-11-generic
  • vboxhost (4.0.4)... [ OK ]
  • nvidia-current (270.41.06)... [ OK ]

run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.38-11-generic /boot/vmlinuz-2.6.38-11-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.38-11-generic /boot/vmlinuz-2.6.38-11-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.38-11-generic /boot/vmlinuz-2.6.38-11-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 2.6.38-11-generic /boot/vmlinuz-2.6.38-11-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.38-11-generic /boot/vmlinuz-2.6.38-11-generic
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
Generating grub.cfg ...
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
/usr/sbin/grub-probe: error: unknown filesystem.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.38-11-generic.postinst line 1010.
dpkg: error processing linux-image-2.6.38-11-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up memtest86+ (4.10-1.1ubuntu1) ...
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
Generating grub.cfg ...
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
/usr/sbin/grub-probe: error: unknown filesystem.
dpkg: error processing memtest86+ (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of ubuntu-standard:
 ubuntu-standard depends on memtest86+; however:
  Package memtest86+ is not configured yet.
dpkg: error processing ubuntu-standard (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-2.6.38-11-generic; however:
  Package linux-image-2.6.38-11-generic is not configured yet.
dpkg: error processing linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 2.6.38.11.26); however:
  Package linux-image-generic is not configured yet.
dpkg: error processing linux-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
                                                              No apport report written because MaxReports is reached already
                  Setting up grub-pc (1.99~rc1-13ubuntu3) ...
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
Generating grub.cfg ...
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
/usr/sbin/grub-probe: error: unknown filesystem.
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of grub-gfxpayload-lists:
 grub-gfxpayload-lists depends on grub-pc (>= 1.99~20101210-1ubuntu2); however:
  Package grub-pc is not configured yet.
dpkg: error processing grub-gfxpayload-lists (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 linux-image-2.6.38-11-generic
 memtest86+
 ubuntu-standard
 linux-image-generic
 linux-generic
 grub-pc
 grub-gfxpayload-lists
E: Sub-process /usr/bin/dpkg returned an error code (1)
-----------------------------------------

The are 7 packages left to install/upgrade:
---
7 not fully installed or removed.
Conf linux-image-2.6.38-11-generic (2.6.38-11.48 Ubuntu:11.04/natty-updates [amd64])
Conf memtest86+ (4.10-1.1ubuntu1 Ubuntu:11.04/natty [amd64])
Conf ubuntu-standard (1.220 Ubuntu:11.04/natty [amd64])
Conf grub-gfxpayload-lists (0.2 Ubuntu:11.04/natty [amd64])
Conf grub-pc (1.99~rc1-13ubuntu3 Ubuntu:11.04/natty [amd64])
Conf linux-image-generic (2.6.38.11.26 Ubuntu:11.04/natty-updates [amd64])
Conf linux-generic (2.6.38.11.26 Ubuntu:11.04/natty-updates [amd64])
---

The problem appears to be in grub-probe:
---
$ sudo grub-probe /
error: found two disks with the index 0 for RAID md0.
error: superfluous RAID member (2 found).
grub-probe: error: unknown filesystem.
---

More verbose:
----------------
$ sudo grub-probe -v /
grub-probe: info: cannot open `/boot/grub/device.map'.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: scanning hd0 for LVM.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: no LVM signature found
.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: scanning hd1 for LVM.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: no LVM signature found
.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: the size of hd0 is 976773168.
error: found two disks with the index 0 for RAID md0.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: the size of hd1 is 976773168.
error: superfluous RAID member (2 found).
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: scanning md0 for LVM.
grub-probe: info: no LVM signature found
.
grub-probe: info: scanning md0,msdos5 for LVM.
grub-probe: info: no LVM signature found
.
grub-probe: info: scanning md0,msdos3 for LVM.
grub-probe: info: no LVM signature found
.
grub-probe: info: scanning md0,msdos2 for LVM.
grub-probe: info: no LVM signature found
.
grub-probe: info: scanning md0,msdos1 for LVM.
grub-probe: info: no LVM signature found
.
grub-probe: info: scanning hd0 for LVM.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: no LVM signature found
.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: scanning hd0,msdos5 for LVM.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: no LVM signature found
.
grub-probe: info: scanning hd0,msdos3 for LVM.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: no LVM signature found
.
grub-probe: info: scanning hd0,msdos2 for LVM.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: no LVM signature found
.
grub-probe: info: scanning hd0,msdos1 for LVM.
grub-probe: info: the size of hd0 is 976773168.
grub-probe: info: no LVM signature found
.
grub-probe: info: scanning hd1 for LVM.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: no LVM signature found
.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: scanning hd1,msdos5 for LVM.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: no LVM signature found
.
grub-probe: info: scanning hd1,msdos3 for LVM.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: no LVM signature found
.
grub-probe: info: scanning hd1,msdos2 for LVM.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: no LVM signature found
.
grub-probe: info: scanning hd1,msdos1 for LVM.
grub-probe: info: the size of hd1 is 976773168.
grub-probe: info: no LVM signature found
.
grub-probe: info: changing current directory to /dev.
grub-probe: info: changing current directory to snd.
grub-probe: info: changing current directory to by-path.
grub-probe: info: changing current directory to vboxusb.
grub-probe: info: changing current directory to 003.
grub-probe: info: changing current directory to cpu.
grub-probe: info: changing current directory to shm.
grub-probe: info: opening md0.
grub-probe: error: unknown filesystem.
----------------

'mount' output:
---
/dev/md0 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
gvfs-fuse-daemon on /home/pedro/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=pedro)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
---

'fdisk -l' output:
---
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000080

   Device Boot Start End Blocks Id System
/dev/sdb1 1 24 192748+ de Dell Utility
/dev/sdb2 * 25 286 2104515 b W95 FAT32
/dev/sdb3 287 772 3903795 82 Linux swap / Solaris
/dev/sdb4 773 60802 482182145 5 Extended
/dev/sdb5 773 60802 482182144 fd Linux raid autodetect

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000080

   Device Boot Start End Blocks Id System
/dev/sda1 1 24 192748+ de Dell Utility
/dev/sda2 * 25 286 2104515 b W95 FAT32
/dev/sda3 287 772 3903795 82 Linux swap / Solaris
/dev/sda4 773 60802 482182145 5 Extended
/dev/sda5 773 60802 482182144 fd Linux raid autodetect

Disk /dev/md0: 493.8 GB, 493754449920 bytes
2 heads, 4 sectors/track, 120545520 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/md0 doesn't contain a valid partition table
---

/proc/mdstat:
---
$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sda5[0] sdb5[1]
      482182080 blocks [2/2] [UU]

unused devices: <none>
---

Current kernel is:
Linux 2.6.35-30-generic #56-Ubuntu SMP Mon Jul 11 20:01:08 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

Pedro Monteiro <ptsmonteiro>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by pefu (Posted a comment)
  • -email is unavailable- added by pefu
  • -email is unavailable- added by kerframil (Posted a comment)
  • -email is unavailable- added by kevinphilp (Posted a comment)
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by ptsmonteiro (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-09-16 pefu Carbon-Copy- => Added pefu
    2012-03-04 phcoder StatusNone => Fixed
        Open/ClosedOpen => Closed

    Back to the top


    Powered by Savane 3.7