Mysql RDS reboot with failover

0

Hello,

Our db instance was multi-az. Seems the db itself got corrupted judging by the logs available. Instance db identifier is "campayn-production-ca".

RDS instance got stuck into "rebooting" state. We can't reboot with failover when reboot is not available or anything else regarding this instance.

Please advice how to force second instance. Thank you!

3 Answers
0

Hello there is already an article in repost, Please checking information here https://repost.aws/knowledge-center/rds-mysql-stuck-rebooting

Additional Information from Side,

Try Force Failover:

aws rds reboot-db-instance --db-instance-identifier campayn-production-ca --force-failover

Data Loss: Forced failover might lead to some data loss from the most recent transactions. Recovery Planning: After failover, carefully examine the state of the new primary (formerly the secondary) to determine if any data recovery steps are needed from the corrupted instance.

Another Alternatives:

  • Create New instance point in restore with name campayn-production-ca-new
  • Rename existing campayn-production to campayn-production-old
  • change the new db create with name campayn-production so this instance will be come NEW production.
profile picture
GK
answered 12 days ago
profile pictureAWS
EXPERT
reviewed 12 days ago
0

Hello ,

Alternative is to restore the Automated backup or use the last good snapshot ,

please see

Amazon RDS Backup and Restore https://aws.amazon.com/rds/features/backup/

Restoring from a DB snapshot https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_RestoreFromSnapshot.html

AWS
answered 12 days ago
0

Hello,

When I tried to use cli force command I got:

An error occurred (InvalidDBInstanceState) when calling the RebootDBInstance operation: Can only reboot db instances with state in: available, storage-optimization, incompatible-credentials, incompatible-parameters. Instance campayn-production-ca has state: rebooting.

Thank you

answered 12 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions