In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
A problem description
Upgrade zabbix server and zabbix proxy to 3.2.1 today. First stop zabbix server, then upgrade zabbix proxy one by one, and then upgrade zabbix server. There are no errors in the upgrade of zabbix proxy and it can proceed smoothly. However, the following error was reported when upgrading zabbix server:
4250 required mandatory version 20161010 using configuration file: / opt/app/zabbix/conf/zabbix_server.conf 4250 required mandatory version 20161010 current database version 001506.980 query failed: [1091] Can't DROP 'history_log_2'; check that column/key exists [drop index history_log_2 on history_log] 4250 database upgrade failed 201610 database upgrade failed
I have done table partitioning on zabbix database before.
Second problem solving
Check zabbix problem feedback because zabbix 3.2 requires the drop history_log_2 index when upgrading, and if not, an error will be reported.
DROP TABLE history_log;DROP TABLE history_text CREATE TABLE `history_ log` (`id` BIGINT (20) UNSIGNED NOT NULL, `itemid` BIGINT (20) UNSIGNED NOT NULL, `clock` INT (11) NOT NULL DEFAULT '0mm, `timestamp` INT (11) NOT NULL DEFAULT' 0mm, `source`VARCHAR (64) NOT NULL DEFAULT''COLLATE' utf8_bin', `accounity` INT (11) NOT NULL DEFAULT '0mm, `value`TEXT NOT NULL COLLATE' utf8_bin', `logeventid` INT (11) NOT NULL DEFAULT '0mm, `ns`INT (11) NOT NULL DEFAULT' 0parentiy KEY (`id`), UNIQUE INDEX `history_log_ 2` (`itemid`, `id`) INDEX `history_log_ 1` (`itemid`, `clock`) COLLATE='utf8_bin'ENGINE=InnoDB CREATE TABLE `history_ text` (`id` BIGINT (20) UNSIGNED NOT NULL, `itemid` BIGINT (20) UNSIGNED NOT NULL, `clock` INT (11) NOT NULL DEFAULT '0mm, `timestamp` INT (11) NOT NULL DEFAULT' 0mm, `source`VARCHAR (64) NOT NULL DEFAULT''COLLATE' utf8_bin', `valuity` INT (11) NOT NULL DEFAULT '0mm, `value`TEXT NOT NULL COLLATE' utf8_bin', `logeventid` INT (11) NOT NULL DEFAULT '0mm, `ns`INT (11) NOT NULL DEFAULT' 0parentiy KEY (`id`), UNIQUE INDEX `history_text_ 2` (`itemid`, `id`) INDEX `history_text_ 1` (`itemid`, `clock`) COLLATE='utf8_bin'ENGINE=InnoDB
After the upgrade is complete, because history_text and history_log are recreated, the original partition script cannot partition the two tables directly
Manual partitioning is required before the script can be used
Http://john88wang.blog.51cto.com/2165294/1771557
Reference documentation:
Http://john88wang.blog.51cto.com/2165294/1771082
Https://zabbix.com/forum/showthread.php?p=189543
Https://support.zabbix.com/browse/ZBX-11203
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.