OpenVZ und Postfix
Bei meinem Versuch den Mailserver in OpenVZ zu installieren bin ich erst einmal an den sehr niedrigen Einstellungen für Sockets und Prozesse in OpenVZ gestolpert.
Leider bringt Postfix dabei keine sinnvollen Fehlermeldungen, sondern nur ein
Mar 14 18:29:31 mail postfix/master[14119]: fatal: pipe: Cannot allocate memory
Nach erhöhen der Werte in
/etc/vz/id.conf
konnte der Postfix dann starten.
Eine gute Hilfe war hierbei das offizille Wiki
For English version please read full article
When I first tried to install the mailserver postfix into an OpenVZ environment, I just failed because of the very low socket settings in OpenVZ. Unfortunately Postfix just reports:
Mar 14 18:29:31 mail postfix/master[14119]: fatal: pipe: Cannot allocate memory
I had to raise the values in
/etc/vz/id.conf
to start Postfix.
A good help is always the official wiki.
























Juniperus sagt
am 24. Mai 2007 @ 14:44
Kannst Du vielleicht mal Deine Erfahrungswerte posten, welche Einstellungen für Sockets Du Problemlos funktionieren?
Ich habe die Zahl bei mir drastisch erhöht, aus Angst, es könnten im Live-Betrieb zu Problemen kommen.
Patrick Seeger sagt
am 24. Mai 2007 @ 21:32
Mit folgenden Werten klappt das bei mir gut:
ONBOOT=”yes”
# UBC parameters (in form of barrier:limit)
# Primary parameters
#AVNUMPROC=”200:200″
NUMPROC=”400:1200″
NUMTCPSOCK=”500:2048″
NUMOTHERSOCK=”500:2048″
VMGUARPAGES=”6144:2147483647″
# Secondary parameters
KMEMSIZE=”16384000:18022400″
TCPSNDBUF=”5365760:10485760″
TCPRCVBUF=”5365760:10485760″
OTHERSOCKBUF=”1503232:4063232″
DGRAMRCVBUF=”262144:262144″
OOMGUARPAGES=”6144:2147483647″
# Auxiliary parameters
LOCKEDPAGES=”4096:4096″
SHMPAGES=”131072:131072″
PRIVVMPAGES=”262144:262144″
NUMFILE=”8192:8192″
NUMFLOCK=”200:220″
NUMPTY=”64:64″
NUMSIGINFO=”512:512″
DCACHESIZE=”4194304:4194304″
PHYSPAGES=”0:2147483647″
NUMIPTENT=”128:128″
# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE=”15728640:17301510″
DISKINODES=”3000000:3300000″
QUOTATIME=”0″
# CPU fair sheduler parameter
CPUUNITS=”22000″
VE_ROOT=”/var/lib/vz/root/$VEID”
VE_PRIVATE=”/var/lib/vz/private/$VEID”
Der Server hat 2 GB Ram und ca. 50 Nutzer… Ist also nicht sehr ausgelastet.