Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Sep 2000 11:14:14 -0700 (PDT)
From:      <keith@mail.telestream.com>
To:        Fernando Schapachnik <fpscha@via-net-works.net.ar>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Weird locking issue with makemap, sendmail on a 4.1-R SMP.
Message-ID:  <Pine.LNX.4.10.10009151107040.8540-100000@mail.telestream.com>
In-Reply-To: <200009151807.PAA04793@ns1.via-net-works.net.ar>

index | next in thread | previous in thread | raw e-mail

Any time I have ever had problems with access.db's aliases etc etc.. It
was always the same thing. A problem in sendmail/makemap
Usualy getting makemap to the proper version solved it. Also running
sendmail -bi to remake the alias.db
I would check the date and versions of makemap and sendmail to see if they
are the same. 

Keith


=================================
Keith W.
At the helm <for better or worse>

My non work related site
www.cydonia.net
=================================


On Fri, 15 Sep 2000, Fernando Schapachnik wrote:

> Hello:
> 	I'm having a weird problem with my SMP 4.1-RELEASE mail server:
> 
> CPU: Pentium III/Pentium III Xeon/Celeron (731.02-MHz 686-class CPU)
>   Origin = "GenuineIntel"  Id = 0x683  Stepping = 3
>   Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA
> ,CMOV,PAT,PSE36,MMX,FXSR,XMM>
> real memory  = 536854528 (524272K bytes)
> 
> 	First thing I noticed was that newaliases was getting hung.
> Further investigation showed the problem was
> ~majordom/aliases.majordom.db
> 
> 	Running makemap hash ~majordom/aliases.majordom.db <
> ~majordom/aliases.majordom.db hunged also.
> 
> 	A fstat showed only sendmail has this file open, and for
> reading only.
> 
> 	A ktrace shows:
>  [...]
>  87185 makemap  CALL  open(0xbfbff658,0x622,0x1a4)
>  87185 makemap  NAMI  "aliases.majordomo.db"
>  [a lot of time... sent kill]
>  87185 makemap  PSIG  SIGINT SIG_DFL
> 
> 	aliases.majordom.db ends with 0 bytes. Removing the file
> solves the problem.
> 
> 	Sometimes same thing happens with virtusertable and similar
> aliases-related files.
> 
> 	Today I the same happened with access.db. Lsof showed
> sendmail 52975 root 7rR VREG 109,196608 0 35980 /etc/mail/access.db
> 
> 	which means sendmail has the whole file locked for reading.
> 
> 	Doing a ps -axl shows lockfs state and a sleeping process
> (waiting for a lock, I guess).
> 
> 	Any ideas? Thanks in advance!
> 
> 
> 
> Fernando P. Schapachnik
> Administración de la red
> VIA NET.WORKS ARGENTINA S.A.
> fernando@via-net-works.net.ar
> (54-11) 4323-3333
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.10.10009151107040.8540-100000>