I need to create a special archive zabbix server. For these purposes I need to backup old partitions on live zabbix and restore them on archive zabbix server. I use simple Mysql 5.1.61
I've found a partition backup utility xtrabackup:
And successfully backed up partitions for one month, but I was not able to restore them to clear database.
What I tried to do:
- mysqldump --all-databases --no-data > db.sql
- altered db.sql and removed unused partitions
- restored db.sql to archive mysql server
- stopped mysqld
- copied files generated by xtrabackup to /var/lib/mysql/zabbix_database
- started mysqld
- tried to execute select * from history_log limit 10; and got "mysql was lost" with "segfault" in mysqld.log
What I did wrong?
I've found a partition backup utility xtrabackup:
And successfully backed up partitions for one month, but I was not able to restore them to clear database.
What I tried to do:
- mysqldump --all-databases --no-data > db.sql
- altered db.sql and removed unused partitions
- restored db.sql to archive mysql server
- stopped mysqld
- copied files generated by xtrabackup to /var/lib/mysql/zabbix_database
- started mysqld
- tried to execute select * from history_log limit 10; and got "mysql was lost" with "segfault" in mysqld.log
What I did wrong?
Comment