OpenVZ Forum


Home » General » Support » *SOLVED* Problem create VE when quota=yes
*SOLVED* Problem create VE when quota=yes [message #25690] Mon, 07 January 2008 13:52 Go to previous message
yettyn is currently offline  yettyn
Messages: 31
Registered: January 2008
Location: Jihlava, CZ
Member
Hi,

I have run into a problem where I can't create a VE when DISK_QUOTA=yes in vz.conf

This is however when using my own ve-xxx.conf.sample, created from # vzsplit -n 20 -f vps.my20 . If I use ve-vps.basic.conf-sample however I can create VE's when quota is on, but it seem like I can only start 1 VE, trying to start more fails, unless I stop the one running. This strange as my hw spec isn't that bad:

CPU: Intel Core 2 Duo E6750 (2.66 Mhz)
RAM: 2 GB
SWAP: 2 GB
HDD: 160 GB SATA (I have /vz mounted on a 65G partition)

I should mention as well that I use the 2.6.22-ovz005.1 dev kernel as 2.6.18 lack full support for my hardware.

I have noticed after starting in dmesg the line

VZDQ: sys/fs/quota creation failed

is added. I am not sure if it has anything to do with it though as I did some tests on another box with lower hw spec were I can boot both kernels (2.6.18 stable & 2.6.22 dev). The pattern was the same in both kernels. One observation though, vzsplit always create DISKINODES="0:0" on that box and if I change this to same as in vps.basic DISKINODES="200000:220000" there are no problems creating VE's although the 'VZDQ: sys/fs/quota creation failed' remains in 2.6.22

This change of DISKINODES doesn't work on my main box though an in fact the values are pretty close to the ones in vps.basic (see below). Instead it seem vzsplit counts DISKINODES in a strange way or at least it has something to do with it. I don't know if it matters, but on the old test box I don't have /vz mounted on it's own partition, whichis the only I can come to think of on my end causing the DISKINODES="0:0" result.

I should also add I did run vzcfvalidate after vzsplit, with success.

below is my ve-vps.basic.conf-sample file and then the one created from vzsplit -n 20

#  Copyright (C) 2000-2007 SWsoft. 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"
# UBC parameters (in form of barrier:limit)
KMEMSIZE="11055923:11377049"
LOCKEDPAGES="256:256"
PRIVVMPAGES="65536:69632"
SHMPAGES="21504:21504"
NUMPROC="240:240"
PHYSPAGES="0:2147483647"
VMGUARPAGES="33792:2147483647"
OOMGUARPAGES="26112:2147483647"
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="1048576:1153024"
DISKINODES="200000:220000"
QUOTATIME="0"

# CPU fair sheduler parameter
CPUUNITS="1000"


merc conf # less ve-vps.my20.conf-sample 
# Configuration file generated by vzsplit for 20 VEs
# on HN with total amount of physical mem 2014 Mb
# low memory 872 Mb, swap size 2274 Mb, Max treads 8000
# Resourse commit level 0:
# Free resource distribution. Any parameters may be increased
# Primary parameters
NUMPROC="400:400"
AVNUMPROC="111:111"
NUMTCPSOCK="400:400"
NUMOTHERSOCK="400:400"
VMGUARPAGES="49797:2147483647"

# Secondary parameters
KMEMSIZE="9153576:10068933"
TCPSNDBUF="1412792:3051192"
TCPRCVBUF="1412792:3051192"
OTHERSOCKBUF="706396:2344796"
DGRAMRCVBUF="706396:706396"
OOMGUARPAGES="49797:2147483647"
PRIVVMPAGES="298782:328660"

# Auxiliary parameters
LOCKEDPAGES="446:446"
SHMPAGES="29878:29878"
PHYSPAGES="0:2147483647"
NUMFILE="3552:3552"
NUMFLOCK="355:390"
NUMPTY="40:40"
NUMSIGINFO="1024:1024"
DCACHESIZE="1986361:2045952"
NUMIPTENT="100:100"
DISKSPACE="337036:370740"
DISKINODES="199548:219503"
CPUUNITS="12705"


I haven't laborated with the values in my vps.my20 file yet as I wanted to post this before I lost it Wink but will do so, but of course I also what to figure out why vzsplit creates verified values that actually doen't work.

/Joakim


Kernel 2.6.32-125.3
vzctl 4.9.4
Gentoo Linux x64

[Updated on: Mon, 07 January 2008 14:47]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Does iostat work in a VPS?
Next Topic: Upgrade HN
Goto Forum:
  


Current Time: Sun Jul 14 22:53:56 GMT 2024

Total time taken to generate the page: 0.02308 seconds