ovzkernel-2.6.18-308.el5.028stab099.3 + vzctl-3.2-1 = problems "detected vswap CT config but ke [message #46227] |
Fri, 04 May 2012 12:11 |
umask
Messages: 23 Registered: December 2007
|
Junior Member |
|
|
Hi!
Today I restarted hardware node and find that my CTs didn't start.
When I trying start it I get next error:
# vzctl start 101
Error: required UB parameter swappages not set
Error: detected vswap CT config but kernel does not support vswap
The CT config:
===========
# cat /etc/vz/conf/101.conf
# Copyright (C) 2000-2008, 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
#
ONBOOT="yes"
# parameters (in form of barrier:limit
# 1st
NUMPROC="256:256"
NUMTCPSOCK="4096:4096"
NUMOTHERSOCK="1024:1024"
# 2GB (in 4K pages):
VMGUARPAGES="524288:524288"
# 2nd
# 1GB (in bytes)
KMEMSIZE="1073741824:1073741824"
TCPSNDBUF="16220160:16220160"
TCPRCVBUF="16220160:16220160"
OTHERSOCKBUF="1126080:2097152"
DGRAMRCVBUF="262144:262144"
OOMGUARPAGES="524288:524288"
PRIVVMPAGES="524288:524288"
# 3rd
LOCKEDPAGES="4096:4096"
SHMPAGES="524288:524288"
PHYSPAGES="524288:524288"
NUMFLOCK="4096:4096"
NUMPTY="16:16"
NUMSIGINFO="256:256"
# 32MB (in bytes)
DCACHESIZE="33554432:33554432"
NUMFILE="9312:9312"
AVNUMPROC="180:180"
NUMIPTENT="128:128"
# END of UBC parameters (in form of barrier:limit)
# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="25048576:25153024"
DISKINODES="200000:220000"
QUOTATIME="0"
# CPU fair sheduler parameter
CPUUNITS="1000"
IP_ADDRESS="190.190.1.100"
HOSTNAME="web.XXXX.net"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
OSTEMPLATE="centos-5-x86_64-minimal"
ORIGIN_SAMPLE="vps.basic"
NAMESERVER="10.10.1.1 10.10.2.2"
SEARCHDOMAIN="XXXX.net"
CPULIMIT="200"
==========
# uname -a
Linux HWnode.com 2.6.18-308.el5.028stab099.3 #1 SMP Wed Mar 7 15:56:00 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux
# vzctl --version
vzctl version 3.2
When I add
==========
SWAPPAGES="0:0"
==========
to CT config I get error:
# vzctl start 101
Error: detected vswap CT config but kernel does not support vswap
Where is my mistake?
Thank you.
|
|
|
|
Re: ovzkernel-2.6.18-308.el5.028stab099.3 + vzctl-3.2-1 = problems "detected vswap CT config bu [message #46229 is a reply to message #46227] |
Fri, 04 May 2012 13:02 |
umask
Messages: 23 Registered: December 2007
|
Junior Member |
|
|
There is part of output of `strace vzctl start 101':
rt_sigaction(SIGINT, {0x1, [], SA_RESTORER, 0x31a18302f0}, NULL, = 0
ioctl(4, 0x400c2e05, 0x7fffdb494a10) = -1 ESRCH (No such process)
ioctl(4, 0x400c2e05, 0x7fffdb494820) = -1 ESRCH (No such process)
access("/proc/vz/vswap", F_OK) = -1 ENOENT (No such file or directory)
write(2, "Error: detected vswap CT config "..., 65Error: detected vswap CT config but kernel does not support vswap) = 65
write(2, "\n", 1
) = 1
yum downgrade said:
# yum downgrade vzctl
Loaded plugins: downloadonly, fastestmirror
...
Excluding Packages in global exclude list
Finished
No Match for available package: vzctl-3.2-1.i386
Only Upgrade available on package: vzctl-3.2-1.x86_64
Nothing to do
|
|
|
|
|
|
Re: ovzkernel-2.6.18-308.el5.028stab099.3 + vzctl-3.2-1 = problems "detected vswap CT config bu [message #46239 is a reply to message #46237] |
Fri, 04 May 2012 22:00 |
|
Replied in bugzilla, copy-paste from bz follows:
Now, the problem is your physpages is not set the way it should. Newer vzctl is just able to detect it, while the old one didn't care. So this is the bug with your CT configuration, not vzctl.
If you look up the description of physpages (http://wiki.openvz.org/Physpages#physpages), you will note this:
> For older kernels, physpages is an accounting-only parameter.
> The barrier should be set to 0 and the limit to 'unlimited' (LONG_MAX).
So, the way to fix your CT config is:
vzctl set NNN --physpages 0:unlimited --save
Again, I am really sorry that new vzctl broke your CT start, but the problem is indeed with CT config not vzctl.
Kir Kolyshkin
|
|
|
|