OpenVZ Forum


Home » General » Support » About quotas
About quotas [message #43318] Tue, 23 August 2011 19:40 Go to previous message
cyrolancer is currently offline  cyrolancer
Messages: 15
Registered: July 2011
Junior Member
Hi,

I am having problems with the quotas.

According to some research, I think, I have to enable the quotas in the HW node first. Anyway, I have managed to edit /etc/fstab like this


[root@xxx ~]# cat /etc/fstab
/dev/md2                /                       ext3    defaults,usrquota,grpquota      1 1
/dev/md1                /tmp                    ext3    noexec,nosuid           1 2
/dev/md0                /boot                   ext3    defaults                1 2
tmpfs                   /dev/shm                tmpfs   defaults                0 0
devpts                  /dev/pts                devpts  gid=5,mode=620          0 0
sysfs                   /sys                    sysfs   defaults                0 0
proc                    /proc                   proc    defaults                0 0
/dev/md3                swap                    swap    defaults                0 0


As you see, I have no other partitions except "/".

Later on, I have tried the approach I have found on the internet:

touch /aquota.user
touch /aquota.group
chmod 600 /quota.*


And accordingly, I have used the "quotacheck" to build up the database. Somehow, by using -f switch, I have managed to get aquota.user.new and aquota.group.new files. I have renamed them to aquota.user and aquota.group, respectively.

At least, after waiting 2 hours, I got the files but when I use the command "quotaon -a" I am getting:


[root@xxx ~]# quotaon -a
quotaon: using //aquota.group on /dev/md2 [/]: No such process
quotaon: Quota format not supported in kernel.
quotaon: using //aquota.user on /dev/md2 [/]: No such process
quotaon: Quota format not supported in kernel.


Well Smile after doing some additional research, I have found that I need the kernel modules. So,

[root@xxx ~]# modprobe quota_v1
FATAL: Module quota_v1 not found.
[root@xxx ~]# modprobe quota_v2
FATAL: Module quota_v2 not found.


Wow! Anyway,


[root@xxx ~]# insmod quota_v1
insmod: can't read 'quota_v1': No such file or directory
[root@xxx ~]# insmod quota_v2
insmod: can't read 'quota_v2': No such file or directory


and

[root@xxx ~]# uname -a
Linux xxx.localhost 2.6.18-238.19.1.el5.028stab092.2 #1 SMP Thu Jul 21 19:23:22 MSD 2011 x86_64 x86_64 x86_64 GNU/Linux


After all, I couldn't enable the quotas in HW node. Do I need to enable it in HW node? Because, in the VE /dev/simfs was not mounted as usrquotas, grpquotas option. fstab file in the VE is empty, so I cannot edit the mountpoint.

Therefore, I have stuck at this point. Could anybody please kindly explain how to enable per-user quotas in an OpenVZ container?

[Updated on: Tue, 23 August 2011 19:41]

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: Mon Sep 16 11:13:18 GMT 2024

Total time taken to generate the page: 0.04340 seconds