Heyo,
I have a few questions for you.
Yesterday, i had to reboot my zabbix server.
I had the surprise to discover by default, InnoDB files are limited to 10Mb max, thats why i began to become crazy when i saw my 4Gb ibdata file resized to 10MB.
And of course, the crontab doing a mysqldump on the database had time to execute, generating me a 1kb SQL file. Good job!
So first question, i added this to my.cnf in order not to have ibdata files = 10MB
skip-innodb
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:20000M
innodb_log_group_home_dir = /var/lib/mysql/
innodb_log_arch_dir = /var/lib/mysql/
Can you please confirm me thats okay?
Second question, i was able to restore an old ibdata file, that i moved in /var/lib/mysql/ folder (&& chown/chgrp mysql).
But i still got errors coming from files in /var/lib/mysql/zabbix/*
I was told all that files were corrupted etc etc
In my crontab, do i have to include ALL this folder to be backedup?
I can suppose the /var/lib/mysql/zabbix/ folder contains all the database about Zabbix data, what's inside the ibdata file?
Last question, actually i can see my ibdata is 4.2Gb sized.
I've seen when i do a mysqldump, the SQL generated file is ~ 1Gb
After a dump, can i remove the ibdata file and import the .sql generated ?
(will it have impact on /var/lib/mysql/zabbix/ folder/files?)
Thanks !
Thib.
I have a few questions for you.
Yesterday, i had to reboot my zabbix server.
I had the surprise to discover by default, InnoDB files are limited to 10Mb max, thats why i began to become crazy when i saw my 4Gb ibdata file resized to 10MB.
And of course, the crontab doing a mysqldump on the database had time to execute, generating me a 1kb SQL file. Good job!
So first question, i added this to my.cnf in order not to have ibdata files = 10MB
skip-innodb
innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:20000M
innodb_log_group_home_dir = /var/lib/mysql/
innodb_log_arch_dir = /var/lib/mysql/
Can you please confirm me thats okay?
Second question, i was able to restore an old ibdata file, that i moved in /var/lib/mysql/ folder (&& chown/chgrp mysql).
But i still got errors coming from files in /var/lib/mysql/zabbix/*
I was told all that files were corrupted etc etc
In my crontab, do i have to include ALL this folder to be backedup?
I can suppose the /var/lib/mysql/zabbix/ folder contains all the database about Zabbix data, what's inside the ibdata file?
Last question, actually i can see my ibdata is 4.2Gb sized.
I've seen when i do a mysqldump, the SQL generated file is ~ 1Gb
After a dump, can i remove the ibdata file and import the .sql generated ?
(will it have impact on /var/lib/mysql/zabbix/ folder/files?)
Thanks !
Thib.

Comment