CN106909322B - Routing method and device for supporting storage disaster recovery in virtualization system - Google Patents

Routing method and device for supporting storage disaster recovery in virtualization system Download PDF

Info

Publication number
CN106909322B
CN106909322B CN201710108382.3A CN201710108382A CN106909322B CN 106909322 B CN106909322 B CN 106909322B CN 201710108382 A CN201710108382 A CN 201710108382A CN 106909322 B CN106909322 B CN 106909322B
Authority
CN
China
Prior art keywords
route
data network
policy
network port
port group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710108382.3A
Other languages
Chinese (zh)
Other versions
CN106909322A (en
Inventor
徐国振
王延家
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201710108382.3A priority Critical patent/CN106909322B/en
Publication of CN106909322A publication Critical patent/CN106909322A/en
Application granted granted Critical
Publication of CN106909322B publication Critical patent/CN106909322B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0712Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a virtual computing platform, e.g. logically partitioned systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/301Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is a virtual computing platform, e.g. logically partitioned systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0635Configuration or reconfiguration of storage systems by changing the path, e.g. traffic rerouting, path reconfiguration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

Abstract

The embodiment of the invention provides a routing method and a device for supporting storage disaster recovery in a virtualization system, wherein the method comprises the following steps: constructing a plurality of strategy routes from a plurality of data network port groups to a target storage, wherein the later strategy route is constructed, the higher the priority is, and one data network port group corresponds to one strategy route to the target storage; accessing the target storage by using a link corresponding to the policy route with the highest priority in the plurality of policy routes; if the link supported by the policy route with the highest priority is detected to have a fault, deleting the policy route with the highest priority from the plurality of policy routes, and taking the policy route with the second best priority into effect; among the multiple strategy routes, the priority of the second-priority strategy route is only next to the strategy route with the highest priority; and when the policy route with the highest priority is deleted, accessing the target storage by using the link corresponding to the secondary priority policy route. The embodiment of the invention can improve the disaster recovery capability of the virtualization system using the storage.

Description

Routing method and device for supporting storage disaster recovery in virtualization system
Technical Field
The invention relates to the technical field of virtualization systems, in particular to a routing method and a routing device for supporting storage disaster recovery in a virtualization system.
Background
A server virtualization system (hereinafter referred to as a virtualization system) refers to a system in which physical resources of a server are abstracted into logical resources, and one server is changed into a system constructed by a plurality of virtual servers isolated from each other, and the virtualization system can improve the utilization rate of resources, simplify system management, and achieve server integration, and is typically a virtualization system such as the cloud server virtualization system (InCloud Sphere).
The improvement of the disaster recovery capability of the storage used by the virtualization system is of great significance to the stable operation of the virtualization system, and a problem faced by the improvement of the disaster recovery capability of the storage used by the existing virtualization system is how to guarantee the access of the host to the storage when a problem occurs to a certain data network port group of the link storage.
Disclosure of Invention
In view of this, embodiments of the present invention provide a routing method and apparatus for supporting storage disaster recovery in a virtualization system, so as to ensure that a host accesses a storage and improve the disaster recovery capability of the virtualization system using the storage when a problem occurs in a certain data network port group linked to the storage.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a routing method for supporting storage disaster recovery in a virtualization system comprises the following steps:
establishing a plurality of strategy routes from a plurality of data network port groups to a target storage, determining the priority of each strategy route according to the sequence of the strategy route establishment, and establishing a later strategy route with higher priority; wherein, one data network port group corresponds to a strategy route to the target storage;
accessing the target storage by using a link corresponding to the policy route with the highest priority in the policy routes;
if the link supported by the policy route with the highest priority is detected to be failed, deleting the policy route with the highest priority from the plurality of policy routes and enabling the policy route with the second priority to function; wherein, among the plurality of policy routes, the second priority policy route is second in priority only to the policy route with the highest priority;
and after the policy route with the highest priority is deleted, accessing the target storage by using the link corresponding to the secondary priority policy route.
Optionally, the constructing multiple policy routes from multiple data network port groups to the target storage includes:
and respectively constructing strategy routes from the corresponding data network port group to a target storage in the routing tables corresponding to the data network port groups.
Optionally, the detecting that the link supported by the policy route with the highest priority has a failure includes:
and detecting that the link supported by the policy route with the highest priority at present fails in a disk query mode.
Optionally, the respectively constructing policy routes from the corresponding data network port group to the target storage in the routing table corresponding to each data network port group includes:
if the data network port group and the target storage are in the same network segment, for each data network port group, clearing the initial routing table corresponding to the data network port group, adding the route of the flow of the host transmitted through the data network port group into the cleared routing table, and adding the data network port group to the IP strategy of the target storage for the routing table.
Optionally, the respectively constructing policy routes from the corresponding data network port group to the target storage in the routing table corresponding to each data network port group includes:
if the data network port group and the target storage are in different network segments, clearing an initial routing table corresponding to the data network port group for each data network port group, creating a default route of the data network port group in the cleared routing table, wherein the default route is used for accessing a cross-network segment, adding a route transmitted by the flow of the host through the data network port group, and then adding the data network port group to the IP strategy of the target storage for the routing table.
An embodiment of the present invention further provides a routing device for supporting disaster recovery in a virtualization system, including:
the strategy route construction module is used for constructing a plurality of strategy routes from a plurality of data network port groups to a target storage, determining the priority of each strategy route according to the sequence of the construction of the strategy routes, and constructing the later strategy route with higher priority; wherein, one data network port group corresponds to a strategy route to the target storage;
a high priority policy action module for accessing the target storage with a link corresponding to a policy route with a highest priority among the plurality of policy routes;
a second priority policy validation module, configured to delete the policy route with the highest priority from the multiple policy routes and enable the second priority policy route to function if it is detected that a link supported by the policy route with the highest priority fails; wherein, among the plurality of policy routes, the second priority policy route is second in priority only to the policy route with the highest priority;
and the secondary priority policy action module is used for accessing the target storage by using a link corresponding to the secondary priority policy route after the policy route with the highest priority is deleted.
Optionally, the policy routing building module is configured to build a plurality of policy routes from a plurality of data network port groups to a target storage, and specifically includes:
and setting corresponding routing tables for each data network port group, wherein one data network port group corresponds to one routing table, and respectively constructing a route from the corresponding data network port group to a target storage in the routing tables corresponding to the data network port groups.
Optionally, the sub-priority policy validation module is configured to detect that a link supported by the policy route with the highest priority fails, and specifically includes:
and detecting that the link supported by the policy route with the highest priority at present fails in a disk query mode.
Optionally, the policy routing building module is configured to respectively build a route from a corresponding data network port group to a target storage in a routing table corresponding to each data network port group, and specifically includes:
if the data network port group and the target storage are in the same network segment, for each data network port group, clearing the initial routing table corresponding to the data network port group, adding the route of the flow of the host transmitted through the data network port group into the cleared routing table, and adding the data network port group to the IP strategy of the target storage for the routing table.
Optionally, the policy routing building module is configured to respectively build a route from a corresponding data network port group to a target storage in a routing table corresponding to each data network port group, and specifically includes:
if the data network port group and the target storage are in different network segments, clearing an initial routing table corresponding to the data network port group for each data network port group, creating a default route of the data network port group in the cleared routing table, wherein the default route is used for accessing a cross-network segment, adding a route transmitted by the flow of the host through the data network port group, and then adding the data network port group to the IP strategy of the target storage for the routing table.
Based on the above technical solution, the routing method for supporting disaster recovery for storage provided by the embodiment of the present invention includes: establishing a plurality of strategy routes from a plurality of data network port groups to a target storage, determining the priority of each strategy route according to the sequence of the strategy route establishment, and establishing a later strategy route with higher priority; wherein, one data network port group corresponds to a strategy route to the target storage; accessing the target storage by using a link corresponding to the policy route with the highest priority in the policy routes; if the link supported by the policy route with the highest priority is detected to be failed, deleting the policy route with the highest priority from the plurality of policy routes, and enabling a default sub-priority policy route to function; wherein, among the plurality of policy routes, the second priority policy route is second in priority only to the policy route with the highest priority; and then after the policy route with the highest priority is deleted, accessing the target storage by using the link corresponding to the policy route with the second priority.
It can be seen that, in the virtualization system, while the separation of the data network and the management network traffic and the construction of the host to the stored multiple links are realized, the embodiment of the present invention can construct multiple policy routes from multiple data network port groups to the target storage, determine the priority of the policy route according to the sequence of the policy route construction, and one data network port group corresponds to one policy route to the target storage, and then access the target storage through the link acted by the high-priority policy route first, and when the link acted by the high-priority policy route is disconnected due to a fault, delete the policy route immediately, take effect the policy route of the second priority, access the target storage through the link acted by the policy route of the second priority, and circulate the policy route of the second priority when the high-priority policy route of the link target storage has a problem, and accessing the target storage, ensuring the access of the host to the storage and improving the disaster recovery capability of the virtualization system for using the storage.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a routing method for supporting disaster recovery in a virtualization system according to an embodiment of the present invention;
FIG. 2 is a routing diagram of a virtualization system;
FIG. 3 is another routing diagram of a virtualization system;
fig. 4 is a block diagram of a routing device supporting disaster recovery in a virtualization system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a routing method for supporting disaster recovery in a virtualization system according to an embodiment of the present invention, where the method is applicable to a virtualization system, and in particular, to a host of the virtualization system;
referring to fig. 1, the method may include:
s100, constructing a plurality of strategy routes from a plurality of data network port groups to a target storage, determining the priority of the strategy routes according to the sequence of the construction of the strategy routes, and constructing the later strategy routes with higher priority; wherein one data network port group corresponds to one policy route to the target storage.
The embodiment of the invention can construct the strategy route to the target storage on the data network port group and support the strategy route to the same target storage on different data network port groups, so that one data network port group can correspond to one strategy route to the target storage; therefore, a data network is constructed by creating policy routes to the same storage on a plurality of data network port groups, and the host access target storage can have a plurality of optional access paths, namely, the host access target storage can be accessed by a link corresponding to any constructed policy route.
After a plurality of strategy routes to the target storage are constructed, the priority of the strategy routes is determined according to the construction sequence of the strategy routes, and the target storage is accessed only through the link corresponding to the strategy route with the highest priority at present;
optionally, in the embodiment of the present invention, the priority of the policy route may be determined according to the construction sequence of the policy route, and the later the policy route is constructed, the higher the priority is.
Policy routing may be considered as a more flexible packet routing and forwarding mechanism than routing based on a target network, and how to process a packet to be routed is determined by a routing table.
Step S110, accessing the target storage by using the link corresponding to the policy route with the highest priority in the policy routes.
After a plurality of policy routes are constructed, only the policy route with the highest priority in the plurality of policy routes plays a role at the same time, namely, the policy route with the highest priority in the plurality of policy routes is linked to the target storage, so that the access of the target storage is realized.
Step S120, if the link supported by the policy route with the highest priority is detected to be out of order, deleting the policy route with the highest priority from the plurality of policy routes, and enabling the policy route with the second priority to function by default; wherein, among the plurality of policy routes, the second priority policy route has a priority next to the policy route with the highest priority.
Step S130, after the policy route with the highest priority is deleted, the link corresponding to the policy route with the second priority is used for accessing the target storage.
Optionally, after selecting a policy route with the highest priority from the multiple constructed policy routes and accessing the target storage under the action of the policy route, the embodiment of the present invention may detect whether the policy route with the highest priority is faulty in real time or at regular time, where the method for detecting the fault of the policy route may be implemented in a manner of querying a disk, that is, the virtualization system may detect whether the policy route with the highest priority is faulty currently in a manner of querying a disk;
when the virtualization system detects that a link supported by a policy route with the highest priority among the plurality of constructed policy routes fails in a disk query manner, the embodiment of the invention can delete the policy route with the highest priority and enable the sub-priority policy route to function (the sub-priority policy route is the policy route with the highest priority among the remaining policy routes after the policy route with the highest priority is deleted, and among the plurality of constructed policy routes, the priority of the sub-priority policy route is next to the policy route with the highest priority, and the link corresponding to the sub-priority policy route is used for accessing the target storage, so that when a problem occurs in a certain data network port group of the link target storage, the link corresponding to the sub-priority policy route is used for accessing the target storage to guarantee the storage of the host, and the disaster recovery capability of the virtualization system using the storage is improved.
The routing method for supporting storage disaster recovery provided by the embodiment of the invention comprises the following steps: establishing a plurality of strategy routes from a plurality of data network port groups to a target storage, determining the priority of each strategy route according to the sequence of the strategy route establishment, and establishing a later strategy route with higher priority; wherein, one data network port group corresponds to a strategy route to the target storage; accessing the target storage by using a link corresponding to the policy route with the highest priority in the policy routes; if the link supported by the policy route with the highest priority is detected to be failed, deleting the policy route with the highest priority from the plurality of policy routes, and enabling a default sub-priority policy route to function; wherein, among the plurality of policy routes, the second priority policy route is second in priority only to the policy route with the highest priority; and then the corresponding link is routed by the secondary priority strategy to access the target storage.
It can be seen that, in the virtualization system, while the separation of the data network and the management network traffic and the construction of the host to the stored multiple links are realized, the embodiment of the present invention can construct multiple policy routes from multiple data network port groups to the target storage, determine the priority of the policy route according to the sequence of the policy route construction, and one data network port group corresponds to one policy route to the target storage, and then access the target storage through the link acted by the high-priority policy route first, and when the link acted by the high-priority policy route is disconnected due to a fault, delete the policy route immediately, take effect the sub-priority policy route, access the target storage through the link acted by the sub-priority policy route, and circulate the link acted by the sub-priority policy route, so that when the high-priority policy route stored by the link target has a problem, the corresponding link can be routed through the sub-priority policy route, and accessing the target storage, ensuring the access of the host to the storage and improving the disaster recovery capability of the virtualization system for using the storage.
Optionally, when constructing multiple policy routes from multiple data network port groups to a target storage, the embodiment of the present invention may set a corresponding routing table for each data network port group, and one data network port group corresponds to one routing table, so that in the routing table corresponding to each data network port group, the policy routes from the corresponding data network port group to the target storage are respectively constructed, and the later the construction time of the policy route is, the higher the priority is;
further, after a plurality of policy routes are constructed in the above manner, when a policy route with the highest current priority where a link fails is deleted, the policy with the highest priority and the corresponding routing table may be deleted.
For example, as shown in fig. 2, the data network port group and the target storage are in the same network segment, vlan of the management network port group, the data network port group 1 and the data network port group 2 is 0, and is in the same network segment with the target storage, and the computing node is connected to the target storage through the physical switch; when adding a policy route to a data network port group, in practical application, taking target storage as single control storage as an example, a policy route to the target storage can be respectively established for each data network port group, and the specific method comprises two steps:
1. creating routing tables
ip route flush table1 (clearing routing Table1, table1 represents routing Table 1)
ip route flush table2 (clear routing table2, table2 represents routing table 2)
ip route add 100.2.29.0/24dev Datapg1table 1 (adding a Datapg1 (data network port group 1) route in the routing table1 for routing the traffic from host to 100.2.29.0/24 through Datapg 1)
ip route add 100.2.29.0/24dev Datapg2table 2 (adding Datapg2 (data network port group 2) route to route host to 100.2.29.0/24 through Datapg2 in routing table 2.)
Refreshing cache
ip route flush cache
2. Add strategy
ip rule add to100.2.29.5table 1
ip rule add to100.2.29.5table 2
Flushing arp cache
ip neigh flush all
It can be seen that, if the data network port group and the target storage are in the same network segment, for each data network port group, the embodiment of the present invention may empty the initial routing table corresponding to the data network port group, add the route, transmitted by the host traffic through the data network port group, to the empty routing table, and add the policy of IP (protocol for interconnection between networks) from the data network port group to the target storage to the routing table.
The embodiment of the invention can be the policies that the routing table1 and the routing table2 are added to the target storage 100.2.29.5 respectively, wherein the priority of the policy added later is higher than that of the policy added before, the first policy acts on the table1, the second policy acts on the table2, and the currently effective policy is the second policy, so that when the system detects that the link from the Datagrg 2 to the target storage is disconnected, the system automatically deletes the second policy and the table2 acting on the second policy, so that the routing table acting on the first policy and the first policy acts, and the effective link from the Datagrg 1 to the storage; in practical application, at this time, a data network port group Datapg3 may be newly created, and a policy route is added to construct a data link to be stored, so that the newly created policy route becomes an effective policy route.
It should be noted that the virtualization system can be responsible for completing virtual fusion, allocation as needed and efficient management of the bottom layer physical resources, so that the agility and flexibility of resource delivery can be obviously improved, the use efficiency of the resources is improved, and uninterrupted resource guarantee and scalable resource supply are provided for the upper layer service;
a virtualization system is generally constructed based on an open source module openvswitch; the virtual switch in the virtualization system is also generally constructed through openvswitch, a management network, a data network and a computing network can be created on the virtual switch, the switch where the management network is located is called a management network switch, each virtual switch can be bound with one or more network cards to perform traffic switching, and a port group of the same vlan cannot exist on a standard switch;
in FIG. 2, IP addresses may be configured on the data network port set to communicate the host with the storage; and the routing of the IP packet is performed by taking the established strategy as the main basis.
On the other hand, as shown in fig. 3, if the data network port group and the target storage are in different network segments, the vlans of the management network port group, the data network port group 1, and the data network port group 2 are all 0, the computing Node is connected to the storage through the internet, and at this time, a policy route is added to the data network port group, taking constructing a policy route for the two data network port groups as an example, the following two operations are required:
1. creating routing tables
ip route flush table1 (clear routing table 1)
ip route flush table2 (clear routing table 2)
ip route add default via 10.25.7.1dev data pg1table 1 (create default route for data network port group in routing table1, the created default route is used for accessing across network segments)
ip route add default via 10.25.7.1dev data pg2table 2 (create default route for data network port group in routing table2, the created default route is used for accessing across network segments)
ip route add 10.25.7.0/24dev Datapg1table 1 (route is added for data network port group in routing table1, where the added route is for forwarding through Datapg1 when traffic goes to 10.25.7.0/24)
ip route add 10.25.7.0/24dev Datapg2table 2 (route is added to the data network port group in routing table2, where the added route is for forwarding through Datapg2 when traffic goes to 10.25.7.0/24)
Refreshing cache
ip route flush cache
2. Add strategy
ip rule add to 100.2.29.5table 1 (policy added to destination store 100.2.29.5 in routing Table 1)
ip rule add to 100.2.29.5table 2 (policy added to destination store 100.2.29.5 in routing Table 2)
Flushing arp cache
ip neigh flush all
It can be seen that, if the data network port group and the target storage are in different network segments, for each data network port group, the initial routing table corresponding to the data network port group may be cleared, a default route of the data network port group is created in the cleared routing table, the default route is used for accessing across network segments, a route through which the traffic of the host is transmitted through the data network port group is added, and then the data network port group is added to the IP policy of the target storage for the routing table.
As described above, in a specific application, the virtual switch where each data network port is located is associated with a physical network card, and here, the main consideration is to separate the data network from the management network, at this time, since the policy acting on the table2 is added later, the priority is to act on the policy of the table1, therefore, when the host detects that the link acted by the high-priority policy is disconnected, the host immediately executes the command to delete the policy acting on the table2 and the table2, and the policy of the secondary priority immediately acts to establish a new data link, thereby improving the disaster recovery capability of the system; meanwhile, a new virtual switch and a new data network port group can be continuously added, a physical network card is associated, and policy routes respectively reaching 100.2.29.5 are continuously constructed on the data network port group, so that a link with the function of the newly added policy route becomes a current effective link.
In the embodiment of the invention, the embodiment of the invention can construct a plurality of policy routes from a plurality of data network port groups to the target storage, determining the priority of the policy route according to the adding sequence of the policy route, wherein one data network port group corresponds to one policy route to the target storage, then the link acted by the high-priority policy route accesses the target storage, and when the link acted by the high-priority policy route is disconnected due to a fault, the policy route is immediately deleted, the sub-optimal policy route is taken into effect, the links acted on by the sub-optimal policy route access the target storage, and the loop is performed, so that when the high-priority policy route of the link target storage has problems, the target storage can be accessed through the corresponding link of the strategy route of the secondary priority, the access of the host to the storage is guaranteed, and the disaster recovery capability of the virtualization system for using the storage is improved.
In the following, the routing device supporting disaster recovery is introduced, and the routing device supporting disaster recovery described below may be referred to in correspondence with the content of the method described above.
Fig. 4 is a block diagram of a routing apparatus for supporting disaster recovery in a virtualization system according to an embodiment of the present invention, where the apparatus is applicable to a virtualization system, and in particular, to a host of the virtualization system;
referring to fig. 4, the apparatus may include:
a policy route construction module 100, configured to construct multiple policy routes from multiple data network port groups to a target storage, determine a priority of each policy route according to a sequence of the policy route construction, and construct a later policy route with a higher priority; wherein, one data network port group corresponds to a strategy route to the target storage;
a high priority policy action module 200, configured to access the target storage by using a link corresponding to a policy route with a highest priority in the policy routes;
a sub-priority policy validation module 300, configured to delete the policy route with the highest priority from the multiple policy routes and enable the sub-priority policy route if it is detected that the link supported by the policy route with the highest priority fails; wherein, among the plurality of policy routes, the second priority policy route is second in priority only to the policy route with the highest priority;
a sub-priority policy action module 400, configured to access the target storage according to a link corresponding to the sub-priority policy route after the policy route with the highest priority is deleted.
Optionally, the policy routing building module 100 is configured to build a plurality of policy routes from a plurality of data network port groups to a target storage, and specifically includes:
and setting corresponding routing tables for each data network port group, wherein one data network port group corresponds to one routing table, and respectively constructing a route from the corresponding data network port group to a target storage in the routing tables corresponding to the data network port groups.
Optionally, the sub-priority policy validating module 300 is configured to detect that a link supported by the policy route with the highest priority fails, and specifically includes:
and detecting that the link supported by the policy route with the highest priority at present fails in a disk query mode.
Optionally, the policy routing building module 100 is configured to respectively build a route from a corresponding data network port group to a target storage in a routing table corresponding to each data network port group, and specifically includes:
if the data network port group and the target storage are in the same network segment, for each data network port group, clearing the initial routing table corresponding to the data network port group, adding the route of the flow of the host transmitted through the data network port group into the cleared routing table, and adding the data network port group to the IP strategy of the target storage for the routing table.
Optionally, the policy routing building module 100 is configured to respectively build a route from a corresponding data network port group to a target storage in a routing table corresponding to each data network port group, and specifically includes:
if the data network port group and the target storage are in different network segments, clearing an initial routing table corresponding to the data network port group for each data network port group, creating a default route of the data network port group in the cleared routing table, wherein the default route is used for accessing a cross-network segment, adding a route transmitted by the flow of the host through the data network port group, and then adding the data network port group to the IP strategy of the target storage for the routing table.
The embodiment of the invention can ensure the access of the host to the storage and improve the disaster recovery capability of the virtualization system for using the storage.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A routing method for supporting storage disaster recovery in a virtualization system is characterized by comprising the following steps:
establishing a plurality of strategy routes from a plurality of data network port groups to a target storage, determining the priority of each strategy route according to the sequence of the strategy route establishment, and establishing a later strategy route with higher priority; wherein, one data network port group corresponds to a strategy route to the target storage;
accessing the target storage by using a link corresponding to the policy route with the highest priority in the policy routes;
if the link supported by the policy route with the highest priority is detected to be failed, deleting the policy route with the highest priority from the plurality of policy routes and enabling the policy route with the second priority to function; wherein, among the plurality of policy routes, the second priority policy route is second in priority only to the policy route with the highest priority;
when the strategy route with the highest priority is deleted, accessing the target storage by using the link corresponding to the strategy route with the second priority;
the detecting that the link supported by the policy route with the highest priority has the fault comprises:
and detecting that the link supported by the policy route with the highest priority at present fails in a disk query mode.
2. The routing method for supporting storage disaster recovery in a virtualization system according to claim 1, wherein the constructing a plurality of policy routes from a plurality of data network port groups to a target storage comprises:
and setting corresponding routing tables for each data network port group, wherein one data network port group corresponds to one routing table, and respectively constructing a route from the corresponding data network port group to a target storage in the routing tables corresponding to the data network port groups.
3. The routing method for supporting storage disaster recovery in a virtualization system according to claim 2, wherein the respectively constructing routes from the corresponding data network port groups to the target storage in the routing tables corresponding to the data network port groups comprises:
if the data network port group and the target storage are in the same network segment, for each data network port group, clearing the initial routing table corresponding to the data network port group, adding the route of the flow of the host transmitted through the data network port group into the cleared routing table, and adding the data network port group to the IP strategy of the target storage for the routing table.
4. The routing method for supporting storage disaster recovery in a virtualization system according to claim 2, wherein the respectively constructing routes from the corresponding data network port groups to the target storage in the routing tables corresponding to the data network port groups comprises:
if the data network port group and the target storage are in different network segments, clearing an initial routing table corresponding to the data network port group for each data network port group, creating a default route of the data network port group in the cleared routing table, wherein the default route is used for accessing a cross-network segment, adding a route transmitted by the flow of the host through the data network port group, and then adding the data network port group to the IP strategy of the target storage for the routing table.
5. A routing device supporting disaster recovery in a virtualization system, comprising:
the strategy route construction module is used for constructing a plurality of strategy routes from a plurality of data network port groups to a target storage, determining the priority of each strategy route according to the sequence of the construction of the strategy routes, and constructing the later strategy route with higher priority; wherein, one data network port group corresponds to a strategy route to the target storage;
a high priority policy action module for accessing the target storage with a link corresponding to a policy route with a highest priority among the plurality of policy routes;
a second priority policy validation module, configured to delete the policy route with the highest priority from the multiple policy routes and enable the second priority policy route to function if it is detected that a link supported by the policy route with the highest priority fails; wherein, among the plurality of policy routes, the second priority policy route is second in priority only to the policy route with the highest priority;
a second priority policy action module, configured to access the target storage according to a link corresponding to the second priority policy route after the policy route with the highest priority is deleted;
the secondary priority policy validation module is configured to detect that a link supported by the policy route with the highest priority fails, and specifically includes:
and detecting that the link supported by the policy route with the highest priority at present fails in a disk query mode.
6. The routing device supporting storage disaster recovery in a virtualization system according to claim 5, wherein the policy route construction module is configured to construct a plurality of policy routes from a plurality of data network port groups to a target storage, and specifically includes:
and setting corresponding routing tables for each data network port group, wherein one data network port group corresponds to one routing table, and respectively constructing a route from the corresponding data network port group to a target storage in the routing tables corresponding to the data network port groups.
7. The routing device supporting storage disaster recovery in a virtualization system according to claim 6, wherein the policy routing building module is configured to build, in the routing table corresponding to each data network port group, a route from the corresponding data network port group to the target storage, specifically including:
if the data network port group and the target storage are in the same network segment, for each data network port group, clearing the initial routing table corresponding to the data network port group, adding the route of the flow of the host transmitted through the data network port group into the cleared routing table, and adding the data network port group to the IP strategy of the target storage for the routing table.
8. The routing device supporting storage disaster recovery in a virtualization system according to claim 6, wherein the policy routing building module is configured to build, in the routing table corresponding to each data network port group, a route from the corresponding data network port group to the target storage, specifically including:
if the data network port group and the target storage are in different network segments, clearing an initial routing table corresponding to the data network port group for each data network port group, creating a default route of the data network port group in the cleared routing table, wherein the default route is used for accessing a cross-network segment, adding a route transmitted by the flow of the host through the data network port group, and then adding the data network port group to the IP strategy of the target storage for the routing table.
CN201710108382.3A 2017-02-27 2017-02-27 Routing method and device for supporting storage disaster recovery in virtualization system Active CN106909322B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710108382.3A CN106909322B (en) 2017-02-27 2017-02-27 Routing method and device for supporting storage disaster recovery in virtualization system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710108382.3A CN106909322B (en) 2017-02-27 2017-02-27 Routing method and device for supporting storage disaster recovery in virtualization system

Publications (2)

Publication Number Publication Date
CN106909322A CN106909322A (en) 2017-06-30
CN106909322B true CN106909322B (en) 2020-05-26

Family

ID=59208573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710108382.3A Active CN106909322B (en) 2017-02-27 2017-02-27 Routing method and device for supporting storage disaster recovery in virtualization system

Country Status (1)

Country Link
CN (1) CN106909322B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111431798B (en) * 2020-03-31 2022-07-12 新华三信息安全技术有限公司 Route switching method and device
CN112333093A (en) * 2020-11-23 2021-02-05 迈普通信技术股份有限公司 Policy routing path determining method and device, network equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546529A (en) * 2012-06-21 2014-01-29 微软公司 Virtual shared storage in a cluster
CN103973567A (en) * 2014-05-06 2014-08-06 华为技术有限公司 Method and device for route configuration of virtual private network
CN105892932A (en) * 2014-10-20 2016-08-24 伊姆西公司 Method and device for managing disk data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546529A (en) * 2012-06-21 2014-01-29 微软公司 Virtual shared storage in a cluster
CN103973567A (en) * 2014-05-06 2014-08-06 华为技术有限公司 Method and device for route configuration of virtual private network
CN105892932A (en) * 2014-10-20 2016-08-24 伊姆西公司 Method and device for managing disk data

Also Published As

Publication number Publication date
CN106909322A (en) 2017-06-30

Similar Documents

Publication Publication Date Title
US10142226B1 (en) Direct network connectivity with scalable forwarding and routing fleets
CN110912780B (en) High-availability cluster detection method, system and controlled terminal
US10148756B2 (en) Latency virtualization in a transport network using a storage area network
CN106134137B (en) Route advertisement for managed gateways
CN109802985B (en) Data transmission method, device, equipment and readable storage medium
US9736263B2 (en) Temporal caching for ICN
CN111585800B (en) Virtual private cloud-based network node configuration method, device and medium
EP2157746B1 (en) Routing control system for L3VPN service network
US9659075B2 (en) Providing high availability in an active/active appliance cluster
CN1770743B (en) Softrouter
US20170063604A1 (en) Method and apparatus for sve redundancy
CN110784400B (en) N: 1 method, system and standby service gateway for redundancy of stateful application gateway
US20140280864A1 (en) Methods of Representing Software Defined Networking-Based Multiple Layer Network Topology Views
US20160248669A1 (en) Systems and methods of inter data center out-bound traffic management
EP3216194A1 (en) Network function virtualization service chaining
US20200344146A1 (en) Control plane isolation for software defined network routing services
CN110417665B (en) EVPN networking system and method for multiple Fabric scenes of data center
CN107682406B (en) Method, device and system for processing service
CN106713378B (en) Method and system for providing service by multiple application servers
US20220321470A1 (en) Wide area networking service using provider network backbone network
CN112217843A (en) Service unit switching method, system and equipment
CN113472646B (en) Data transmission method, node, network manager and system
EP4320839A1 (en) Architectures for disaggregating sdn from the host
CN106909322B (en) Routing method and device for supporting storage disaster recovery in virtualization system
CN103546556B (en) One kind online moving method of virtual machine in future network XIA

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200428

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant