Bug #108063 | data volumes from previous mysql versions doesn't work with 8.0.30 | ||
---|---|---|---|
Submitted: | 3 Aug 2022 14:58 | Modified: | 4 Aug 2022 12:34 |
Reporter: | moshe yazdi | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 8.0 | OS: | Any (CentOS7.9) |
Assigned to: | CPU Architecture: | Any (Intel) | |
Tags: | 8.0.30, Clone, disk, MySQL, older, snapshots, versions |
[3 Aug 2022 14:58]
moshe yazdi
[3 Aug 2022 15:34]
Jakub Lopuszanski
Do not delete redo logs unless you are fine with loosing your data - the redo logs contain changes which were not yet applied to tablespace files! As the format of redo log files changed between 8.0.23 and 8.0.30 you can't boot MySQL 8.0.30 with non-empty redo log files created by 8.0.23. However, you can do it if they are logically empty, i.e. do not contain any changes which are not yet applied to tablespaces. For that to happen, you'd have to make sure that checkpoint LSN matches the last flushed lsn. There are some ways to achieve it, but simply doing "flush tables with read lock" as you do is not enough. One way would be to instead use the "flush tables..for export" https://dev.mysql.com/doc/refman/8.0/en/flush.html#flush-tables-for-export-with-list
[4 Aug 2022 7:59]
Jakub Lopuszanski
BTW. Why don't you use CLONE command? https://dev.mysql.com/doc/refman/8.0/en/clone-plugin.html
[4 Aug 2022 11:31]
MySQL Verification Team
Hi Mr. yazdi, Thank you for your bug report. You have received a lot of necessary information regarding your problems. Let us know if those resolve the issue or not ......
[4 Aug 2022 12:34]
MySQL Verification Team
Hi Mr. yazdi, After careful analysis, we have concluded that you have not used proper and optimal set of commands in your upgrade process. However, we have also agreed that our Manual is not clear enough on this issue. Verified as a documentation bug.