root@svr1:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=a201a389-9b4d-4660-8194-3492c67d7a1f / ext4 errors=remount-ro,usrquota,grpquota 0 1
# /boot was on /dev/sda1 during installation
UUID=8c24bc91-7e9f-4174-a20d-7f380b81cb56 /boot ext2 defaults 0 2
# /home was on /dev/sdb1 during installation
UUID=81104946-b0b6-44a1-907c-dfd6bf4deca2 /home ext4 defaults,nosuid,noatime,usrquota,grpquota 0 2
# /home/mysql was on /dev/sdc1 during installation
UUID=8fc17d81-dc38-4a4e-b61a-74f0afcc2537 /home/mysql ext4 defaults,noatime 0 2
# /tmp was on /dev/sda3 during installation
UUID=8b48272f-4052-4de4-82b3-228b8c3d6993 /tmp ext4 defaults,noexec,nosuid,relatime 0 2
# swap was on /dev/sda4 during installation
UUID=580b1ac8-be0e-4e84-a61b-100b7072b93f none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
root@svr1:~# /usr/sbin/repquota /home
*** Report for user quotas on device /dev/sdb1
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 24 0 0 3 0 0
andy -- 16 0 0 4 0 0
admin -- 184 0 0 48 0 0
root@svr1:~# /usr/local/directadmin/directadmin c | grep quota_partition quota_partition=/home
ext_quota_partitions=
root@svr1:~#
repquota /home
Hi John,The error mentions that the quotacheck shouldn't be run at boot time because it might risk damaging the user.aquota file, which is possible/accurate.
The main questions would be:
1) Are the quotas working?
2) Are the quota accurate?
Type:Code:repquota /home
to see if you get a correct listing of quotas for the /home partition.
We're not really conncerned with quotas on the / partition, as you appear to have a /home partition, which is where all quota-related User data is stored anyway.
----
If the quotas are out of sync, or you just want to force a re-computation, you can use quotacheck.
See this guide for more info:
http://help.directadmin.com/item.php?id=39
John
root@svr1:~# repquota /home
*** Report for user quotas on device /dev/sdb1
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 76939400 0 0 3257 0 0
u1 -- 15180 0 0 3553 0 0
ad -- 136 0 0 37 0 0
fo -- 4288 0 0 431 0 0
ay -- 8132256 0 0 151846 0 0
id -- 9154332 0 0 125645 0 0
gb -- 49880548 0 0 814840 0 0
gf -- 31972 1024000 1126400 2557 0 0
al -- 16051136 0 0 125127 0 0
fp -- 2275416 61440000 67584000 133930 0 0
fw -- 22420 1024000 1126400 2479 0 0
td -- 1116 1024000 1126400 103 0 0
ae -- 144904 1024000 1126400 5602 0 0
fr -- 16432 102400 112640 108 0 0
ay -- 1563264 10240000 11264000 46599 0 0
is -- 499144 0 0 22249 0 0
ff -- 760 102400 112640 66 0 0
cu -- 716 20480 22528 85 0 0
ie -- 151452 1024000 1126400 6454 0 0
im -- 1119632 0 0 239 0 0
ii -- 102772 1024000 1126400 7499 0 0
ib -- 13936 0 0 792 0 0
bd -- 368104 512000 563200 11778 0 0
dg -- 138260 512000 563200 9611 0 0
ko -- 88 20480 22528 31 0 0
nw -- 57644 102400 112640 1607 0 0
ud -- 124 20480 22528 36 0 0
nz -- 68188 204800 225280 2375 0 0
bm -- 25796 102400 112640 1251 0 0
dy -- 21972 51200 56320 1556 0 0
kc -- 289092 512000 563200 606 0 0
st -- 16636 102400 112640 942 0 0
bx -- 2020 51200 56320 205 0 0
pg -- 65792 102400 112640 5276 0 0
in -- 135412 1024000 1126400 1691 0 0
gd +- 1082168 1024000 1126400 none 4956 0 0
pa -- 493488 1024000 1126400 6183 0 0
pp -- 1345980 2048000 2252800 13871 0 0
ic -- 236888 0 0 5138 0 0
st -- 19788828 0 0 480823 0 0
sg -- 16280 0 0 30 0 0
ac -- 260 102400 112640 40 0 0
se -- 48944 102400 112640 772 0 0
cy -- 28508 51200 56320 1617 0 0
st -- 153436 0 0 8130 0 0
#711 -- 4 0 0 1 0 0
root@svr1:~#
repquota /
root@svr1:/var/www/html# repquota /
*** Report for user quotas on device /dev/sda2
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
rt -- 3096536 0 0 59224 0 0
dm -- 68 0 0 4 0 0
mn -- 2068 0 0 150 0 0
ml -- 175968 0 0 2017 0 0
st -- 16 0 0 4 0 0
yp -- 4 0 0 1 0 0
bd -- 12 0 0 3 0 0
ac -- 4 0 0 1 0 0
da -- 617752 0 0 5545 0 0
ml -- 1065160 0 0 12033 0 0
md -- 19500 0 0 649 0 0
ws -- 90252 0 0 7371 0 0
np -- 12 0 0 3 0 0
gb -- 4 0 0 1 0 0
gf -- 4 0 0 1 0 0
al -- 4 0 0 1 0 0
fp -- 4 0 0 1 0 0
fd -- 4 0 0 1 0 0
td -- 4 0 0 1 0 0
ae -- 4 0 0 1 0 0
fd -- 4 0 0 1 0 0
if -- 4 0 0 1 0 0
ff -- 4 0 0 1 0 0
cu -- 4 0 0 1 0 0
id -- 4 0 0 1 0 0
im -- 4 0 0 1 0 0
ir -- 4 0 0 1 0 0
iw -- 4 0 0 1 0 0
bp -- 4 0 0 1 0 0
db -- 4 0 0 1 0 0
kb -- 4 0 0 1 0 0
nw -- 4 0 0 1 0 0
ul -- 4 0 0 1 0 0
nz -- 4 0 0 1 0 0
dg -- 4 0 0 1 0 0
kc -- 4 0 0 1 0 0
st -- 4 0 0 1 0 0
bx -- 4 0 0 1 0 0
pg -- 4 0 0 1 0 0
it -- 4 0 0 1 0 0
gd -- 4 0 0 1 0 0
pp -- 4 0 0 1 0 0
ic -- 4 0 0 1 0 0
root@svr1:/var/www/html#
cd /usr/local/directadmin
./directadmin c | grep xfs
root@svr1:/usr/local/directadmin# ./directadmin c | grep xfs
use_xfs_quota=0
xfs_on_domains=0
xfs_quota=/usr/sbin/xfs_quota
root@svr1:/usr/local/directadmin#
root@svr1:/usr/local/directadmin# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=d2716102-b495-4f0e-ba9b-c826880bd2c1 / ext4 errors=remount-ro,usrquota,grpquota 0 1
# /boot was on /dev/sda1 during installation
UUID=4cae0914-936d-42d3-813a-3006ca20b074 /boot ext2 defaults 0 2
# /home was on /dev/sdb1 during installation
UUID=930db920-cf2f-4144-9082-01c111b11120 /home ext4 defaults,nosuid,noatime,usrquota,grpquota 0 2
# /home/mysql was on /dev/sdc1 during installation
UUID=f5403734-ca86-4112-8535-b77042165824 /home/mysql ext4 defaults,noatime 0 2
# /tmp was on /dev/sda3 during installation
UUID=ff0572fa-360d-42ad-8509-61c701c05f9e /tmp ext4 defaults,noexec,nosuid,relatime 0 2
# swap was on /dev/sda4 during installation
UUID=51a12bb6-32b2-4aa4-b494-061c4cdccda5 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
root@svr1:/usr/local/directadmin# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 47G 4.9G 40G 12% /
udev 10M 0 10M 0% /dev
tmpfs 2.0G 209M 1.8G 11% /run
tmpfs 4.9G 24K 4.9G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 4.9G 0 4.9G 0% /sys/fs/cgroup
/dev/sda1 35M 30M 3.2M 91% /boot
/dev/sdb1 493G 183G 285G 40% /home
/dev/sda3 923M 8.4M 851M 1% /tmp
/dev/sdc1 79G 8.4G 67G 12% /home/mysql
tmpfs 1003M 0 1003M 0% /run/user/1005
tmpfs 1003M 0 1003M 0% /run/user/0
tmpfs 1003M 0 1003M 0% /run/user/1056
root@svr1:/usr/local/directadmin# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=1281139,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,relatime,size=2053156k,mode=755)
/dev/sda2 on / type ext4 (rw,relatime,quota,usrquota,grpquota,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/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,cpu,cpuacct)
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,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
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)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
/dev/sda1 on /boot type ext2 (rw,relatime)
/dev/sdb1 on /home type ext4 (rw,nosuid,noatime,quota,usrquota,grpquota,data=ordered)
/dev/sda3 on /tmp type ext4 (rw,nosuid,noexec,relatime,data=ordered)
/dev/sdc1 on /home/mysql type ext4 (rw,noatime,data=ordered)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
tmpfs on /run/user/1005 type tmpfs (rw,nosuid,nodev,relatime,size=1026580k,mode=700,uid=1005,gid=1007)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=1026580k,mode=700)
tmpfs on /run/user/1056 type tmpfs (rw,nosuid,nodev,relatime,size=1026580k,mode=700,uid=1056,gid=1058)
root@svr1:/usr/local/directadmin# /usr/local/directadmin/directadmin c | grep quota_partition
quota_partition=/home
ext_quota_partitions=
root@svr1:/usr/local/directadmin# repquota `/usr/local/directadmin/directadmin c | grep quota_partition= | cut -d= -f2`
*** Report for user quotas on device /dev/sdb1
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 76923484 0 0 3500 0 0
ya -- 15900 0 0 3732 0 0
an -- 136 0 0 37 0 0
fu -- 4288 0 0 431 0 0
ay -- 8144696 0 0 150599 0 0
io -- 2869100 0 0 1445 0 0
ga -- 50733044 0 0 822426 0 0
gm -- 31972 10240000 11264000 2559 0 0
al -- 16051136 0 0 125127 0 0
fp -- 2286284 61440000 67584000 134085 0 0
fw -- 34168 10240000 11264000 2526 0 0
th -- 1116 10240000 11264000 103 0 0
ae -- 145776 10240000 11264000 5641 0 0
fd -- 16432 1024000 1126400 108 0 0
at -- 1571848 10240000 11264000 46905 0 0
is -- 502496 0 0 22260 0 0
ff -- 760 1024000 1126400 66 0 0
cu -- 716 204800 225280 85 0 0
id -- 151448 10240000 11264000 6452 0 0
il -- 1119864 0 0 246 0 0
id -- 102772 10240000 11264000 7499 0 0
ib -- 14000 0 0 794 0 0
bo -- 368584 5120000 5632000 11779 0 0
dg -- 138340 5120000 5632000 9611 0 0
ko -- 88 204800 225280 31 0 0
na -- 59976 1024000 1126400 1627 0 0
ud -- 128 204800 225280 37 0 0
ng -- 68188 2048000 2252800 2375 0 0
bo -- 25796 1024000 1126400 1251 0 0
dg -- 22008 512000 563200 1563 0 0
kc -- 289092 5120000 5632000 606 0 0
st -- 16636 1024000 1126400 942 0 0
bx -- 2020 512000 563200 205 0 0
pa -- 66332 1024000 1126400 5281 0 0
it -- 137064 10240000 11264000 1740 0 0
gn -- 1082168 10240000 11264000 4956 0 0
pp -- 1406228 2048000 2252800 14074 0 0
id -- 236896 0 0 5138 0 0
ss -- 19788828 0 0 480823 0 0
st -- 16280 0 0 30 0 0
ar -- 260 1024000 1126400 40 0 0
sy -- 49132 1024000 1126400 800 0 0
co -- 28516 512000 563200 1618 0 0
st -- 6731704 0 0 133306 0 0
lp -- 2680 0 0 228 0 0
ca -- 27320 0 0 2446 0 0
#711 -- 4 0 0 1 0 0
root@svr1:/usr/local/directadmin# ls -lad /home/tmp
drwxrwxrwt 2 root root 4096 Oct 3 00:10 /home/tmp
root@svr1:/usr/local/directadmin# ls -la /home/tmp
total 8
drwxrwxrwt 2 root root 4096 Oct 3 00:10 .
drwx--x--x 50 711 root 4096 Oct 1 11:04 ..
root@svr1:/usr/local/directadmin#
ls -la /home/*.user /home/*.group
cd /home
quotaoff -a
mkdir oldquota
mv *quota.user oldquota
mv *quota.group oldquota
/sbin/quotacheck -cavugmf
quotaon -a