The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I get robbed! Who stole my disk space?

Discussion in 'General Discussion' started by benito, Jun 12, 2009.

  1. benito

    benito Well-Known Member

    Joined:
    Jan 8, 2004
    Messages:
    296
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Mar del Plata - Argentina
    I list my disk
    Code:
    root@emma [~]# df -Th
    Filesystem    Type    Size  Used Avail Use% Mounted on
    /dev/sda5     ext3    7.8G  638M  6.8G   9% /
    /dev/sda8     ext3     39G  4.8G   32G  14% /home
    /dev/sda6     ext3    996M   36M  909M   4% /tmp
    [B]/dev/sda3     ext3    7.8G  6.6G  768M  90% /usr[/B]
    /dev/sda2     ext3    9.7G 1004M  8.3G  11% /var
    /dev/sda1     ext3    122M   17M  100M  14% /boot
    tmpfs        tmpfs   1014M     0 1014M   0% /dev/shm
    /dev/sdb1     ext3     67G  294M   63G   1% /opt/cdp-server
    
    then show disk use for /usr
    Code:
    root@emma [~]# du -sh /usr
    3.4G	/usr
    root@emma [~]# 
    
    So, how can i fix this little problem?
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Occasionally extremely large files that have been recently deleted will still hold
    onto their resources temporarily even though the files are deleted; this can be
    discovered by running lsof (in this case, lsof +L1).

    Usually, a system reboot will clear this issue.

    If you are running a VPS account, they may be having quota managment
    problems on the physical server machine.
     
  3. benito

    benito Well-Known Member

    Joined:
    Jan 8, 2004
    Messages:
    296
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Mar del Plata - Argentina
    Many thanks Spiral, +L1 shows a lot of large files deleted. There is any way to clear that w/o reboot?
     
  4. benito

    benito Well-Known Member

    Joined:
    Jan 8, 2004
    Messages:
    296
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Mar del Plata - Argentina
    Nevermind, restarting apache do the trick.
     
  5. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Reboot would be the easiest way ...

    However, you could do a "ps -ef | grep ####" where #### is the PID
    shown in your 'lsof' command output next to the large files to be cleared
    to find out exactly what process is holding those file pointers open
    and then restart that specific process or service.
     

Share This Page