How to get rid of "File descriptor ... leaked on lvm invocation" message - gordonb3/bubba-overlay GitHub Wiki
When stopping a service you may see a message as follows
b3 ~ # /etc/init.d/apache2 stop
* Caching service dependencies ...
File descriptor 3 (pipe:[504703]) leaked on lvm invocation. Parent PID 23467: /bin/sh
/run/lvm/lvmetad.socket: connect failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning. [ ok ]
* Stopping apache2 ...
This is due to a new feature in LVM that is switched on by default. To disable it, edit /etc/lvm/lvm.conf
and set:
use_lvmetad = 0
Now how simple was that?