Plaats eens de inhoud van je /etc/vz/conf/1234.conf
Afdrukvoorbeeld
Plaats eens de inhoud van je /etc/vz/conf/1234.conf
De dingen tussen haakjes werken gewoon.Citaat:
# Copyright (C) 2000-2011, Parallels, Inc. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# UBC parameters (in form of barrier:limit)
KMEMSIZE="14372700:14790164"
LOCKEDPAGES="2048:2048"
PRIVVMPAGES="524288:786432"
SHMPAGES="21504:21504"
NUMPROC="240:240"
PHYSPAGES="0:unlimited"
VMGUARPAGES="524288"
OOMGUARPAGES="524288"
NUMTCPSOCK="360:360"
NUMFLOCK="188:206"
NUMPTY="16:16"
NUMSIGINFO="256:256"
TCPSNDBUF="1720320:2703360"
TCPRCVBUF="1720320:2703360"
OTHERSOCKBUF="1126080:2097152"
DGRAMRCVBUF="262144:262144"
NUMOTHERSOCK="360:360"
DCACHESIZE="3409920:3624960"
NUMFILE="9312:9312"
AVNUMPROC="180:180"
NUMIPTENT="128:128"
# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="250G:250G"
DISKINODES="2500000:2500000"
QUOTATIME="0"
# CPU fair scheduler parameter
CPUUNITS="2000"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
OSTEMPLATE="centos-5-x86"
ORIGIN_SAMPLE="basic"
ONBOOT="yes"
HOSTNAME="[Nameservers]"
IP_ADDRESS="[EenPaarIPs]"
NAMESERVER="8.8.8.8 8.8.4.4"
QUOTAUGIDLIMIT="500"
CAPABILITY=" SYS_TIME:on"
SWAPPAGES="0:262144"
Ik vermoed dat het in je SHMPAGES zit.
Zie ook http://wiki.openvz.org/UBC_auxiliary_parameters
Een belangrijke vraag is:
wil je UBC gebruiken of het nieuwe vSwap model?
In geval van vSwap moet je even "vzctl set 1234 --ram 2G --swap 1G --save" doen.
Zie http://wiki.openvz.org/VSwap ook even voor het UBC verhaal:
Manually remove all UBC parameters from config. This is optional, you can still have UBC limits applied if you want.
Je moet er wel rekening mee houden dat vSwap alleen op RHEL/Centos 6 draait. ;)
Ik draai uit mn hoofd op CentOS 5.2 (weet niet zeker), maar ik zit nu al een paar dagen de logs in de gaten te houden en het is niet meer gebeurd.
Bedankt!
Je kunt op CentOS 5.2 (voor zover ik weet) geen gebruik maken van de vswap setup, je vz configuratie klopt dan ook niet.
Ik raad je aan in /etc/vz/conf/ eens naar de voorbeeld bestanden te kijken.