OpenVZ Forum


Home » General » Support » ovzkernel-2.6.18-308.el5.028stab099.3 + vzctl-3.2-1 = problems "detected vswap CT config but ke (Error: detected vswap CT config but kernel does not support vswap)
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 Go to next message
umask is currently offline  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 #46228 is a reply to message #46227] Fri, 04 May 2012 12:53 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
It might be a bug in vzctl. I couldn't see any vswap specific instructions while quickly skimming across your original CT config (please doublecheck), so it should work with your kernel.

If a similar vzctl bugreport doesn't exist, please do open a new one.

In the meanwhile I'd advise you to downgrade vzctl to the previous version - "yum downgrade vzctl" should do the trick...
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 Go to previous messageGo to next message
umask is currently offline  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, Cool = 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 #46230 is a reply to message #46229] Fri, 04 May 2012 13:06 Go to previous messageGo to next message
umask is currently offline  umask
Messages: 23
Registered: December 2007
Junior Member
FYI:

# rpm --force -Uhv http://download.openvz.org/utils/vzctl/3.1/vzctl-3.1-1.x86_6 4.rpm http://download.openvz.org/utils/vzctl/3.1/vzctl-lib-3.1-1.x 86_64.rpm
Retrieving http://download.openvz.org/utils/vzctl/3.1/vzctl-3.1-1.x86_6 4.rpm
Retrieving http://download.openvz.org/utils/vzctl/3.1/vzctl-lib-3.1-1.x 86_64.rpm
Preparing... ########################################### [100%]
1:vzctl-lib ########################################### [ 50%]
2:vzctl ########################################### [100%]



# rpm -qa | grep vzctl
vzctl-lib-3.1-1
vzctl-3.1-1


# vzctl start 101
Starting container ...
Container is mounted
Adding IP address(es): XX.XX.XX.XX
Setting CPU limit: 200
Setting CPU units: 1000
Container start in progress...
# echo $?
0


I have no time to report bug now. I will report it few later.
Re: ovzkernel-2.6.18-308.el5.028stab099.3 + vzctl-3.2-1 = problems "detected vswap CT config bu [message #46231 is a reply to message #46227] Fri, 04 May 2012 13:42 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
It seems that openvz devels keep just the latest rpm packages in the repos, so yum downgrade doesn't work.

I'm glad you've solved your immediate problem and thanks for reporting back. Looks like this bug will hit a lot of users without vswap capable kernels...
Re: ovzkernel-2.6.18-308.el5.028stab099.3 + vzctl-3.2-1 = problems "detected vswap CT config bu [message #46237 is a reply to message #46231] Fri, 04 May 2012 21:34 Go to previous messageGo to next message
umask is currently offline  umask
Messages: 23
Registered: December 2007
Junior Member
bug report: http://bugzilla.openvz.org/show_bug.cgi?id=2263
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 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

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
http://static.openvz.org/userbars/openvz-developer.png
Re: ovzkernel-2.6.18-308.el5.028stab099.3 + vzctl-3.2-1 = problems "detected vswap CT config bu [message #46241 is a reply to message #46239] Sat, 05 May 2012 05:29 Go to previous message
umask is currently offline  umask
Messages: 23
Registered: December 2007
Junior Member
I think that:
1. vzctl needs to report that problem here is in missed parameter (physpages), not vswap (before write to forum and report bug I googled problem and find nothing).
2. due to compatibility vzctl must report warnings few minor versions and only after will exit with fatal error.


Currently I have more than 20 servers with described problem.
Possible other users have the same misconfigurations.
Previous Topic: CentOS 5 HN with CentOS 6 Container Issues
Next Topic: which kernel to install
Goto Forum:
  


Current Time: Thu Sep 05 06:20:11 GMT 2024

Total time taken to generate the page: 0.06140 seconds