bugGNU GRUB - Bugs: bug #29156, Grub fails to find valid Logical...

 
 

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

bug #29156: Grub fails to find valid Logical Volume when using LVM

Submitted by:  Killian De Volder <qantourisc>
Submitted on:  Wed 10 Mar 2010 05:10:41 PM UTC  
 
Category:  Disk & Partition Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release: 
Release:  Bazaar - trunk Reproducibility:  None
Planned Release:  None

( Jump to the original submission)

Wed 06 Oct 2010 06:33:35 PM UTC, comment #16: 

As I feared ... I deleted the test env where I had the problem with, tried to reproduce but no success :/
Suppose there is nothing left to do but to close it and reopen it if it returns.

Killian De Volder <qantourisc>
Wed 08 Sep 2010 07:32:33 PM UTC, comment #15: 

I have reinstalled ubuntu for some reasons and now, it works, it's weird :/

Pavol Klačanský <pavolzetor>
Tue 07 Sep 2010 05:23:24 PM UTC, comment #14: 

I don't know the meaning of "squating" a bug.
You mean minimizing ? Negleting ? etz ? No problem.
I still have the test image if i recall correctly, give me some time though :)

Killian De Volder <qantourisc>
Mon 06 Sep 2010 02:17:06 PM UTC, comment #13: 

GRUB2 will be compiled with following com
Platform: i386-pc
With devmapper support: Yes
With memory debugging: No
efiemu runtime: Yes
grub-fstest: Yes
grub-mkfont: No (need freetype2 library)

$  sudo grub-probe -t fs -v -v /
grub-probe: info: cannot open `/boot/grub/device.map'.
grub-core/kern/disk.c:245: Opening `host'...
grub-core/kern/disk.c:401: Read out of range: sector 0x0 (out of disk).
grub-core/kern/disk.c:334: Closing `host'.
grub-core/kern/disk.c:245: Opening `host'...
grub-core/kern/disk.c:334: Closing `host'.
grub-core/disk/raid.c:658: Scanning for RAID devices on disk host
grub-core/kern/disk.c:245: Opening `host'...
grub-core/kern/disk.c:401: Read out of range: sector 0xffffffffffffff80 (out of disk).
grub-core/kern/disk.c:334: Closing `host'.
grub-core/kern/disk.c:245: Opening `host'...
grub-core/kern/disk.c:334: Closing `host'.
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 shm.
grub-probe: info: changing current directory to ubuntu.
grub-probe: info: changing current directory to disk.
grub-probe: info: changing current directory to by-uuid.
grub-probe: info: changing current directory to by-path.
grub-probe: info: changing current directory to by-id.
grub-probe: info: changing current directory to bsg.
grub-probe: info: changing current directory to dri.
grub-probe: info: changing current directory to char.
grub-probe: info: changing current directory to block.
grub-probe: info: changing current directory to pts.
grub-probe: info: changing current directory to mapper.
grub-probe: info: opening ubuntu-root.
grub-core/kern/disk.c:245: Opening `ubuntu-root'...
Segmentation fault

Pavol Klačanský <pavolzetor>
Sun 05 Sep 2010 09:28:45 PM UTC, comment #12: 

@Pavol: I believe it to be fixed. Please retest with latest bzr.
@Killian: Sorry for squatting your bug report. Few other LVM bugs were fixed as well. Could you retest too?

Vladimir Serbinenko <phcoder>
Project Administrator
Sun 05 Sep 2010 05:54:45 PM UTC, comment #11: 

any news?

Pavol Klačanský <pavolzetor>
Sun 05 Sep 2010 11:09:16 AM UTC, comment #10: 

$ sudo grub-probe -t fs -v -v /
grub-probe: info: cannot open `/boot/grub/device.map'.
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 shm.
grub-probe: info: changing current directory to ubuntu.
grub-probe: info: changing current directory to disk.
grub-probe: info: changing current directory to by-uuid.
grub-probe: info: changing current directory to by-path.
grub-probe: info: changing current directory to by-id.
grub-probe: info: changing current directory to bsg.
grub-probe: info: changing current directory to dri.
grub-probe: info: changing current directory to char.
grub-probe: info: changing current directory to block.
grub-probe: info: changing current directory to pts.
grub-probe: info: changing current directory to mapper.
/build/buildd/grub2-1.98/util/deviceiter.c:730: lvm is not DM-RAID
/build/buildd/grub2-1.98/disk/raid.c:625: Scanning for RAID devices on disk hd0
/build/buildd/grub2-1.98/kern/disk.c:245: Opening `hd0'...
grub-probe: info: the size of hd0 is 312581808.
/build/buildd/grub2-1.98/util/hostdisk.c:514: opening the device `/dev/sda' in open_device()
/build/buildd/grub2-1.98/kern/disk.c:333: Closing `hd0'.
/build/buildd/grub2-1.98/kern/disk.c:245: Opening `hd0'...
grub-probe: info: the size of hd0 is 312581808.
/build/buildd/grub2-1.98/kern/partition.c:106: Detecting part_gpt...
/build/buildd/grub2-1.98/util/hostdisk.c:514: opening the device `/dev/sda' in open_device()
/build/buildd/grub2-1.98/kern/partition.c:112: part_gpt detection failed.
/build/buildd/grub2-1.98/kern/partition.c:106: Detecting part_sun...
/build/buildd/grub2-1.98/kern/partition.c:112: part_sun detection failed.
/build/buildd/grub2-1.98/kern/partition.c:106: Detecting part_apple...
/build/buildd/grub2-1.98/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/build/buildd/grub2-1.98/kern/partition.c:112: part_apple detection failed.
/build/buildd/grub2-1.98/kern/partition.c:106: Detecting part_msdos...
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x1f2180
/build/buildd/grub2-1.98/kern/partition.c:117: part_msdos detection succeeded.
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x1f2180
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 1: flag 0x80, type 0x7, start 0x1f2800, len 0x61ab000
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 2: flag 0x0, type 0x8e, start 0x639d800, len 0xc67b2c1
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
/build/buildd/grub2-1.98/kern/disk.c:333: Closing `hd0'.
/build/buildd/grub2-1.98/disk/raid.c:625: Scanning for RAID devices on disk hd0,3
/build/buildd/grub2-1.98/kern/disk.c:245: Opening `hd0,3'...
grub-probe: info: the size of hd0 is 312581808.
/build/buildd/grub2-1.98/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x1f2180
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 1: flag 0x80, type 0x7, start 0x1f2800, len 0x61ab000
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 2: flag 0x0, type 0x8e, start 0x639d800, len 0xc67b2c1
/build/buildd/grub2-1.98/util/hostdisk.c:514: opening the device `/dev/sda3' in open_device()
/build/buildd/grub2-1.98/kern/disk.c:333: Closing `hd0,3'.
/build/buildd/grub2-1.98/disk/raid.c:625: Scanning for RAID devices on disk hd0,2
/build/buildd/grub2-1.98/kern/disk.c:245: Opening `hd0,2'...
grub-probe: info: the size of hd0 is 312581808.
/build/buildd/grub2-1.98/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x1f2180
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 1: flag 0x80, type 0x7, start 0x1f2800, len 0x61ab000
/build/buildd/grub2-1.98/util/hostdisk.c:514: opening the device `/dev/sda2' in open_device()
/build/buildd/grub2-1.98/kern/disk.c:333: Closing `hd0,2'.
/build/buildd/grub2-1.98/disk/raid.c:625: Scanning for RAID devices on disk hd0,1
/build/buildd/grub2-1.98/kern/disk.c:245: Opening `hd0,1'...
grub-probe: info: the size of hd0 is 312581808.
/build/buildd/grub2-1.98/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x1f2180
/build/buildd/grub2-1.98/util/hostdisk.c:514: opening the device `/dev/sda1' in open_device()
/build/buildd/grub2-1.98/util/hostdisk.c:504: reusing open device `/dev/sda1'
/build/buildd/grub2-1.98/kern/disk.c:333: Closing `hd0,1'.
/build/buildd/grub2-1.98/kern/disk.c:245: Opening `hd0'...
grub-probe: info: the size of hd0 is 312581808.
/build/buildd/grub2-1.98/kern/disk.c:333: Closing `hd0'.
/build/buildd/grub2-1.98/kern/disk.c:245: Opening `hd0'...
grub-probe: info: the size of hd0 is 312581808.
/build/buildd/grub2-1.98/kern/partition.c:106: Detecting part_gpt...
/build/buildd/grub2-1.98/kern/partition.c:112: part_gpt detection failed.
/build/buildd/grub2-1.98/kern/partition.c:106: Detecting part_sun...
/build/buildd/grub2-1.98/kern/partition.c:112: part_sun detection failed.
/build/buildd/grub2-1.98/kern/partition.c:106: Detecting part_apple...
/build/buildd/grub2-1.98/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/build/buildd/grub2-1.98/kern/partition.c:112: part_apple detection failed.
/build/buildd/grub2-1.98/kern/partition.c:106: Detecting part_msdos...
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x1f2180
/build/buildd/grub2-1.98/kern/partition.c:117: part_msdos detection succeeded.
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x1f2180
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 1: flag 0x80, type 0x7, start 0x1f2800, len 0x61ab000
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 2: flag 0x0, type 0x8e, start 0x639d800, len 0xc67b2c1
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
/build/buildd/grub2-1.98/kern/disk.c:333: Closing `hd0'.
/build/buildd/grub2-1.98/kern/disk.c:245: Opening `hd0,3'...
grub-probe: info: the size of hd0 is 312581808.
/build/buildd/grub2-1.98/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x1f2180
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 1: flag 0x80, type 0x7, start 0x1f2800, len 0x61ab000
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 2: flag 0x0, type 0x8e, start 0x639d800, len 0xc67b2c1
/build/buildd/grub2-1.98/util/hostdisk.c:514: opening the device `/dev/sda3' in open_device()
/build/buildd/grub2-1.98/kern/disk.c:333: Closing `hd0,3'.
/build/buildd/grub2-1.98/kern/disk.c:245: Opening `hd0,2'...
grub-probe: info: the size of hd0 is 312581808.
/build/buildd/grub2-1.98/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x1f2180
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 1: flag 0x80, type 0x7, start 0x1f2800, len 0x61ab000
/build/buildd/grub2-1.98/util/hostdisk.c:514: opening the device `/dev/sda2' in open_device()
/build/buildd/grub2-1.98/kern/disk.c:333: Closing `hd0,2'.
/build/buildd/grub2-1.98/kern/disk.c:245: Opening `hd0,1'...
grub-probe: info: the size of hd0 is 312581808.
/build/buildd/grub2-1.98/partmap/apple.c:126: bad magic (found 0xeb63; wanted 0x4552
/build/buildd/grub2-1.98/partmap/msdos.c:161: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x1f2180
/build/buildd/grub2-1.98/util/hostdisk.c:514: opening the device `/dev/sda' in open_device()
/build/buildd/grub2-1.98/util/hostdisk.c:514: opening the device `/dev/sda1' in open_device()
/build/buildd/grub2-1.98/util/hostdisk.c:504: reusing open device `/dev/sda1'
/build/buildd/grub2-1.98/kern/disk.c:333: Closing `hd0,1'.
grub-probe: info: opening ubuntu-root.
/build/buildd/grub2-1.98/kern/disk.c:245: Opening `ubuntu-root'...
/build/buildd/grub2-1.98/kern/disk.c:320: Opening `ubuntu-root' failed.
/build/buildd/grub2-1.98/kern/disk.c:333: Closing `ubuntu-root'.
grub-probe: error: no mapping exists for `ubuntu-root'.

Pavol Klačanský <pavolzetor>
Sun 05 Sep 2010 11:01:25 AM UTC, comment #9: 

For some reason -x isn't propagated. Can you try:
sudo grub-probe -t fs -v -v /
?

Vladimir Serbinenko <phcoder>
Project Administrator
Sun 05 Sep 2010 10:58:18 AM UTC, comment #8: 

$ sudo sh -x /usr/sbin/update-grub
+ exec grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
/usr/sbin/grub-probe: error: no mapping exists for `ubuntu-root'.

Pavol Klačanský <pavolzetor>
Sun 05 Sep 2010 10:49:29 AM UTC, comment #7: 

Then it's:
sudo sh -x /usr/sbin/update-grub

Vladimir Serbinenko <phcoder>
Project Administrator
Sun 05 Sep 2010 10:44:26 AM UTC, comment #6: 

I have installed texinfo, but compilation still freezes

there is more info
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/630729

$ sudo cat /proc/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
none /dev devtmpfs rw,relatime,size=1968376k,nr_inodes=492094,mode=755 0 0
none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
/dev/mapper/ubuntu-root / ext4 rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
none /sys/fs/fuse/connections fusectl rw,relatime 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/kernel/security securityfs rw,relatime 0 0
none /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
none /var/run tmpfs rw,nosuid,relatime,mode=755 0 0
none /var/lock tmpfs rw,nosuid,nodev,noexec,relatime 0 0
none /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0
/dev/mapper/ubuntu-home /home ext4 rw,relatime,barrier=1,data=ordered 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
gvfs-fuse-daemon /home/pk/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0

$ sudo sh -x update-grub
sh: Can't open update-grub

Pavol Klačanský <pavolzetor>
Sun 05 Sep 2010 10:30:48 AM UTC, comment #5: 

@Pavol even if you're struck by same symptoms it doesn't mean that you're experiencing the same bug.
To compile GRUB manually you need texinfo.
Also info you supplied is far too scarce. We need at least the result of:
sudo cat /proc/mounts
and
sudo sh -x update-grub

Vladimir Serbinenko <phcoder>
Project Administrator
Sun 05 Sep 2010 09:13:17 AM UTC, comment #4: 

after upgrade to version maverick version, tihs error message occurs

$ sudo update-grub
Generating grub.cfg ...
/usr/sbin/grub-probe: error: no such disk.

Pavol Klačanský <pavolzetor>
Sun 05 Sep 2010 09:06:11 AM UTC, comment #3: 

Hallo, I have Ubuntu Lucid and grub in version 1.98-1ubuntu5

I need upade grub, because of new kernel but

$ sudo update-grub
Generating grub.cfg ...
/usr/sbin/grub-probe: error: no mapping exists for `ubuntu-root'.

And I cannot compile latest branch content becasue of this problem

/bin/bash: riadok 9: -I: príkaz nenájdený
translated to Eng: /bin/bash: row 9: -I: command not found

Pavol Klačanský <pavolzetor>
Sun 09 May 2010 02:56:53 PM UTC, comment #2: 

Can you try the experimental branch and remove boot/grub/device.map ?

Vladimir Serbinenko <phcoder>
Project Administrator
Thu 11 Mar 2010 08:24:36 PM UTC, comment #1: 

I've been able to reproduce this bug in test environment. (And production environment cannot be used to test this.)

Any suggestions why it would fail to find PV0 ? This might give me a hint on how to reproduce it.

(The error occurred when the LV was on 1 PV, after moving it to the other PV it worked)
(Both PV's where visable.)

Killian De Volder <qantourisc>
Wed 10 Mar 2010 05:10:41 PM UTC, original submission:  

Linux was able to find the LV correctly, however, I had to move it from PV, otherwise the error PV0 not found appeared.

Killian De Volder <qantourisc>

 

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 pavolzetor (Posted a comment)
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by qantourisc (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.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-10-16 phcoder Open/ClosedOpen => Closed

    Back to the top


    Powered by Savane 3.6