Current log when mysql start to boot from the first time :
InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes
InnoDB: than specified in the .cnf file 0 268435456 bytes!
Run steps :
[...]
Info: /Stage[main]/Mysql::Config/File[/etc/mysql/my.cnf]: Filebucketed /etc/mysql/my.cnf to puppet with sum 1452aab3bef03ec49095a3229fca9f6c
Notice: /Stage[main]/Mysql::Config/File[/etc/mysql/my.cnf]/content: content changed '{md5}1452aab3bef03ec49095a3229fca9f6c' to '{md5}a33fae5c74d28e2ed3c0fd351583cc67'
Info: /Stage[main]/Mysql::Config/File[/etc/mysql/my.cnf]: Scheduling refresh of Exec[mysqld-restart]
Notice: /Stage[main]/Cloud::Database::Sql/Mysql::Server::Config[basic_config]/File[/etc/mysql/conf.d/basic_config.cnf]/ensure: defined content as '{md5}70f11e839260b7866e64cf90544e4fa6'
Notice: /Stage[main]/Mysql::Config/Exec[set_mysql_rootpw]/returns: executed successfully
Info: /Stage[main]/Mysql::Config/Exec[set_mysql_rootpw]: Scheduling refresh of Exec[mysqld-restart]
[...]
What happens :
The mysql process try to restart (event triggered by a previous change) before the exec{'clean-mysql-binlog'} is run,
so the ib_logfile* are not removed and are still 5M when they are specified 256M in the mysql configuration file.
Hence the mysql process refusing to start.
Solution :
The following commit is a WIP, mainly to try to explain a patch idea.
We should make sure that if the ib_logfile does not match the configuration server should be stopped, files removed and server restarted.
close #9