...
Description of problem: grub2-mkconfig show “leaked on vgs invocation” messages when additional lvm2 disk are on the system in RHEL9. Version-Release number of selected component (if applicable): [root@localhost data]# uname -r 5.14.0-162.6.1.el9_1.x86_64 [root@localhost data]# [root@localhost data]# rpm -qf /usr/sbin/grub2-mkconfig grub2-tools-2.06-46.el9_1.3.x86_64 [root@localhost data]# [root@localhost data]# rpm -qf /usr/sbin/vgs lvm2-2.03.16-3.el9.x86_64 [root@localhost data]# How reproducible: every time Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: root@localhost data]# strace -vfo trc-mkconfig-1 -s 4096 -y -ttt grub2-mkconfig -o test2.cnf Generating grub configuration file ... File descriptor 3 (pipe:[32421]) leaked on vgs invocation. Parent PID 7009: grub2-probe File descriptor 9 (pipe:[53310]) leaked on vgs invocation. Parent PID 7009: grub2-probe File descriptor 3 (pipe:[32421]) leaked on vgs invocation. Parent PID 7009: grub2-probe File descriptor 9 (pipe:[53310]) leaked on vgs invocation. Parent PID 7009: grub2-probe File descriptor 3 (pipe:[32421]) leaked on vgs invocation. Parent PID 7084: grub2-probe File descriptor 9 (pipe:[53310]) leaked on vgs invocation. Parent PID 7084: grub2-probe File descriptor 3 (pipe:[32421]) leaked on vgs invocation. Parent PID 7084: grub2-probe File descriptor 9 (pipe:[53310]) leaked on vgs invocation. Parent PID 7084: grub2-probe Adding boot menu entry for UEFI Firmware Settings ... done [root@localhost data]# [root@localhost data]# grep "leaked on vgs invocation" trc-mkconfig-1 7010 1678718392.776968 write(2</dev/pts/0>, "File descriptor 3 (pipe:[32421]) leaked on vgs invocation.", 58) = 58 7010 1678718392.777274 write(2</dev/pts/0>, "File descriptor 9 (pipe:[53310]) leaked on vgs invocation.", 58) = 58 7011 1678718392.977755 write(2</dev/pts/0>, "File descriptor 3 (pipe:[32421]) leaked on vgs invocation.", 58) = 58 7011 1678718392.978065 write(2</dev/pts/0>, "File descriptor 9 (pipe:[53310]) leaked on vgs invocation.", 58) = 58 7085 1678718393.949138 write(2</dev/pts/0>, "File descriptor 3 (pipe:[32421]) leaked on vgs invocation.", 58) = 58 7085 1678718393.949467 write(2</dev/pts/0>, "File descriptor 9 (pipe:[53310]) leaked on vgs invocation.", 58) = 58 7091 1678718394.481188 write(2</dev/pts/0>, "File descriptor 3 (pipe:[32421]) leaked on vgs invocation.", 58) = 58 7091 1678718394.481536 write(2</dev/pts/0>, "File descriptor 9 (pipe:[53310]) leaked on vgs invocation.", 58) = 58 [root@localhost data]# [root@localhost data]# rpm -qf /usr/sbin/grub2-mkconfig grub2-tools-2.06-46.el9_1.3.x86_64 [root@localhost data]# [root@localhost data]# rpm -qf /usr/sbin/vgs lvm2-2.03.16-3.el9.x86_64 [root@localhost data]# All the /usr/sbin/grub2-probe exec’s [root@localhost data]# grep execve( trc-mkconfig-1 | grep grub2-probe | cut -b 1-150 | grep /usr/sbin/grub2-probe | column -t 6390 1678718381.725041 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--target=device", "/"], ["SHELL=/bin/bash", "HISTCONTROL=ignoredups 6392 1678718381.738377 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/mapper/rhel-root", "--target=fs_uuid"], ["SHELL=/b 6403 1678718382.548056 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/mapper/rhel-root", "--target=partuuid"], ["SHELL=/ 6413 1678718383.149517 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--target=device", "/boot"], ["SHELL=/bin/bash", "HISTCONTROL=ignore 6415 1678718383.161637 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/sdb1", "--target=fs_uuid"], ["SHELL=/bin/bash", "H 6423 1678718383.447231 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/mapper/rhel-root", "--target=fs"], ["SHELL=/bin/ba 6471 1678718384.304733 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/mapper/rhel-root", "--target=abstraction"], ["SHEL 6481 1678718384.927536 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/sdb1", "--target=partmap"], ["SHELL=/bin/bash", "G 6488 1678718385.160908 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/sdb1", "--target=abstraction"], ["SHELL=/bin/bash" 6495 1678718385.393264 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/sdb1", "--target=fs"], ["SHELL=/bin/bash", "GRUB_E 6502 1678718385.639918 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/sdb1", "--target=compatibility_hint"], ["SHELL=/bi 6510 1678718385.871493 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/sdb1", "--target=fs_uuid"], ["SHELL=/bin/bash", "G 6518 1678718386.118838 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/sdb1", "--target=hints_string"], ["SHELL=/bin/bash 6525 1678718386.356079 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--target=device", "/boot/"], ["SHELL=/bin/bash", "GRUB_EARLY_INITRD 6526 1678718386.367050 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/sdb1", "--target=partmap"], ["SHELL=/bin/bash", "G 6533 1678718386.599441 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/sdb1", "--target=abstraction"], ["SHELL=/bin/bash" 6540 1678718386.839496 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/sdb1", "--target=fs"], ["SHELL=/bin/bash", "GRUB_E 6547 1678718387.135468 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/sdb1", "--target=compatibility_hint"], ["SHELL=/bi 6556 1678718387.372668 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/sdb1", "--target=fs_uuid"], ["SHELL=/bin/bash", "G 6564 1678718387.622132 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/sdb1", "--target=hints_string"], ["SHELL=/bin/bash 6592 1678718387.981554 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--target=fs", "/boot/loader/entries"], ["SHELL=/bin/bash", "GRUB_EA 6615 1678718388.355965 execve("/usr/sbin/grub2-probe", ["/usr/sbin/grub2-probe", "--device", "/dev/mapper/rhel-root", "--target=abstraction"], ["SHEL 6754 1678718390.729206 execve("/usr/sbin/grub2-probe", ["grub2-probe", "-d", "/dev/sda1", "-t", "fs"], ["SHELL=/bin/bash", "GRUB_EARLY_INITRD_LINUX_S Only on these 2. 7009 1678718392.749854 execve("/usr/sbin/grub2-probe", ["grub2-probe", "-d", "/dev/mapper/vg--data--1-lvol1", "-t", "fs"], ["SHELL=/bin/bash", "GRUB_ <------------------------ 7084 1678718393.921939 execve("/usr/sbin/grub2-probe", ["grub2-probe", "-d", "/dev/mapper/vg--internel-lvol1", "-t", "fs"], ["SHELL=/bin/bash", "GRUB <------------------------- [root@localhost data]# oot@localhost data]# df Filesystem 1K-blocks Used Available Use% Mounted on devtmpfs 4096 0 4096 0% /dev tmpfs 18308132 0 18308132 0% /dev/shm tmpfs 7323256 10164 7313092 1% /run /dev/mapper/rhel-root 73364480 9989452 63375028 14% / /dev/sdb1 1038336 403024 635312 39% /boot /dev/mapper/rhel-home 395234760 4806376 390428384 2% /home tmpfs 3661624 92 3661532 1% /run/user/1000 [root@localhost data]# [root@localhost data]# vgs VG #PV #LV #SN Attr VSize VFree rhel 1 3 0 wz-n <464.76g 0 vg-data-1 1 1 0 wz-n <1.82t 0 <---- vg-internel 1 1 0 wz-n 231.88g 0 <---- [root@localhost data]# [root@localhost data]# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert home rhel wi-ao--- <377.11g root rhel wi-ao--- 70.00g swap rhel wi-ao--- <17.65g lvol1 vg-data-1 wi-a---- <1.82t <----- lvol1 vg-internel wi-a---- 231.88g <----- [root@localhost data]# [root@localhost data]# lsblk -f NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS This one. sda ├─sda1 ext4 1.0 4aab5513-571f-4b7d-859e-3cdb5751f22f └─sda2 LVM2_member LVM2 001 9gDiR9-qQ0V-tftH-PHBI-XX6v-rlJf-Nji2vd └─vg--internel-lvol1 xfs 3a229e33-761b-483c-99f2-ab0435024041 sdb ├─sdb1 xfs 9c89f022-00c8-4c3c-a8d3-e977dd14385d 620.4M 39% /boot └─sdb2 LVM2_member LVM2 001 BRQ0EJ-GPQF-hRf3-Qp1e-d8RK-X7BJ-h308Kh ├─rhel-root xfs f3b1d021-75e0-420a-9c70-f6542111e914 60.4G 14% / ├─rhel-swap swap 1 859732c5-f965-450c-81d9-a45fc4e99fe6 [SWAP] └─rhel-home xfs da1bb1d8-8f7f-400c-9270-b4192330376e 372.3G 1% /home And this one. sdc LVM2_member LVM2 001 2bybdb-v3L4-cL0s-OVQa-OaYC-6SMt-6KYZ1q └─vg-data-1-lvol1 ext4 1.0 9135f3df-2a34-43e5-bf7d-b334ece4804d sr0 [root@localhost data]# Hope that’s all the data you need.
Done