[mylvmbackup] Re: File Descriptors Left Open

On Tue, 10 Feb 2009 09:27:27 -0600 "Boehm, Matthew" <mboehm@xxxxxxxxxxxxx> 
wrote:
> So LVM does properly close all file descriptors? So that message
> basically means "I found this one open and I closed it for you." ?

it seems the exact message was changed recently (to be more verbose),
http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/tools/lvmcmdline.c.diff?r1=1.68&r2=1.69&cvsroot=lvm2&f=h
but look at static void _close_stray_fds(void) in
http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/LVM2/tools/lvmcmdline.c?rev=1.68&cvsroot=lvm2

> -Matthew
> 
> -----Original Message-----
> From: mylvmbackup-bounce@xxxxxxxxxxxxx
> [mailto:mylvmbackup-bounce@xxxxxxxxxxxxx] On Behalf Of Thorben Thuermer
> Sent: Tuesday, February 10, 2009 3:11 AM
> To: mylvmbackup@xxxxxxxxxxxxx
> Subject: [mylvmbackup] Re: File Descriptors Left Open
> 
> On Mon, 9 Feb 2009 10:05:04 -0600 "Boehm, Matthew"
> <mboehm@xxxxxxxxxxxxx> wrote:
> [...]
> > One thing that bothers me is that we see this "error":
> > 
> > File descriptor 3 left open
> > 
> > What I can only guess this comes from is the InnoDB datafile or log
> > files because InnoDB doesn't actually do the flushing like MyISAM
> does.
> > 
> > Is there any way to have InnoDB properly close/let go of its open
> files
> > before doing the snapshot?
> 
> this message is _completely_ unrelated to anything mysql...
> 
> it's printed by the lvm program,
> which on startup does a loop over all fds it does not use, closes them,
> and prints
> that warning if any were actually open.
> (actually nothing unusual at all for any program, but from what i gather
> that is a
>  precaution against deadlocks being caused by lvm freezing a filesystem
> while it
>  itself holds a handle for a file on that filesystem.)
> 
> these warnings are harmless, and can be surpressed by setting the
> environment
> variable LVM_SUPPRESS_FD_WARNINGS=1
> 
> > -Matthew
> 
> Greetings,
>  Thorben Thuermer
> 
> 

Other related posts: