[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: resource temporarily unavailable error



quick update:

I just ran:

rpm -rebuilddb

and it seems to have worked, I can now run rpm cmmands as normal.

Sorry, I should have tried this last one before my last post.

Thanks for your help.

> -----Original Message-----
> From: Paul Foxton [mailto:PFoxton@Cisilion.com]
> Sent: 10 March 2003 16:49
> To: 'rpm-list@redhat.com'
> Subject: RE: resource temporarily unavailable error
> 
> 
> Thanks for your help so far Jeff,
> 
> I tried removing the files in question, but the problem remains.
> 
> Is my only choice now to take the server down and upgrade the kernel?
> 
> Paul
> 
> > -----Original Message-----
> > From: Jeff Johnson [mailto:jbj@redhat.com]
> > Sent: 07 March 2003 16:23
> > To: rpm-list@redhat.com
> > Subject: Re: resource temporarily unavailable error
> > 
> > 
> > On Fri, Mar 07, 2003 at 04:15:15PM -0000, Paul Foxton wrote:
> > > > So what happens if you do
> > > > 	rm -f /var/lib/rpm/__db*
> > > 
> > > thanks for the reply Jeff,
> > > 
> > > is this potentially a way of releasing the lock?
> > 
> > I believe you're assuming that __db* files are lock files, 
> that's not
> > the case.
> > 
> > Yes, __db* files contain the names of locks, so that locks 
> > can be shared
> > between processes and threads, but the file itself is not the lock.
> > 
> > What's happening is that the types of locks used by rpm are 
> > in transition,
> > depend on what glibc is used, and what kernel is booted, and so
> > the lock names need to be invalidated (by rm -f /var/lib/rpm/__db*)
> > when the underlying implementation changes.
> > 
> > There's no easy or obvious way to do this automagically at 
> the moment.
> > 
> > 
> > > Would there be any concerns with running this on a live server?
> > 
> > Depends on "live". There is a lock race window opened by doing
> > 	rm -f /var/lib/rpm/__db*
> > but I seriously doubt that there will be any impact whatsoever.
> > 
> > However, the risk of opening a lock race window is the 
> tedious reason
> > why rpm cannot remove /var/lib/rpm/_db* files anymore, but that's
> > my and rpm's problem, not yours.
> > 
> > 73 de Jeff
> > 
> > -- 
> > Jeff Johnson	ARS N3NPQ
> > jbj@redhat.com (jbj@jbj.org)
> > Chapel Hill, NC
> > 
> > 
> > 
> > _______________________________________________
> > Rpm-list mailing list
> > Rpm-list@redhat.com
> > https://listman.redhat.com/mailman/listinfo/rpm-list
> > 
> 
> 
> 
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/rpm-list
> 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []