Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Smile hard drive full , read similar threads but still need help

    found what takes space but not sure what to delete here is the output of df -h

    Filesystem Size Used Avail Use% Mounted on
    /dev/sda1 9.2G 157M 8.6G 2% /
    /dev/sda5 9.4G 9.4G 20K 100% /usr
    /dev/sda6 213G 213G 20K 100% /var
    none 1.0G 12K 1.0G 1% /tmp
    tmpfs 2.0G 0 2.0G 0% /usr/local/psa/handlers/before-local

    can you help to identify what to delete to clear up space , thanks

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    You have 213GB allocated to /var (/dev/sda6), which is full. This is highly unusual since /var mostly contains application configuration and log directories. My guess is that your log files have grown in number and size beyond what they should, indicating a logging mis-configuration.

    So, what distribution+version of Linux are you running? Also, post the contents of /etc/logrotate.conf here. Also, check in /var/log and its subdirectories to see how big and many they are. You can check the size of /var/log with this command (as root): du -sk /var/log
    It may take a bit of time to run, depending upon how many files there are, and their sizes.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3

    thanks for reply

    I do not know hot to find out distribution and version .

    I looked into var/log , deleted big files , that cleared 420 megs , so at least my site is working again ,
    tried to excute /etc/ came back as no such file ,
    could please advise me how to look further in the problem and sorry for my very basic skills in Linux.

  4. $spacer_open
  5. #4

    checked usr folders

    found folder Local is taking a lot of space , and here are the size of files

    [root@s15346015 ~]# du -sk /usr/local/sbin
    3720 /usr/local/sbin
    [root@s15346015 ~]# du -sk /usr/local/psa
    8761096 /usr/local/psa
    [root@s15346015 ~]# du -sk /usr/local/libexec
    0 /usr/local/libexec
    [root@s15346015 ~]# du -sk /usr/lib64
    248224 /usr/lib64
    [root@s15346015 ~]# du -sk /usr/lib
    210440 /usr/lib
    [root@s15346015 ~]# du -sk /usr/include
    12724 /usr/include
    [root@s15346015 ~]# du -sk /usr/games
    0 /usr/games
    [root@s15346015 ~]# du -sk /usr/etc
    0 /usr/etc
    [root@s15346015 ~]# du -sk /usr/bin
    92180 /usr/bin

  6. #5

    /usr/local/psa/var/log is quite a big file

    is it safe to delete that file and could you advise how to delete it , i guess it is
    is that correct?

  7. #6
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    NH, USA
    just fyi, if you delete it, most likely it is permanent, i would advise you to double check first what /usr/local/psa directory contains

  8. #7
    SuperMod (Back again) devils casper's Avatar
    Join Date
    Jun 2006
    Chandigarh, India
    Post the output of this
    cat /etc/lsb-release
    cat /etc/issue

    In case you are using any Debian base distro, execute this
    sudo apt-get clean all
    It will clear cache and free a lot of space.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #8

    here is out put

    [root@s15346015 ~]# cat /etc/issue
    CentOS release 5.2 (Final)
    Kernel \r on an \m

  10. #9

    340 megs gone over night

    prevoiusly i cleared 340 megs only to last few hours over night and now hard is full again

  11. #10

    in var problem was that backup files not deleted

    so found around 12 files each is 10 gigs , deleted them . so var sorted now , any advice for other drive that is 9 gigs and full

Posting Permissions

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