LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-01-2011, 04:39 AM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Rep: Reputation: 30
ran out of disk space var


I installed sarg but the reports ran overnight and took up 100% of the space on my /var folder.
How can I run sarg in a different folder but have it accessible from the web?

[root www]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda5 4956284 2817148 1883304 60% /
/dev/sda3 4956316 1869980 2830504 40% /var
/dev/sda1 77749 23892 49843 33% /boot
tmpfs 475192 0 475192 0% /dev/shm
/dev/sda2 233345000 37952972 195392028 17% /var/spool/squid
[root www]#
 
Old 10-01-2011, 05:19 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,855

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
2.8GB is not enough? OK, create a directory where there's space, say /freedisk/sarg.
ln -s /freedisk/sarg /var
Save your output there with option "-o /var/sarg" when you start sarg.
If apache complains about accessing the directory, then you may need to add permission for /var/sarg in a conf file under /etc/httpd/conf.d/. Check /var/log/httpd/error_log.
 
Old 10-02-2011, 06:32 AM   #3
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by smallpond View Post
2.8GB is not enough? OK, create a directory where there's space, say /freedisk/sarg.
ln -s /freedisk/sarg /var
Save your output there with option "-o /var/sarg" when you start sarg.
If apache complains about accessing the directory, then you may need to add permission for /var/sarg in a conf file under /etc/httpd/conf.d/. Check /var/log/httpd/error_log.
The free disk is /dev/sda2 but if I create a folder there, won;t it mess with the already mounted folder /var/spool/squid?
 
Old 10-04-2011, 11:04 AM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,855

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by qwertyjjj View Post
The free disk is /dev/sda2 but if I create a folder there, won;t it mess with the already mounted folder /var/spool/squid?
If it's all used by squid then it is not free. Does squid need a 233GB cache?
 
Old 10-04-2011, 11:27 AM   #5
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
It can probably be less but if I change the partition, won't it mess with the existing cache using 17%?
TBH, it's been on 71% for a while now.
 
Old 10-06-2011, 08:08 AM   #6
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Won't changing the existing partition mess with the running squid service?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
host ran out of disk space, guest virtual disk got corrupt help please fedora.linux.64 Linux - Virtualization and Cloud 16 08-09-2010 06:04 PM
Ran out of disk space on / fof3 Linux - Newbie 5 12-17-2007 08:27 PM
bad compile -ran out of disk space juan18 Linux - Software 2 01-30-2005 12:32 PM
Ran out of disk space at the end of chapter 6!! DarkDrive Linux From Scratch 4 08-22-2003 05:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration