Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I am facing a strange problem in my server, One of my filesystem shows as 3.1G when I execute df -h command and the utilization shows as 83%, but ...
  1. #1
    Just Joined!
    Join Date
    Nov 2007
    Posts
    8

    Disk Space Utilization Problem

    Hi,

    I am facing a strange problem in my server, One of my filesystem shows as 3.1G when I execute df -h command and the utilization shows as 83%, but when I cd to the directory /usr/local I could not find any huge files in that filesystem and I have searched for hidden files as well, any help?

    groupserver:~ # df -h

    Filesystem Size Used Avail Use% Mounted on
    /dev/sda9 3.1G 2.5G 532M 83% /usr/local

    groupserver:/usr/local # du -sh *
    0 bin
    93M abinav
    4.0K dspace.txt
    0 games
    0 include
    0 lib
    12K man
    0 sbin
    0 share
    0 src
    5.2M temp

    Thanks,
    Puru

  2. #2
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    my guess, either you or a script has deleted a file while it was in use. To free the space (release the phantom files) you need to unmount the filesyem, fsck it (not entirely necessary, but highly recomended,) and remount it.

    The easiest way to do this is to just reboot the box. If that's not an option, you need to make sure no processes are still using files (use lsof for this) and then unmount it. Note that you can not have a shell opened that is currenty in that directory.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

  3. #3
    Just Joined!
    Join Date
    Nov 2007
    Posts
    8

    Thumbs up

    Hi,

    Great thanks to you, actually Java was accessing that deleted files, I have restarted Java and the usage becomes normal now.

    Thanks,
    Puru

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...