URL: <https://savannah.gnu.org/bugs/?60885>
Summary: grub-probe spews "invalid segment" errors when applied to disk containing moved LVM PV Project: GNU GRUB Submitted by: zackw Submitted on: 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: Originator Email: Open/Closed: Open Release: Release: other Discussion Lock: Any Reproducibility: Every Time Planned Release: None _______________________________________________________ Details: 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. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Tue 06 Jul 2021 12:41:21 PM UTC Name: grub-probe-verbose.txt Size: 9KiB By: zackw <http://savannah.gnu.org/bugs/download.php?file_id=51652> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?60885> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/