Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Commit b0f20a1

Browse files
authored
Update Disaster Recovery.md
1 parent f287ec3 commit b0f20a1

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

Disaster Recovery.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22

33
In an event/disaster where Master Database Server can't be accessed, down, or deleted we need to promote a Slave Server into a Master Server to minimize down time
44

5+
In this step by step case, we have 3 Database Server. 1 Master(Server A) and 2 Slave(Server B and Server C). Server A is currently down and we want to promote Server B from Slave Server into Master Server
6+
7+
![image](https://user-images.githubusercontent.com/67664879/212128421-aba57700-a20d-4a48-bfad-f518fbe1eeaf.png)
8+
9+
510
## Step 1
6-
SSH into one of your Slave Server you want to promote into Master Server
11+
SSH into Server B
712
```
8-
ssh ubuntu@slave-server-ip
13+
ssh ubuntu@server-b-ip
914
```
1015

1116
## Step 2
@@ -41,8 +46,8 @@ SET read_only false;
4146
Your new master server is now ready
4247

4348
## Step 5(and so on is optional)
44-
If you have other slave server, you can point them to your new master server
45-
In your new Master Server, run this
49+
If want other slave server to still run replication, you can point them to your new master server
50+
In your new Master Server(Server B), run this
4651

4752
```
4853
SHOW MASTER STATUS;
@@ -60,9 +65,9 @@ Note down the `File`, `Position`, and your server IP
6065

6166
## Step 6
6267

63-
SSH into your other Slave Server
68+
SSH into your other Slave Server(Server C)
6469
```
65-
ssh ubuntu@other-slave-server-ip
70+
ssh ubuntu@server-c-ip
6671
```
6772

6873
## Step 7

0 commit comments

Comments
 (0)