OpenVZ Forum


Home » General » Support » Disk quota on gentoo template
Disk quota on gentoo template [message #1863] Wed, 01 March 2006 22:14 Go to next message
steffen.zieger is currently offline  steffen.zieger
Messages: 43
Registered: February 2006
Location: Germany, Stuttgart
Member
Hello,

I've got a problem with my gentoo-vps.

I'm using the same configuration file for a gentoo and a debian vps.
I've a limit on disk space set to about 5GB. On debian-vps this limit works and I can use all of the 5Gb.
On Gentoo-vps I can only use about 1,2Gb.

Does anybody got an idea, where the problem is?

TIA,
Steffen
Re: Disk quota on gentoo template [message #1864 is a reply to message #1863] Wed, 01 March 2006 22:32 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Can you post some numbers to illustrate your findings? I.e. cat /proc/vz/vzquota, df, du -sh / in VPS etc. etc.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Disk quota on gentoo template [message #1869 is a reply to message #1864] Thu, 02 March 2006 07:56 Go to previous messageGo to next message
steffen.zieger is currently offline  steffen.zieger
Messages: 43
Registered: February 2006
Location: Germany, Stuttgart
Member
Hello,

sure. Here we go.

df in gentoo-vps:
Filesystem           1K-blocks      Used Available Use% Mounted on
simfs                  5000000    965040   4034960  20% /


du -sh /:
pegasus / # du -sh /
929M    /


Ok, I've found the problem.

cat /proc/vz/quota:
qid: path            usage      softlimit      hardlimit       time     expire
100: /vz/private/100
  1k-blocks        1124974        5000000        5120000          0          0
     inodes         200001         200000         220000 1141285151          0
111: /vz/private/111
  1k-blocks        1662919        5000000        5100000          0          0
     inodes          85754         200000         220000          0          0


Both are running into the same problem. On debian-vps (111) there are only more inodes unused than on gentoo-vps (100).

But one problem is left:
There is a softlimit and a hardlimit. Hardlimit is 20000 inodes bigger than softlimit, but if I'm reaching the softlimit, a message is printed, that disk quota is exceeded. Why?

What is a sane number for inodes if I want to have 5Gb?

TIA,
Steffen
Re: Disk quota on gentoo template [message #2946 is a reply to message #1863] Tue, 02 May 2006 13:38 Go to previous messageGo to next message
carlos is currently offline  carlos
Messages: 3
Registered: May 2006
Junior Member
I have too problem with my gentoo-vps
I cant install apache. I use emerge apache and I see "disk quota exceeded"

my df /
Filesystem 1K-blocks Used Available Use% Mounted on
- 5000000 1174760 3825240 24% /

du -sh /
1.2
Re: Disk quota on gentoo template [message #2947 is a reply to message #2946] Tue, 02 May 2006 13:48 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

It looks like you have exceeded your inodes limits. Use df -i to check, vzctl set VEID --diskinodes to increase.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Disk quota on gentoo template [message #2948 is a reply to message #2947] Tue, 02 May 2006 14:05 Go to previous messageGo to next message
carlos is currently offline  carlos
Messages: 3
Registered: May 2006
Junior Member
df -i /
Filesystem Inodes IUsed IFree IUse% Mounted on
- 200000 200000 0 100% /

vzctl and VEID command not found

How I can change df -i / to more?
Re: Disk quota on gentoo template [message #2949 is a reply to message #2948] Tue, 02 May 2006 14:10 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

As I just said:
vzctl set VEID --diskinodes 400000:450000 --save


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Disk quota on gentoo template [message #2950 is a reply to message #2949] Tue, 02 May 2006 14:13 Go to previous messageGo to next message
carlos is currently offline  carlos
Messages: 3
Registered: May 2006
Junior Member
If I use this I see: command not found
Re: Disk quota on gentoo template [message #2951 is a reply to message #2950] Tue, 02 May 2006 14:18 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

You can not increase the per-VE limit from inside a VE for obvious reasons. You should use vzctl set from the host system. If you just have a VE and do not have access to the host system, plz ask you sysadmin to raise the diskinodes limit for your VE

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: vps on lvm
Next Topic: Oops. How do i find out what it means.
Goto Forum:
  


Current Time: Fri Jul 12 18:33:13 GMT 2024

Total time taken to generate the page: 0.02306 seconds