From owner-freebsd-questions Fri Sep 15 11:14:34 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.telestream.com (mail.telestream.com [205.238.4.5]) by hub.freebsd.org (Postfix) with ESMTP id AD9F837B423 for ; Fri, 15 Sep 2000 11:14:31 -0700 (PDT) Received: from localhost (keith@localhost) by mail.telestream.com (8.11.0/8.11.0) with ESMTP id e8FIEES08715; Fri, 15 Sep 2000 11:14:14 -0700 Date: Fri, 15 Sep 2000 11:14:14 -0700 (PDT) From: To: Fernando Schapachnik Cc: questions@FreeBSD.ORG Subject: Re: Weird locking issue with makemap, sendmail on a 4.1-R SMP. In-Reply-To: <200009151807.PAA04793@ns1.via-net-works.net.ar> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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.=20 Keith =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D Keith W. At the helm My non work related site www.cydonia.net =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D On Fri, 15 Sep 2000, Fernando Schapachnik wrote: > Hello: > =09I'm having a weird problem with my SMP 4.1-RELEASE mail server: >=20 > CPU: Pentium III/Pentium III Xeon/Celeron (731.02-MHz 686-class CPU) > Origin =3D "GenuineIntel" Id =3D 0x683 Stepping =3D 3 > Features=3D0x383fbff ,CMOV,PAT,PSE36,MMX,FXSR,XMM> > real memory =3D 536854528 (524272K bytes) >=20 > =09First thing I noticed was that newaliases was getting hung. > Further investigation showed the problem was > ~majordom/aliases.majordom.db >=20 > =09Running makemap hash ~majordom/aliases.majordom.db < > ~majordom/aliases.majordom.db hunged also. >=20 > =09A fstat showed only sendmail has this file open, and for > reading only. >=20 > =09A 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 >=20 > =09aliases.majordom.db ends with 0 bytes. Removing the file > solves the problem. >=20 > =09Sometimes same thing happens with virtusertable and similar > aliases-related files. >=20 > =09Today I the same happened with access.db. Lsof showed > sendmail 52975 root 7rR VREG 109,196608 0 35980 /etc/mail/access.db >=20 > =09which means sendmail has the whole file locked for reading. >=20 > =09Doing a ps -axl shows lockfs state and a sleeping process > (waiting for a lock, I guess). >=20 > =09Any ideas? Thanks in advance! >=20 >=20 >=20 > Fernando P. Schapachnik > Administraci=F3n de la red > VIA NET.WORKS ARGENTINA S.A. > fernando@via-net-works.net.ar > (54-11) 4323-3333 >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message >=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message