On Mon, 22 Dec 2014, Reindl Harald wrote:
Am 22.12.2014 um 19:08 schrieb Almond:
so you mean to move the /tmp partition from /dev/md2 to another
partition, since /var/spool/mail and quota control are on the same
partition?
and what size to reserve to the new /tmp... ?
well, we have it on tmpfs like below on our inbound mail-gw and use in any
SA/ClamAV related service (milters and so on) explicit
Environment="TMPDIR=/tmp" to make sure even /var/tmp is not used
also /var/lib/postfix containing nothing else then caches and lockfiles is on
tmpfs to avoid "postscreen_cache.db" become IO bound and have 99% of all
processing in memory, hence also any postfix configuration is using proxymap
maybe that's why the mailgatewy has a load average of 0.0x all the time, but
keep in mind in our case it is *only* a inbound MX filtering and scanning
messages with no local storage handing over clean messages to the final
destinations via SMTP
tmpfs /tmp tmpfs defaults,noexec,nosuid,noatime,nodiratime,size=512m
tmpfs /var/lib/postfix tmpfs
defaults,noexec,nosuid,noatime,nodiratime,size=64m,uid=89,gid=0,mode=0700
Exactly, but I'd set that /tmp size to something like 10GB or more.
He's got a 2TB root drive so no sense scrimping on /tmp and running
into "fullness" problems later.
--
Dave Funk University of Iowa
<dbfunk (at) engineering.uiowa.edu> College of Engineering
319/335-5751 FAX: 319/384-0549 1256 Seamans Center
Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{