OpenVZ Forum


Home » General » Support » Second level quotas mystery (User/group quota inside container weird problem)
Second level quotas mystery [message #41448] Sat, 22 January 2011 18:48 Go to next message
plast is currently offline  plast
Messages: 1
Registered: January 2011
Junior Member
Hello,

I've got some mystery to solve regarding my VPS using OpenVZ at Debian 6.0 (Squeeze) dedicated server. I've tried to solve it myself with help of google/forums but after 2-3 days I've come to the point where I can't think of anything new.

Like I said my dedicated server is Debian Squeeze (6.0) and so is system on my VPS:

# uname -a
Linux hostname 2.6.32-5-openvz-amd64 #1 SMP Wed Jan 12 04:22:50 UTC 2011 x86_64 GNU/Linux

# vzctl --version
vzctl version 3.0.24

I've turned on first and second level quotas for my VPS, it's activate properly according to this:

# vzquota stat 101 -t | head -n 6
resource usage softlimit hardlimit grace
1k-blocks 11546956 256000000 512000000
inodes 56342 4000000 5000000
User/group quota: on,active
Ugids: loaded 50, total 50, limit 1000
Ugid limit was exceeded: no

Also during start of VPS 101 there is information about 2nd level quota start:

# vzctl start 101
Starting container ...
Container is mounted
Adding IP address(es): IP
Setting CPU units: 1000
Setting CPUs: 1
Set hostname: hostname
Setting quota ugidlimit: 1000
Container start in progress...

Everything looks nice so far. Let's get inside the container then.

# vzctl enter 101
entered into CT 101

# repquota /
repquota: Mountpoint (or device) / not found or has no quota enabled.
repquota: Not all specified mountpoints are using quota.

Not good.

Let's check mounts.

# mount | grep simfs
/dev/simfs on / type simfs (rw,noatime)
# cat /etc/mtab | grep simfs
/dev/simfs / simfs rw,noatime 0 0
# cat /proc/mounts | grep simfs
/dev/simfs / simfs rw,noatime 0 0

This seems to be the problem. In every solution I find using google/forums there is

/dev/simfs / simfs rw,noatime,usrquota,grpquota 0 0

but for some reason my filesystem isn't mounted with these two additional options. I'm not sure what can I do about it, for all my knowledge it should be done automatically during VPS startup when I enable 2nd level quotas... am I wrong?

I've tried some 'hacking', for example manually adding these two options to /etc/mtab, but no change.

I've also looked at /etc/init.d/vzquota script, but this script is weird and is hardly doing anything more what I've been doing, let's see:

rm -f /etc/mtab >/dev/null 2>&1
echo "/dev/simfs / reiserfs rw,usrquota,grpquota 0 0" > /etc/mtab
mnt=`grep -v " / " /proc/mounts`
if [ $? == 0 ]; then
echo "$mnt" >> /etc/mtab
fi
quotaon -aug

Well, that is what I manually did before, only here is reiserfs used instead of simfs, but it's giving no results either. Still no quota tool can't properly identify filesystem with quotas turned on.

I can't see anything I'm doing wrong and what to do next so I would really appreciate any help/hint.
Re: Second level quotas mystery [message #42127 is a reply to message #41448] Wed, 02 March 2011 19:10 Go to previous message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

http://bugzilla.openvz.org/show_bug.cgi?id=1721

Bye,
Thorsten
Previous Topic: Bug or Coincidence?
Next Topic: Change time in VPS
Goto Forum:
  


Current Time: Thu Apr 18 08:36:37 GMT 2024

Total time taken to generate the page: 0.01601 seconds