Hi everyone,
I hope you're all doing well. I'm facing an issue with our database.
Here's the situation:
Recently, our database encountered a crash due to being full, and as a result, we lost some data. Specifically, the partitioned table "data_bin" was inadvertently deleted during the crash. Now, I'm trying to repartition the table, but I'm encountering an error stating that a partition already exists.
-bash-4.2# /bin/php /usr/share/centreon/bin/centreon-partitioning.php -m data_bin
[Mon, 11 Dec 23 17:31:23 +0100] PARTITIONING STARTED
[Mon, 11 Dec 23 17:31:23 +0100][migrate] Renaming table centreon_storage.data_bin TO centreon_storage.data_bin_old
[Mon, 11 Dec 23 17:31:23 +0100][migrate] Creating parts for new table centreon_storage.data_bin
[Mon, 11 Dec 23 17:31:23 +0100] Error : Cannot create table centreon_storage.data_bin with partitions, SQLSTATE[HY000]: General error: 1813 Tablespace for table '`centreon_storage`.`data_bin` /* Partition `p20221211` */' exists. Please DISCARD the tablespace before IMPORT
[Mon, 11 Dec 23 17:31:23 +0100] PARTITIONING EXITED
I have tried various approaches to resolve this issue, but so far, I haven't been successful. I'm reaching out to see if anyone has experienced a similar problem or has any suggestions on how to recover the partitioned table and get it working properly again.
Thank you in advance for your help!