Proxmox 1.6 - Squeeze - Quota

itanium

New Member
Aug 19, 2009
8
0
1
www.next-network.com
Hi,

I have a problem wtih 2 templates in proxmox:

debian-6.0-standard_6.0-2_amd64.tar.gz
debian-6.0-standard_6.0-2_i386.tar.gz

I create one vm -> enable quota in option -> start vm

In this vm i install quota:
apt-get update && apt-get install quota quotatool

check quota:
repquota -a = nothing

so i check with:
quotacheck -avugm
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.


ok so no why?

cat /etc/mtab
/dev/simfs / simfs rw,relatime 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0

ok i see no usrquota because i dont have a line like that:

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

so i tried:
/etc/init.d/vzquota start

error because of #bin/sh and not #bin/bash so i create a symlink:
ln -sf /bin/bash /bin/sh

restart the vm and no quota at all :(

Can you help me?
 
reiserfs is not supported, use ext3.
 
Hi,

I can not choose the partition type in a openvz container. When i setup a ubuntu 10.04 (openvz) vm, quota work well.

When i put (ubuntu vz):
cat /etc/mtab:
/dev/simfs / reiserfs rw,usrquota,grpquota 0 0

fstab is empty in debian squeeze vm.

My partition is like that (physical server):

/dev/md1 / ext3 errors=remount-ro 0 1
/dev/pve/lv1 /var/lib/vz ext3 defaults 1 2
/dev/pve/lv2 /var/lib/vz/dump ext3 defaults 1 2
/dev/pve/lv3 /var/freespace ext3 defaults 1 2
/dev/sda2 swap swap defaults 0 0
/dev/sdb2 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0

I can't understand why in ubuntu quota work but not in debian squeeze vm?
 
provide a link for downloading your Ubuntu lucid template
 
I was able to reproduce the bug. Seems that the quota package from 'squeeze' is somehow incompatible with OpenVZ

squeeze: quota 4.00~pre1-4
lenny: quota 3.16-7

Maybe you can report a bug to the debian bug tracking system?
 
I too seem to be having problems getting quotas working under squeeze. I tried downgrading to the quotas package in lenny but it didn't help. Not sure if I am doing something wrong or not, I haven't been able to find much in the way of instructions :-(.
 
Hi @ll,

since the new quota tools checks per default the /proc/mounts path insteed of /etc/mtab
so the vzquota scripts apply the quota settings to /etc/mtab but the scan of quota check goes to /proc/mounts

see http://bugzilla.openvz.org/1721

Bye,
Thorsten
--
Thorsten Schifferdecker
OpenVZ Power User
 
since the new quota tools checks per default the /proc/mounts path insteed of /etc/mtab
so the vzquota scripts apply the quota settings to /etc/mtab but the scan of quota check goes to /proc/mounts

see http://bugzilla.openvz.org/1721

Thank you for the reference to the bug report.

However that was not my problem.

/etc/init.d/vzquota is broken - it has bashisms but the first line uses /bin/sh not /usr/bin/bash.

Fixing this bashism is easy, just replace the line:

if [ $? == 0 ]; then

with

if [ $? = 0 ]; then

I think this deserves another bug report. Where should I file this bug report?

Another bug(?) in the same script is that it has reiserfs hard coded which is kind of odd in a system that only supports ext3.
 
I was able to reproduce the bug. Seems that the quota package from 'squeeze' is somehow incompatible with OpenVZ

After 1 year, i have always exactly the same problem. What is the solution now please ?

Why "reiserfs" is added into the /etc/mtab but my filesystem is ext3 ?

What can i do to have quota with Debian Squeeze please ?