Results 1 to 3 of 3

Thread: Hard Disk get full in time with log files or so

  1. #1

    Hard Disk get full in time with log files or so

    Please am new to linux, If i do install linux on my network and configure squid inclusive and mrtg to monitor my Network CPU resource including Hard Disk, my Hard Disk get full in time with proberly log file and cache file. I have to reformat and reinstall linux always, I use 20G I even tried 40G Hard Disk and at logrotate i set it to rotate once a week and also the logrotate for squid log file still my Hard Disk get full in time.
    Please I need help on how to handle this so that my logs and other files delette thierselves without /var space in my harddisk geting increase to ifinity.

    Thanks
    Goodnews
    Last edited by Goodnews; 02-24-2006 at 06:13 AM.

  2. #2
    Advisor Outlaw's Avatar
    Join Date
    May 2001
    Location
    Clifton Park, NY
    Posts
    630
    you may want to increase the rotate frequency and if not done already, set the compress option

    Code:
    # see "man logrotate" for details
    # rotate log files weekly
    weekly
    # keep 4 weeks worth of backlogs
    rotate 4
    # create new (empty) log files after rotating old ones
    create
    # uncomment this if you want your log files compressed
    #compress
    I also wonder if mrtg is filling up your /var.

    Post your partition layout here.

  3. #3
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935
    Man, you'd be crazy if you log everything with MRTG. Even for a few hours of logging, it fills up my disks pretty quick. Other than that, I'd second what Outlaw said.
    LinuxVillage - The truely community run Linux/Floss forum !

    No IT BS !!

Similar Threads

  1. Hard disk is not getting detected
    By invisibleman12 in forum Linux - General Topics
    Replies: 7
    Last Post: 08-26-2007, 06:21 AM
  2. How Copy Hard disk to Hard disk in Linux
    By pralhad in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 11-08-2006, 01:01 PM
  3. DIY hard disk recovery
    By demian in forum Linux - Hardware, Networking & Security
    Replies: 10
    Last Post: 04-18-2004, 04:37 PM
  4. Linus Moves To OSDL, Will Work On Kernel Full-Time
    By trickster in forum General Chat
    Replies: 2
    Last Post: 06-20-2003, 02:20 AM
  5. Hard disk space
    By trickster in forum Linux - Hardware, Networking & Security
    Replies: 14
    Last Post: 09-20-2002, 03:00 PM

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
  •