1

When I've tried to issue update-grub command I saw very strange output:

update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.9.0-6-amd64
Found initrd image: /boot/initrd.img-4.9.0-6-amd64
Found linux image: /boot/vmlinuz-4.9.0-4-amd64
Found initrd image: /boot/initrd.img-4.9.0-4-amd64
File descriptor 7 (pipe:[33660]) leaked on lvs invocation. Parent PID 7587: /bin/sh
done

I need to fix this problem. What can cause such message to appear?

  • This is a warning, not an error. – Rui F Ribeiro Mar 24 '18 at 21:18
  • Very fine, but I want to get rid from this warning. Noticed strange behavior yesterday. After several server reboots this warning was gone, but today it is back again:/ – Rimvydas Mar 25 '18 at 8:57
  • I have a couple hundred VMs, seen this message for years, never made any difference – Rui F Ribeiro Mar 25 '18 at 9:09
1

These warnings point out some "untidiness" in the code somewhere between update-grub and the lvs binary: lvs inherited an open file descriptor (7) beyond the standard ones (0, 1 and 2). It closes all such descriptors right away printing a warning (which can be suppressed by the LVM_SUPPRESS_FD_WARNINGS environment variable). Letting descendant processes inherit file descriptors unnecessarily is bad coding practice, because it opens the door for exploits. So there really is something to fix here, though it probably has no security (or correctness) implications in this case.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.