[MDEV-18532] Upgrade from MariaDB 10.1.37 to MariaDB 10.2.21 fails with: [ERROR] InnoDB: Upgrade after a crash is not supported. This redo log was created before MariaDB 10.2.2, and it appears corrupted. Created: 2019-02-11 Updated: 2019-05-02 Resolved: 2019-04-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.2, 10.3, 10.4 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Tomas Mozes | Assignee: | Marko Mäkelä |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux Gentoo |
||
| Attachments: |
|
| Description |
|
MariaDB failed to start after upgrading from 10.1.37 to 10.2.21: 2019-02-11 7:18:59 139738772682560 [ERROR] InnoDB: Upgrade after a crash is not supported. This redo log was created before MariaDB 10.2.2, and it appears corrupted. Please follow the instructions at https://mariadb.com/kb/en/library/upgrading/ [mysqld] After removing ib_logfile* it started fine. |
| Comments |
| Comment by Elena Stepanova [ 2019-02-14 ] |
|
Thanks for the report. |
| Comment by Marko Mäkelä [ 2019-04-30 ] |
|
The innodb_log_checksum_algorithm was an XtraDB option, not InnoDB. I would rather not fix this. A simple workaround exists: If the earlier version was shut down successfully, you can manually delete the ib_logfile* and start MariaDB Server 10.2 or later. Similarly, the XtraDB 5.5 option innodb_fast_checksum will prevent any upgrade to later versions. The only remedy for that might be to use innochecksum from MariaDB 10.2 or MySQL 5.7 to recompute the page checksums in all data files. |
| Comment by Tomas Mozes [ 2019-05-02 ] |
|
I think it would be enough to document this in https://mariadb.com/kb/en/library/upgrading-from-mariadb-101-to-mariadb-102/ to avoid surprises. |