+ Post New Thread
Page 3 of 3 FirstFirst 123
Results 31 to 40 of 40
*nix Thread, Squid Proxy Server Keeps Stopping in Technical; Have deleted some files and made 7.5G of space working at the moment guess need to free some more space ...
  1. #31
    wellscs's Avatar
    Join Date
    Apr 2008
    Posts
    75
    Thank Post
    7
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Making a little progress

    Have deleted some files and made 7.5G of space
    working at the moment
    guess need to free some more space somehow
    then setup log rotation and will need help to check it is working

    WCSLOBSTER ~ # df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda1 71G 60G 7.5G 89% /
    varrun 1013M 288K 1013M 1% /var/run
    varlock 1013M 0 1013M 0% /var/lock
    udev 1013M 68K 1013M 1% /dev
    devshm 1013M 12K 1013M 1% /dev/shm
    lrm 1013M 38M 976M 4% /lib/modules/2.6.24-16-generic/volatile
    gvfs-fuse-daemon 71G 60G 7.5G 89% /root/.gvfs

  2. #32

    Join Date
    Oct 2008
    Location
    Hedge End, Southampton
    Posts
    56
    Thank Post
    1
    Thanked 10 Times in 10 Posts
    Rep Power
    13
    Check which other logs (or other) are using disk:
    Code:
    sudo du -sh /var/*
    From the result of that you can drill down and see which files are using the most disk.

  3. #33


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,462
    Thank Post
    866
    Thanked 845 Times in 667 Posts
    Rep Power
    195
    if you issue
    sudo -i
    (get you a "root shell")
    then
    echo "" >/var/log/squid/access.log
    that will zero the main log

  4. Thanks to tom_newton from:

    wellscs (17th March 2009)

  5. #34
    wellscs's Avatar
    Join Date
    Apr 2008
    Posts
    75
    Thank Post
    7
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Found a huge 40GB folder

    /var/www is full of logs from last November to 9th march this year can i just delete these or put them on an external hard disk?
    could i then with some help set something up to create the logs and then delete them after a certain time?


    WCSLOBSTER ~ # sudo du -sh /var/*
    6.7M /var/backups
    394M /var/cache
    4.0K /var/crash
    440M /var/lib
    4.0K /var/local
    0 /var/lock
    5.3G /var/log
    12K /var/mail
    4.0K /var/opt
    288K /var/run
    151M /var/spool
    8.0K /var/tmp
    8.0K /var/webdyne
    960K /var/webmin
    40G /var/www
    WCSLOBSTER ~ #

  6. #35

    Join Date
    Oct 2008
    Location
    Hedge End, Southampton
    Posts
    56
    Thank Post
    1
    Thanked 10 Times in 10 Posts
    Rep Power
    13
    You can certainly delete the old logs if you don't want to read them, but it looks like the majority of the space is being used up by your web content.

  7. Thanks to james_yale from:

    wellscs (17th March 2009)

  8. #36


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,630
    Thank Post
    275
    Thanked 777 Times in 604 Posts
    Rep Power
    223
    Quote Originally Posted by wellscs View Post
    /var/www is full of logs from last November to 9th march this year can i just delete these or put them on an external hard disk?
    could i then with some help set something up to create the logs and then delete them after a certain time?
    A) Check that the content in /var/www _really_ is squid-generated html logs and not web content being served
    B) If (as I suspect) they're prettified squid logs in html format, generated from your main squid logs, I'd delete the ones in /var/www (after double-checking that they are generated logs (open one in a text editor) to give you disk space, then compress your main squid logs and back up the compressed log.

    You can regenerate the html logs from the main squid log if necessary using sarg.

    If you're not sure, paste a few lines of the logs (anonymised if necessary) in this thread.
    Last edited by pete; 17th March 2009 at 12:16 PM.

  9. Thanks to pete from:

    wellscs (17th March 2009)

  10. #37
    wellscs's Avatar
    Join Date
    Apr 2008
    Posts
    75
    Thank Post
    7
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    still working 3hrs 24mins

    This is longest that it has stayed up for 6 days

    Thanks to all you good men that stuck with me and have been very patient, I guess you be hearing more from me

    looks like there willbe 50GB of free space soon, it was all html type files reporting each users sites visited. pages that were denied etc.

    how do i compress and backup logs.
    the access log in /var/log/squid/access.log is 0KB
    the access log in /var/log/squid-ntlm/access.log is 970MB

    I would also like to try log rotation to conserve space if this is possible

  11. #38
    ricki's Avatar
    Join Date
    Jul 2005
    Location
    uk
    Posts
    1,475
    Thank Post
    20
    Thanked 164 Times in 157 Posts
    Rep Power
    52
    HI

    The reason why we are getting the permissions error is because you are loggin in as a normal user you cannot do some of the command. To change system files you have 2 choices use sudo to pretend to be root, or activate and use root.

    Richard

  12. #39

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by wellscs View Post
    This is longest that it has stayed up for 6 days

    Thanks to all you good men that stuck with me and have been very patient, I guess you be hearing more from me
    Good to see you've had a change of heart - EduGeek isn't such a bad place after all huh

  13. #40
    wellscs's Avatar
    Join Date
    Apr 2008
    Posts
    75
    Thank Post
    7
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    uptime 5hrs 30 hooray can we try this now

    how do i compress and backup logs.
    the access log in /var/log/squid/access.log is 0KB
    the access log in /var/log/squid-ntlm/access.log is 970MB

    I would also like to try log rotation to conserve space if this is possible


SHARE:
+ Post New Thread
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Squid Upstream proxy
    By Lee_K_81 in forum *nix
    Replies: 14
    Last Post: 20th January 2009, 11:04 AM
  2. Replies: 19
    Last Post: 15th October 2008, 02:44 PM
  3. Replies: 8
    Last Post: 18th July 2008, 02:34 PM
  4. Squid Transparent Proxy.
    By Jackd in forum Network and Classroom Management
    Replies: 2
    Last Post: 25th July 2007, 06:54 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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