InnoDB Log File Size

Hilfe zu OTRS Problemen aller Art
Post Reply
oleole
Znuny advanced
Posts: 148
Joined: 08 Jun 2012, 10:19
Znuny Version: 4.0.x

InnoDB Log File Size

Post by oleole »

Huhu Community,

schaut mal was nach dem Update auf 4.1.6 mein Service Center ausspuckt:
inno.PNG

Wo und wie kann ich das erhöhen? hab schon diverse Versuche unternommen, jedoch erfolglos :?
You do not have the required permissions to view the files attached to this post.
Produktiv: OTRS 4.0.X | Ubuntu 12.04.2 | Apache2 | MySQL 5.5 | KIX4OTRS
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 »

Huhu :)

Vorgehen wäre:
1) DB sauber runterfahren
2) Die alten InnoDB-Logs wegsichern / umbennen / löschen
3) DB Config bearbeiten, für MySQL siehe auch hier:
https://dev.mysql.com/doc/refman/5.0/en ... ation.html
z.B.
innodb_log_file_size=WERT
4) DB hochfahren
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: InnoDB Log File Size

Post by jojo »

eine 4.1.6. gibt es nicht ;-)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
oleole
Znuny advanced
Posts: 148
Joined: 08 Jun 2012, 10:19
Znuny Version: 4.0.x

Re: InnoDB Log File Size

Post by oleole »

Ok, vielen Dank!

habe es gefixt :)
Produktiv: OTRS 4.0.X | Ubuntu 12.04.2 | Apache2 | MySQL 5.5 | KIX4OTRS
timmy80
Znuny newbie
Posts: 49
Joined: 18 Nov 2013, 17:37
Znuny Version: 4.0.5
Real Name: Timmy Lutz
Company: ERNI AG

Re: InnoDB Log File Size

Post by timmy80 »

Für alle die es sich einfach machen wollen und nicht erst einige Commands zusammen suchen wollen. Hier Step by Step

Stopping mysql
# service mysqld stop

Rename all logfiles to xyz_OLD
# find /var/lib/mysql -type f -name "ib_logfile?" -exec mv {} {}_OLD \;

Check the logfiles if this is renamed
# ls -la /var/lib/mysql/ib_logfile*
-rw-rw---- 1 mysql mysql 5242880 Apr 3 01:24 /var/lib/mysql/ib_logfile0_OLD
-rw-rw---- 1 mysql mysql 5242880 Jan 31 2010 /var/lib/mysql/ib_logfile1_OLD

Grep your my.cnf if there a parameter already set
# grep innodb_log_file_size /etc/my.cnf
You will see, nothing will displayed.

Open my.cnf in "etc" with notepad++ or similar
And add following parameter

innodb_log_file_size = 265M
Looks like:
[mysqld]
query_cache_size = 48M
max_allowed_packet = 48M
innodb_log_file_size = 256M

Run the command again
# grep innodb_log_file_size /etc/my.cnf

And you will see the grep will now show you a value.

# grep innodb_log_file_size /etc/my.cnf
innodb_log_file_size = 256M

Start mysql
#service mysqld start

Done
OTRS 4.0.7
OS: CentOS 6.6
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: InnoDB Log File Size

Post by Wolfgangf »

Mein Gott - jetzt schäme ich fast über meinen Guru Status ...
10 mal probiert - 10 x die MySQL nicht mehr hochgefahren
>find /var/lib/mysql -type f -name "ib_logfile?" -exec mv {} {}_OLD \
und jetzt gehts!
DANKE
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
Post Reply