[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Read-only lock on RPM db
- From: Robert Lehr <bozzio the-lehrs com>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: Read-only lock on RPM db
- Date: Tue, 24 Aug 2004 19:02:22 -0700
On Tue, Aug 24, 2004 at 09:18:27PM -0400, Jeff Johnson wrote:
> On Tue, Aug 24, 2004 at 03:59:04PM -0700, Shawn Weber wrote:
> > > Hmmm, this smells like rpm-4.0.4 or earlier. That the case?
> >
> > Yes, this particular build server is running version 4.0.4.
> >
> > > The solution will be to participate in the locking scheme
> > > that rpm uses, basically shared/exclusive fcntl locks on
> > > /var/lib/rpm/Packages.
> >
> > How would I find out what specific process(es) has a shared/exclusive
> > fcntl lock on /var/lib/rpm/Packages?
> >
>
> Hint: Any process that has a fcntl lock on /var/lib/rpm/Packages
> is linking librpmdb-X.Y.so
> rpm -q --whatrequires librpmdb-X.Y.so
> and the package contains files
> rpm -ql `rpm -q --whatrequires librpmdb-X.Y.so`
> and one of those files is running
> ps auxg | grep some_file_above
>
'lsof', if it is available to you, might serve a similar purpose.
--
Robert Lehr
(concatenate 'string "bozzio" "@" "the-lehrs" ".com")
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]