Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to get rid of "File descriptor ... leaked on lvm invocation" message
When stopping a service you may see a message as follows
b3 ~ # /etc/init.d/apache2 stop * Caching service dependencies ... File descriptor 3 (pipe:) 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?