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 Warning: /sda3 (/) is 84% full

Discussion in 'General Discussion' started by devellion, Feb 24, 2005.

  1. devellion

    devellion Active Member

    Joined:
    Feb 9, 2005
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I keep receiving the warning that "Drive Warning: /sda3 (/) is 84% full"

    779Mb of 981Mb has been used and its mounted on /

    Can anyone advise?
     
  2. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    Hello,

    This means that

    779Mb of 981Mb available disk space has been used and its mounted on /
    You need to clear out some files as required from within your / partition or move them to another partition, to make way for more space.

    what does

    # df -h

    Show for the other partition usages?
     
  3. devellion

    devellion Active Member

    Joined:
    Feb 9, 2005
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for your reply it's a very virginal server still:

    It says...

    Code:
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda3             981M  779M  153M  84% /
    /dev/sda1              99M   25M   69M  27% /boot
    /dev/sda8             125G  1.1G  118G   1% /home
    none                 1004M     0 1004M   0% /dev/shm
    /dev/sda7             494M  8.1M  461M   2% /tmp
    /dev/sda6             9.7G  2.6G  6.6G  29% /usr
    /dev/sda5             9.7G  407M  8.8G   5% /var
    I'm not very confident with shifting files. :eek:
     
    #3 devellion, Feb 24, 2005
    Last edited: Feb 24, 2005
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I would suspect that you have old kernels installed. What do you get from:

    rpm -qa | grep kernel
     
  5. devellion

    devellion Active Member

    Joined:
    Feb 9, 2005
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    It gives me this:

    Code:
    kernel-2.4.21-20.EL.c0
    kernel-source-2.4.21-27.0.2.EL
    kernel-smp-2.4.21-27.0.2.EL
    kernel-smp-2.4.21-20.EL.c0
    kernel-utils-2.4-8.37.6
    kernel-pcmcia-cs-3.1.31-13
    kernel-2.4.21-27.0.2.EL
    

    Is that out of date? The OS is CentOS ;)
     
  6. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    You don't need these, but they won't be taking up much from your / partition, as you have a /usr and a /boot partition


    kernel-source-2.4.21-27.0.2.EL
    kernel-pcmcia-cs-3.1.31-13

    You only need an smp kernel too, if you have a dual proc machine, and if you do have a dual proc machine, the uni processor kernels aren't needed.

    Have you downloaded much into /root ?

    # ls -la /root

    # du -h /root

    You might have logged in and downloaded things without switching to another partition first.
    Look there for a clean up of anything thats not required.
     
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    That's a good point. You might also want to se if you have a /root/installd/ directory which you can most likely delete completely.
     
  8. devellion

    devellion Active Member

    Joined:
    Feb 9, 2005
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Hello... thanks for you help guys...

    I dont have a directory called /root/installd/

    # ls -la /root

    Returns:
    Code:
    total 128
    drwxr-x---   15 root     root         4096 Mar  1 18:52 ./
    drwxr-xr-x   21 root     root         4096 Feb  9 10:53 ../
    -rw-------    1 root     root          957 Feb  1 21:13 .accesshash
    -rw-r--r--    1 root     root         1721 Jan 30 18:56 anaconda-ks.cfg
    -rw-------    1 root     root         7879 Feb 28 14:47 .bash_history
    -rw-r--r--    1 root     root           24 Jun 10  2000 .bash_logout
    -rw-r--r--    1 root     root          234 Jul  5  2001 .bash_profile
    -rw-r--r--    1 root     root          176 Aug 23  1995 .bashrc
    drwxr-xr-x    4 root     root         4096 Jan 31 21:15 .cpan/
    drwxr-xr-x    4 root     root         4096 Jan 31 21:42 cpanel3-skel/
    drwx------    3 root     root         4096 Feb 16 02:41 .cpcpan/
    drwx------    3 root     root         4096 Jan 31 20:59 .cpmysqlrpm/
    -rw-r--r--    1 root     root          210 Jun 10  2000 .cshrc
    -rw-r--r--    1 root     root           22 Feb  7 20:19 .forward
    drwx------    2 root     root         4096 Jan 30 18:53 .gconfd/
    -rwxr-xr-x    1 root     root           82 Jan 30 18:56 install_cpanel.sh*
    drwx------    2 root     root         4096 Mar  1 06:14 .keychain/
    drwxrwx---    2 operator mail         4096 Jan 31 21:31 mail/
    -rw-------    1 root     root          485 Feb  9 12:59 .mysql_history
    drwxr-xr-x    2 root     root         4096 Jan 31 21:15 public_ftp/
    drwxr-xr-x    3 root     root         4096 Jan 31 21:15 public_html/
    -rw-r--r--    1 root     root          141 Jan 30 18:56 READ_ME_FIRST
    -rw-------    1 root     root         1024 Mar  1 02:41 .rnd
    drwx------    3 root     root         4096 Jan  5 01:41 rvadmin/
    drwx------    2 root     root         4096 Feb  7 23:45 .screen/
    -rw-------    1 root     root            0 Feb  7 22:16 .securesslreqs
    drwx------    2 root     root         4096 Mar  1 02:41 .spamassassin/
    drwx------    2 root     root         4096 Feb  1 21:16 .ssh/
    -rw-r--r--    1 root     root          196 Jul 11  2000 .tcshrc
    -rw-------    1 root     root         6421 Mar  1 18:52 .viminfo
    -rw-r--r--    1 root     root         1126 Aug 23  1995 .Xresources
    # du -h /root
    Returns:
    Code:
    4.0K    /root/.screen
    4.0K    /root/.gconfd
    708K    /root/.cpcpan/pingtimes
    876K    /root/.cpcpan
    428K    /root/.cpmysqlrpm/pingtimes
    440K    /root/.cpmysqlrpm
    4.0K    /root/.cpan/sources/authors
    156K    /root/.cpan/sources
    96K     /root/.cpan/build
    256K    /root/.cpan
    4.0K    /root/public_html/cgi-bin
    8.0K    /root/public_html
    4.0K    /root/public_ftp
    4.0K    /root/mail
    20K     /root/.spamassassin
    4.0K    /root/cpanel3-skel/public_html
    4.0K    /root/cpanel3-skel/public_ftp
    12K     /root/cpanel3-skel
    172K    /root/rvadmin/rvximages
    396K    /root/rvadmin
    4.0K    /root/.keychain
    8.0K    /root/.ssh
    2.1M    /root
    
    I have no idea what I can and can't delete. It bothers me as the server is mission critical to my business. How can I find out what is safe and what isn't to delete?
     
  9. matt621

    matt621 Well-Known Member

    Joined:
    Jun 25, 2003
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    You need to check your inboxes for all your accounts. Often times they run up to hundreds of megs of spam. Always the default address.
     
  10. devellion

    devellion Active Member

    Joined:
    Feb 9, 2005
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    The server is only 2 weeks old but that could bu a thing... I will check. ;)

    Thanks.
     
  11. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It's unlikely to be email. The space problem is on / not the /home partition where email is store. I would suggest you use the technique I've described in the past where you do the following from the top of the partition down:

    du -h --max-depth=1 /

    This will give you a space summary of the level you are on in the partition. If xyz subdir is the largest:

    cd /xyz
    du -h --max-depth=1 /
    ls -laSh | more


    This will then list the files in size order, if the space is taken up within another subdir cd into that and repeat until you find the problem file(s). Be very careful about deleting any files on your / partition. If you are unsure either ask here or hire someone who knows what they're doing.
     
  12. matt621

    matt621 Well-Known Member

    Joined:
    Jun 25, 2003
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    I'm sorry. I spaced out his problem was with the root dir.
     
  13. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Really? From his du it only shows a few MB of data - so what were the problem files in this case?

    Edit: Sorry, just realised that I misunderstood what you meant be "spaced out" ;)
     
  14. devellion

    devellion Active Member

    Joined:
    Feb 9, 2005
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    I think I've figured it out....

    I set CPanel to do a nightly back up of all sites to:

    /backup which is now 579Mb

    I guese I need to move the storage of backup to another partition. ;)

    Bingo!!

    /home/backup would probably be the sensible option...


    Thanks for your help guys I'm pretty sure thats the answer.
     
  15. devellion

    devellion Active Member

    Joined:
    Feb 9, 2005
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Problem solved... :D

    28% free again. Thanks!! ;)
     
  16. Lestat

    Lestat Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    16
    du -h
    Code:
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/hda7             981M  770M  162M  83% /
    /dev/hda1             145M   36M  102M  26% /boot
    none                  490M     0  490M   0% /dev/shm
    /dev/hda8              35G  1.6G   31G   5% /home
    /dev/hda6             981M   17M  915M   2% /tmp
    /dev/hda3              20G  2.6G   16G  15% /usr
    /dev/hda2              20G  898M   18G   5% /var
    
    du -h --max-depth=1 /
    Code:
    0       /sys
    1.6G    /home
    12M     /sbin
    663M    /lib
    4.0K    /opt
    4.0K    /initrd
    5.3M    /scripts
    5.0M    /bin
    16K     /lost+found
    588K    /dev
    268K    /tmp
    35M     /etc
    2.6G    /usr
    32M     /boot
    901M    /proc
    7.6M    /root
    8.0K    /mnt
    4.0K    /misc
    4.0K    /selinux
    866M    /var
    6.6G    /
    
    Please help not sure what to delete to make space on / partition.

    I keep getting emails of drive is almost full.
     
  17. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Login to your box and run this command at the prompt:

    find / -size +10240k

    This command will look in root folder for all files larger than 10 MB.

    You can decide on what files to delete and free some space on your server. Otherwise, you can purchase and mount another HD and move big sites to it.

    Hope this helps!
     
  18. Lestat

    Lestat Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    16
    find / -size +10240k
    Code:
    /usr/local/apache/logs/error_log
    /usr/local/apache/logs/access_log
    /usr/local/cpanel/whostmgr/bin/whostmgr2
    /usr/local/cpanel/3rdparty/bin/php
    /usr/local/j2sdk1.4.2_05/jre/lib/rt.jar
    /usr/local/j2sdk1.4.2_05/src.zip
    /usr/lib/libmint.a
    /usr/lib/libethereal.so.0.0.1
    /usr/lib/locale/locale-archive
    /usr/lib/gcc/i386-redhat-linux/3.4.0/libgcj.a
    /usr/lib/libmono.a
    /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/libgcj.a
    /usr/share/comps/i386/hdlist2
    /usr/share/comps/i386/hdlist
    /proc/kcore
    find: /proc/3753/task/3753/fd/4: No such file or directory
    /var/log/messages.2
    /var/log/messages.1
    /var/log/messages.3
    /var/log/lastlog
    /var/lib/pgsql/data/pg_xlog/0000000000000000
    /var/lib/rpmrebuilddb.26063/Packages
    /var/lib/rpm/Packages
    /var/cache/yum/updates-released/packages/samba-3.0.6-2.fc2.i386.rpm
    /var/cache/yum/updates-released/packages/samba-3.0.9-1.fc2.i386.rpm
    /var/cache/yum/updates-released/packages/kernel-2.6.8-1.521.i686.rpm
    /var/cache/yum/updates-released/packages/samba-3.0.7-2.FC2.i386.rpm
    /var/cache/yum/updates-released/packages/kernel-2.6.9-1.11_FC2.i686.rpm
    /var/cache/yum/updates-released/packages/kernel-2.6.10-1.8_FC2.i686.rpm
    /var/cache/yum/updates-released/packages/kernel-2.6.10-1.12_FC2.i686.rpm
    /var/cache/yum/updates-released/packages/kernel-2.6.10-1.14_FC2.i686.rpm
    /var/cache/yum/updates-released/packages/kernel-2.6.10-1.770_FC2.i686.rpm
    /var/cache/yum/updates-released/packages/samba-3.0.10-1.fc2.i386.rpm
    /var/cache/yum/updates-released/packages/kernel-2.6.10-1.9_FC2.i686.rpm
    /var/cache/yum/updates-testing/packages/kernel-2.6.9-1.9_FC2.i686.rpm
    /var/cache/yum/updates-testing/packages/kernel-2.6.9-1.2_FC2.i686.rpm
    /var/cache/yum/updates-testing/packages/glibc-common-2.3.3-27.1.i386.rpm
    /var/cache/yum/updates-testing/packages/kernel-2.6.9-1.6_FC2.i686.rpm
    /var/cache/yum/updates-testing/packages/kernel-2.6.10-1.11_FC2.i686.rpm
    /var/cache/yum/updates-testing/packages/kernel-2.6.9-1.3_FC2.i686.rpm
    /var/cache/yum/updates-testing/packages/kernel-2.6.9-1.1_FC2.i686.rpm
    
    Whats safe to delete?
     
  19. Lestat

    Lestat Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    16
    ls -la /
    Code:
    total 27804
    drwxr-xr-x   22 root   root       4096 Mar  4 19:25 ./
    drwxr-xr-x   22 root   root       4096 Mar  4 19:25 ../
    -rwxr--r--    1 root   root       6144 Mar  4 19:25 aquota.user*
    -rw-r--r--    1 root   root          0 Feb 16 03:27 .autofsck
    drwxr-xr-x    2 root   root       4096 Mar  5 00:27 bin/
    drwxr-xr-x    4 root   root       4096 Mar  4 19:25 boot/
    -rw-------    1 root   root    1105920 Oct 11 21:16 core.25634
    -rw-------    1 root   root   12939264 Oct 11 21:25 core.26063
    -rw-------    1 root   root    2052096 Oct 11 21:25 core.26159
    -rw-------    1 root   root   11325440 Oct 11 21:26 core.26226
    -rw-------    1 root   root    1744896 Oct 11 21:27 core.26245
    -rw-------    1 root   root    5767168 Oct 11 21:30 core.26486
    -rw-------    1 root   root    1298432 Oct 11 21:31 core.27106
    drwxr-xr-x   24 root   root     163840 Feb 16 03:28 dev/
    drwxr-xr-x   74 root   root      12288 Mar  5 01:58 etc/
    -rw-r--r--    1 nobody nobody       24 Oct  2 13:40 .forward
    drwx--x--x   18 root   root       4096 Mar  4 19:26 home/
    -rw-r--r--    1 root   root          0 Mar  5 02:00 .imap
    drwxr-xr-x    2 root   root       4096 Mar 11  2004 initrd/
    drwxr-xr-x    9 root   root       4096 Mar  5 00:27 lib/
    drwx------    2 root   root      16384 Aug 21  2004 lost+found/
    drwxr-xr-x    2 root   root       4096 Apr 14  2004 misc/
    drwxr-xr-x    3 root   root       4096 Aug 21  2004 mnt/
    drwxr-xr-x    2 root   root       4096 Mar 11  2004 opt/
    -rw-r--r--    1 root   root          0 Mar  5 02:00 .pop3
    dr-xr-xr-x  158 root   root          0 Feb 15 22:27 proc/
    -rwxr--r--    1 root   root         32 Mar  4 19:25 quota.user*
    drwxr-x---   15 root   root       4096 Mar  5 00:27 root/
    drwxr-xr-x    3 root   root      12288 Mar  5 00:27 sbin/
    drwxr-xr-x    2 root   root      20480 Mar  5 00:27 scripts/
    drwxr-xr-x    2 root   root       4096 Mar 11  2004 selinux/
    drwxr-xr-x   10 root   root          0 Feb 15 22:27 sys/
    drwxrwxrwt    4 root   root      61440 Mar  5 02:01 tmp/
    drwxr-xr-x   17 root   root       4096 Mar  4 19:26 usr/
    drwxr-xr-x   25 root   root       4096 Mar  4 19:26 var/
    
    Is it safe to delte those core.xxxxx files?
     
  20. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Yes. They're clearly what are causing the problem and are safe to delete.
     
Loading...

Share This Page