From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078705511559.tru64-unix-managers.marc@archive.invalid> From: "Monjar, Daniel" Date: Wed, 15 Apr 1998 17:25:49 +0000 To: tru64-unix-managers Subject: SUMMARY: really large mqueue directory X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078705511559 typically great response. Thanks to : Jerome M Berkman [jerry@uclink.berkeley.edu] Stan Horwitz [stan@thunder.ocis.temple.edu] John P . Speno [speno@isc.upenn.edu] Robert A. Hayden [rhayden@means.net] Lance A. Brown [brown9@niehs.nih.gov] alan@nabeth.cxo.dec.com I got three "don't worry" and two "worry"... and one was along the lines of "won't cause a problem but probably should fix it anyway". My fault for not mentioning that I was using AdvFS. I just checked and, as John P. Speno said, the AdvFS system trimmed the size of the dir down by itself. With the bogus messages deleted the dir is now 8192... I am going to include some nice sendmail information that Jerome M Berkman sent along to me. Again, thanks to everyone. ----------------------------------------------------- I wouldn't worry and would concentrate on clearing the backlog. Shutting down smptd doesn't shut down all activity on the queue directory - it is still possible for logged in users to send mail, for system processes to send mail, and lots of queue runs may have files in the queue open. You can make a new queue directory, e.g.: mkdir /var/spool/mqueue2 and then edit /etc/sendmail.cf and specify it as the queue directory: # queue directory O QueueDirectory=/var/spool/mqueue2 Above is how it looks in sendmail-8.8.8; you haven't said what version your are using. Then restart smtpd and all subsequent references will be to the new directory. You must still deal with all the files in the old queue directory. You can just have queue runs every 15 minutes until it is drained: % /usr/lib/sendmail -q15m -oQ/var/spool/mqueue And of course, you can use the same steps to switch back. You can also merge two queues. The problem here is to avoid moving any files in active use, because they may be updated in the directory you are getting rid of during or after the move. Kill off any queue runs on the directory you are getting rid of and wait a while until the directory is quiescent, then move all files to the new directory. Note - xf files are lock files and you really don't want them when moving. Also, wait until new messages use a different key letter to minimize collisions when merging. E.g. if the old directory has mainly {q,d}fC..., then wait until the new directory is using {q,d}fD... - Jerry Berkman, UC Berkeley --------------------------------------- Daniel Monjar / dmonjar@orgtek.com Manager, Systems and Operations Organon Teknika