Why does du and quota results not match?

Brandon Clements

I have exceeded my disk quota on a system which I do not have root access. I tried removing old files but am still over. I tried runing du to find where I am using up all my space but it reports I am using very little.

Results from quota

   /home/1234$ quota -s
   Disk quotas for user 1234 (uid 1234): 
        Filesystem   space   quota   limit   grace   files   quota   limit   grace
       cslab:/home   4519M*  4096M   5120M   09:47    6155       0       0 

From du

   /home/1234$ du -mad 1
   ...
   936     total

I don't understand why quota says I am using 4.5GB while du only counts .9GB. I also checked for files I own in /tmp and there was 50MB worth of files there. Where could the other 3.5GB of files be? Is it possible the quota system is wrong and needs reset?

Ramesh

I believe there may be some files still held open by some processes. You can try to list them using,

lsof | grep username | grep deleted

A more better version would be to use,

lsof +L1 | grep username

However, sometimes there might be discrepancy in the output between du and quota which is explained in this link. Excerpt from the link,

In Unix, the du and quota commands may report different values. The reason for this discrepancy is that the process which goes through the file system, checks quotas, and updates the usage tables only runs at specific times. Therefore, there will be periods between quota checks that the quota -v command will report incorrect disk usage. Use the du command for the most accurate information about the size of your files.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Why does the "which" command give duplicate results?

분류에서Dev

Why does egrep -o not return the entire match?

분류에서Dev

Why does iwlist scan return cached results almost every time?

분류에서Dev

Does anyone know why I am not getting any results with this query?

분류에서Dev

Python 3: Why does splitlines() on a str results in TypeError? (but not always)

분류에서Dev

Why does `find` in Linux skip expected results when `-o` is used?

분류에서Dev

Why does this line of GLSL for calculating distance produce inconsistent results, when this one works as expected?

분류에서Dev

Match where does not begin with

분류에서Dev

From match results to rating using Trueskill (in Python)

분류에서Dev

PHP preg_match not showing results

분류에서Dev

organizing search results based on longest match

분류에서Dev

Why is Scrapy returning duplicate results?

분류에서Dev

Linux "screen" does not write results

분류에서Dev

Why there are two users showing in uptime command results?

분류에서Dev

Autocomplete returns results but does not render menu

분류에서Dev

does jOOQ support querying on local results?

분류에서Dev

getNextSibling() method does not return any results

분류에서Dev

Why does this program loop?

분류에서Dev

Why and how does this work?

분류에서Dev

Why does '/' have an '..' entry?

분류에서Dev

Why does facebook not like this

분류에서Dev

Why does ArrayList do this?

분류에서Dev

Why does synchronized(this) works?

분류에서Dev

WebAPI: Why do these methods match the routing template?

분류에서Dev

Oracle - literal does not match format string

분류에서Dev

Laravel 4 - Ardent - The password confirmation does not match

분류에서Dev

Sub Query - Return NULL, if it does not match the highest

분류에서Dev

Lucene query does not match regex characters in content

분류에서Dev

Delete a line does not start with # and match a pattern

Related 관련 기사

  1. 1

    Why does the "which" command give duplicate results?

  2. 2

    Why does egrep -o not return the entire match?

  3. 3

    Why does iwlist scan return cached results almost every time?

  4. 4

    Does anyone know why I am not getting any results with this query?

  5. 5

    Python 3: Why does splitlines() on a str results in TypeError? (but not always)

  6. 6

    Why does `find` in Linux skip expected results when `-o` is used?

  7. 7

    Why does this line of GLSL for calculating distance produce inconsistent results, when this one works as expected?

  8. 8

    Match where does not begin with

  9. 9

    From match results to rating using Trueskill (in Python)

  10. 10

    PHP preg_match not showing results

  11. 11

    organizing search results based on longest match

  12. 12

    Why is Scrapy returning duplicate results?

  13. 13

    Linux "screen" does not write results

  14. 14

    Why there are two users showing in uptime command results?

  15. 15

    Autocomplete returns results but does not render menu

  16. 16

    does jOOQ support querying on local results?

  17. 17

    getNextSibling() method does not return any results

  18. 18

    Why does this program loop?

  19. 19

    Why and how does this work?

  20. 20

    Why does '/' have an '..' entry?

  21. 21

    Why does facebook not like this

  22. 22

    Why does ArrayList do this?

  23. 23

    Why does synchronized(this) works?

  24. 24

    WebAPI: Why do these methods match the routing template?

  25. 25

    Oracle - literal does not match format string

  26. 26

    Laravel 4 - Ardent - The password confirmation does not match

  27. 27

    Sub Query - Return NULL, if it does not match the highest

  28. 28

    Lucene query does not match regex characters in content

  29. 29

    Delete a line does not start with # and match a pattern

뜨겁다태그

보관