Modifying the Manager Routing Table
Scenario
After the FusionInsight Manager is installed, the system automatically creates two pieces of routing information on the active management node. Run the ip rule list command to view the routing information, as shown in the following example:
0: from all lookup local 32764: from all to 10.10.100.100 lookup ntp_rt #FusionInsight Manager NTP routing information created by the system. The information is not displayed when no external NTP clock source is configured. 32765: from 192.168.0.117 lookup om_rt #OM route information created on FusionInsight Manager 32766: from all lookup main 32767: from all lookup default
If the external NTP server has not been configured, only the OM routing information om_rt will be created.
When the routing information created by the FusionInsight Manager system conflicts with the routing information of the enterprise, use the autoroute.sh tool to disable or enable routes created by FusionInsight Manager.
Impact on the System
After the routing information created by the FusionInsight Manager system is disabled and before the new routing information is set, FusionInsight Manager cannot be accessed but operating of the cluster will not be affected.
Prerequisites
The Manager has already been installed.
The information about the WS floating IP route to be created has already obtained.
Disable the routing information created by the system.
- Log in to the active management node as user omm. Run the following commands to disable the routing information created by the system:
cd ${BIGDATA_HOME}/om-server/om/sbin
./autoroute.sh disable
Deactivating Route. Route operation (disable) successful.
- Run the following command to view the execution result:
ip rule list
0: from all lookup local 32766: from all lookup main 32767: from all lookup default
- Run the following command and enter the password of user root to switch to user root:
su - root
- Run the following commands to manually create WS floating IP address routing information:
ip route add WS floating IP address Network segment number/WS floating IP address subnet mask scope link src WS floating IP address dev WS floating IP address NIC table om_rt
ip route add default via WS floating IP address gateway dev WS floating IP address NIC table om_rt
ip rule add from WS floating IP address table om_rt
For example,
ip route add 192.168.0.0/255.255.255.0 scope link src 192.168.0.117 dev eth0:ws table om_rt
ip route add default via 192.168.0.254 dev eth0:ws table om_rt
ip rule add from 192.168.0.117 table om_rt
If the IP address mode of the current network is IPv6, run the ip -6 route add command.
- Run the following commands to manually create NTP service routing information (Skip this step when no external NTP clock source is configured.):
ip route add default via NtpIP address gateway dev NIC of the local host IP address table ntp_rt
ip rule add to NTP IP address table ntp_rt
NIC of the local host IP address indicates the NIC that can interwork with the network segment where the NTP server is located.
For example,
ip route add default via 10.10.100.254 dev eth0 table ntp_rt
ip rule add to 10.10.100.100 table ntp_rt
- Run the following command to view the execution result. For example, if routing information of which the routing table names are om_rt and ntp_rt is generated, the operation is successful.
ip rule list
0: from all lookup local 32764: from all to 10.10.100.100 lookup ntp_rt #The information is not displayed when no external NTP clock source is configured. 32765: from 192.168.0.117 lookup om_rt 32766: from all lookup main 32767: from all lookup default
Enable the routing information created by the system.
- Log in to the active management node as user omm.
- Run the following commands to enable the routing information created by the system:
cd ${BIGDATA_HOME}/om-server/om/sbin
./autoroute.sh enable
Activating Route. Route operation (enable) successful.
- Run the following command to view the execution result. For example, if routing information of which the routing table names are ntp_rt and om_rt is generated, the operation is successful.
ip rule list
0: from all lookup local 32764: from all to 10.10.100.100 lookup ntp_rt #The information is not displayed when no external NTP clock source is configured. 32765: from 192.168.0.117 lookup om_rt 32766: from all lookup main 32767: from all lookup default
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot