#925146 grub-probe appears to be stuck (in chroot)

Package:
lvm2
Source:
lvm2
Description:
Linux Logical Volume Manager
Submitter:
Harald Dunkel
Date:
2021-08-24 13:15:05 UTC
Severity:
important
#925146#5
Date:
2019-03-20 12:59:06 UTC
From:
To:
Running an upgrade from Stretch to Testing in a chroot grub-probe
appears to be stuck:

root      6373  4864  0 12:56 ?        00:00:04  \_ sshd: root@notty
root      6382  6373  0 12:56 ?        00:00:05      \_ xterm
root      6385  6382  0 12:56 pts/0    00:00:00          \_ bash
root      6386  6385  0 12:56 pts/0    00:00:00              \_ /bin/bash bin/syschroot /mnt
root      6399  6386  0 12:56 pts/0    00:00:00                  \_ /bin/bash -i
root      6485  6399  2 12:59 pts/0    00:00:59                      \_ aptitude
root     28592  6485  1 13:40 pts/2    00:00:03                          \_ /usr/bin/dpkg --status-fd 36 --no-triggers --configure --pending
root     31456 28592  0 13:40 pts/2    00:00:00                              \_ /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/mdadm.postinst configure 3.4-4+b1
root     31467 31456  0 13:40 pts/2    00:00:00                                  \_ /bin/sh /var/lib/dpkg/info/mdadm.postinst configure 3.4-4+b1
root     31475 31467  0 13:40 pts/2    00:00:00                                      \_ /bin/sh /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
root     31481 31475  0 13:40 pts/2    00:00:00                                          \_ /bin/sh /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
root     31482 31481  0 13:40 pts/2    00:00:00                                              \_ /usr/sbin/grub-probe --device /dev/mapper/vg00-buster --target=fs_uuid
root     31537 31482  0 13:43 pts/2    00:00:00                                                  \_ vgs --options vg_uuid,pv_name --noheadings --separator :


root@ppcl003:~# chroot /mnt lsblk
NAME              MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
nvme0n1           259:0    0 238.5G  0 disk
|-nvme0n1p1       259:1    0  1023M  0 part  /boot
`-nvme0n1p2       259:2    0 237.5G  0 part
   `-pv00          253:0    0 237.5G  0 crypt
     |-vg00-root   253:1    0    32G  0 lvm
     |-vg00-swap   253:2    0    16G  0 lvm   [SWAP]
     |-vg00-buster 253:3    0    32G  0 lvm   /
     `-vg00-export 253:4    0 157.5G  0 lvm

root@ppcl003:~# chroot /mnt df
Filesystem              1K-blocks     Used Available Use% Mounted on
/dev/mapper/vg00-buster  32765712 22985784   8085824  74% /
tmpfs                      131072        0    131072   0% /tmp
tmpfs                      131072        4    131068   1% /run
udev                      8016924        0   8016924   0% /dev
/dev/nvme0n1p1            1014680    52336    893584   6% /boot


It is still working, but it is *horrible* slow.

Do you think this could be improved? The same procedure worked
fine for Jessie --> Stretch.


Regards
Harri

#925146#10
Date:
2019-03-20 13:13:22 UTC
From:
To:
:
access("/sys/devices/pci0000:00/0000:00:1d.2/0000:40:00.0/nvme/nvme0/nvme0n1/uevent", F_OK) = 0
readlinkat(AT_FDCWD, "/sys/devices/pci0000:00/0000:00:1d.2/0000:40:00.0/nvme/nvme0/nvme0n1/subsystem", "../../../../../../../class/block", 4096) = 32
openat(AT_FDCWD, "/sys/devices/pci0000:00/0000:00:1d.2/0000:40:00.0/nvme/nvme0/nvme0n1/uevent", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
read(3, "MAJOR=259\nMINOR=0\nDEVNAME=nvme0n"..., 4096) = 47
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/run/udev/data/b259:0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
:


/mnt/usr/sbin/policy-rc.d is set, of course:

# cat /mnt/usr/sbin/policy-rc.d
#!/bin/sh
exit 101

#925146#15
Date:
2019-03-20 13:36:15 UTC
From:
To:
:
:
Setting up mdadm (4.1-1) ...
update-initramfs: deferring update (trigger activated)
Generating grub configuration file ...
File descriptor 3 (pipe:[145329]) leaked on vgs invocation. Parent PID 31909: /usr/sbin/grub-probe
File descriptor 12 (/dev/pts/2) leaked on vgs invocation. Parent PID 31909: /usr/sbin/grub-probe
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   /dev/sda: open failed: No medium found
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
File descriptor 3 (pipe:[145329]) leaked on vgs invocation. Parent PID 31909: /usr/sbin/grub-probe
File descriptor 12 (/dev/pts/2) leaked on vgs invocation. Parent PID 31909: /usr/sbin/grub-probe
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   /dev/sda: open failed: No medium found
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
File descriptor 3 (pipe:[145329]) leaked on vgs invocation. Parent PID 32160: /usr/sbin/grub-probe
File descriptor 12 (/dev/pts/2) leaked on vgs invocation. Parent PID 32160: /usr/sbin/grub-probe
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   /dev/sda: open failed: No medium found
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
File descriptor 3 (pipe:[145329]) leaked on vgs invocation. Parent PID 32160: /usr/sbin/grub-probe
File descriptor 12 (/dev/pts/2) leaked on vgs invocation. Parent PID 32160: /usr/sbin/grub-probe
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   /dev/sda: open failed: No medium found
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
File descriptor 3 (pipe:[145329]) leaked on vgs invocation. Parent PID 32368: /usr/sbin/grub-probe
File descriptor 12 (/dev/pts/2) leaked on vgs invocation. Parent PID 32368: /usr/sbin/grub-probe
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   /dev/sda: open failed: No medium found
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
File descriptor 3 (pipe:[145329]) leaked on vgs invocation. Parent PID 32368: /usr/sbin/grub-probe
File descriptor 12 (/dev/pts/2) leaked on vgs invocation. Parent PID 32368: /usr/sbin/grub-probe
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   /dev/sda: open failed: No medium found
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
Found linux image: /boot/vmlinuz-4.19.0-2-amd64
Found linux image: /boot/vmlinuz-4.9.0-8-amd64
Found initrd image: /boot/initrd.img-4.9.0-8-amd64
File descriptor 3 (pipe:[145329]) leaked on vgs invocation. Parent PID 552: /usr/sbin/grub-probe
File descriptor 12 (/dev/pts/2) leaked on vgs invocation. Parent PID 552: /usr/sbin/grub-probe
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   /dev/sda: open failed: No medium found
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
File descriptor 3 (pipe:[145329]) leaked on vgs invocation. Parent PID 552: /usr/sbin/grub-probe
File descriptor 12 (/dev/pts/2) leaked on vgs invocation. Parent PID 552: /usr/sbin/grub-probe
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   /dev/sda: open failed: No medium found
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
Found memtest86+ image: /memtest86+.bin
Found memtest86+ multiboot image: /memtest86+_multiboot.bin
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   /dev/sda: open failed: No medium found
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
File descriptor 3 (pipe:[145329]) leaked on vgs invocation. Parent PID 996: grub-probe
File descriptor 12 (/mnt/dev/pts/2) leaked on vgs invocation. Parent PID 996: grub-probe
   WARNING: Device /dev/nvme0n1 not initialized in udev database even after waiting 10000000 microseconds.
   /dev/sda: open failed: No medium found
   WARNING: Device /dev/mapper/pv00 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p1 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/root not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/nvme0n1p2 not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/swap not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/buster not initialized in udev database even after waiting 10000000 microseconds.
   WARNING: Device /dev/vg00/export not initialized in udev database even after waiting 10000000 microseconds.
:
:

Wouldn't it be reasonable to cache this somehow?

Regards
Harri

#925146#20
Date:
2019-03-20 13:36:33 UTC
From:
To:
contains no timing data.

Would it be possible to get the full grub-probe.trace file resulting
from running this in the chroot?

  strace -f -tt -s 1024 -o grub-probe.trace /usr/sbin/grub-probe --device /dev/mapper/vg00-buster --target=fs_uuid

#925146#25
Date:
2019-03-20 16:11:15 UTC
From:
To:
Attached you can find the output of

strace -f -o /tmp/strace.log.txt -ttt -T vgs --options vg_uuid,pv_name --noheadings --separator :

run in the chroot. Apparently thats the part that gets extremely
slow.


Hope this helps
Harri

#925146#30
Date:
2019-03-20 17:58:02 UTC
From:
To:
Sorry, I should have read your EMail more carefully. Attached you
can find the requested trace file.

Hope this helps
Harri

#925146#35
Date:
2019-03-20 18:24:27 UTC
From:
To:
While I agree that that's slow, I'd prefer it if you gave me the thing I
asked for if at all possible, since you were also complaining about lack
of caching.  I can always select out the bit that I need to look at, but
it's harder if I don't have the information to start with.

After all, if it's just a matter of vgs being slow, then this isn't a
GRUB bug at all, no?

#925146#40
Date:
2019-03-20 23:07:34 UTC
From:
To:
I apologize again for not sending the log file you asked for right
from the start. Hopefully you found the second strace log file?

Of course it is vgs that got slow somehow, but AFAICS it is called
about 16 times for each grub-mkconfig, even though there are only 4
logical volumes. Grub-mkconfig was run at least 4 times during the
upgrade from Stretch to Buster (then I went home, hoping that it is
finished tomorrow morning).

Sorry to say, but something got worse with Buster here. If you
come to the conclusion that it is not a problem of grub, then please
feel free to reassign this bug report.

Regards
Harri

#925146#45
Date:
2019-03-21 04:54:27 UTC
From:
To:

#925146#50
Date:
2019-03-21 08:03:22 UTC
From:
To:
lvm2 is version 2.03.02-2
#925146#55
Date:
2019-03-23 13:57:33 UTC
From:
To:
Control: reassign -1 lvm2
Control: forcemerge 918590 -1

Indeed - looks like our emails crossed in the post there.

Thanks for the details.  I tracked this down and it seems to be pretty
much the same as #918590.  (It's true that grub_util_pull_lvm_by_command
could perhaps use some caching, but it's quite cumbersome to arrange
that, and given that vgs is taking *minutes* to run I think putting
effort into the difference between extremely slow and merely very slow
is not all that exciting, versus fixing the bug at its root.)

I think you should find that a good workaround is to mount /run in the
chroot.  This is normally a good idea anyway if you're doing anything
complicated in the chroot.

Regards,

#925146#72
Date:
2019-04-13 07:59:39 UTC
From:
To:
Hi Colin,

sorry for the delay.

I am not sure if this is a good idea. /run contains all the pid files
and named pipes, exposing external data and ipc to the chroot. Its
*much* more than just udev.

/usr/sbin/policy-rc.d has been set to 101, of course, but in the past
this has been ignored by some buggy startup scripts. I really would
like to avoid that some code in the chroot affects the host system in
any way.


Regards
Harri

#925146#77
Date:
2019-07-09 09:08:41 UTC
From:
To:
Any news about this? How comes this wasn't an issue for Jessie?

Regards
Harri

#925146#84
Date:
2019-07-24 12:07:30 UTC
From:
To:
I’m trying to install the Luks encrypted buster from in memory Alpine Linux chroot. This issue blocks my adventure.  It looks redhat had patched ( https://bugzilla.redhat.com/show_bug.cgi?id=1676612 ). I’m looking forward Debian communities response quickly for this critical bug. Guest/Container environment should be treated as high priorities when allocated bug fix resource. Thanks for your quick support.

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

#925146#89
Date:
2019-11-20 20:08:25 UTC
From:
To:
I can confirm that mounting /run in the chroot significantly speeds up
`update-grub' as well as lvm scan commands.

I'm bootstrapping a new virtual machine from a live disk and
`update-grub` was running in the chroot. In a separate terminal, I
entered the following command and `update-grub` finished nearly
instantly:

$ sudo mount --bind /run /mnt/target/run

This is not a solution to the bug, but it's certainly a viable workaround.

#925146#94
Date:
2020-01-07 09:15:16 UTC
From:
To:
workaround.

In my case it was sufficient as workaround to bind mount /run/udev
rather than the whole of /run.

lvdisplay went from 6m41s to 152ms!  And update-grub doesn't 'hang' for
hours.

#925146#99
Date:
2021-08-24 13:04:29 UTC
From:
To:
Greetings, from The illuminati world elite empire. Bringing the poor, the needy and the talented to limelight of fame, riches, powers and security, get recognized in your business, political race, rise to the top in whatever you do, be protected spiritually and physically! All these you will achieve in a twinkle of an eye when you get initiated to the great Illuminati empire. Once you are initiated to the illuminati empire you will get numerous benefits and reward.
Note: that this email message was created solely for the purpose of our recruitment scheme which will end next month and this offer is for unique ones only, if you are not serious on joining the illuminati empire, then you are advise not to contact us at all. This is because disloyalty is highly not tolerated here in our organization. Do you agree to be a member of the illuminati new world order? If YES!. Then kindly reply us back on our direct recruitment email only at: joinilluminatin@hotmail.com
Please note, Kindly make sure all your response are send directly to the email stated above only at:> joinilluminatin@hotmail.com For more instructions on our membership process.
Note: Some email providers incorrectly place official Illuminati messages in their spam / junk folder or promotion folder. This can divert and exclude our responses to your emails.
The Illuminati.