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
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.
Comments