InnoDB Log File Size [Solved]

Moderator: crythias

Locked
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

InnoDB Log File Size [Solved]

Post by spiderpig »

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
Last edited by spiderpig on 18 Dec 2015, 00:58, edited 1 time in total.
root
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

Post by root »

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 ?
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Re: InnoDB Log File Size

Post by spiderpig »

ooo, after that I can not connect to the database.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: InnoDB Log File Size

Post by RStraub »

What does the log say when you startup the db ?
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
root
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

Post by root »

spiderpig wrote:ooo, after that I can not connect to the database.
Which files did you remove?
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 ?
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Re: InnoDB Log File Size

Post by spiderpig »

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?
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: InnoDB Log File Size

Post by RStraub »

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
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Re: InnoDB Log File Size

Post by spiderpig »

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.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: InnoDB Log File Size

Post by RStraub »

Then stop the process, delete the logfile, start the DB and tail the log.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: InnoDB Log File Size

Post by EXG133 »

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.
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Re: InnoDB Log File Size

Post by spiderpig »

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?
Locked