How to get rid of "File descriptor ... leaked on lvm invocation" message

gordonb3 edited this page May 11, 2016 · 1 revision

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?

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.