Incorrect reading of the space occupancy status

hockolicious

Verified User
Joined
Jun 20, 2019
Messages
40
Location
Poland
Hello,

Does the issue persist in Enhanced skin? If so then you might have an issue with disk quotas. Check https://help.directadmin.com/item.php?id=42
No, on all skins usage is same.

/usr/sbin/repquota /
Shows I think correct usage

*** Report for user quotas on device /dev/vda2
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 10195888 0 0 186152 0 0
mail -- 13360 0 0 246 0 0
nobody -- 0 0 0 1 0 0
polkitd -- 0 0 0 2 0 0
ntp -- 0 0 0 2 0 0
postfix -- 4 0 0 27 0 0
chrony -- 4 0 0 3 0 0
rpc -- 0 0 0 2 0 0
named -- 252 0 0 9 0 0
webapps -- 118524 0 0 10535 0 0
apache -- 17564 0 0 3724 0 0
diradmin -- 2495020 0 0 3240 0 0
mysql -- 320788 0 0 738 0 0
majordomo -- 356 0 0 35 0 0
lsadm -- 416 0 0 100 0 0
admin -- 384 0 0 168 0 0
cb_plugin -- 36 0 0 9 0 0
tss -- 8 0 0 2 0 0
firebird -- 2004 0 0 9 0 0
jestnaturalnie -- 1805280 52428800 57671680 61588 0 0
test123 -- 92 52428800 57671680 86 0 0
#48 -- 0 0 0 2 0 0
#60001 -- 16 0 0 5 0 0
I do 2nd step of this tutorial, but with no effect :confused:
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,853
Location
GMT +7.00
OK, kindly provide information from the block "Information for a Support Request" here
 

hockolicious

Verified User
Joined
Jun 20, 2019
Messages
40
Location
Poland
OK, kindly provide information from the block "Information for a Support Request" here
Okay, here is output.

[root@s1 ~]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Sat Jun 22 15:23:38 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=e0947d76-60e5-4f81-8468-de965e4be22c / xfs defaults,uquota,gquota 0 0
UUID=9224aa26-0a5e-4f0b-b4d6-feec987bfb6c /boot ext4 defaults 1 2

[root@s1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda2 160G 17G 144G 11% /
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 128K 3.9G 1% /dev/shm
tmpfs 3.9G 139M 3.7G 4% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/vda1 240M 148M 76M 66% /boot
tmpfs 783M 0 783M 0% /run/user/0
[root@s1 ~]# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime,hidepid=2)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=3993104k,nr_inodes=998276,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)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/vda2 on / type xfs (rw,relatime,attr2,inode64,usrquota,prjquota)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=31,pipe_ino=9809,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=9809)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
/dev/vda1 on /boot type ext4 (rw,relatime,data=ordered)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,relatime,freezer)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,relatime,devices)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,relatime,cpuset)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)
/dev/vda2 on /usr/share/cagefs-skeleton type xfs (rw,nosuid,relatime,attr2,inode64,usrquota,prjquota)
devpts on /usr/share/cagefs-skeleton/dev/pts type devpts (rw,nosuid,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /usr/share/cagefs-skeleton/dev/shm type tmpfs (rw,nosuid)
/dev/vda2 on /usr/share/cagefs-skeleton/lib type xfs (ro,nosuid,relatime,attr2,inode64,usrquota,prjquota)
/dev/vda2 on /usr/share/cagefs-skeleton/lib64 type xfs (ro,nosuid,relatime,attr2,inode64,usrquota,prjquota)
/dev/vda2 on /usr/share/cagefs-skeleton/opt type xfs (rw,nosuid,relatime,attr2,inode64,usrquota,prjquota)
/dev/vda2 on /usr/share/cagefs-skeleton/usr/include type xfs (ro,nosuid,relatime,attr2,inode64,usrquota,prjquota)
/dev/vda2 on /usr/share/cagefs-skeleton/usr/lib type xfs (ro,nosuid,relatime,attr2,inode64,usrquota,prjquota)
/dev/vda2 on /usr/share/cagefs-skeleton/usr/lib64 type xfs (ro,nosuid,relatime,attr2,inode64,usrquota,prjquota)
/dev/vda2 on /usr/share/cagefs-skeleton/usr/local/lsws type xfs (rw,nosuid,relatime,attr2,inode64,usrquota,prjquota)
/dev/vda2 on /usr/share/cagefs-skeleton/usr/share/l.v.e-manager/cl.nodejs type xfs (rw,nosuid,relatime,attr2,inode64,usrquota,prjquota)
/dev/vda2 on /usr/share/cagefs-skeleton/usr/share/l.v.e-manager/cl.python type xfs (rw,nosuid,relatime,attr2,inode64,usrquota,prjquota)
/dev/vda2 on /usr/share/cagefs-skeleton/usr/share/locale type xfs (ro,nosuid,relatime,attr2,inode64,usrquota,prjquota)
/dev/vda2 on /usr/share/cagefs-skeleton/usr/share/man type xfs (ro,nosuid,relatime,attr2,inode64,usrquota,prjquota)
/dev/vda2 on /usr/share/cagefs-skeleton/usr/share/terminfo type xfs (ro,nosuid,relatime,attr2,inode64,usrquota,prjquota)
/dev/vda2 on /usr/share/cagefs-skeleton/usr/share/vim type xfs (ro,nosuid,relatime,attr2,inode64,usrquota,prjquota)
/dev/vda2 on /usr/share/cagefs-skeleton/usr/share/zoneinfo type xfs (ro,nosuid,relatime,attr2,inode64,usrquota,prjquota)
/dev/vda2 on /usr/share/cagefs-skeleton/var/lib/mysql type xfs (rw,nosuid,relatime,attr2,inode64,usrquota,prjquota)
/dev/vda2 on /usr/share/cagefs-skeleton/var/lib/proxyexec/cagefs.sock type xfs (rw,nosuid,relatime,attr2,inode64,usrquota,prjquota)
/dev/vda2 on /usr/share/cagefs-skeleton/var/passenger type xfs (rw,nosuid,relatime,attr2,inode64,usrquota,prjquota)
tmpfs on /usr/share/cagefs-skeleton/var/run/dbus type tmpfs (rw,nosuid,mode=755)
/dev/vda2 on /usr/share/cagefs-skeleton/var/www/html type xfs (rw,nosuid,relatime,attr2,inode64,usrquota,prjquota)
/dev/vda2 on /usr/share/cagefs-skeleton/var/lve/lveinfo.ver.cagefs type xfs (ro,nosuid,relatime,attr2,inode64,usrquota,prjquota)
proc on /usr/share/cagefs-skeleton/proc type proc (rw,nosuid,relatime,hidepid=2)
systemd-1 on /usr/share/cagefs-skeleton/proc/sys/fs/binfmt_misc type autofs (rw,nosuid,relatime,fd=31,pipe_ino=9809,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=9809)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=800896k,mode=700)
[root@s1 ~]# /usr/local/directadmin/directadmin c | grep quota_partition
quota_partition=/
ext_quota_partitions=
[root@s1 ~]# /usr/local/directadmin/directadmin c | grep use_xfs_quota
use_xfs_quota=1
[root@s1 ~]# repquota `/usr/local/directadmin/directadmin c | grep quota_partition= | cut -d= -f2`
*** Report for user quotas on device /dev/vda2
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 10229588 0 0 186153 0 0
mail -- 11552 0 0 246 0 0
nobody -- 0 0 0 1 0 0
polkitd -- 0 0 0 2 0 0
ntp -- 0 0 0 2 0 0
postfix -- 4 0 0 27 0 0
chrony -- 4 0 0 3 0 0
rpc -- 0 0 0 2 0 0
named -- 252 0 0 9 0 0
webapps -- 118524 0 0 10535 0 0
apache -- 17672 0 0 3724 0 0
diradmin -- 4592820 0 0 3242 0 0
mysql -- 320788 0 0 738 0 0
majordomo -- 356 0 0 35 0 0
lsadm -- 416 0 0 100 0 0
admin -- 384 0 0 168 0 0
cb_plugin -- 36 0 0 9 0 0
tss -- 8 0 0 2 0 0
firebird -- 2004 0 0 9 0 0
jestnaturalnie -- 1805280 52428800 57671680 61588 0 0
test123 -- 92 52428800 57671680 86 0 0
#48 -- 0 0 0 2 0 0
#60001 -- 16 0 0 5 0 0
[root@s1 ~]# ls -lad /home/tmp
drwxrwxrwt 2 root root 6 Jul 3 01:51 /home/tmp
[root@s1 ~]# ls -la /home/tmp
total 0
drwxrwxrwt 2 root root 6 Jul 3 01:51 .
drwx--x--x 6 root root 67 Jul 3 01:47 ..
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,853
Location
GMT +7.00
It's probably related to cagefs, not too sure what might be wrong, I believe it should be checked in a root console. Try and open a ticket with DirectAdmin support so that they connect to your server and check it, or consider hiring somebody for this.

Or probably somebody else have ideas on the matter.
 

hockolicious

Verified User
Joined
Jun 20, 2019
Messages
40
Location
Poland
From support ticket for the people:

The disk space is counted based on system quotas while they count not a space occupied by home directory, but by owners of the files, no matter where they are... The /home/test123/domains/test.pl/public_html/1GB.bin file is owned by root, so 'officially' it does not belongs to test123 user :) and as a result quota is almost zero for test123:

[root@s1 ~]# repquota -a | grep test123
test123 -- 92 52428800 57671680 87 0 0
To 'fix' the issue please do chown test123:test123 /home/test123/domains/test.pl/public_html/1GB.bin .

After you 'chown' it to user and after repquota start showing right values you can force running tally to update the data:

echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d200

Same can bee taken from https://help.directadmin.com/item.php?id=39 .

Overall all files uploaded by a users will have user ownership, so no actions should be done by you as an admin :)
By default the quota displaying are updated every night. However, you may do another trick per https://www.directadmin.com/features.php?id=2310 . Please set "realtime_quota=2" in /usr/local/directadmin/conf/directadmin.conf file and restart directadmin. When done the stats should be updated immediately on new uploads.
 
Top