Gentoo Archives: gentoo-user

From: kashani <kashani-list@××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Decrapifying my system
Date: Sun, 17 Jul 2011 23:30:20
Message-Id: 4E23700C.6060908@badapple.net
In Reply to: Re: [gentoo-user] Decrapifying my system by Michael Sullivan
1 On 7/17/2011 4:18 PM, Michael Sullivan wrote:
2 > Does this make sense:
3 >
4 > camille mysql # du -h
5 > 572K ./mysql
6 > 8.0K ./test
7 > 239M ./mythconverg
8 > 128K ./vpopmail
9 > 152K ./myFantasy
10 > 120K ./pmadb
11 > 332K ./wikidb
12 > 36K ./mysql_cpp_data
13 > 592K ./forum
14 > 124K ./movies
15 > 84K ./myusers
16 > 4.4M ./mythconverg.bak
17 > 21G .
18 >
19 >
20 > I'm pretty sure those number don't add up to 21G. So why is it saying
21 > they do???
22
23 Because /var/lib/mysql contains 1GB bin log files which aren't in
24 /var/lib/mysql/mysql/ or any of the other dirs inside /var/lib/mysql/.
25
26 Add these two lines under the mysqld part of your my.cnf and restart
27 Mysql. That should take care of the problem and keep bin logs from using
28 all your space again.
29
30 [mysqld]
31 expire_logs_days = 10
32 max_binlog_size = 100M
33
34 kashani