What Can I Do If the Quorum Server Goes Offline After an IP Port in Use Is Down?
Symptom
The quorum server has two IP ports that work in active/standby mode and are on the same network segment. After the port in use is down, the quorum server goes offline.
Answer
By default, a quorum server does not have policy routes. It can only receive and send data via one IP port although it has two IP ports on the same network segment. As a result, after the port in use goes down, the other port cannot take over services.
Perform the following operations:
- Create a policy routing table for the quorum server.
In the CLI of the quorum server, run the ip route add command in any directory.
XXX@Linux:~# ip route add 192.168.0.0/16 dev eth5 table 20 XXX@Linux:~# ip route add 192.168.0.0/16 dev eth6 table 21
In the preceding example:
- The IP addresses in the 192.168.0.0/16 segment receive and send data via the eth5 port. The routing table is named table 20.
- The IP addresses in the 192.168.0.0/16 segment receive and send data via the eth6 port. The routing table is named table 21.
- Add the active and standby IP ports on the quorum server to the policy routing tables.
In the CLI of the quorum server, run the ip rule add command in any directory.
XXX@Linux:~# ip rule add from 192.168.1.5 table 20 priority XXX XXX@Linux:~# ip rule add from 192.168.1.6 table 21 priority XXX
In the preceding example:
- The active port whose IP address is 192.168.1.5 is added to table 20.
- The standby port whose IP address is 192.168.1.6 is added to table 21.
- The priority XXX of the active and standby IP ports must be the same.
- If either IP port is down, the policy routing table must be configured for it again.
- Check whether the policy routes are configured successfully.
In the CLI of the quorum server, run the ip rule command under any directory. If the following information is returned, the configuration is successful.
XXX@Linux:~# ip rule 100: from 192.168.1.5 lookup 20 100: from 192.168.1.6 lookup 21
In the preceding example:
- 100 is the value of priority.
- 20 and 21 indicate table 20 and table 21, respectively.