InnoDB Log File Size [Solved]
Moderator: crythias
InnoDB Log File Size [Solved]
Hi,
after upgrade to 5.0.3 I'm getting this flag in the system log
"InnoDB Log File Size (5 MB)
The setting innodb_log_file_size must be at least 256 MB"
Is it enough to add this line to my.cnf and restart the mysql?
innodb_log_file_size = 256M
after upgrade to 5.0.3 I'm getting this flag in the system log
"InnoDB Log File Size (5 MB)
The setting innodb_log_file_size must be at least 256 MB"
Is it enough to add this line to my.cnf and restart the mysql?
innodb_log_file_size = 256M
Last edited by spiderpig on 18 Dec 2015, 00:58, edited 1 time in total.
-
- Administrator
- Posts: 4253
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: InnoDB Log File Size
You have to remove the existing InnoDB logfiles and then restart mysql.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Re: InnoDB Log File Size
ooo, after that I can not connect to the database.
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: InnoDB Log File Size
What does the log say when you startup the db ?
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
-
- Administrator
- Posts: 4253
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: InnoDB Log File Size
Which files did you remove?spiderpig wrote:ooo, after that I can not connect to the database.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Re: InnoDB Log File Size
I stopped the mysqld service,then I insert the "innodb_log_file_size=256M" to my.cnf.
deleted ib_logdile0 and ib_logfile_1 and then started the mysqld service.
what am I doing wrong here?
deleted ib_logdile0 and ib_logfile_1 and then started the mysqld service.
what am I doing wrong here?
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: InnoDB Log File Size
This looks good but then again - did you take a look into the mysql log?
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Re: InnoDB Log File Size
the log in now about 700 mb and is increasing by every second, and I cant open the file. Fortunately this was only a test test server.
i will clone the live environment again and try this again.
i will clone the live environment again and try this again.
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: InnoDB Log File Size
Then stop the process, delete the logfile, start the DB and tail the log.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Re: InnoDB Log File Size
You may need an additional step depending on the version of your MySQL:
http://dev.mysql.com/doc/refman/5.6/en/ ... ation.html
Also make sure you put the setting in the correct part of your my.cnf, it should be in the [mysqld] part
You also *need* to:
1) stop the service (with the extra setting if you have an old MySQL)
2) optional if your version is older: move the logfiles somewhere
3) modify your my.cnf
4) start your service
No restarting.
http://dev.mysql.com/doc/refman/5.6/en/ ... ation.html
Also make sure you put the setting in the correct part of your my.cnf, it should be in the [mysqld] part
You also *need* to:
1) stop the service (with the extra setting if you have an old MySQL)
2) optional if your version is older: move the logfiles somewhere
3) modify your my.cnf
4) start your service
No restarting.
Re: InnoDB Log File Size
I followed that steps and it worked for me on the test environment 
OTRS is more responsive after I increase the log file.
do you recommend to change it to 256 or 512?

OTRS is more responsive after I increase the log file.
do you recommend to change it to 256 or 512?