OpenVZ Forum


Home » General » Support » *SOLVED* Quota Support
*SOLVED* Quota Support [message #13340] Thu, 24 May 2007 21:22 Go to next message
Ashley is currently offline  Ashley
Messages: 40
Registered: December 2006
Member
I have recently moved a test vps over to a new second hard drive.

And have setup the new hard drive under partition "vps" the new vps is setup correctly under /vps/root and /vps/private.

However when i try to start the vps on the 2nd hard drive it fails displaying a quota error
"Starting VE ...
vzquota : (error) Quota on syscall for 202: No such file or directory
vzquota on failed [3]"

Do i need to enable an option on the new partition/hard disk.

Thanks

[Updated on: Fri, 25 May 2007 09:21] by Moderator

Report message to a moderator

Re: Quota Support [message #13354 is a reply to message #13340] Fri, 25 May 2007 08:18 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

Can you post here the following information, please:
VEID="ID of VE in question"
cat /etc/vz/vz.conf
cat /etc/vz/conf/$VEID.conf
fdisk -l
cat /proc/mounts

Thank you,
Vasily.
Re: Quota Support [message #13356 is a reply to message #13354] Fri, 25 May 2007 08:25 Go to previous messageGo to next message
Ashley is currently offline  Ashley
Messages: 40
Registered: December 2006
Member
VEID="202"
cat /etc/vz/vz.conf

DISK_QUOTA=yes
VZFASTBOOT=no

# The name of the device whose ip address will be used as source ip for VE.
# By default automatically assigned.
#VE_ROUTE_SRC_DEV="eth0"

## Template parameters
TEMPLATE=/vz/template

## Defaults for VEs
VE_ROOT=/vz/root/$VEID
VE_PRIVATE=/vz/private/$VEID
CONFIGFILE="vps.basic"
DEF_OSTEMPLATE="fedora-core-4"

## Load vzwdog module
VZWDOG="no"
IPV6="no"

IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length"



cat /etc/vz/conf/$VEID.conf

# 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)
# Primary parameters
AVNUMPROC="400:400"
NUMPROC="350:350"
NUMTCPSOCK="600:600"
NUMOTHERSOCK="300:300"
VMGUARPAGES="131072:131072"

# Secondary parameters
KMEMSIZE="32010048:33000000"
TCPSNDBUF="6000000:6000000"
TCPRCVBUF="3194808:5242808"
OTHERSOCKBUF="3000000:30000000"
DGRAMRCVBUF="13209600:13209600"
OOMGUARPAGES="65536:65536"

# Auxiliary parameters
LOCKEDPAGES="64:64"
SHMPAGES="8192:8192"
PRIVVMPAGES="262144:262144"
NUMFILE="4048:4048"
NUMFLOCK="100:110"
NUMPTY="16:16"
NUMSIGINFO="256:256"
DCACHESIZE="104857600:109772800"
PHYSPAGES="0:2147483647"
NUMIPTENT="128:128"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="30214400:30214400"
DISKINODES="20000000:22000000"
QUOTATIME=""

# CPU fair sheduler parameter
VE_ROOT="/vps/root/$VEID"
VE_PRIVATE="/vps/private/$VEID"
OSTEMPLATE="centos-4-i386-default"
ORIGIN_SAMPLE="vps.basic"
IP_ADDRESS="87.117.196.235"
NAMESERVER="87.117.196.235"
HOSTNAME="server.64digits.com"
QUOTAUGIDLIMIT="1000"
CPULIMIT="100"
IPTABLES= "iptable_filter iptable_mangle ipt_limit ipt_REJECT ipt_length "
CPUS="1"
MEMINFO="pages:256000"

fdisk -l



Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 535 4297356 83 Linux
/dev/sda2 536 803 2152710 82 Linux swap
/dev/sda3 804 9726 71673997+ 83 Linux

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 19457 156288321 83 Linux

cat /proc/mounts


/dev/root / ext3 rw,data=ordered 0 0
none /dev tmpfs rw 0 0
/proc /proc proc rw 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
/sys /sys sysfs rw 0 0
none /dev/pts devpts rw 0 0
none /dev/shm tmpfs rw 0 0
/dev/sda3 /vz ext3 rw,data=ordered 0 0
/dev/sdb1 /vps ext3 rw,data=ordered 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
/vz/private/102 /vz/root/102 simfs rw 0 0
/proc /vz/root/102/proc proc rw 0 0
/sys /vz/root/102/sys sysfs rw 0 0
none /vz/root/102/dev tmpfs rw 0 0
none /vz/root/102/dev/pts devpts rw 0 0
none /vz/root/102/dev/shm tmpfs rw,nosuid,nodev,noexec 0 0
/vz/private/209 /vz/root/209 simfs rw 0 0
/proc /vz/root/209/proc proc rw 0 0
/sys /vz/root/209/sys sysfs rw 0 0
none /vz/root/209/dev/pts devpts rw 0 0
/vz/private/104 /vz/root/104 simfs rw 0 0
/vz/private/102 /vz/root/102/var/tmp simfs rw,nosuid,noexec 0 0
/proc /vz/root/104/proc proc rw 0 0
/sys /vz/root/104/sys sysfs rw 0 0
none /vz/root/104/dev/pts devpts rw 0 0
/vz/private/105 /vz/root/105 simfs rw 0 0
/vz/private/104 /vz/root/104/var/tmp simfs rw,nosuid,noexec 0 0
/proc /vz/root/105/proc proc rw 0 0
/sys /vz/root/105/sys sysfs rw 0 0
none /vz/root/105/dev/pts devpts rw 0 0
/vz/private/108 /vz/root/108 simfs rw 0 0
/proc /vz/root/108/proc proc rw 0 0
/sys /vz/root/108/sys sysfs rw 0 0
none /vz/root/108/dev/pts devpts rw 0 0
/vz/private/205 /vz/root/205 simfs rw 0 0
/proc /vz/root/205/proc proc rw 0 0
/sys /vz/root/205/sys sysfs rw 0 0
/vz/private/206 /vz/root/206 simfs rw 0 0
none /vz/root/205/dev/pts devpts rw 0 0
/proc /vz/root/206/proc proc rw 0 0
/sys /vz/root/206/sys sysfs rw 0 0
none /vz/root/206/dev/pts devpts rw 0 0
/vz/private/207 /vz/root/207 simfs rw 0 0
/proc /vz/root/207/proc proc rw 0 0
/sys /vz/root/207/sys sysfs rw 0 0
/vz/private/208 /vz/root/208 simfs rw 0 0
none /vz/root/207/dev/pts devpts rw 0 0
/vz/private/105 /vz/root/105/var/tmp simfs rw,nosuid,noexec 0 0
/proc /vz/root/208/proc proc rw 0 0
/sys /vz/root/208/sys sysfs rw 0 0
none /vz/root/208/dev/pts devpts rw 0 0


I know in vz.conf it is still set to /vz/root and vz/private.

I want to be able to test to make sure that the VPS will run on the second Hard Disk, which is why i created a test VPS and just set the 202.conf to /vps/root and /vps/private
Thanks
Re: Quota Support [message #13358 is a reply to message #13356] Fri, 25 May 2007 08:43 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Ahem, I know the reason Wink vzuota should be dropped before start of VE after moving (you should do it only once):

# vzctl start 202
Starting VE ...
vzquota : (error) Quota on syscall for 202: No such file or directory
vzquota on failed [3]
# vzquota drop 202
# vzctl start 202
Starting VE ...
Initializing quota ...
VE is mounted
Setting CPU units: 1000
VE start in progress...

HTH,
Vasily.
Re: Quota Support [message #13359 is a reply to message #13358] Fri, 25 May 2007 08:45 Go to previous message
Ashley is currently offline  Ashley
Messages: 40
Registered: December 2006
Member
Works like a dream.

Thanks,
Ashley
Previous Topic: ve upgrade fc4 to fc5
Next Topic: System crash on kernel: 2.6.8-022stab076-smp
Goto Forum:
  


Current Time: Thu Oct 17 10:58:22 GMT 2024

Total time taken to generate the page: 0.13093 seconds