Results 1 to 4 of 4

Thread: /var/log/ files are huge

  1. #1
    Join Date
    Sep 2008
    Location
    LA (i.e., Lower Alabama)
    Beans
    204
    Distro
    Ubuntu 12.04 Precise Pangolin

    /var/log/ files are huge

    Hi, all,

    Out of the blue today, Ubuntu warned me that I was critically short of space on my / drive.

    I examined the problem, and determined that a huge amount of disk space is being taken up by files in /var/log/

    The following files:
    Code:
    /var/log/messages.1
    /var/log/kern.log.1
    /var/log/daemon.log.1
    /var/log/messages
    /var/log/kern.log
    /var/log/daemon.log
    /var/log/syslog
    are all over 1 GB in size. The largest is 18 GB. Together, they total 48.3 GB.

    I restarted the system, forcing a fsck. No luck.

    Where do I go from here? What are these files? Why are they so huge? Can I get rid of them?

    Thanks!

  2. #2
    Join Date
    Sep 2008
    Location
    LA (i.e., Lower Alabama)
    Beans
    204
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: /var/log/ files are huge

    Having looked through these files, it appears to be all error messages from my printer. These error messages look like they are being generated at the rate of hundreds per second.

  3. #3
    Join Date
    Jun 2008
    Location
    California
    Beans
    154
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: /var/log/ files are huge

    You need to figure out what is going on with the printer, but in the meantime, you can use "logrotate" to keep your log files down to a smaller size. 18GB log files is a waste of space.

    man logrotate
    The config file is typically in /etc/logrotate.conf.

    Also, you could turn off the "cupsd" daemon which might help prevent the printer from writing all that stuff. You can use "sudo rm" if you want to get rid of those log files and that should be okay.

  4. #4
    Join Date
    Sep 2008
    Location
    LA (i.e., Lower Alabama)
    Beans
    204
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: /var/log/ files are huge

    OK, I forced log rotation with
    Code:
    logrotate -f /etc/logrotate.conf
    Then I went in and manually deleted the gargantuan files, now that they were archived. Don't know what that was about, and I still have no idea why my printer was spitting out error messages. But I have the immediate problem solved. Thanks!

Bookmarks

Posting Permissions

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