OpenVZ Forum


Home » General » Support » *SOLVED* Disk quota exceeded
*SOLVED* Disk quota exceeded [message #14624] Tue, 03 July 2007 15:00 Go to next message
jpastore is currently offline  jpastore
Messages: 21
Registered: July 2007
Location: South Florida
Junior Member
Setting OpenVZ and I'm migrating from my old development server to the new box which is the first VE we've set up.

copying over home directories: by doing scp -r * user@ip:/home/user

on the last few files I'm getting: Disk quota exceeded

I searched around and found a --diskspace switch and tried:

vzctl set --diskspace 10000000000:15000000000 --save

VE filesystem set to 15G

I don't want quotas. can I make this go away? The only quota I should have to worry about is the space I allocated for the VE.

which brings me to my second question:

I can cat /proc/user_beancounters to see what's failing and what various settings are set to. I don't see diskspace in that list. Is there a place where I can look to see what it's set to and what other random settings there are that I don't know about?

-Jon

[Updated on: Tue, 03 July 2007 20:55] by Moderator

Report message to a moderator

Re: Disk quota exceeded [message #14625 is a reply to message #14624] Tue, 03 July 2007 15:20 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Quote:


VE filesystem set to 15G

I don't want quotas. can I make this go away? The only quota I should have to worry about is the space I allocated for the VE
.

the VE quota is the metric set with --diskspace x:y

ie, the quotas you are referring to are what you want to worry about.

Quote:

Is there a place where I can look

'man vzctl' has all of the info you need, including the disk space metric. further, the openvz pdf manual is an excellent place to start reading.


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Disk quota exceeded [message #14626 is a reply to message #14625] Tue, 03 July 2007 15:24 Go to previous messageGo to next message
jpastore is currently offline  jpastore
Messages: 21
Registered: July 2007
Location: South Florida
Junior Member
I did not setup file system quotas. so how can there be a quota issue unless openvz is enforcing a quota?

Thank you for pointing me to the man pages and documentation. I was looking for a command/file so I can see what settings are set to that are not listed in /proc/user_beancoutners

is there a file I can look at or command that will tell me that diskspace is set to: X:Y?

Re: Disk quota exceeded [message #14627 is a reply to message #14626] Tue, 03 July 2007 15:29 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
per VE quotas differ from the conventional per user quotas we are used to on a linux server. you do not need per group or per user quotas enabled on your fs to allow per ve quotas.

grep DISK /etc/sysconfig/vz-scripts/VEID.conf



-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Disk quota exceeded [message #14628 is a reply to message #14627] Tue, 03 July 2007 15:46 Go to previous messageGo to next message
jpastore is currently offline  jpastore
Messages: 21
Registered: July 2007
Location: South Florida
Junior Member
thanks for the pointer to the conf file I can look at!

my point is that I do not want quotas of any kind. I'm trying to figure out why when I scp from my old server to the VE on this new box am I get an error of: Disk quota exceeded

when I never configured traditional quotas. I didn't configure per ve quotas either.

how do I confirm the what the ve quota is set to? and as a follow up either disable it or really increase it.

contents of the conf file:

VERSION="2"

ONBOOT="yes"

# UBC parameters (in form of barrier:limit)
# Primary parameters
AVNUMPROC="40:40"
NUMPROC="400:400"
NUMTCPSOCK="500:500"
NUMOTHERSOCK="500:500"
VMGUARPAGES="102400:102400"
# Secondary parameters
KMEMSIZE="16384000:18022400"
TCPSNDBUF="5365760:10485760"
TCPRCVBUF="5365760:10485760"
OTHERSOCKBUF="1503232:4063232"
DGRAMRCVBUF="262144:262144"
OOMGUARPAGES="102400:102400"
# Auxiliary parameters
LOCKEDPAGES="4096:4096"
SHMPAGES="131072:131072"
PRIVVMPAGES="262144:292912"
NUMFILE="8192:8192"
NUMFLOCK="200:220"
NUMPTY="64:64"
NUMSIGINFO="512:512"
DCACHESIZE="4194304:4317184"

PHYSPAGES="0:9223372036854775807"
NUMIPTENT="128:128"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="10000000000:15000000000"
DISKINODES="200000:220000"
QUOTATIME="0"

# CPU fair sheduler parameter
CPUUNITS="1000"
OFFLINE_MANAGEMENT="yes"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
OSTEMPLATE="centos-4-x86_64-minimal"
ORIGIN_SAMPLE="vps.basic"
IP_ADDRESS="192.168.0.51"

Re: Disk quota exceeded [message #14629 is a reply to message #14628] Tue, 03 July 2007 16:23 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
/proc/vz/vzquota is what you want for the live status of the quota.




I have never tried to disable per ve quotas but it is likely possible. Rather then disabling it, I would set it very high or at the HN's capability, these seems more sane to me.

For your error, likely you are at the max blocks or max inodes- vzquota proc file above can verify this.

Rick


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Disk quota exceeded [message #14638 is a reply to message #14629] Tue, 03 July 2007 20:51 Go to previous messageGo to next message
jpastore is currently offline  jpastore
Messages: 21
Registered: July 2007
Location: South Florida
Junior Member
yea that appears to be the problem:

 cat /proc/vz/vzquota 
qid: path            usage      softlimit      hardlimit       time     expire
1000: /vz/private/1000
  1k-blocks        7851856    10000000000    15000000000          0          0
     inodes         200000         200000         220000 1183470760          0




I'm making preparations for the 4th of July =) so I'll try it later

Thanks for your help!
Re: Disk quota exceeded [message #14706 is a reply to message #14629] Fri, 06 July 2007 18:08 Go to previous message
jpastore is currently offline  jpastore
Messages: 21
Registered: July 2007
Location: South Florida
Junior Member
Thanks for all of your help.

I wrote a script to help me deal with this and I would appreciate some feedback and your thoughts...it seems like you have a good handle on what's going on:

http://forum.openvz.org/index.php?t=tree&goto=14638& #msg_14638

Thanks again for everything.
Previous Topic: *SOLVED* vzctl restart from crontab
Next Topic: *SOLVED* /dev/pts support in VE
Goto Forum:
  


Current Time: Tue Aug 13 22:15:26 GMT 2024

Total time taken to generate the page: 0.04151 seconds