LVM: File descriptor 4 leaked/ left open




Errors: File descriptor 9 (/dev/pts/1) leaked on lvextend invocation. Parent PID 10035: /bin/bash
or
File descriptor 10 (pipe:[16563]) leaked on pvdisplay invocation. Parent PID 6297: /bin/bash


Solution:


The shell via file descriptors (/dev/fd files) in the /proc file system. One of these file descriptors 
was not closed, which resulted in a message about a file descriptor leak when operating. 
The shell via pipe represented by /proc/self/fd/<fd> file in /proc filesystem. 
Execute the below command to fix and once you run the below command it will close the fd and 
it won't harm the lv's, vg's and pv's.

exec <&-

This file descriptor is now closed correctly.


Comments