bugGNU GRUB - Bugs: bug #60885, grub-probe spews "invalid...

 
 

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

bug #60885: grub-probe spews "invalid segment" errors when applied to disk containing moved LVM PV

Submitter:  Zack Weinberg <zackw>
Submitted:  Tue 06 Jul 2021 12:41:21 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:  Open Release:  other
Release:  Reproducibility:  Every Time
Planned Release:  None

Tue 06 Jul 2021 12:41:21 PM UTC, original submission:  

My boot drive is GPT-labeled and has three partitions:


# sfdisk -l -o+Name /dev/nvme0n1
Disk /dev/nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: ADATA SX8200PNP
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 936825C1-D957-42A9-899C-32FFDC4FF40E

Device           Start        End    Sectors   Size Type             Name
/dev/nvme0n1p1    2048     788479     786432   384M EFI System       EFISYS
/dev/nvme0n1p2  788480    4196351    3407872   1.6G Linux filesystem boot
/dev/nvme0n1p3 4196352 2000408575 1996212224 951.9G Linux LVM


Recently I needed to enlarge the 'boot' partition (kernels keep getting bigger), which meant shrinking the LVM physical volume and then shifting it to higher sectors (using gparted).

Ever since I did that, most any use of `grub-probe` on a partition of this disk prints "error: invalid segment" at least three times.  For example:


# grub-probe --version
grub-probe (GRUB) 2.04-19

# grub-probe -d /dev/nvme0n1 -t drive
(hd0)

# grub-probe -d /dev/nvme0n1p1 -t drive
error: invalid segment.
error: invalid segment.
error: invalid segment.
(hd0,gpt1)


It seems to work anyway, but I'm concerned that this might be the only warning I get about some kind of latent disk corruption.

Output of `grub-probe -d /dev/nvme0n1p3 -t drive -v` is attached.  The key excerpt seems to be


grub-probe: info: Scanning for lvm devices on disk hd0.
grub-probe: info: unknown LVM type cache.
grub-probe: info: unknown LVM type cache-pool+METADATA_FORMAT.
grub-probe: info: Found array moxana_vg.
error: invalid segment.


Zack Weinberg <zackw>

 

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

Attached Files
file #51652:  grub-probe-verbose.txt added by zackw (9KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by zackw (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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-07-06 zackw Attached File- Added grub-probe-verbose.txt, #51652

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code