Filling my /var on Freebsd 5.3

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
NEO^AMiGA
Posts: 3
Joined: Mon May 02, 2005 4:59 pm

Filling my /var on Freebsd 5.3

Post by NEO^AMiGA »

Heya!

First of all.-.. thnx for a great program.

Ran into som problem tonight. My /var/ got filled. =/ What does cacti keep there and does it grow over time or does it stick to a resonable size? Maybe my problem is not only cacti-related but this happend after running if for a couple of days so it's where i'll start to look for errors.

/var/db >du -hd1
8.0K ./entropy
2.0K ./ipf
4.7M ./pkg
18K ./ports
14M ./sup
26K ./portaudit
33M ./mysql
54M .

/var/db/mysql >ll
total 32872
drwx------ 2 mysql mysql 4096 May 2 23:55 cacti
-rw-rw---- 1 mysql mysql 25088 Apr 29 03:19 ib_arch_log_0000000000
-rw-rw---- 1 mysql mysql 5242880 Apr 29 03:25 ib_logfile0
-rw-rw---- 1 mysql mysql 5242880 Apr 29 03:19 ib_logfile1
-rw-rw---- 1 mysql mysql 10485760 Apr 29 03:25 ibdata1
drwx------ 2 mysql mysql 512 Apr 29 03:19 mysql
drwx------ 2 mysql mysql 512 Apr 29 03:19 test
-rw-rw---- 1 mysql mysql 12567368 May 3 00:10 fakehost-bin.001
-rw-rw---- 1 mysql mysql 23 Apr 29 03:25 fakehost-bin.index
-rw-rw---- 1 mysql mysql 1248 Apr 29 03:25 fakehost.xxx.org.err
-rw-rw---- 1 mysql mysql 6 Apr 29 03:25 fakehost.xxx.org.pid

/var/db/sup/ports-all >ll
total 14416
-rw-r--r-- 1 root wheel 14741549 Apr 29 00:27 checkouts.cvs:.

/var/spool >du -hd1
2.0K ./lock
2.0K ./lpd
2.0K ./mqueue
2.0K ./opielocks
4.0K ./output
32M ./clientmqueue
32M .

Where /clientmqueue is filled with files like this:
-rw-rw---- 1 smmsp smmsp 972 May 2 03:06 qfj42162H8041753
-rw-rw---- 1 smmsp smmsp 972 May 2 03:06 qfj42162H9041753
-rw-rw---- 1 smmsp smmsp 926 May 2 03:06 qfj42162HA041753
-rw-rw---- 1 smmsp smmsp 713 May 2 03:06 qfj42162Ip041707
-rw-rw---- 1 smmsp smmsp 710 May 2 03:06 qfj42162ne041751
-rw-rw---- 1 smmsp smmsp 0 May 2 23:01 qfj42L12HE073334
-rw-rw---- 1 smmsp smmsp 897 May 3 00:00 qfj42M030v075593

Does this make sense to someone here? I'm kinda lost at the moment and if you need more info from me, just ask. Also... When I ran out of diskpace I got a "hole" in all my graphs, is that fixable?
/NEO
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Don't know about you client queue. But turn on binary loggin in your mysql server conf. /etc/my.cnf
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
NEO^AMiGA
Posts: 3
Joined: Mon May 02, 2005 4:59 pm

Post by NEO^AMiGA »

rony wrote:Don't know about you client queue. But turn on binary loggin in your mysql server conf. /etc/my.cnf
This is already in that conf:

# Replication Master Server (default)
# binary logging is required for replication
log-bin

Okay? OR should it look different... Soon my var is full again! =(((( And I have no idea what of those stuffs I can delete.
/NEO
NEO^AMiGA
Posts: 3
Joined: Mon May 02, 2005 4:59 pm

Post by NEO^AMiGA »

The spool/clientmqueue was a minconfigured mail-thingy. And after a fix of that and reboot i have some space left. But still wonder about that /db one...
/NEO
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

If you are not using MySQL replication, you probably want to turn binary logging _off_, not on.

Or you can manually clean out the bin files by logging into mysql and doing:

RESET MASTER;
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest