Disk quota error

alexelixir

Verified User
Joined
Jun 9, 2011
Messages
38
Location
Russia
Error with system Quotas
setquota: Mountpoint (or device) / not found or has no quota enabled. setquota: Not all specified mountpoints are using quota.

i try with this

http://help.directadmin.com/item.php?id=42

my fstab ia having
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0

any help what i need to do
my server is centos 6 32 bit
 
Your fstab is only having those 2 lines? That's not much.
And what does your /etc/mtab have?

You can also put the output of df -h here.
 
Your fstab is only having those 2 lines? That's not much.
And what does your /etc/mtab have?

You can also put the output of df -h here.
/etc/mtab

/dev/simfs / simfs rw,relatime 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /dev devtmpfs rw,relatime,mode=755,gid=500 0 0
none /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
none /dev/shm tmpfs rw,relatime 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0

df -h
/dev/simfs 120G 1.8G 119G 2% /
none 512M 4.0K 512M 1% /dev
none 512M 0 512M 0% /dev/shm
 
You have to ask your hosting provider to enable quotas on your file system.
 
/dev/simfs 120G 1.8G 119G 2% /

From the DA help section you pointed to:
*** Note: If you're running a VPS with a "simfs" file system, quotas usually cannot be enabled with normal means. Contact your VPS provider to enable quotas for you.
So Chatwizrd is correct, you have to ask your vps provider.
 
rm -rf /usr/sbin/setquota
ln -s /usr/local/sbin/setquota /usr/sbin/setquota
wget http://sourceforge.net/projects/linuxquota/files/quota-tools/3.13/quota-3.13.tar.gz/download
tar -xzvf quota-3.13.tar.gz
cd quota-tools/
./configure --enable-proc-mounts=/etc/mtab
make
make install
quotacheck -acugv

[reboot VPS/SERVER]
touch /home/quota.user
touch /home/quota.group
chmod 600 /home/quota.user
chmod 600 /home/quota.group
quotacheck -acugv

Do not follow this guide this is all wrong.
 
This HOWTO fixed the same problem.
I dont post a fix wat not work

That won't help to enable quotas in OpenVZ container, if the second level quotas are disabled. Only a hosting provider, or a person who manages the master node is able to switch on the second level quotas for a VPS.
 
edit: The users were originally added by means of Admin transfer/backup and then restoring them to the new server.

edit2: I cannot believe this! After I had my lunch and logged in the numbers were correct everywhere and I am not getting any error messages. Sigh!!

I leave the message below, however, for others to scratch their heads....

I am experiencing the same problem here, running a Centos 6.2 KVM box with kernel 2.6.32. My fstab has a line like this:

Code:
UUID=530bfd19-d266-4e6b-a0cb-469a3b049f6d   /  ext4    defaults,usrquota,grpquota      1 1

I can change quotas manually (edquota <user>) and repquota works just fine but from DA I keep getting this message:

"setquota: Quota file not found or has wrong format. setquota: Not all specified mountpoints are using quota."

The quota directory in directadmin.conf is correctly set to "/"

Also, when checking the details I get the message "Systems Quotas are size 0"

The funny thing is that when creating a user the quota is set correctly but it cannot be changed from DA later. So what on earth is going on? The only difference I with my backup server (where the quota stuff works) is the ext4 file system.

Also, when running a quotacheck and the "tally" stuff after that I got a message from diradmin telling me that my test site user had used 98.8% of the disk space available. The numbers are, however, completely different:

- Quota: 1000 MB in DA, repquota telling me the same (1024000)
- DA control panel showing usage as 157 MB
- The real usage, however in /home/mystestsite is 878 MB and it cannot be seen anywhere
- 878 + databases+apache owned stuff results in the correct number (~99.8%)
- emails are not counted

This is a bit annoying: I cannot see the status from the users list. the only way to get reliable results from the home directory disk usage is run a
Code:
du --max-depth=1 /home
 
Last edited:
Hello,

To clarify, DA is running the following to set the quotas on an account:
Code:
/usr/sbin/setquota [B]username[/B] 1024 1024 0 0 /
so.. if you've edited the /usr/sbin/setquota binary, and made a wrapper, that could "hide" the error (if it exit's with 0), but does not necessarily mean the quotas are working.

If you've only got a / partition, use this to see if it's working.. which is what DA calls:
Code:
/usr/sbin/repquota /
which must display the standard quota output, for all Users.

John
 
Back
Top