bugGNU GRUB - Bugs: bug #63839, LVM partition not show if insmod...

 
 

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

bug #63839: LVM partition not show if insmod mdraid1x before insmod lvm

Submitter:  Guillermo Reisch <guillere>
Submitted:  Sun 26 Feb 2023 05:31:58 PM UTC
   
 
Category:  None Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  other
Release:  Reproducibility:  Every Time
Planned Release:  None

Thu 04 Jan 2024 07:46:38 PM UTC, comment #2: 

still present in grub 2.12~rc1-12

Guillermo Reisch <guillere>
Sun 26 Feb 2023 08:59:33 PM UTC, comment #1: 

bug:
 booting grub2
 insmod mdraid1x
 ls
  (hd0) (md/raid)
 insmod lvm
 ls
  (md/raid) (hd0)
 ... lvm partition is not show ...

change algoritm because not getting the bug.
for some reason the "ls" command trigger the problem...
also the list of partition get reordered..
Bug also exist in GRUB2 (version 2.02)

Guillermo Reisch <guillere>
Sun 26 Feb 2023 05:31:58 PM UTC, original submission:  

this problem is in grub 2.06 (debian 2.06-8)
I have a LVM partition inside a RAID (mdadm raid)
Disk: (whole disk) => RAID => PV => LVM

Creation of disk (/dev/diskA)
 mdadm --create /dev/md/raid --level=1 --raid-devices=2 /dev/diskA missing
 pvcreate /dev/md/raid
 vgcreate vgr /dev/md/raid
 lvcreate --name A --size 12M gvr

bug:
booting grub2
insmod mdraid1x
insmod lvm
ls
 (hd0) (md/raid)
... lvm partition is not show ...

work around:
booting grub2
insmod lvm
insmod mdraid1x
ls
 (hd0) (md/raid) (lvm/vgr-A)

-----
This problem was firts find in my machine that have 5 disk each partitioned in raid1 and raid5 ; the boot partition is in the raid1 (that is formated in ext4) so grub2 preload "mdraid1x" and "ext2" and boot perfeclty! The problem: I want to migrate the boot partition inside a LVM partiton (that is inside the raid5 that is the PV of this LVM), i do update-grub (that create a correct menu entry and include "insmod lvm") but "insmod lvm" is loaded after "insmod mdraid1x" so the boot partion is not show and cannot boot.
I reproduce this problem in a virtualbox so enconter that "insmod lvm" need to be loaded before "insmod mdraid1x" to grub discover the partition correctly

Guillermo Reisch <guillere>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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 guillere (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code