First time I’ve heard of the deletion of centreon_storage.logs (and I’ve done a lot of upgrade to the 21.10 version) 😅
Well, let’s recreate that table :
CREATE TABLE centreon_storage.`logs` (
`log_id` bigint(20) NOT NULL AUTO_INCREMENT,
`ctime` int(11) DEFAULT NULL,
`host_id` int(11) DEFAULT NULL,
`host_name` varchar(255) DEFAULT NULL,
`instance_name` varchar(255) NOT NULL,
`issue_id` int(11) DEFAULT NULL,
`msg_type` tinyint(4) DEFAULT NULL,
`notification_cmd` varchar(255) DEFAULT NULL,
`notification_contact` varchar(255) DEFAULT NULL,
`output` text DEFAULT NULL,
`retry` int(11) DEFAULT NULL,
`service_description` varchar(255) DEFAULT NULL,
`service_id` int(11) DEFAULT NULL,
`status` tinyint(4) DEFAULT NULL,
`type` smallint(6) DEFAULT NULL,
KEY `log_id` (`log_id`),
KEY `host_name` (`host_name`(64)),
KEY `service_description` (`service_description`(64)),
KEY `status` (`status`),
KEY `instance_name` (`instance_name`),
KEY `ctime` (`ctime`),
KEY `rq1` (`host_id`,`service_id`,`msg_type`,`status`,`ctime`),
KEY `rq2` (`host_id`,`msg_type`,`status`,`ctime`)
) ENGINE=InnoDB AUTO_INCREMENT=57759 DEFAULT CHARSET=utf8
Then, let’s manually execute the database partioning :
/usr/bin/php /usr/share/centreon/cron/centreon-partitioning.php -m logs
Finally, restart the cbd service.