[CentOS] Re: discrepancy between what quota reports and what du reports

ankush grover

ankushcentos at gmail.com
Fri Feb 8 05:46:20 UTC 2008


On Feb 7, 2008 4:31 PM, ankush grover <ankushcentos at gmail.com> 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 one of the user quota or edquota is
> showing wrong blocks even though disk space occupied by that user is
> 809M.
>
>
> 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
>
>
>
> dumpe2fs /dev/cciss/c0d0p3 |grep -i "block size"
> dumpe2fs 1.35 (28-Feb-2004)
> Block size:               4096
>
>
> I tried quotaoff and quotaon on the /home partition and also mount
> -all command to remount the partitions but still the problem is
> persisting. Kindly suggest me how to get rid of this problem. Please
> let me know if you need any further inputs.
>
>
> Regards
>
>
> Ankush
>



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
    51  drwxr-xr-x  2 bhavesh.kumar root  4096 Feb  7 15:44 Apr-Sep2006
    52  drwxr-xr-x  2 bhavesh.kumar root  4096 Feb  7 15:44 Apr-sep-2007
    53  -rwxr--r--  1 bhavesh.kumar root 21504 Feb  7 15:44 Brabeion -
Appraisal.xls
    54  -rwxr--r--  1 bhavesh.kumar root 19456 Feb  7 15:44 Guidelines.xls
    55  drwxr-xr-x  2 bhavesh.kumar root  4096 Feb  7 15:44 Oct-Mar2007
    56  -rwxr--r--  1 bhavesh.kumar root 37376 Feb  7 15:44 ./Laptop
Data/Brabeion/Appraisal/Appraisal-QA.xls
    57  -rwxr--r--  1 bhavesh.kumar root 24064 Feb  7 15:44 ./Laptop
Data/Brabeion/Appraisal/Appraisal-DAL.xls
    58  total 28
    59  -rwxr--r--  1 bhavesh.kumar root 26624 Feb  7 15:44 Team.xls
    60  -rwxr--r--  1 bhavesh.kumar root 26624 Feb  7 15:44 ./Laptop
Data/Brabeion/Appraisal/Apr-sep-2007/Team.xls
    61  -rwxr--r--  1 bhavesh.kumar root 26112 Feb  7 15:44 ./Laptop
Data/Brabeion/Appraisal/Appraisal-Guidelines.xls
    62  total 256
    63  -rwxr--r--  1 bhavesh.kumar root 27136 Feb  7 15:44 Appraisal-ADP.xls
    64  -rwxr--r--  1 bhavesh.kumar root 24064 Feb  7 15:44 Appraisal-DAL.xls
    65  -rwxr--r--  1 bhavesh.kumar root 26112 Feb  7 15:44
Appraisal-Guidelines.xls
    66  -rwxr--r--  1 bhavesh.kumar root 55296 Feb  7 15:44 Appraisal-GUI.xls
    67  -rwxr--r--  1 bhavesh.kumar root 30208 Feb  7 15:44 AppraisalMaster.xls
    68  -rwxr--r--  1 bhavesh.kumar root 37376 Feb  7 15:44 Appraisal-QA.xls
    69  -rwxr--r--  1 bhavesh.kumar root 21504 Feb  7 15:44 Brabeion -
Appraisal.xls
    70  -rwxr--r--  1 bhavesh.kumar root 19456 Feb  7 15:44 Guidelines.xls
    71  -rwxr--r--  1 bhavesh.kumar root 37376 Feb  7 15:44 ./Laptop
Data/Brabeion/Appraisal/Apr-Sep2006/Appraisal-QA.xls
    72  -rwxr--r--  1 bhavesh.kumar root 24064 Feb  7 15:44 ./Laptop
Data/Brabeion/Appraisal/Apr-Sep2006/Appraisal-DAL.xls
    73  -rwxr--r--  1 bhavesh.kumar root 26112 Feb  7 15:44 ./Laptop
Data/Brabeion/Appraisal/Apr-Sep2006/Appraisal-Guidelines.xls
    74  -rwxr--r--  1 bhavesh.kumar root 30208 Feb  7 15:44 ./Laptop
Data/Brabeion/Appraisal/Apr-Sep2006/AppraisalMaster.xls
    75  -rwxr--r--  1 bhavesh.kumar root 21504 Feb  7 15:44 ./Laptop
Data/Brabeion/Appraisal/Apr-Sep2006/Brabeion - Appraisal.xls
    76  -rwxr--r--  1 bhavesh.kumar root 19456 Feb  7 15:44 ./Laptop
Data/Brabeion/Appraisal/Apr-Sep2006/Guidelines.xls
    77  -rwxr--r--  1 bhavesh.kumar root 27136 Feb  7 15:44 ./Laptop
Data/Brabeion/Appraisal/Apr-Sep2006/Appraisal-ADP.xls
    78  -rwxr--r--  1 bhavesh.kumar root 55296 Feb  7 15:44 ./Laptop
Data/Brabeion/Appraisal/Apr-Sep2006/Appraisal-GUI.xls
    79  total 200


I have rebooted the system but still the problem persists. There is
another person who faced the same problem with redhat 4.4 but the
solution is not given.

http://www.opensubscriber.com/message/centos@centos.org/8548096.html


Thanks & Regards


Ankush



More information about the CentOS mailing list