/var/log/mysql directory (containing mysql-bin.*) has grown too large, at the rate of 1.3GB per day. As the harddisk capacity is only about 40GB (30GB usable), is there a way to retain these data for only 30 days?
Or can those files in /var/log/mysql be safely deleted without affecting the data needed for the graphs?
Thanks.
PS. This machine is used solely for Cacti.
Is it possible to specify a data retention period in Cacti?
Moderators: Developers, Moderators
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
these files are used by MySQL for binary logging, which you can disable : http://dev.mysql.com/doc/refman/5.0/en/binary-log.html
these files are used by MySQL for binary logging, which you can disable : http://dev.mysql.com/doc/refman/5.0/en/binary-log.html
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Thanks for the advice. However, I only manage to locate the relevant help in the command "RESET MASTER". It deletes all the binary logs. However, the change is not permanent.
This is not a Cacti question, but I would appreciate anyone could share the command to make the change permanent.
Thanks!
This is not a Cacti question, but I would appreciate anyone could share the command to make the change permanent.
Thanks!
fmangeant wrote:Hi
these files are used by MySQL for binary logging, which you can disable : http://dev.mysql.com/doc/refman/5.0/en/binary-log.html
Who is online
Users browsing this forum: No registered users and 0 guests