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.

Drive Space Warning...I have searched

Discussion in 'General Discussion' started by bigpy2003, Jan 24, 2006.

  1. bigpy2003

    bigpy2003 Well-Known Member

    Joined:
    Feb 22, 2004
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    I have drive space warnings being emailed to me. I check in WHM for my Server Information...This is what it displays:

    Filesystem Size Used Avail Use% Mounted on
    /dev/hda5 14G 4.4G 8.7G 34% /
    /dev/hda1 99M 14M 80M 15% /boot
    /dev/hda2 58G 58G 0 100% /home
    none 247M 0 247M 0% /dev/shm
    /dev/hdc1 37G 22G 14G 62% /backup

    Says 0 available for /home

    I went inside of home and did:
    du -cah --max-depth=1

    final amount displayed 7G

    I decided to do 'df' just to make sure that cpanel wasn't bugging out on me. It displayed:
    root@drawing [/home]# df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/hda5 14278808 4528096 9025380 34% /
    /dev/hda1 101089 14051 81819 15% /boot
    /dev/hda2 60476068 60476068 0 100% /home
    none 251924 0 251924 0% /dev/shm

    As anyone can clearly see, 7G is used however it displays that 58G is used according to the partition. Can someone please help me on this.
     
  2. dave9000

    dave9000 Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    891
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    arkansas
    cPanel Access Level:
    Root Administrator
    actually i see 59g used in /home with no free space
     
  3. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    thats what I see too
     
  4. MattGetWeb

    MattGetWeb Well-Known Member

    Joined:
    Aug 4, 2005
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Sometimes, a process can keep a file open even after it has been removed from the system. This has the effect of not releasing the disk space as the file hasn't been closed. Here is a great example that is happening on my desktop as I type this. Note the /tmp dir.

    Code:
    spawn:~# du -sh /tmp/
    68K     /tmp/
    spawn:~# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda2             897M  206M  644M  25% /
    tmpfs                 379M  4.0K  379M   1% /dev/shm
    /dev/sda1              89M   31M   53M  38% /boot
    /dev/sda8             8.4G  5.4G  2.7G  68% /home
    /dev/sda3             897M  527M  323M  62% /tmp
    /dev/sda7             3.7G  2.9G  642M  82% /usr
    /dev/sda6             1.8G  435M  1.3G  26% /var
    

    The only real way to release the space is to kill the process that is holding the file open. There's ways and means to check which process (try 'fuser -mv /home'), but I'd suggest your fastest course of action may simply be to reboot. There are lots of things that like to do stuff in the /home directory.
     
  5. bigpy2003

    bigpy2003 Well-Known Member

    Joined:
    Feb 22, 2004
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    Had the server company run the disk check software and it cleaned it up.
     
Loading...

Share This Page