File descriptor 3 leaked on vgcfgbackup invocation. Parent PID: bash

Zurab Gvishiani

I'm using bash script to make backup of ubuntu machine with lvm, and then upload it to google drive, script runs every day via cron, without issues, but log file contains following error:

File descriptor 3 (/root/borg.sh) leaked on lvcreate invocation. Parent PID 27827: bash

What does this error exactly mean? Is it related to lvcreate/vgcfgbackup or bash script itself? I couldn't find any useful information, only that 'leaked on invocation' is probably harmless.

full log with -vvv added to lvcreate and vgcfgbackup: http://dpaste.com/3FYVAC0

bash script: http://dpaste.com/30NV1ZH

bernie

From man lvm:

On invocation, lvm requires that only the standard file descriptors stdin, stdout and stderr are available. If others are found, they get closed and messages are issued warning about the leak. This warning can be suppressed by setting the environment variable LVM_SUPPRESS_FD_WARNINGS.

You're probably using file descriptor 3 in your script. Export the LVM_SUPPRESS_FD_WARNINGS environment variable in the script before calling lvcreate.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

grub-install : File descriptor 3 leaked on vgs invocation

From Dev

Bash script - stdout file descriptor?

From Dev

Is bash redirection of file descriptor 3 the most efficient way to read a tcp port and write to a text file?

From Dev

Write PID To File On Bash Execution

From Dev

Bash: Execute command independent of parent PID?

From Dev

How to write to a named file descriptor in Bash?

From Dev

bash command substitution with redirection: bad file descriptor

From Dev

bash command substitution with redirection: bad file descriptor

From Dev

Bash Script exec file descriptor returning "not found"

From Dev

Leaked window in class file

From Dev

Integer File Descriptor "0" in open() - Python 3

From Dev

What is the file descriptor 3 assigned by default?

From Dev

Etymology of "descriptor" in "file descriptor"

From Dev

Share a file descriptor between parent and child after fork and exec

From Dev

Repeated creation of file descriptor pointing to same file, bash

From Dev

Bash - Redirect output to a variable or file descriptor, then read from the variable or file descriptor

From Dev

Write a PID file manually from Bash script

From Dev

Get PID in bash file with open screen

From Dev

Sending commands to an application and reading its output via file descriptor in bash

From Dev

Bash - Use automatic file descriptor creation instead of fifo

From Dev

emulate bash in zsh breaking dynamically assigned file descriptor

From Dev

OSError: [Errno 9] Bad file descriptor in python 3

From Dev

What do file descriptor 3 and 4 stand for in Ruby?

From Dev

What do file descriptor 3 and 4 stand for in Ruby?

From Dev

How to run nohup and write its pid file in a single bash statement

From Dev

Echo PID of child process to a file when starting - bash

From Dev

"Globally Store" PID of file started from bash script

From Dev

difference between file descriptor and socket file descriptor

From Dev

How should parent close pipe file descriptor when child process exits

Related Related

  1. 1

    grub-install : File descriptor 3 leaked on vgs invocation

  2. 2

    Bash script - stdout file descriptor?

  3. 3

    Is bash redirection of file descriptor 3 the most efficient way to read a tcp port and write to a text file?

  4. 4

    Write PID To File On Bash Execution

  5. 5

    Bash: Execute command independent of parent PID?

  6. 6

    How to write to a named file descriptor in Bash?

  7. 7

    bash command substitution with redirection: bad file descriptor

  8. 8

    bash command substitution with redirection: bad file descriptor

  9. 9

    Bash Script exec file descriptor returning "not found"

  10. 10

    Leaked window in class file

  11. 11

    Integer File Descriptor "0" in open() - Python 3

  12. 12

    What is the file descriptor 3 assigned by default?

  13. 13

    Etymology of "descriptor" in "file descriptor"

  14. 14

    Share a file descriptor between parent and child after fork and exec

  15. 15

    Repeated creation of file descriptor pointing to same file, bash

  16. 16

    Bash - Redirect output to a variable or file descriptor, then read from the variable or file descriptor

  17. 17

    Write a PID file manually from Bash script

  18. 18

    Get PID in bash file with open screen

  19. 19

    Sending commands to an application and reading its output via file descriptor in bash

  20. 20

    Bash - Use automatic file descriptor creation instead of fifo

  21. 21

    emulate bash in zsh breaking dynamically assigned file descriptor

  22. 22

    OSError: [Errno 9] Bad file descriptor in python 3

  23. 23

    What do file descriptor 3 and 4 stand for in Ruby?

  24. 24

    What do file descriptor 3 and 4 stand for in Ruby?

  25. 25

    How to run nohup and write its pid file in a single bash statement

  26. 26

    Echo PID of child process to a file when starting - bash

  27. 27

    "Globally Store" PID of file started from bash script

  28. 28

    difference between file descriptor and socket file descriptor

  29. 29

    How should parent close pipe file descriptor when child process exits

HotTag

Archive