bugGNU GRUB - Bugs: bug #64291, grub2-probe fail to get fs_uuid of...

 
 

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

bug #64291: grub2-probe fail to get fs_uuid of LVM thin volume

Submitter:  Chau Chee Yang <ccy>
Submitted:  Sat 10 Jun 2023 05:15:32 AM UTC
   
 
Category:  Filesystem Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  Git master
Release:  Reproducibility:  Every Time
Planned Release:  None

Sat 10 Jun 2023 05:15:32 AM UTC, original submission:  

I am using RockyLinux x86_64 with this setup:


LVM - 9:2.03.17-7.el9
Grub2 - 1:2.06-61.el9.rocky.0.2


I create a standard LVM volume group and logical volume and use grub2-probe to show the UUID and it works without any issue:


# Define variables
DEV=/dev/sda
VG=test

# Create a volume group
pvcreate $DEV
vgcreate $VG $DEV

# Create/format a standard logical volume
lvcreate -L 1G -n lv1 $VG
mkfs.xfs /dev/mapper/$VG-lv1

# Show UUID of the logical volume
blkid /dev/mapper/$VG-lv1

# Use grub2-probe to get file system UUID
grub2-probe --device /dev/mapper/$VG-lv1 --target=fs_uuid
echo $?


Next, I try to create a thin pool and thinly provisioned logical volume:


# Create a thinly provisioned volume
lvcreate -L 1G --thinpool thinpool $VG
lvcreate -V 2G --thin -n lv2 $VG/thinpool
mkfs.xfs /dev/mapper/$VG-lv2

# Show UUID of the logical volume
blkid /dev/mapper/$VG-lv2

grub2-probe --device /dev/mapper/$VG-lv2 --target=fs_uuid
echo $?


Using grub2-probe to get the UUID and it prompt:


grub2-probe: error: ../grub-core/kern/disk.c:236:disk `lvmid/SQzc1B-lFBS-f071-mArW-Sp3r-8HUs-coj4G9/BtKcl5-AblR-S9lq-pMAI-bkIY-okZ9-sjJiou' not found.


I think this should be a bug in grub2-probe package.

Chau Chee Yang <ccy>

 

(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 ccy (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.14-3b9d.
    Corresponding source code