Directadmin not update Quota

ealireza

Verified User
Joined
Sep 19, 2012
Messages
10
after updating user from 200 mb to 2 gb
i tried to see what happened using
Code:
quota -v user -s
it show me
Code:
Disk quotas for user user(uid 1021):
     Filesystem   space   quota   limit   grace   files   quota   limit   grace
     /dev/xvda2  10222M      0K      0K            3794       0       0
what's wrong ?

why it cant update the old quota
how to fix ?
 

ealireza

Verified User
Joined
Sep 19, 2012
Messages
10
this is for another user


Code:
Disk quotas for user user2 (uid 1084):
     Filesystem   space   quota   limit   grace   files   quota   limit   grace
     /dev/xvda2    211M*   200M    220M   5days    5053       0       0
this is my mount point from fstab
Code:
UUID=6e4d7df6-452c-46e1-9246-6cea0619c99c			/			ext4	defaults,usrquota,grpquota	1 1
mount output

Code:
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=4004400k,nr_inodes=1001100,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/xvda2 on / type ext4 (rw,relatime,quota,usrquota,grpquota,data=ordered)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=32,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
sunrpc on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/xvda1 on /boot type ext3 (rw,relatime,data=ordered)
none on /proc/xen type xenfs (rw,relatime)
Code:
repquota `/usr/local/directadmin/directadmin c | grep quota_partition= | cut -d= -user2`


*** Report useror user quotas on device /dev/xvda2
Block grace time: 7days; Inode grace time: 7days
                        Block limits                userile limits
User            used    sousert    hard  grace    used  sousert  hard  grace
----------------------------------------------------------------------
root      -- 8533396       0       0          80838     0     0
daemon    --       8       0       0              3     0     0
mail      --  489508       0       0           2173     0     0
usertp       --    1716       0       0            104     0     0
nobody    --    4968       0       0           1015     0     0
rpc       --       4       0       0              2     0     0
abrt      --      24       0       0              4     0     0
rpcuser   --      12       0       0              4     0     0
nusersnobody --      12       0       0              3     0     0
postuserix   --      16       0       0             27     0     0
chrony    --      12       0       0              3     0     0
ntp       --       8       0       0              2     0     0
centos    --  151504       0       0          18238     0     0
named     --    1004       0       0             11     0     0
apache    --      64       0       0             16     0     0
diradmin  --  188944       0       0           7955     0     0
mysql     -- 6088404       0       0          15320     0     0
user  --     568       0       0             81     0     0
webapps   --  104864       0       0           7854     0     0
nginx     --   62684       0       0            923     0     0
admin     -- 2754796       0       0           3413     0     0
user  --    6788       0       0             97     0     0
user  --    4024       0       0             92     0     0
user  --  174732 1048576 1153433           6076     0     0
user  --  151584  512000  563200           6626     0     0
user  -- 10467236       0       0           3826     0     0
user  --     164 1024000 1126400             28     0     0
user  --      12       0       0              3     0     0
user  -- 2150668       0       0         511030     0     0
user  --     812  256000  281600             43     0     0
user  --  227200       0       0           2373     0     0
user  --   95592       0       0           2033     0     0
user  --   28792       0       0           2749     0     0
user  --  109012 104857600 115343360             58     0     0
user  --     808       0       0             44     0     0
user  --    3200       0       0             67     0     0
user  -- 3000024       0       0         254908     0     0
user  -- 24280540       0       0         438287     0     0
user  -- 11225508       0       0         129311     0     0
user  --  623548       0       0          22345     0     0
user  --    8048       0       0            458     0     0
user  -- 1639896       0       0          60751     0     0
user  -- 11143380       0       0           8115     0     0
user  --   18544       0       0            342     0     0
user  --  817948       0       0         107603     0     0
user  --    4668       0       0            210     0     0
user  -- 2353384       0       0          76873     0     0
user  -- 1570228       0       0          22206     0     0
user  --  653544 20480000 22528000            226     0     0
user  --  827516       0       0          43110     0     0
user  --  104032       0       0          12935     0     0
user  --  206316 1024000 1126400          22894     0     0
user  --  117360  512000  563200           3194     0     0
user  --  123644 1048576 1153433          14524     0     0
user  -- 2402940 3145728 3460300          29266     0     0
user  +-  215192  204800  225280   none    6841     0     0
user  -- 1914332 3145728 3460300          17124     0     0
user  --  686524 1048576 1153433           8323     0     0
user  +-  215288  204800  225280  5days    5053     0     0
user  --    1012  204800  225280             57     0     0
user  --    2064    5120    5632            141     0     0
user  --    9136  512000  563200            446     0     0
user  --  142940  204800  225280          11518     0     0
user  --   69612  204800  225280           8341     0     0
user  --   82484       0       0           5083     0     0
user  -- 3009552       0       0          59388     0     0
user  --  147632  204800  225280          11504     0     0
user  --  503112       0       0            289     0     0
user  --  171152  512000  563200           4878     0     0
user  --  520684 1048576 1153433           9721     0     0
user  --  155048  512000  563200           6002     0     0
user  -- 2936640 3072000 3379200           2435     0     0
user  --   10528       0       0            121     0     0
user  --     124       0       0             12     0     0
user  --    6584       0       0            726     0     0
user  --  295784       0       0          18863     0     0
user  --     788       0       0             42     0     0
user  --     856       0       0             57     0     0
user  --     788       0       0             42     0     0
user  --     788       0       0             42     0     0
user  --     788       0       0             42     0     0
user  --     788       0       0             42     0     0
user  --     788       0       0             42     0     0
user  --     788       0       0             42     0     0
user  --     788       0       0             42     0     0
user  --  138888       0       0           5070     0     0
#4113     --    9308       0       0            607     0     0
#501      --    3280       0       0            365     0     0
#502      --     144       0       0             34     0     0
#503      --     144       0       0             20     0     0
#505      --      44       0       0              3     0     0
#507      --   19592       0       0             26     0     0
#488      --       8       0       0              2     0     0
please let me know what to do :(
 
Last edited:

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,818
Location
GMT +7.00
Try this:

Code:
cd /usr/local/directadmin
echo "action=rewrite&value=quota" >> data/task.queue; ./dataskq d2000
And let us know whether or not it solved the issue. It might be a good idea to post here an output of the command (for the case if it requires further debugging).
 

ealireza

Verified User
Joined
Sep 19, 2012
Messages
10
Try this:

Code:
cd /usr/local/directadmin
echo "action=rewrite&value=quota" >> data/task.queue; ./dataskq d2000
And let us know whether or not it solved the issue. It might be a good idea to post here an output of the command (for the case if it requires further debugging).
Dear zEitEr ,
my problem is fixed .
after check many thing , i find out that server use ext4 file system instead xfs
direct admin use xfs by default on centos 7.x

i just set use_xfs_quota to 0 .
my problem is fixed
 

Cyberdevil

Verified User
Joined
Sep 16, 2007
Messages
40
Nice! I was struggling with the same issue for some weeks now on a testing platform.
Might be a good idea to have this added to the KB somewhere.

Your solution fixed my problem and I was finally able to see that setquota was triggered by DA. Next step is to reverse engineer Directadmin quota support for CEPH and GlusterFS.
 

Cyberdevil

Verified User
Joined
Sep 16, 2007
Messages
40
The KB that you are mentioning is for quotas on XFS. The problem that we are talking about is that this default configuration is changed and causes issues on servers with ext3/ext4 on CentOS7/Cloudlinux7/Redhat7 as this will not work by default. The fact that there is a KB on how to setup quotas on XFS does not help here :)
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,818
Location
GMT +7.00
OK, so the issue is that Directadmin on CentOS7/Cloudlinux7/Redhat7 server thinks you are running XFS when you really run ext3/ext4. Right?

If to believe this: https://www.directadmin.com/features.php?id=1619 the XFS quotas are disabled by default, you can check this with the following commands:

Code:
[root@server ~]# grep xfs /usr/local/directadmin/conf/directadmin.conf
[root@server ~]# 
[root@server ~]# /usr/local/directadmin/directadmin c | grep xfs
use_xfs_quota=0
xfs_on_domains=0
xfs_quota=/usr/sbin/xfs_quota
Thus if use_xfs_quota was set to 1, it would mean that it was probably Directadmin installer which enabled the XFS quotas without a proper checking FS. If this is the case, then you'd better report a bug via a ticket system: https://tickets.directadmin.com/
 

johannes

Verified User
Joined
Feb 18, 2007
Messages
223
When i try to update manually the "Total disk usage" in DA in /CMD_USER_STATS?domain=mydomain.xy several times, it seems there is a limit 10 minutes.
"Unable to update your Disk Usage. You must wait at least 10 minutes between updates. You have 9:09 left."
Please where can i lower this limit?
Thank you
 
Top