Hi,
I have problem with my zabbix 2.2.20 database (mysql). I't have now 70GB in tables, it's working slowly and housekeeping is deleting 3-4M items every 3 hours. I want to switch to postgres but first, I'm trying to decrease database size.
I tired to do it in those steps:
1. backup config data from database (I've been already been doing it by zabbix-backup script for backup).
2. import data into new schema
3. switch which schema is used by zabbix
4. migrate history data to other server and have zabbix instance, to see historic data like disk usage trends etc
5. Start thinking about switching to postgres, and zabbix update
At first it looked fine, there was no errors in server log, I've revived mails with warning, so triggers was working. But info on dashboard didn't update, and no info seams to be written into trends (no data was visible on graphs).
I switched back to old database, and I was working fine.
My main question are:
-how perform backup without hostory data? I looks that my backup method is not to0 good...
-what tables can by safely omitted when doing database dump?
In zabbix-backup script, those tables data in not backed-up:
acknowledges
alerts
auditlog
auditlog_details
events
history
history_log
history_str
history_str_sync
history_sync
history_text
history_uint
history_uint_sync
trends
trends_uint
I have problem with my zabbix 2.2.20 database (mysql). I't have now 70GB in tables, it's working slowly and housekeeping is deleting 3-4M items every 3 hours. I want to switch to postgres but first, I'm trying to decrease database size.
I tired to do it in those steps:
1. backup config data from database (I've been already been doing it by zabbix-backup script for backup).
2. import data into new schema
3. switch which schema is used by zabbix
4. migrate history data to other server and have zabbix instance, to see historic data like disk usage trends etc
5. Start thinking about switching to postgres, and zabbix update

At first it looked fine, there was no errors in server log, I've revived mails with warning, so triggers was working. But info on dashboard didn't update, and no info seams to be written into trends (no data was visible on graphs).
I switched back to old database, and I was working fine.
My main question are:
-how perform backup without hostory data? I looks that my backup method is not to0 good...
-what tables can by safely omitted when doing database dump?
In zabbix-backup script, those tables data in not backed-up:
acknowledges
alerts
auditlog
auditlog_details
events
history
history_log
history_str
history_str_sync
history_sync
history_text
history_uint
history_uint_sync
trends
trends_uint
Comment