OpenVZ Forum


Home » General » Support » About quotas
Re: About quotas [message #43319 is a reply to message #43318] Tue, 23 August 2011 22:37 Go to previous message
cyrolancer is currently offline  cyrolancer
Messages: 15
Registered: July 2011
Junior Member
I have solved the problem. Here is the details:

Note: Container id is 10.

1. Start your container, as usual.

vzctl start 10

2. Kill the processes of the container. You can find the processes, using this command:

lsof 2> /dev/null | egrep '/vz/root/10|/vz/private/10'

Change 10 with your container id.

You are going to see something like this:

saslauthd 14512    root  mem       REG                9,2           522749462 /vz/root/10/lib64/libdl-2.5.so (path dev=0,23)
saslauthd 14512    root  mem       REG                9,2           522749426 /vz/root/10/lib64/libkeyutils-1.2.so (path dev=0,23)
saslauthd 14512    root  mem       REG                9,2           522749371 /vz/root/10/lib64/libselinux.so.1 (path dev=0,23)
saslauthd 14512    root  mem       REG                9,2           522749423 /vz/root/10/lib64/libaudit.so.0.0.0 (path dev=0,23)
saslauthd 14512    root  mem       REG                9,2           522650620 /vz/root/10/usr/lib64/libsasl2.so.2.0.22 (path dev=0,23)
saslauthd 14512    root  mem       REG                9,2           522749418 /vz/root/10/lib64/libssl.so.0.9.8e (path dev=0,23)
saslauthd 14512    root  mem       REG                9,2           522650670 /vz/root/10/usr/lib64/libz.so.1.2.3 (path dev=0,23)
saslauthd 14512    root  mem       REG                9,2           522749408 /vz/root/10/lib64/libsepol.so.1 (path dev=0,23)
saslauthd 14512    root    0u      CHR                1,3               15819 /vz/root/10/dev/null
saslauthd 14512    root    1u      CHR                1,3               15819 /vz/root/10/dev/null
saslauthd 14512    root    2u      CHR                1,3               15819 /vz/root/10/dev/null
saslauthd 14512    root    4u      REG               0,23        6  522749136 /vz/root/10/var/run/saslauthd/saslauthd.pid
saslauthd 14512    root    6u      REG               0,23        0  522749135 /vz/root/10/var/run/saslauthd/mux.accept


You can kill the processes using the PID, i.e. kill -9 14512 (that's the PID of saslauthd in my example)

There are a lot of processes. Finally, you kill the init process.

3. Start writing:

vzctl set 10 --quotaugidlimit 10000 --save
vzquota off 10
vzquota on 10 -s 1
vzctl restart 10

Setting the "quotaugidlimit" parameter is a must for 2nd level quota activation.

4. Then enter container:

vzctl enter 10

And action

edquota -u cyro

The rules I have learned:

1. Don't try to add quota to the HW node, it is useless.
2. RTFM carefully, very carefully.
3. and, I think, that's all Smile

Have a nice day!!!

[Updated on: Wed, 21 September 2011 10:07]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: vzmemcheck seems to report incorrect values
Next Topic: No package ovzkernel.x86_64 available.
Goto Forum:
  


Current Time: Tue Aug 05 12:03:24 GMT 2025

Total time taken to generate the page: 1.26797 seconds