DA does not count the correct account place. Urgent.

stooper

Verified User
Joined
Mar 8, 2011
Messages
11
Hi everyone! I really need your help. Not strong enough to solve the problem yourself. I have a problem with quotas on FreeBSD 7.2, - namely, DA did not properly calculated account's space.
The system of quotas is working well, but the panel - no. I'll try to describe the situation. I'm downloading via ftp to the testda user a few large files, and look forward to recount the place, but nothing happens.
In this case, disk space does not appear as busy! I beg your help to those who have faced similar problems.

# mount
/dev/mfid0s1a on / (ufs, local, with quotas)
devfs on /dev (devfs, local)
/dev/mfid0s1g on /backup (ufs, local, soft-updates)
/dev/mfid0s1h on /home (ufs, local, with quotas, soft-updates)
/dev/mfid0s1d on /tmp (ufs, local, noexec, soft-updates)
/dev/mfid0s1f on /usr (ufs, local, soft-updates)
/dev/mfid0s1e on /var (ufs, local, soft-updates)
procfs on /proc (procfs, local)

# cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/mfid0s1b none swap sw 0 0
/dev/mfid0s1a / ufs rw,userquota,groupquota 1 1
/dev/mfid0s1g /backup ufs rw 2 2
/dev/mfid0s1h /home ufs rw,userquota,groupquota 1 1
/dev/mfid0s1d /tmp ufs rw,noexec 2 2
/dev/mfid0s1f /usr ufs rw 2 2
/dev/mfid0s1e /var ufs rw 2 2
/dev/acd0 /cdrom cd9660 ro,noauto 0 0
proc /proc procfs rw 0 0

# quota testda
Disk quotas for user testda (uid 1011):
Filesystem usage quota limit grace files quota limit grace
/home 234762 1024000 1126400 43 0 0

# du -h /home/testda
4.0K /home/testda/domains/testda.com.ua/public_html/cgi-bin
32K /home/testda/domains/testda.com.ua/public_html
2.0K /home/testda/domains/testda.com.ua/.htpasswd
4.0K /home/testda/domains/testda.com.ua/private_html
116M /home/testda/domains/testda.com.ua/public_ftp/incoming
116M /home/testda/domains/testda.com.ua/public_ftp
2.0K /home/testda/domains/testda.com.ua/stats
2.0K /home/testda/domains/testda.com.ua/logs
116M /home/testda/domains/testda.com.ua
116M /home/testda/domains
113M /home/testda/imap/testda.com.ua
113M /home/testda/imap
2.0K /home/testda/Maildir/cur
2.0K /home/testda/Maildir/tmp
2.0K /home/testda/Maildir/new
2.0K /home/testda/Maildir/.INBOX.spam/cur
2.0K /home/testda/Maildir/.INBOX.spam/tmp
2.0K /home/testda/Maildir/.INBOX.spam/new
8.0K /home/testda/Maildir/.INBOX.spam
16K /home/testda/Maildir
229M /home/testda

#du -h /var/mail/testda
0B /var/mail/testda

# /usr/local/directadmin/directadmin c|grep count_email_usage
count_email_usage=1

# cd /home/testda
# ls -lia

total 234700
68159488 drwx--x--x 5 testda testda 512 Mar 11 03:06 .
2 drwx--x--x 7 root wheel 512 Mar 8 18:40 ..
68159489 -rw-r--r-- 1 testda testda 758 Mar 8 14:45 .cshrc
68159491 -rw-r--r-- 1 testda testda 258 Mar 8 14:45 .login
68159493 -rw-r--r-- 1 testda testda 167 Mar 8 14:45 .login_conf
68159490 -rw------- 1 testda testda 379 Mar 8 14:45 .mail_aliases
68159494 -rw-r--r-- 1 testda testda 339 Mar 8 14:45 .mailrc
68159495 -rw-r--r-- 1 testda testda 773 Mar 8 14:45 .profile
68159492 -rw------- 1 testda testda 284 Mar 8 14:45 .rhosts
68159497 -rw-r----- 1 testda mail 34 Mar 8 14:45 .shadow
68159496 -rw-r--r-- 1 testda testda 980 Mar 8 14:45 .shrc
68159520 -rw-r--r-- 1 testda testda 33289534 Mar 8 14:57 BSD-Malditos_BASS-STAR-DOS_(Part_1)-(IBREAKS032)-WEB-2010-MPX.rar
68159518 -rw-r--r-- 1 testda testda 118457472 Mar 9 01:14 BSD_-_In_The_Mix_006_october2010_adv.mp3
68159519 -rw-r--r-- 1 testda testda 88362930 Mar 8 14:56 BSD_-_Promo_Mix_November_2010.zip
68183040 drwxrwx--- 6 testda mail 512 Mar 8 19:43 Maildir
68159498 drwx--x--x 3 testda testda 512 Mar 8 14:45 domains
68159514 drwxrwx--- 3 testda mail 512 Mar 8 14:45 imap

Large files actually exist, but the panel did not believe they occupy the place. the chown is correct, owner is real.

# /usr/local/directadmin/directadmin c | grep quota
hard_quota_multiplier=1.1
edquota=/usr/sbin/edquota
setquota=/usr/sbin/setquota
repquota=/usr/sbin/repquota
quota_partition=/home
ext_quota_partitions=(null)
quota_update_interval=10

# /usr/sbin/repquota /home
Block limits File limits
User used soft hard grace used soft hard grace
root -- 6 0 0 - 4 0 0 -
stooper -- 32 0 0 - 15 0 0 -
apache -- 21568 0 0 - 80 0 0 -
mysql -- 108 0 0 - 16 0 0 -
admin -- 150 0 0 - 59 0 0 -
testda -- 234762 1024000 1126400 - 43 0 0

# cd /usr/local/directadmin
# echo "action=tally&value=testda&type=user" >> data/task.queue
# ./dataskq d800
Debug mode. Level 800
root priv set: uid:0 gid:0 euid:0 egid:0
pidfile written
staring queue
Checking partition usage
Scanning the partition usages..
Tally User testda Begin
/var/mail/testda is 0 : total: 0
/home/testda/Maildir is 4096 : realtotal: 4096
/home/testda/imap is 118555648 : realtotal: 118559744
/home/testda/.spamassassin/spam is 0 : total: 0 realtotal: 118559744
/home/testda/.spamassassin/user_spam is 0 : total: 0 realtotal: 118559744
/var/spool/virtual/testda.com.ua is 0 : total: 0 realtotal: 118559744
Majordomo usage for /etc/virtual/testda.com.ua/majordomo : 0
databases for testda
DAdminUsage.bytes for testda
Counting found totals for testda
total bw is 443601515.000000 from 443601515 (long long: 443601515)
bw in meg: 423.051372
meg converted to a string: 423.1
spaceused: 0.000000 (just quota)
spaceused: 0.000000 (add dbtotal 0)
spaceused: 0.000000 (add emltotal 0) (fyi: realemltotal: 118559744)
spaceused: 0.000000 (add apachetotal 0)
spaceused: 0.000000 (add anonftptotal 0)
*** spaceused == 0
Tally User testda Complete

I post the screenshots:

this is when i comin to the panel via user account:
http://stooper.ru/wp-content/uploads/da/da2.png

this is an existent file in users home directory:
http://stooper.ru/wp-content/uploads/da/da4.png
http://stooper.ru/wp-content/uploads/da/da3.png

after some manipulation, like a
# echo "action=cache&value=showallusers" >> /usr/local/directadmin/data/task.queue
# /usr/local/directadmin/dataskq d
CMD_SHOW_USER?user=testda
DA begins to show some space, used by files in a directory
/home/testda/domains/testda.com.ua/public_html
http://stooper.ru/wp-content/uploads/da/da.png
but still
Disk Usage: 0.0 / 1000
what is wrong? :(

Friends, I beg you help and be grateful for any advice and tips to solve the problem! the third night with no sleep. sometimes comes to the absurd! as the wall..
 
I suppose have no errors in directadmin's error logs right?

A stupid question not related, what software is that you used for share between folder that look a lot like norton commander?

Regards
 
SeLLeRoNe, its ok, there is no errors in DA logs. Dont understood about software.. Im allways using an mc and a standart "ls" output in a quotes.
zEitEr, yes, this is LSI Megaraid controller.

The question is solved. It was necessary to delete an old .quota files in a home dir, and rebuild quota for accounts, cleaning a /tmp dir, use repquote etc. and something happend.. in Russian lang its calls "dancing with a tambourine", or "Та********е******** с ********у****************о********". sometimes its a joke, but this joke have a lot of truth. In the DA there is not so clear with quotas questions, i see a lot of troubles in this board. its a hard way to customise it in a different systems. Ok, tnx for the help, bros!

Regards, Evgen
 
Back
Top