Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
279 views
in Technique[技术] by (71.8m points)

mysql - How to save data from a crashed Cloud SQL instance without data loss

My Cloud SQL instance(MySQL) with High Availability enabled is totally down now - I can't connect into MySQL service, mysqldump, Export and Clone on the console are all down, even the Stop or Restart button response nothing but error messages.

Is there any solution to save my data without data loss? If I restore instance from the last backup, it will result a 12 hours data loss, disaster.

I considered "point-in-time recovery", but the question is how to locate the binary log filename and recover position if I can't enter into MySQL.

the error log from the crashed instance:

2021-01-26 19:03:29.613 CST
2021-01-26T11:03:29.612303Z 0 [ERROR] InnoDB: Invalid redo log header checksum.
Error
2021-01-26 19:03:29.613 CST
2021-01-26T11:03:29.612315Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
Error
2021-01-26 19:03:30.213 CST
2021-01-26T11:03:30.213169Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
Error
2021-01-26 19:03:30.214 CST
2021-01-26T11:03:30.214078Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
Error
2021-01-26 19:03:30.214 CST
2021-01-26T11:03:30.214456Z 0 [ERROR] Failed to initialize builtin plugins.
question from:https://stackoverflow.com/questions/65901261/how-to-save-data-from-a-crashed-cloud-sql-instance-without-data-loss

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Instances configured with High Availability should fail over to the secondary instance in a matter of minutes. While this operation is taking place is not possible to perform exports or other operations.

If the failover took 4 hour you may be eligible for a credit adjustment according to the Cloud SQL SLA. I would suggest to open support ticket if you would like to explore such path.

Lastly, I would not advise to use the legacy HA configuration as it won't be available anymore past Q1 2021 as mentioned here.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...