Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: tidb升级问题
[TiDB Usage Environment] Production Environment
[TiDB Version] v5.1.4
During the TiDB upgrade process, if you encounter an error that cannot be resolved temporarily, can you replace the bin directories of each component with the original version and restart the cluster? What changes are made during a TiDB upgrade?
Planning to upgrade the version from v5.1.4 to v6.5.2.
Check the official upgrade guide:
Also, why is it 6.5.2 instead of 6.5.5?
The previous upgrade was to version 6.5.2, as 6.5.5 was not available at that time. To maintain consistency, we only upgraded to 6.5.2.
I have upgraded before, but I never really understood what changes during the upgrade process. Visually, it just looks like the files in the bin directory are replaced.
It can be upgraded automatically. During the upgrade process, TiDB will automatically back up the installation package. You can also manually download and install the package, but that is a bit more troublesome.
It is not recommended to do this. If considering a rollback plan, it is best to set up a new version of the cluster and use TiCDC to synchronize data for traffic switching. This way, you can roll back.
Using this method, upgrading TiFlash from 5.1 to 6.5 and then directly replacing the TiFlash component might not work. It is recommended to set up two clusters with CDC synchronization for the upgrade if you have spare machines. If not, you should back up the data first in case you need to roll back, as it is safer to restore the data after rolling back.
I have upgraded a production cluster from 5.0.6 to 6.1.5 and then to 6.5.3, almost got into big trouble.
If the cluster data is not large, I suggest following what the previous guy said: create a new cluster, restore the data using BR, and then use CDC.
If the data is not large, make a backup in advance and schedule a downtime for the upgrade.
Indeed, migration and upgrade are relatively safe.
It is possible that data storage may change in some versions, not just the contents inside the bin.
No, although it looks like the bin file has been replaced, some logic and underlying storage structures have changed. It cannot be rolled back.
It’s better to migrate and upgrade.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.