Re: discrepancy between what quota reports and what du reports (second time post)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



ankush grover wrote:
Hi Friends,


I am running samba as domain member of AD 2k3 on Centos 4.4 . Quota of
2GB is set for each user but for 2-3 uers quota or edquota is
showing wrong blocks even though disk space occupied by that user is
very less than the quota specified for ex 810 MB.


quota bhavesh.kumar
Disk quotas for user bhavesh.kumar (uid 11254):
    Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
/dev/cciss/c0d0p5
               2791832* 2000000 2000000            1595       0       0

# du -sh bhavesh.kumar
809M    bhavesh.kumar

There are probably files owned by 'bhavesh.kumar' outside the bhavesh.kumar directory

Further diagnosing the problem there are double entries of the files
in the directory kindly see entries 45-50 & 63-68

 find . -uid 11254 -exec ls  -l "{}" ";"|nl  | more

45  -rwxr--r--  1 bhavesh.kumar root 27136 Feb  7 15:44 Appraisal-ADP.xls
   46  -rwxr--r--  1 bhavesh.kumar root 24064 Feb  7 15:44 Appraisal-DAL.xls
   47  -rwxr--r--  1 bhavesh.kumar root 26112 Feb  7 15:44
Appraisal-Guidelines.xls
   48  -rwxr--r--  1 bhavesh.kumar root 55296 Feb  7 15:44 Appraisal-GUI.xls
   49  -rwxr--r--  1 bhavesh.kumar root 30208 Feb  7 15:44 AppraisalMaster.xls
   50  -rwxr--r--  1 bhavesh.kumar root 37376 Feb  7 15:44 Appraisal-QA.xls

You are probably listing the same files twice - or copies of files in different sub-directories - try the find command using the '-ls' option instead of the '-exec ls -l'

You should also run the find from the top level of this file system

James Pearson
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux