Open bertalanimre opened 9 years ago
Update: This came from the mariadb.log file
151123 17:37:09 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
151123 17:37:09 [Note] /usr/libexec/mysqld (mysqld 5.5.44-MariaDB) starting as process 3987 ...
151123 17:37:09 InnoDB: The InnoDB memory heap is disabled
151123 17:37:09 InnoDB: Mutexes and rw_locks use GCC atomic builtins
151123 17:37:09 InnoDB: Compressed tables use zlib 1.2.7
151123 17:37:09 InnoDB: Using Linux native AIO
151123 17:37:09 InnoDB: Initializing buffer pool, size = 128.0M
151123 17:37:09 InnoDB: Completed initialization of buffer pool
InnoDB: Error: log file ./ib_logfile0 is of different size 0 50331648 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!
InnoDB: Possible causes for this error:
(a) Incorrect log file is used or log file size is changed
(b) In case default size is used this log file is from 10.0
(c) Log file is corrupted or there was not enough disk space
In case (b) you need to set innodb_log_file_size = 48M
151123 17:37:09 [ERROR] Plugin 'InnoDB' init function returned error.
151123 17:37:09 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
151123 17:37:09 [Note] Plugin 'FEEDBACK' is disabled.
151123 17:37:09 [ERROR] Unknown/unsupported storage engine: InnoDB
151123 17:37:09 [ERROR] Aborting
151123 17:37:09 [Note] /usr/libexec/mysqld: Shutdown complete
151123 17:37:09 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
Found the issue:
InnoDB: Error: log file ./ib_logfile0 is of different size 0 50331648 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!
have to set the exact same number for the backup applications my.cnf file
$ vim /etc/my.cnf
#added
innodb_log_file_size=50331648
Now the server started.
I've edited your posts to review the format.
As discussed in Gitter, I should review how to support systemctl.
And besides, mariadb or percona-server while where at it. I think I'll let the user manage the stop/start of the database service, I'll think about it.
Ran into the same issue with xtrabackup/innobackupex in Centos 7. So this is not an issue with pyxtrabackup but rather an issue with xtrabackup not setting the log file size in the my.cnf file
Found out, while trying to restore a backup, that the script is not able to run. Most likely because the command called for stopping the mysql service is wrong. It should look like this: systemctl restart mariadb
After the change of command_executor.py at line 67
The backup seems to run fine:
HOWEVER: Somewhy this did not restart the mariadb service. If I try to start it manually it gives me the stranges error I've ever seen connected to mariadb: