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

    Running out of space. Time is of the essence

    Hey Guys,

    A client of ours is running a linux mail server which is MailScanner on a Fedora Core (thats right the first release) and the server is running out of space fast. The problem I have is that the engineer that maintained the Linux box is no long with us and I have minimal linux exposure. Before he left they ran into this problem before and he put a new disk in and mounted the drive and cleared 8 gigs on the old drive. Now the old drive has 110 megs free after I cleared out some files that were no longer required.

    So I have a few questions:
    1. How did 8 gigs get used in a matter of weeks and how am i able to find this problem and fix it.
    2. The new disk has 22 gigs free how am I able to utilize this space?

    [root@intsrv2 /]# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda2 33G 32G 110M 100% /
    /dev/sda1 99M 13M 81M 14% /boot
    none 251M 0 251M 0% /dev/shm
    /dev/sdb1 23G 284M 22G 2% /home
    /dev/sdb2 16G 5.0G 9.4G 35% /misc

    If any one is able to help me I would be extremely greatful. Keep in mind that my knowledge of Linux is not great and that details will make things alot easier for me.

    Thanks in Advance,

  2. #2
    Just Joined!
    Join Date
    Feb 2007
    Adelaide, Australia
    It has more than likely been chewed up by your /var/log directory.

    cd /var/log
    ls -Sal | more - this will give you a listing of the files in order of size

    The problem is that your free space is in /home so I am assuming that he just moved to logs into /home, regardless of how nasty it is to do this

    mv <filename> /home

    this will move it and free up some space, if you are unsure please post the output of ls -Sal for me to see

  3. #3
    The way I made free space in the first was clearing up /var/log and even then I only got about 100 megs. ANy other idea's plz?

  4. $spacer_open
  5. #4
    Just Joined!
    Join Date
    Feb 2007
    Adelaide, Australia
    just while i sort out the command, check /tmp for large volumes of data

  6. #5
    Just Joined!
    Join Date
    Feb 2007
    Adelaide, Australia
    if you are logged in as root at the moment

    cd /
    find . -size 5M

    This will show you all the files that are larger than 5Mb...

    What program is being used to do the mailscanning? You may want to check its configuration files in /etc/ for storage directories for emails, quarantines ect..

  7. #6
    they are using mailscanner.
    Checking MailScanner daemons:
    MailScanner: [ OK ]
    incoming sendmail: [ OK ]
    outgoing sendmail: [ OK ]

  8. #7
    Just Joined!
    Join Date
    Feb 2007
    Adelaide, Australia
    cd /opt/MailScanner/var/quarantine
    du -hs

    if this is stupidly large

    rm -Rf * (make sure you haven't moved out of the /opt/MailScanner/var/quarantine directory

    If this isn't huge....

    cd /opt/MailScanner/
    du -hs

    let me know how large it is, it should be easily readable the size and may give you a hint to where the space has gone...

  9. #8
    I think I have found the reason it is losing all of its space.


    Is chewing up alot of space with its logs on each connection and network mornitioring. Quite a few gigs infact and that would explain why my space has been dissapearing quickly

  10. #9
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    I think the find approach was a good one; I would just add a couple options to it.

    # find / -xdev -size 2048k -exec du -k {} \; | sort -r > big-files
    -xdev keeps you in the / filesystem, which is where the problem is. The -exec statement makes the output easy to read.

    You can browse big-files when that's done.

    edit: Never mind. Too slow.

  11. #10
    Actually I still am not completely there. I wanted to know how to remove rrdtool the proper way so I dont mess anything up and am I able to delete the files with out killing a process?

    I think the process is this one:
    /usr/bin/ntop -i eth0 @/etc/ntop.conf -d --use-syslog

    so if anyone could shed light on my next step that would be fantastic.

    P.S. Thanks for the help so far.

Posting Permissions

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