WO2018028219A1 - Method and device for device arbitration - Google Patents

Method and device for device arbitration Download PDF

Info

Publication number
WO2018028219A1
WO2018028219A1 PCT/CN2017/079344 CN2017079344W WO2018028219A1 WO 2018028219 A1 WO2018028219 A1 WO 2018028219A1 CN 2017079344 W CN2017079344 W CN 2017079344W WO 2018028219 A1 WO2018028219 A1 WO 2018028219A1
Authority
WO
WIPO (PCT)
Prior art keywords
storage device
arbitration
reservation
arbitration server
information
Prior art date
Application number
PCT/CN2017/079344
Other languages
French (fr)
Chinese (zh)
Inventor
陈怡佳
刘辉
彭仕衡
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2018028219A1 publication Critical patent/WO2018028219A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • 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/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2023Failover techniques
    • G06F11/2028Failover techniques eliminating a faulty processor or activating a spare
    • 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/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2035Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant without idle spare hardware
    • 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/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/2053Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant
    • G06F11/2094Redundant storage or storage space
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0681Configuration of triggering conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and device for device arbitration.
  • the dual-active system is a resource-saving computer disaster recovery (Disaster Recovery) solution, and its implementation mode is to let two The data centers simultaneously assume the user's business, and the two data centers are backed up each other and backed up in real time.
  • the two data centers When the communication between the two data centers of the active-active system is disconnected, the two data centers respectively send an arbitration request message to the arbitration server to request to take over the host service, and the arbitration server saves the registration information of the two data centers when the arbitration
  • the server determines that one of the data centers can take over the host service and deletes the registration information of the other data center. This prevents the two data centers from taking over the host service at the same time and causing the host service to be inconsistent.
  • the arbitration server saves the registration information of the data center, and determines the data according to the registration information of the data center saved therein. The center can take over the host service. In this way, two data centers will take over the host service at the same time, which may result in inconsistent host services provided by the external.
  • the embodiments of the present invention provide a method and a device for arbitrating devices, which can prevent the device that fails the arbitration from registering and preempting operations again, thereby improving fault tolerance, reliability, and security of the system.
  • an embodiment of the present invention provides a method for device arbitration, where the method is applied to a storage system, where the storage system includes a first storage device, a second storage device, and an arbitration server, and the method includes: when the first When the communication link between the storage device and the second storage device fails, the first storage device sends an arbitration request message to the arbitration server, where the arbitration request message includes the identification information of the first storage device and the service.
  • the service takeover information is used to indicate that the first storage device requests to take over the host service;
  • the arbitration server is configured according to the arbitration request message of the first storage device, the registration information of the first storage device, and the The second storage device does not take over the host service, and sends an indication message indicating that the first storage device takes over the host service to the first storage device, and deletes the registration information of the second storage device saved by the arbitration server, where
  • the arbitration server pre-stores registration information of the first storage device and the second storage
  • the registration information of the device, the first storage device takes over the host service according to the indication message, and sends a reservation request message to the arbitration server, where the reservation request message includes the identification information of the first storage device and the pre-
  • the indication information is used to indicate that the arbitration server prohibits the second storage device from registering;
  • the arbitration server receives a registration request message from the second storage device, where the registration request message includes Determining registration information of the second storage device; the arbitration server denying the second storage device to register according to the reservation
  • the arbitration server may use the first storage device according to the arbitration request message of the first storage device, the registration information of the first storage device, and the current situation that the second storage device does not take over the host service.
  • the device is determined to be the only device that takes over the host service, thereby ensuring that the first array is the only device that takes over the host service, and avoids the situation that multiple arrays may take over the data caused by the host service at the same time, and the data is not synchronized. Improve the system's fault tolerance, reliability and security.
  • the method further includes: a communication link between the first storage device and the second storage device
  • the first storage device sends a reservation clear message to the arbitration server, where the reservation clear message is used to request the arbitration server to delete the reservation indication information, so as to facilitate the second storage device.
  • the arbitration server deletes the reservation indication information according to the reservation clear message.
  • the arbitration server may delete the reservation indication information of the first storage device according to the reservation clear message sent by the first storage device, so that the second storage device performs registration, and thus may be different. After the communication between the storage devices is restored, use multiple storage devices to process the host services to improve system reliability and security.
  • the method further includes: the second storage device sending a reservation clear message to the arbitration server, where the The reservation clear message is used to request the arbitration server to delete the reservation indication information; the arbitration server rejects the request to clear the reservation clear message according to the reservation indication information, where the reservation indication information is used for Instructing the arbitration server to reject the deletion request of the second storage device.
  • the arbitration server may reject the request for the reservation clear message sent by the second storage device according to the reservation indication information of the first storage device, thereby preventing the device that fails the arbitration from registering again. Preemptive operations can improve the system's fault tolerance, reliability, and security.
  • an embodiment of the present invention provides a method for device arbitration, where the method is applied to a storage system, where the storage system includes a first storage device, a second storage device, and an arbitration server, and the method includes: When the communication link between the storage device and the second storage device fails, the first storage device sends an arbitration request message to the arbitration server, where the arbitration request message includes the identifier information of the first storage device, The service takeover information and the reservation indication information, where the service takeover information is used to indicate that the first storage device requests to take over the host service, and the reservation indication information is used to indicate that the arbitration server prohibits the second storage device Performing registration; the arbitration server sends an indication to the first storage device according to the arbitration request message of the first storage device, the registration information of the first storage device, and the second storage device not taking over the host service.
  • the arbitration server Determining, by the first storage device, an indication message of taking over the host service, and deleting the second saved by the arbitration server Registration information of the storage device, wherein the arbitration server pre-stores registration information of the first storage device and registration information of the second storage device; the arbitration server receives a registration request message from the second storage device The registration request message includes registration information of the second storage device; the arbitration server rejects the second storage device to register according to the reservation indication information.
  • the arbitration server may use the arbitration request message carrying the reservation indication information sent by the first storage device, the registration information of the first storage device, and the current second storage device does not take over the host service.
  • the registration information of the second storage device is deleted, so that the first storage device is the only device that takes over the host service, and the situation that multiple storage devices may take over the data caused by the host service at the same time is avoided, thereby improving the system. Fault tolerance, reliability and security, while also saving on signaling overhead.
  • the method further includes: when the communication link between the first storage device and the second storage device is restored After the normal storage, the first storage device sends a reservation clear message to the arbitration server, where the reservation clear message is used to request the arbitration server to delete the reservation indication information, so as to be performed by the second storage device. Registration; the arbitration server And deleting the reservation indication information according to the reservation clear message.
  • the arbitration server may delete the reservation indication information of the first storage device according to the reservation clear message sent by the first storage device, so that the second storage device performs registration, and thus may be different. After the communication between the storage devices is restored, use multiple storage devices to process the host services to improve system reliability and security.
  • the method further includes: the arbitration server receiving a reservation clear message from the second storage device, where the reservation The clearing message is used to request the arbitration server to delete the reservation indication information; the arbitration server rejects the request for the reservation clear message according to the reservation indication information, where the reservation indication information is used to indicate The arbitration server rejects the deletion request of the second storage device.
  • the arbitration server may reject the request for the reservation clear message sent by the second storage device according to the reservation indication information of the first storage device, thereby preventing the device that fails the arbitration from registering again. Preemptive operations can improve the system's fault tolerance, reliability, and security.
  • an embodiment of the present invention provides an arbitration server for device arbitration, where the arbitration server can implement the functions performed by the arbitration server in the method related to the foregoing aspects, and the functions can be implemented by hardware or by hardware.
  • the hardware or software includes one or more corresponding units or modules of the above functions.
  • the structure of the arbitration server includes a processor and a communication interface configured to support the arbitration server to perform the corresponding functions of the above methods.
  • the communication interface is used to support communication between the arbitration server and other network elements.
  • the arbitration server can also include a memory for coupling with the processor that holds the program instructions and data necessary for the arbitration server.
  • the embodiment of the present invention provides a first storage device that is arbitrated by a device, and the first storage device may implement a function performed by the first storage device in the method related to the foregoing aspect, where the function may be implemented by using a hardware.
  • the corresponding software implementation can also be performed by hardware.
  • the hardware or software includes one or more corresponding units or modules of the above functions.
  • the first storage device includes a processor and a communication interface configured to support the arbitration server to perform the corresponding functions in the above method.
  • the communication interface is used to support communication between the first storage device and other network elements.
  • the first storage device can also include a memory for coupling with the processor that retains the program instructions and data necessary for the first storage device.
  • an embodiment of the present invention provides a communication system, including the arbitration server and the first storage device in the foregoing aspect.
  • an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by the arbitration server, which includes a program designed to execute the above aspects.
  • an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by the first storage device, including a program designed to perform the above aspects.
  • the arbitration server may use the request message sent by the first storage device, the registration information of the first storage device, and the current situation that no other storage device takes over the host service. Determining that the first storage device is the only device that takes over the host service, and the arbitration server rejects the registration request or the arbitration request of the other storage device according to the state that the first storage device uniquely takes over the host service, thereby ensuring that the first storage device is the only takeover Host service equipment, avoiding multiple devices that may appear at the same time The data that is taken over by the host service is not synchronized, which improves the fault tolerance, reliability, and security of the active-active arbitration system. In addition, the state of the first storage device that only takes over the host service can only be cleared by the message sent by the first storage device. The safety of the active-active arbitration system is further improved.
  • FIG. 1 is a schematic architectural diagram of a possible storage system to which an embodiment of the present invention is applied;
  • FIG. 2 is a schematic diagram of communication of a method for device arbitration according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of communication of another method for device arbitration according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of communication of a method for device arbitration according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of communication of another method for device arbitration according to an embodiment of the present invention.
  • 6A is a schematic structural diagram of a possible arbitration server according to an embodiment of the present invention.
  • 6B is a schematic structural diagram of another possible arbitration server according to an embodiment of the present invention.
  • FIG. 7A is a schematic structural diagram of a possible storage device according to an embodiment of the present invention.
  • FIG. 7B is a schematic structural diagram of another possible storage device according to an embodiment of the present invention.
  • the method and device for device arbitration according to an embodiment of the present invention may arbitrate a logical unit number (LUN) on an array or array of active-active systems, or may arbitrate other devices or units that need to arbitrate.
  • LUN logical unit number
  • the embodiment of the present invention is described in detail by taking an array as an example. The embodiment of the present invention is not limited thereto, and the method for device arbitration according to the embodiment of the present invention may also be applied to other storage devices.
  • Figure 1 shows a schematic diagram of one possible storage system to which embodiments of the present invention are applicable.
  • the storage system includes: a host or a host cluster 110, an array 120, an array 130, and an arbiter server 140.
  • the host cluster 110 is simultaneously connected to the array 120 and the array 130, and the array 120 and the array 130 are connected to each other.
  • the array 130 is simultaneously connected to the arbitration server 140.
  • the host cluster 110 can simultaneously send and write services to the array 120 and the array 130.
  • the process of sending the write service to the array 120 is as follows:
  • the host cluster 110 sends a write data service to the array 120.
  • the array 120 writes the sent data to the array 120 and the array 130 at the same time
  • the array 120 sends a message to the host cluster 110 to write data completion.
  • the basic flow of write data for array 130 by host cluster 110 is similar, as shown in steps 1', 2', 3', and 4'.
  • the communication link between the array 120 and the array 130 fails (ie, brain splitting), in order to avoid business out of synchronization,
  • the host service can only be taken over by one of the array 120 and the array 130. Since the array 120 and the array 130 cannot communicate with each other at this time, it is necessary for the arbitration server 140 to determine who will take over the host service.
  • the array 120 and the array 130 respectively initiate an arbitration request to the arbitration server 140. If the arbitration server 140 first receives the arbitration request message sent by the array 120, the arbitration server may determine the array 120 according to the registration information of the array 120 and the arbitration request message of the array 120. To win, array 120 is determined to take over the array of host services and clear the registration information for array 130.
  • the arbitration server 140 can only passively accept the registration information of the array 120 and the array 130, when the array 130 has a logic error, the array 130 may register again and then initiate arbitration, and the array 130 will also win, resulting in an array.
  • the 120 and the array 130 simultaneously provide services to the outside, and data inconsistency may occur.
  • the array 120 sends a reservation request message to the arbitration server after the arbitration wins, the reservation request message includes an identifier of the array 120 and reservation indication information, and the reservation request message is used for the request.
  • the arbitration server 140 prohibits the array 130 from registering, thereby avoiding the array 130 arbitrating winning.
  • the array 120 may also want the arbitration server 140 to send an arbitration request message including reservation indication information, requesting to take over the host service and requesting the arbitration server 140 to prohibit the array 130 from registering.
  • FIG. 2 is a schematic flowchart of a method for device arbitration provided by an embodiment of the present invention. As shown in FIG. 2, the method 200 includes:
  • the first storage device sends an arbitration request message to the arbitration server, where the arbitration request message includes the identifier information of the first storage device and the service takeover information, where the service takeover information is used to indicate that the first storage device requests to take over the host service.
  • the arbitration server deletes the registration information of the second storage device saved by the arbitration server according to the arbitration request message sent by the first storage device, the registration information of the first storage device, and the second storage device does not take over the host service, where the arbitration server is pre- The registration information of the first storage device and the registration information of the second storage device are saved.
  • the arbitration server sends an indication message to the first storage device that the first storage device takes over the host service.
  • the first storage device takes over the host service according to the indication message, and sends a reservation request message to the arbitration server, where the reservation request message includes identifier information of the first storage device and reservation indication information, where the reservation indication information is used.
  • the arbitration server is instructed to prohibit the second storage device from registering.
  • the arbitration server receives a registration request message from the second storage device, where the registration request message includes registration information of the second storage device.
  • the arbitration server rejects the second storage device to register according to the reservation indication information.
  • the first storage device may be a first array, and the first array may generate arbitration request information when it is found that the communication link with the second array (ie, the second storage device) is disconnected, the arbitration request information is used to request to take over the host
  • the arbitrating server may determine, according to the registration information of the first array stored locally, and the current situation that no other array takes over the host service, determine the first array as an array that takes over the host service, and send an indication message to the first array to notify the first Array arbitration wins; the first array may generate reservation request information according to its arbitration victory, the reservation request message is used to instruct the arbitration server to prohibit the second array registration, for example, the reservation request message may request the arbitration server to be the first array
  • the registration information is modified into reservation information, and the reservation information indicates that the first array is the only device that takes over the host service; after receiving the reservation request information, the arbitration server modifies the registration information of the first array to the reservation according to the reservation request information.
  • the arbitration server may reject the arbitration request of the second array according to the reservation information Or clear the registration request requesting the reservation information, the device can be ensured as the only first array take over the host service, may be avoided
  • the data that can occur when multiple arrays take over the host business at the same time is not synchronized.
  • the arbitration server may add an identifier to the registration information of the first array according to the reservation request information sent by the first array, where the identifier is used to disable the second array. registered.
  • the method 200 further includes:
  • the first storage device After the communication link between the first storage device and the second storage device returns to normal, the first storage device sends a reservation clear message to the arbitration server, where the reservation clear message is used to request the arbitration server to delete the reservation indication message. In order to facilitate the registration of the second storage device.
  • the arbitration server deletes the reservation indication information according to the reservation clear message.
  • the first storage device may send a reservation clear message to the arbitration server, requesting to clear the reservation indication information, and the arbitration server clears the reservation indication information.
  • the second storage device may send a registration request message to the arbiter server to request registration.
  • the arbitration server may save the registration information of the second storage device.
  • the second storage device may be associated with the first storage device. Take over the host service and synchronize the data, and continue to perform the secure backup function of the active-active system.
  • the method 200 further includes:
  • the second storage device sends a reservation clear message to the arbitration server, where the reservation clear message is used to request the arbitration server to delete the reservation indication information of the first storage device.
  • the arbitration server rejects the request for the reservation clear message of the second storage device according to the reservation indication information, where the reservation indication information is used to indicate that the arbitration server rejects the deletion request of the second storage device.
  • the reservation indication information of the first storage device can be automatically cleared by the first storage device, and the other device cannot clear the state, so that the reservation indication information of the first array caused by virus intrusion, software bugs, and the like can be prevented from being deleted. safety.
  • the storage device After the arbitration wins, the storage device sends the reservation request information to the arbitration server, and requests the storage device to be the only device that takes over the host service, and avoids different storage caused by software bugs, user misoperations, network transmission failures, virus intrusion, and the like.
  • the devices provide services to the outside, thus avoiding the inconsistency of external data and improving the fault tolerance, reliability and security of the dual-active arbitration system.
  • FIG. 3 is a schematic flowchart of a method for device arbitration provided by an embodiment of the present invention. As shown in FIG. 3, the method 300 includes:
  • the first storage device sends an arbitration request message to the arbitration server, where the arbitration request message includes the identifier information of the first storage device and the service takeover information. And the reservation indication information, wherein the service takeover information is used to indicate that the first storage device requests to take over the host service, and the reservation indication information is used to instruct the arbitration server to prohibit the second storage device from registering.
  • the arbitration server deletes the registration information of the second storage device saved by the arbitration server according to the arbitration request message of the first storage device, the registration information of the first storage device, and the second storage device does not take over the host service, where the arbitration server is pre- The registration information of the first storage device and the second storage device is saved.
  • the arbitration server sends an indication message to the first storage device, where the indication message is used to indicate that the first storage device can take over the host service.
  • the arbitration server receives a registration request message from the second storage device, where the registration request message includes the second storage. Storage device registration information.
  • the arbitration server rejects the second storage device to register according to the reservation indication information of the first storage device.
  • the first storage device may be a first array, and the first array may generate arbitration request information when it is found that the communication link with the second array (ie, the second storage device) is disconnected, the arbitration request information is used to request to take over the host
  • the arbitration request message further includes reservation indication information, the reservation indication information instructing the arbitration server to prohibit the second array from registering; the arbitration server may take over the registration information of the first array stored locally, and currently no other array takes over the host service.
  • the first array is determined to take over the array of host services, and sends an indication message to the first array to notify the first array that the arbitration wins, and the arbitration server may further reserve the first array in the arbitration server according to the reservation indication information.
  • the registration information is modified into reservation information, and the arbitration server may reject the arbitration request, the registration request, or the request for clearing the reservation information according to the reservation information, thereby ensuring that the first array is the only device that takes over the host service. Avoid the number of possible multiple arrays taking over the host business at the same time Not synchronized, it can also save signaling overhead equipment arbitration method according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a method for device arbitration provided by another embodiment of the present invention. As shown in FIG. 4, the method 400 includes:
  • array 410 finds that the communication link between array 410 and array 420 is broken (ie, brain split).
  • the array 410 initiates an arbitration request to the arbitration device (for example, the arbitration server 430) to request to take over the host service.
  • the arbitration device for example, the arbitration server 430
  • the arbitration server 430 determines whether the registration information A of the array 410 is stored locally;
  • the array 410 registers with the arbiter server 430 when it has its own ability to handle host services so that the arbitration server 430 can determine that the array 410 has the ability to take over host services after the brain split occurs, and when the array 410 finds itself losing the ability to process traffic,
  • the information for clearing the registration information A is sent to the arbitration server 430.
  • the arbitration server 430 determines that the array 410 arbitrates the win, and clears the registration information B of the array 420, wherein the arbitration server 430 processes the arbitration request sent by the array 410 only when it determines that the registration information A of the array 410 is stored locally, and determines
  • the method for arbitrating the array arbitration may be a first-come-first-served principle, that is, the arbitration server determines the array indicated by the first arbitration request to be an array of arbitration wins, and the method for determining the arbitration victory may also be other methods. The embodiment does not limit this.
  • the arbitration server 430 sends an arbitration victory message to the array 410, informing the array 410 to arbitrate the win.
  • the array 410 sends the reservation request information to the arbitration server 430, requesting the arbitration server 430 to modify the registration information A to the reservation information A, and the reservation information A is used to indicate that the array 410 is exclusive to the takeover of the host service, in the array 410.
  • the arbitrating server 430 rejects the operations of the reservation, the registration, the arbitration, and the like of the other arrays, and the modification of the registration information A to the reservation information A is only an example.
  • the embodiment of the present invention is not limited thereto, and optionally, the array The 410 may send the exclusive request information to the arbitration server 430, requesting the arbitration server 430 to add an identifier to the registration information A, the identifier being used to indicate that the array 410 is exclusive to the takeover of the host service.
  • the arbitration server 430 modifies the registration information A into the reservation information A according to the reservation request information sent by the array 410, and the arbitration server 430 can clear the registration information B of the array 420 according to the reservation information A.
  • array 420 finds that the communication between array 420 and array 410 is broken (ie, brain splitting).
  • the array 420 sends registration request information to the arbitration server 430.
  • the arbitration server 430 prohibits the array 420 from registering according to the locally stored reservation information A.
  • the arbitration server 430 sends a message rejecting registration to the array 420.
  • the array 420 sends an arbitration request message to the arbitration server 430 requesting to take over the host service.
  • the arbitration server 430 determines that the array 420 fails arbitration according to the local registration information B of the storage array 420.
  • the arbitration server 430 sends an arbitration failure message to the array 420.
  • the array 410 initiates a data synchronization task to the array 420 based on the communication link recovery between the array 410 and the array 420.
  • the array 410 is synchronized according to the data of the array 410 and the array 420, and sends a clear message to the arbitration server 430, which is used to request the arbitration server 430 to clear the state of the unique takeover host service of the array 410.
  • the arbitration server 430 modifies the reservation information A into the registration information A according to the clear message sent by the array 410.
  • the array 420 sends a registration request message to the arbitration server 430 requesting to process the host service.
  • the arbitration server 430 determines that the array 420 can process the host service according to the local storage reservation information, and saves the registration information B of the array 420.
  • the arbitration server 430 sends a registration success message to the array 420, informing the array 420 that the host service can be processed.
  • the storage device sends the reservation request information to the arbitration server after the arbitration wins, requesting the storage device to be the only device that takes over the host service, avoiding software bugs, user misoperations, and networks.
  • Different storage devices caused by transmission failures and virus intrusion take over the host services, thus avoiding the inconsistency of external data and improving the fault tolerance, reliability, and security of the dual-active arbitration system.
  • FIG. 5 is a schematic flowchart of a method for device arbitration provided by another embodiment of the present invention. As shown in FIG. 5, the method 500 includes:
  • array 510 finds that the communication link between array 510 and array 520 is broken (ie, brain split).
  • the array 510 initiates an arbitration request to the arbitration device (for example, the arbitration server 530), requests to take over the host service, and requests the arbitration server 330 to modify the registration information A to the reservation information A, and the reservation information A is used to represent the array 310 to the host.
  • the takeover of the service is exclusive.
  • the arbitrating server 330 rejects the operations of reservation, registration, and arbitration requests of other arrays, and the modification of the registration information A into the reserved information A is only an example, and the implementation of the present invention is implemented. The example is not limited to this;
  • the arbitration server 530 determines whether the registration information A of the array 510 is stored locally;
  • the arbitration server 530 determines that the array 510 arbitrates the win and clears the registration information B of the array 520.
  • the arbitration server 530 processes the arbitration request sent by the array 510 only when determining that the registration information A of the array 510 is stored locally.
  • the method for arbitrating the array arbitration may be a first-come-first-served principle, that is, the arbitration server determines the array indicated by the first arbitration request to be an array of arbitration wins, and the method for determining the arbitration victory may also be other methods. The embodiment does not limit this.
  • the arbitration server 530 modifies the registration information A into the reservation information A according to the arbitration request message.
  • the arbitration server 530 sends an arbitration victory message to the array 510, informing the array 510 to arbitrate the win.
  • array 520 finds that communication between array 520 and array 510 is broken (ie, brain splitting).
  • the array 520 sends registration request information to the arbitration server 530.
  • the arbitration server 530 prohibits the array 520 from registering according to the locally stored reservation information A.
  • the arbitration server 530 sends a message rejecting registration to the array 520.
  • the array 520 sends an arbitration request message to the arbitration server 530 requesting to take over the host service.
  • the arbitration server 530 determines that the array 520 has failed arbitration according to the local registration information B of the storage array 520.
  • the arbitration server 530 sends an arbitration failure message to the array 520.
  • the array 510 initiates a data synchronization task to the array 520 according to the communication link recovery between the array 510 and the array 520.
  • the array 510 is synchronized according to the data of the array 510 and the array 520, and sends a clear message to the arbitration server 530, which is used to request the arbitration server 530 to clear the state of the unique takeover host service of the array 510.
  • the arbitration server 530 modifies the reservation information A into the registration information A according to the clear message sent by the array 510.
  • the array 520 sends a registration request message to the arbitration server 530 requesting to process the host service.
  • the arbitration server 530 determines that the array 520 can process the host service according to the local storage reservation information, and saves the registration information B of the array 520.
  • the arbitration server 530 sends a registration success message to the array 520, informing the array 520 that the host service can be processed.
  • the storage device requests the storage device to be the only device that takes over the host service by sending the arbitration request information including the reservation request information to the arbitration server, thereby saving signaling overhead and avoiding Different storage devices caused by software bugs, user misoperations, network transmission failures, virus intrusion, etc. take over the host services, thus avoiding the inconsistency of external data and improving the fault tolerance, reliability and security of the active-active arbitration system. .
  • each network element such as the arbitration server and the first storage device, includes hardware structures and/or software modules corresponding to the execution of the respective functions in order to implement the above functions.
  • the present invention can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
  • the embodiment of the present invention may divide the functional unit into the arbitration server and the first storage device according to the foregoing method example.
  • each functional unit may be divided according to each function, or two or more functions may be integrated into one processing unit. in.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 6A shows a possible structural diagram of the arbitration server involved in the above embodiment.
  • the arbitration server 600 includes a processing unit 602 and a communication unit 603.
  • the processing unit 602 is configured to perform control management on the action of the arbitration server 600.
  • the processing unit 602 is configured to support the arbitration server 600 to execute S202 and S206 of FIG. 2, and the processing unit 602 may further be configured to support the arbitration server 600 to execute S302 of FIG. 3. And S305, and/or other processes for the techniques described herein.
  • Communication unit 603 is used to support communication between arbitration server 600 and other network entities, such as communication with the first storage device shown in FIG. 2.
  • the arbitration server 600 may further include a storage unit 601 for storing program codes and data of the arbitration server 600.
  • the processing unit 602 can be a processor or a controller, for example, can be a central processing unit (Central) Processing Unit, CPU), general purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), Field Programmable Gate Array (FPGA) or other Programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the communication unit 603 can be a communication interface, a transceiver, a transceiver circuit, etc., wherein the communication interface is a collective name and can include one or more interfaces.
  • the storage unit 601 can be a memory.
  • the arbitration server may be the arbitration server shown in FIG. 6B.
  • the arbitration server 610 includes a processor 612, a communication interface 613, and a memory 611.
  • the arbitration server 610 can also include a bus 614.
  • the communication interface 613, the processor 612, and the memory 611 may be connected to each other through a bus 614.
  • the bus 614 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (abbreviated). EISA) bus and so on.
  • the bus 614 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 6B, but it does not mean that there is only one bus or one type of bus.
  • the arbitration server may perform the first storage according to the reservation request information sent by the first storage device after the arbitration wins, or according to the arbitration request message that includes the reservation indication information sent by the first storage device.
  • the registration information of the device is modified to the reservation information, so that the second storage device can be re-registered successfully and the host service is taken over.
  • the reservation information can only be deleted according to the reservation clear message sent by the first storage device, thereby improving the arbitration system. Security.
  • FIG. 7A shows a possible structural diagram of the first storage device involved in the above embodiment.
  • the first storage device 700 includes a processing unit 702 and a communication unit 703.
  • the processing unit 702 is configured to perform control management on the action of the first storage device 700.
  • the processing unit 702 is configured to support the first storage device 700 to perform S201 and S204 of FIG. 2 through the communication unit 703, and the processing unit 702 may further be used to support The first storage device 700 performs S301 of Figure 3, and/or other processes for the techniques described herein.
  • the communication unit 703 is for supporting communication between the first storage device 700 and other network entities, such as communication with the arbitration server shown in FIG. 2 or 3.
  • the first storage device 700 may further include a storage unit 701 for storing program codes and data of the first storage device 700.
  • the processing unit 702 can be a processor or a controller, and can be, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application-specific integrated circuit (Application-Specific). Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the communication unit 703 can be a communication interface, a transceiver, a transceiver circuit, etc., wherein the communication interface is a collective name and can include one or more interfaces.
  • the storage unit 701 can be stored Reservoir.
  • the processing unit 702 is a processor
  • the communication unit 703 is a communication interface
  • the storage unit 701 is a memory
  • the first storage device involved in the embodiment of the present invention may be the first storage device shown in FIG. 7B.
  • the first storage device 710 includes a processor 712, a communication interface 713, and a memory 711.
  • the first storage device 710 may further include a bus 714.
  • the communication interface 713, the processor 712, and the memory 711 may be connected to each other through a bus 714.
  • the bus 714 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (abbreviated). EISA) bus and so on.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the bus 714 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 7B, but it does not mean that there is only one bus or one type of bus.
  • the first storage device provided by the embodiment of the present invention sends a reservation request message to the arbitration server after the arbitration wins, and the reservation request message is used to request the arbitration server to reject the second storage device for registration, or directly to the arbitration server.
  • sequence number of each process does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be limited to the implementation process of the embodiment of the present invention.
  • the steps of the method or algorithm described in connection with the disclosure of the embodiments of the present invention may be implemented in a hardware manner, or may be implemented by a processor executing software instructions.
  • the software instructions may be composed of corresponding software modules, which may be stored in a random access memory (RAM), a flash memory, a read only memory (ROM), an erasable programmable read only memory ( Erasable Programmable ROM (EPROM), electrically erasable programmable read only memory (EEPROM), registers, hard disk, removable hard disk, compact disk read only (CD-ROM) or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium.
  • the storage medium can also be an integral part of the processor.
  • the processor and the storage medium can be located in an ASIC.
  • the ASIC can be located in an arbitration server or a first storage device.
  • the processor and the storage medium may also exist as discrete components in the arbitration server or the first storage device.
  • the functions described herein can be implemented in hardware, software, firmware, or any combination thereof.
  • the functions may be stored in a computer readable medium or transmitted as one or more instructions or code on a computer readable medium.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a general purpose or special purpose computer.

Abstract

Disclosed are a method and device for device arbitration. The method comprises: a first storage device transmits an arbitration request message to an arbitration server; the arbitration server transmits, on the basis of the arbitration request message, of registration information of the first storage device, and of a second storage device not taking over a host service, to the first storage device an indication message indicating that the first storage device is to take over the host service and deletes registration information of the second storage device; the first storage device transmits a reservation request message to the arbitration server to indicate that the arbitration server is to ban the second storage device from registering. The method and device for device arbitration provided in embodiments of the present invention can prevent the occurrence of a possible case of data desynchronization as a result of multiple device simultaneously taking over the host service, thus increasing the fault tolerance capability, reliability, and security of a dual live arbitration system.

Description

设备仲裁的方法和设备Method and equipment for equipment arbitration 技术领域Technical field
本发明涉及通信领域,尤其涉及一种设备仲裁的方法和设备。The present invention relates to the field of communications, and in particular, to a method and device for device arbitration.
背景技术Background technique
随着信息技术的发展,数据的处理越来越集中,对数据安全的要求也越来越高,双活系统是一种节约资源的计算机灾备(Disaster Recovery)方案,其实现模式是让两个数据中心同时承担用户的业务,两个数据中心互为备份,并且进行实时备份。With the development of information technology, the processing of data is more and more concentrated, and the requirements for data security are getting higher and higher. The dual-active system is a resource-saving computer disaster recovery (Disaster Recovery) solution, and its implementation mode is to let two The data centers simultaneously assume the user's business, and the two data centers are backed up each other and backed up in real time.
当双活系统的两个数据中心之间的通信断开后,两个数据中心会各自向仲裁服务器发送仲裁请求消息,请求接管主机业务,仲裁服务器保存有两个数据中心的注册信息,当仲裁服务器确定其中一个数据中心可以接管主机业务后会删除另外一个数据中心的注册信息,从而避免两个数据中心同时接管主机业务导致对外提供的主机业务不一致的情况。然而,根据现有技术的方案,如果注册信息被删除的数据中心再次发起注册请求以及仲裁请求,仲裁服务器会保存该数据中心的注册信息,并根据其保存的该数据中心的注册信息判定该数据中心可以接管主机业务,这样,就会出现两个数据中心同时接管主机业务的情况,从而会出现对外提供的主机业务不一致的情况。When the communication between the two data centers of the active-active system is disconnected, the two data centers respectively send an arbitration request message to the arbitration server to request to take over the host service, and the arbitration server saves the registration information of the two data centers when the arbitration The server determines that one of the data centers can take over the host service and deletes the registration information of the other data center. This prevents the two data centers from taking over the host service at the same time and causing the host service to be inconsistent. However, according to the prior art solution, if the data center whose registration information is deleted initiates the registration request and the arbitration request again, the arbitration server saves the registration information of the data center, and determines the data according to the registration information of the data center saved therein. The center can take over the host service. In this way, two data centers will take over the host service at the same time, which may result in inconsistent host services provided by the external.
发明内容Summary of the invention
有鉴于此,本发明实施例提供了一种设备仲裁的方法和设备,可以防止仲裁失败的设备再次进行注册和抢占操作,从而可以提高系统的容错能力、可靠性和安全性。In view of this, the embodiments of the present invention provide a method and a device for arbitrating devices, which can prevent the device that fails the arbitration from registering and preempting operations again, thereby improving fault tolerance, reliability, and security of the system.
一方面,本发明实施例提供了一种设备仲裁的方法,所述方法应用于存储系统中,所述存储系统包括第一存储设备、第二存储设备和仲裁服务器,该方法包括:当第一存储设备和第二存储设备之间的通信链路发生故障时,所述第一存储设备向所述仲裁服务器发送仲裁请求消息,所述仲裁请求消息包括所述第一存储设备的标识信息以及业务接管信息,所述业务接管信息用于指示所述第一存储设备要求接管主机业务;所述仲裁服务器根据所述第一存储设备的仲裁请求消息、所述第一存储设备的注册信息以及所述第二存储设备未接管主机业务,向所述第一存储设备发送指示所述第一存储设备接管主机业务的指示消息,并删除所述仲裁服务器保存的所述第二存储设备的注册信息,其中,所述仲裁服务器预先保存有所述第一存储设备的注册信息和所述第二存储设备的注册信息;所述第一存储设备根据所述指示消息接管主机业务,并向所述仲裁服务器发送预留请求消息,所述预留请求消息包括所述第一存储设备的标识信息以及预留指示信息,所述预留指示信息用于指示所述仲裁服务器禁止所述第二存储设备进行注册;所述仲裁服务器从所述第二存储设备接收注册请求消息,所述注册请求消息包括所述第二存储设备的注册信息;所述仲裁服务器根据所述预留指示信息,拒绝所述第二存储设备进行注册。In one aspect, an embodiment of the present invention provides a method for device arbitration, where the method is applied to a storage system, where the storage system includes a first storage device, a second storage device, and an arbitration server, and the method includes: when the first When the communication link between the storage device and the second storage device fails, the first storage device sends an arbitration request message to the arbitration server, where the arbitration request message includes the identification information of the first storage device and the service. Taking over the information, the service takeover information is used to indicate that the first storage device requests to take over the host service; the arbitration server is configured according to the arbitration request message of the first storage device, the registration information of the first storage device, and the The second storage device does not take over the host service, and sends an indication message indicating that the first storage device takes over the host service to the first storage device, and deletes the registration information of the second storage device saved by the arbitration server, where The arbitration server pre-stores registration information of the first storage device and the second storage The registration information of the device, the first storage device takes over the host service according to the indication message, and sends a reservation request message to the arbitration server, where the reservation request message includes the identification information of the first storage device and the pre- The indication information is used to indicate that the arbitration server prohibits the second storage device from registering; the arbitration server receives a registration request message from the second storage device, where the registration request message includes Determining registration information of the second storage device; the arbitration server denying the second storage device to register according to the reservation indication information.
根据本发明实施例提供的设备仲裁的方法,仲裁服务器可以根据第一存储设备的仲裁请求消息、第一存储设备的注册信息和当前第二存储设备没有接管主机业务的情况,将第一存储设备确定为唯一接管主机业务的设备,从而可以确保第一阵列为唯一接管主机业务的设备,避免可能出现的多个阵列同时接管主机业务导致的数据不同步的情况, 提高了系统的容错能力、可靠性和安全性。According to the method for device arbitration provided by the embodiment of the present invention, the arbitration server may use the first storage device according to the arbitration request message of the first storage device, the registration information of the first storage device, and the current situation that the second storage device does not take over the host service. The device is determined to be the only device that takes over the host service, thereby ensuring that the first array is the only device that takes over the host service, and avoids the situation that multiple arrays may take over the data caused by the host service at the same time, and the data is not synchronized. Improve the system's fault tolerance, reliability and security.
可选地,所述仲裁服务器从所述第一存储设备接收所述预留请求消息之后,所述方法还包括:当所述第一存储设备和所述第二存储设备之间的通信链路恢复正常后,所述第一存储设备向所述仲裁服务器发送预留清除消息,所述预留清除消息用于请求所述仲裁服务器删除所述预留指示信息,以便于所述第二存储设备进行注册;所述仲裁服务器根据所述预留清除消息删除所述预留指示信息。Optionally, after the arbitration server receives the reservation request message from the first storage device, the method further includes: a communication link between the first storage device and the second storage device After the normal recovery, the first storage device sends a reservation clear message to the arbitration server, where the reservation clear message is used to request the arbitration server to delete the reservation indication information, so as to facilitate the second storage device. Performing registration; the arbitration server deletes the reservation indication information according to the reservation clear message.
根据本发明实施例提供的设备仲裁的方法,仲裁服务器可以根据第一存储设备发送的预留清除消息删除第一存储设备的预留指示信息,以便于第二存储设备进行注册,从而可以在不同存储设备之间通信恢复正常后使用多个存储设备处理主机业务,提高系统的可靠性和安全性。According to the method for device arbitration provided by the embodiment of the present invention, the arbitration server may delete the reservation indication information of the first storage device according to the reservation clear message sent by the first storage device, so that the second storage device performs registration, and thus may be different. After the communication between the storage devices is restored, use multiple storage devices to process the host services to improve system reliability and security.
可选地,所述仲裁服务器从所述第一存储设备接收所述预留请求消息之后,所述方法还包括:所述第二存储设备向所述仲裁服务器发送预留清除消息,所述预留清除消息用于请求所述仲裁服务器删除所述预留指示信息;所述仲裁服务器根据所述预留指示信息拒绝清除所述预留清除消息的请求,其中,所述预留指示信息用于指示所述仲裁服务器拒绝所述第二存储设备的删除请求。Optionally, after the arbitration server receives the reservation request message from the first storage device, the method further includes: the second storage device sending a reservation clear message to the arbitration server, where the The reservation clear message is used to request the arbitration server to delete the reservation indication information; the arbitration server rejects the request to clear the reservation clear message according to the reservation indication information, where the reservation indication information is used for Instructing the arbitration server to reject the deletion request of the second storage device.
根据本发明实施例提供的设备仲裁的方法,仲裁服务器可以根据第一存储设备的预留指示信息拒绝第二存储设备发送的预留清除消息的请求,从而可以防止仲裁失败的设备再次进行注册和抢占操作,从而可以提高系统的容错能力、可靠性和安全性。According to the method for device arbitration provided by the embodiment of the present invention, the arbitration server may reject the request for the reservation clear message sent by the second storage device according to the reservation indication information of the first storage device, thereby preventing the device that fails the arbitration from registering again. Preemptive operations can improve the system's fault tolerance, reliability, and security.
另一方面,本发明实施例提供了一种设备仲裁的方法,所述方法应用于存储系统中,所述存储系统包括第一存储设备、第二存储设备和仲裁服务器,该方法包括:当第一存储设备和第二存储设备之间的通信链路发生故障时,所述第一存储设备向所述仲裁服务器发送仲裁请求消息,所述仲裁请求消息包括所述第一存储设备的标识信息、业务接管信息和预留指示信息,其中,所述业务接管信息用于指示所述第一存储设备要求接管主机业务,所述预留指示信息用于指示所述仲裁服务器禁止所述第二存储设备进行注册;所述仲裁服务器根据所述第一存储设备的仲裁请求消息、所述第一存储设备的注册信息以及所述第二存储设备未接管主机业务,向所述第一存储设备发送指示所述第一存储设备接管主机业务的指示消息,并删除所述仲裁服务器保存的所述第二存储设备的注册信息,其中,所述仲裁服务器预先保存有所述第一存储设备的注册信息和所述第二存储设备的注册信息;所述仲裁服务器从所述第二存储设备接收注册请求消息,所述注册请求消息包括所述第二存储设备的注册信息;所述仲裁服务器根据所述预留指示信息,拒绝所述第二存储设备进行注册。On the other hand, an embodiment of the present invention provides a method for device arbitration, where the method is applied to a storage system, where the storage system includes a first storage device, a second storage device, and an arbitration server, and the method includes: When the communication link between the storage device and the second storage device fails, the first storage device sends an arbitration request message to the arbitration server, where the arbitration request message includes the identifier information of the first storage device, The service takeover information and the reservation indication information, where the service takeover information is used to indicate that the first storage device requests to take over the host service, and the reservation indication information is used to indicate that the arbitration server prohibits the second storage device Performing registration; the arbitration server sends an indication to the first storage device according to the arbitration request message of the first storage device, the registration information of the first storage device, and the second storage device not taking over the host service. Determining, by the first storage device, an indication message of taking over the host service, and deleting the second saved by the arbitration server Registration information of the storage device, wherein the arbitration server pre-stores registration information of the first storage device and registration information of the second storage device; the arbitration server receives a registration request message from the second storage device The registration request message includes registration information of the second storage device; the arbitration server rejects the second storage device to register according to the reservation indication information.
根据本发明实施例提供的设备仲裁的方法,仲裁服务器可以根据第一存储设备发送的携带预留指示信息的仲裁请求消息、第一存储设备的注册信息和当前第二存储设备没有接管主机业务的情况,删除第二存储设备的注册信息,从而可以确保第一存储设备为唯一接管主机业务的设备,避免可能出现的多个存储设备同时接管主机业务导致的数据不同步的情况,提高了系统的容错能力、可靠性和安全性,同时还可以节省信令开销。According to the method for device arbitration provided by the embodiment of the present invention, the arbitration server may use the arbitration request message carrying the reservation indication information sent by the first storage device, the registration information of the first storage device, and the current second storage device does not take over the host service. In this case, the registration information of the second storage device is deleted, so that the first storage device is the only device that takes over the host service, and the situation that multiple storage devices may take over the data caused by the host service at the same time is avoided, thereby improving the system. Fault tolerance, reliability and security, while also saving on signaling overhead.
可选地,所述仲裁服务器从所述第一存储设备接收所述仲裁请求消息之后,所述方法还包括:当所述第一存储设备和所述第二存储设备之间的通信链路恢复正常后,所述第一存储设备向所述仲裁服务器发送预留清除消息,所述预留清除消息用于请求所述仲裁服务器删除所述预留指示信息,以便于所述第二存储设备进行注册;所述仲裁服务器 根据所述预留清除消息删除所述预留指示信息。Optionally, after the arbitration server receives the arbitration request message from the first storage device, the method further includes: when the communication link between the first storage device and the second storage device is restored After the normal storage, the first storage device sends a reservation clear message to the arbitration server, where the reservation clear message is used to request the arbitration server to delete the reservation indication information, so as to be performed by the second storage device. Registration; the arbitration server And deleting the reservation indication information according to the reservation clear message.
根据本发明实施例提供的设备仲裁的方法,仲裁服务器可以根据第一存储设备发送的预留清除消息删除第一存储设备的预留指示信息,以便于第二存储设备进行注册,从而可以在不同存储设备之间通信恢复正常后使用多个存储设备处理主机业务,提高系统的可靠性和安全性。According to the method for device arbitration provided by the embodiment of the present invention, the arbitration server may delete the reservation indication information of the first storage device according to the reservation clear message sent by the first storage device, so that the second storage device performs registration, and thus may be different. After the communication between the storage devices is restored, use multiple storage devices to process the host services to improve system reliability and security.
可选地,所述仲裁服务器从所述第一存储设备接收所述仲裁请求消息之后,所述方法还包括:所述仲裁服务器从所述第二存储设备接收预留清除消息,所述预留清除消息用于请求所述仲裁服务器删除所述预留指示信息;所述仲裁服务器根据所述预留指示信息拒绝所述预留清除消息的请求,其中,所述预留指示信息用于指示所述仲裁服务器拒绝所述第二存储设备的删除请求。Optionally, after the arbitration server receives the arbitration request message from the first storage device, the method further includes: the arbitration server receiving a reservation clear message from the second storage device, where the reservation The clearing message is used to request the arbitration server to delete the reservation indication information; the arbitration server rejects the request for the reservation clear message according to the reservation indication information, where the reservation indication information is used to indicate The arbitration server rejects the deletion request of the second storage device.
根据本发明实施例提供的设备仲裁的方法,仲裁服务器可以根据第一存储设备的预留指示信息拒绝第二存储设备发送的预留清除消息的请求,从而可以防止仲裁失败的设备再次进行注册和抢占操作,从而可以提高系统的容错能力、可靠性和安全性。According to the method for device arbitration provided by the embodiment of the present invention, the arbitration server may reject the request for the reservation clear message sent by the second storage device according to the reservation indication information of the first storage device, thereby preventing the device that fails the arbitration from registering again. Preemptive operations can improve the system's fault tolerance, reliability, and security.
再一方面,本发明实施例提供了一种设备仲裁的仲裁服务器,该仲裁服务器可以实现上述方面所涉及方法中仲裁服务器所执行的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个上述功能相应的单元或模块。In another aspect, an embodiment of the present invention provides an arbitration server for device arbitration, where the arbitration server can implement the functions performed by the arbitration server in the method related to the foregoing aspects, and the functions can be implemented by hardware or by hardware. Software implementation. The hardware or software includes one or more corresponding units or modules of the above functions.
在一种可能的设计中,该仲裁服务器的结构中包括处理器和通信接口,该处理器被配置为支持该仲裁服务器执行上述方法中相应的功能。该通信接口用于支持该仲裁服务器与其它网元之间的通信。该仲裁服务器还可以包括存储器,该存储器用于与处理器耦合,其保存该仲裁服务器必要的程序指令和数据。In one possible design, the structure of the arbitration server includes a processor and a communication interface configured to support the arbitration server to perform the corresponding functions of the above methods. The communication interface is used to support communication between the arbitration server and other network elements. The arbitration server can also include a memory for coupling with the processor that holds the program instructions and data necessary for the arbitration server.
再一方面,本发明实施例提供了一种设备仲裁的第一存储设备,该第一存储设备可以实现上述方面所涉及方法中第一存储设备所执行的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个上述功能相应的单元或模块。In a further aspect, the embodiment of the present invention provides a first storage device that is arbitrated by a device, and the first storage device may implement a function performed by the first storage device in the method related to the foregoing aspect, where the function may be implemented by using a hardware. The corresponding software implementation can also be performed by hardware. The hardware or software includes one or more corresponding units or modules of the above functions.
在一种可能的设计中,该第一存储设备的结构中包括处理器和通信接口,该处理器被配置为支持该仲裁服务器执行上述方法中相应的功能。该通信接口用于支持该第一存储设备与其它网元之间的通信。该第一存储设备还可以包括存储器,该存储器用于与处理器耦合,其保存该第一存储设备必要的程序指令和数据。In one possible design, the first storage device includes a processor and a communication interface configured to support the arbitration server to perform the corresponding functions in the above method. The communication interface is used to support communication between the first storage device and other network elements. The first storage device can also include a memory for coupling with the processor that retains the program instructions and data necessary for the first storage device.
再一方面,本发明实施例提供了一种通信系统,该通信系统包括上述方面所述的仲裁服务器和第一存储设备。In still another aspect, an embodiment of the present invention provides a communication system, including the arbitration server and the first storage device in the foregoing aspect.
再一方面,本发明实施例提供了一种计算机存储介质,用于存储上述仲裁服务器所用的计算机软件指令,其包含用于执行上述方面所设计的程序。In still another aspect, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by the arbitration server, which includes a program designed to execute the above aspects.
再一方面,本发明实施例提供了一种计算机存储介质,用于存储上述第一存储设备所用的计算机软件指令,其包含用于执行上述方面所设计的程序。In still another aspect, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by the first storage device, including a program designed to perform the above aspects.
相比于现有技术,根据本发明实施例提供的设备仲裁的方法,仲裁服务器可以根据第一存储设备发送的请求消息、第一存储设备的注册信息以及当前没有其它存储设备接管主机业务的情况,确定第一存储设备为唯一接管主机业务的设备,并且,仲裁服务器根据第一存储设备唯一接管主机业务的状态拒绝其它存储设备的注册请求或仲裁请求,从而可以确保第一存储设备为唯一接管主机业务的设备,避免可能出现的多个设备同时 接管主机业务导致的数据不同步,提高了双活仲裁系统的容错能力、可靠性和安全性,此外,第一存储设备的唯一接管主机业务的状态只能由第一存储设备发送的消息清除,进一步提高了双活仲裁系统的安全性。Compared with the prior art, according to the method for device arbitration provided by the embodiment of the present invention, the arbitration server may use the request message sent by the first storage device, the registration information of the first storage device, and the current situation that no other storage device takes over the host service. Determining that the first storage device is the only device that takes over the host service, and the arbitration server rejects the registration request or the arbitration request of the other storage device according to the state that the first storage device uniquely takes over the host service, thereby ensuring that the first storage device is the only takeover Host service equipment, avoiding multiple devices that may appear at the same time The data that is taken over by the host service is not synchronized, which improves the fault tolerance, reliability, and security of the active-active arbitration system. In addition, the state of the first storage device that only takes over the host service can only be cleared by the message sent by the first storage device. The safety of the active-active arbitration system is further improved.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings to be used in the embodiments of the present invention will be briefly described below. It is obvious that the drawings described below are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1是适用本发明实施例的一种可能的存储系统的示意性架构图;1 is a schematic architectural diagram of a possible storage system to which an embodiment of the present invention is applied;
图2是本发明实施例提供的一种设备仲裁的方法的通信示意图;2 is a schematic diagram of communication of a method for device arbitration according to an embodiment of the present invention;
图3是本发明实施例提供的另一种设备仲裁的方法的通信示意图;FIG. 3 is a schematic diagram of communication of another method for device arbitration according to an embodiment of the present invention; FIG.
图4是本发明实施例提供的再一种设备仲裁的方法的通信示意图;4 is a schematic diagram of communication of a method for device arbitration according to an embodiment of the present invention;
图5是本发明实施例提供的再一种设备仲裁的方法的通信示意图;FIG. 5 is a schematic diagram of communication of another method for device arbitration according to an embodiment of the present invention; FIG.
图6A是本发明实施例提供的一种可能的仲裁服务器的结构示意图;6A is a schematic structural diagram of a possible arbitration server according to an embodiment of the present invention;
图6B是本发明实施例提供的另一种可能的仲裁服务器的结构示意图;6B is a schematic structural diagram of another possible arbitration server according to an embodiment of the present invention;
图7A是本发明实施例提供的一种可能的存储设备的结构示意图;7A is a schematic structural diagram of a possible storage device according to an embodiment of the present invention;
图7B是本发明实施例提供的另一种可能的存储设备的结构示意图。FIG. 7B is a schematic structural diagram of another possible storage device according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
根据本发明实施例的设备仲裁的方法和设备,可以对双活系统的阵列或阵列上的逻辑存储单元(Logic Unit Number,LUN)进行仲裁,也可以对其它需要进行仲裁的设备或单元进行仲裁,下面,以阵列为例对本发明实施例进行详细说明,本发明实施例不限于此,根据本发明实施例的设备仲裁的方法还可以应用于其它存储设备。The method and device for device arbitration according to an embodiment of the present invention may arbitrate a logical unit number (LUN) on an array or array of active-active systems, or may arbitrate other devices or units that need to arbitrate. The embodiment of the present invention is described in detail by taking an array as an example. The embodiment of the present invention is not limited thereto, and the method for device arbitration according to the embodiment of the present invention may also be applied to other storage devices.
为了便于理解本发明实施例,首先,对本发明实施例的应用场景进行简要介绍。图1示出了适用本发明实施例的一种可能的存储系统的示意图。In order to facilitate the understanding of the embodiments of the present invention, the application scenarios of the embodiments of the present invention are briefly introduced. Figure 1 shows a schematic diagram of one possible storage system to which embodiments of the present invention are applicable.
如图1所示,存储系统包括:主机或主机集群110、阵列120、阵列130和仲裁服务器140,主机集群110同时和阵列120、阵列130连接,阵列120、阵列130间相互连接,阵列120、阵列130同时和仲裁服务器140连接。当双活系统正常运行时,主机集群110可同时对阵列120和阵列130下发读写业务,其对阵列120下发写业务的流程如下:As shown in FIG. 1, the storage system includes: a host or a host cluster 110, an array 120, an array 130, and an arbiter server 140. The host cluster 110 is simultaneously connected to the array 120 and the array 130, and the array 120 and the array 130 are connected to each other. The array 130 is simultaneously connected to the arbitration server 140. When the active-active system is running normally, the host cluster 110 can simultaneously send and write services to the array 120 and the array 130. The process of sending the write service to the array 120 is as follows:
1.主机集群110向阵列120下发写数据业务;1. The host cluster 110 sends a write data service to the array 120.
2.阵列120将下发的数据同时写到阵列120和阵列130;2. The array 120 writes the sent data to the array 120 and the array 130 at the same time;
3.阵列120和阵列130的写数据均完成;3. The write data of array 120 and array 130 are completed;
4.阵列120向主机集群110发送写数据完成的消息。4. The array 120 sends a message to the host cluster 110 to write data completion.
主机集群110对阵列130的写数据基本流程类似,如步骤1’、2’、3’和4’所示。当阵列120与阵列130之间的通信链路发生故障(即,脑裂)时,为了避免业务不同步, 只能由阵列120与阵列130中的一个阵列接管主机业务,由于此时阵列120与阵列130之间不能进行通信,因此需要由仲裁服务器140来确定谁来接管主机业务。阵列120与阵列130会分别向仲裁服务器140发起仲裁请求,如果仲裁服务器140先接收到阵列120发送的仲裁请求消息,则仲裁服务器可以根据阵列120的注册信息以及阵列120的仲裁请求消息确定阵列120获胜,将阵列120确定为接管主机业务的阵列,并将阵列130的注册信息清除。The basic flow of write data for array 130 by host cluster 110 is similar, as shown in steps 1', 2', 3', and 4'. When the communication link between the array 120 and the array 130 fails (ie, brain splitting), in order to avoid business out of synchronization, The host service can only be taken over by one of the array 120 and the array 130. Since the array 120 and the array 130 cannot communicate with each other at this time, it is necessary for the arbitration server 140 to determine who will take over the host service. The array 120 and the array 130 respectively initiate an arbitration request to the arbitration server 140. If the arbitration server 140 first receives the arbitration request message sent by the array 120, the arbitration server may determine the array 120 according to the registration information of the array 120 and the arbitration request message of the array 120. To win, array 120 is determined to take over the array of host services and clear the registration information for array 130.
由于仲裁服务器140仅能被动接受阵列120和阵列130的注册信息,因此,当阵列130出现逻辑错误时,阵列130可能再进行一次注册,然后再发起仲裁,则阵列130也会获胜,从而导致阵列120和阵列130同时单独对外提供业务,并且会出现数据不一致的情况。Since the arbitration server 140 can only passively accept the registration information of the array 120 and the array 130, when the array 130 has a logic error, the array 130 may register again and then initiate arbitration, and the array 130 will also win, resulting in an array. The 120 and the array 130 simultaneously provide services to the outside, and data inconsistency may occur.
根据本发明实施例的设备仲裁的方法,阵列120在仲裁获胜后向仲裁服务器发送预留请求消息,该预留请求消息包括阵列120的标识以及预留指示信息,该预留请求消息用于请求仲裁服务器140禁止阵列130进行注册,从而可以避免阵列130仲裁获胜。或者阵列120也可以想仲裁服务器140发送包括预留指示信息的仲裁请求消息,请求接管主机业务并请求仲裁服务器140禁止阵列130进行注册。According to the method for device arbitration according to the embodiment of the present invention, the array 120 sends a reservation request message to the arbitration server after the arbitration wins, the reservation request message includes an identifier of the array 120 and reservation indication information, and the reservation request message is used for the request. The arbitration server 140 prohibits the array 130 from registering, thereby avoiding the array 130 arbitrating winning. Or the array 120 may also want the arbitration server 140 to send an arbitration request message including reservation indication information, requesting to take over the host service and requesting the arbitration server 140 to prohibit the array 130 from registering.
图2示出了本发明实施例提供的设备仲裁的方法的示意性流程图。如图2所示,该方法200包括:FIG. 2 is a schematic flowchart of a method for device arbitration provided by an embodiment of the present invention. As shown in FIG. 2, the method 200 includes:
S201,第一存储设备向仲裁服务器发送仲裁请求消息,该仲裁请求消息包括该第一存储设备的标识信息以及业务接管信息,该业务接管信息用于指示该第一存储设备要求接管主机业务。S201: The first storage device sends an arbitration request message to the arbitration server, where the arbitration request message includes the identifier information of the first storage device and the service takeover information, where the service takeover information is used to indicate that the first storage device requests to take over the host service.
S202,仲裁服务器根据第一存储设备发送的仲裁请求消息、第一存储设备的注册信息以及第二存储设备未接管主机业务,删除仲裁服务器保存的第二存储设备的注册信息,其中,仲裁服务器预先保存有第一存储设备的注册信息和第二存储设备的注册信息。S202, the arbitration server deletes the registration information of the second storage device saved by the arbitration server according to the arbitration request message sent by the first storage device, the registration information of the first storage device, and the second storage device does not take over the host service, where the arbitration server is pre- The registration information of the first storage device and the registration information of the second storage device are saved.
S203,仲裁服务器向第一存储设备发送指示第一存储设备接管主机业务的指示消息。S203. The arbitration server sends an indication message to the first storage device that the first storage device takes over the host service.
S204,第一存储设备根据该指示消息接管主机业务,并向仲裁服务器发送预留请求消息,该预留请求消息包括第一存储设备的标识信息以及预留指示信息,该预留指示信息用于指示仲裁服务器禁止第二存储设备进行注册。S204: The first storage device takes over the host service according to the indication message, and sends a reservation request message to the arbitration server, where the reservation request message includes identifier information of the first storage device and reservation indication information, where the reservation indication information is used. The arbitration server is instructed to prohibit the second storage device from registering.
S205,仲裁服务器从第二存储设备接收注册请求消息,该注册请求消息包括第二存储设备的注册信息。S205. The arbitration server receives a registration request message from the second storage device, where the registration request message includes registration information of the second storage device.
S206,仲裁服务器根据预留指示信息,拒绝第二存储设备进行注册。S206. The arbitration server rejects the second storage device to register according to the reservation indication information.
第一存储设备可以是第一阵列,第一阵列可以在发现其与第二阵列(即,第二存储设备)的通信链路断开时生成仲裁请求信息,该仲裁请求信息用于请求接管主机业务;仲裁服务器可以根据本地存储的第一阵列的注册信息,以及当前没有其它阵列接管主机业务的情况将第一阵列确定为接管主机业务的阵列,并向第一阵列发送指示消息,通知第一阵列仲裁获胜;第一阵列可以根据其仲裁胜利生成预留请求信息,该预留请求消息用于指示仲裁服务器禁止第二阵列注册,例如,该预留请求消息可以请求仲裁服务器将第一阵列的注册信息修改为预留信息,该预留信息表示第一阵列为唯一接管主机业务的设备;仲裁服务器接收到预留请求信息后根据该预留请求信息将第一阵列的注册信息修改为预留信息,仲裁服务器可以根据该预留信息拒绝第二阵列的仲裁请求、注册请求或者清除该预留信息的请求,从而可以确保第一阵列为唯一接管主机业务的设备,避免可 能出现的多个阵列同时接管主机业务导致的数据不同步。The first storage device may be a first array, and the first array may generate arbitration request information when it is found that the communication link with the second array (ie, the second storage device) is disconnected, the arbitration request information is used to request to take over the host The arbitrating server may determine, according to the registration information of the first array stored locally, and the current situation that no other array takes over the host service, determine the first array as an array that takes over the host service, and send an indication message to the first array to notify the first Array arbitration wins; the first array may generate reservation request information according to its arbitration victory, the reservation request message is used to instruct the arbitration server to prohibit the second array registration, for example, the reservation request message may request the arbitration server to be the first array The registration information is modified into reservation information, and the reservation information indicates that the first array is the only device that takes over the host service; after receiving the reservation request information, the arbitration server modifies the registration information of the first array to the reservation according to the reservation request information. Information, the arbitration server may reject the arbitration request of the second array according to the reservation information Or clear the registration request requesting the reservation information, the device can be ensured as the only first array take over the host service, may be avoided The data that can occur when multiple arrays take over the host business at the same time is not synchronized.
上述实施例仅是举例说明,本发明实施例不限于此,例如,仲裁服务器可以根据第一阵列发送的预留请求信息在第一阵列的注册信息中添加标识,该标识用于禁止第二阵列注册。The foregoing embodiment is only an example, and the embodiment of the present invention is not limited thereto. For example, the arbitration server may add an identifier to the registration information of the first array according to the reservation request information sent by the first array, where the identifier is used to disable the second array. registered.
可选地,仲裁服务器从第一存储设备接收预留请求消息后,方法200还包括:Optionally, after the arbitration server receives the reservation request message from the first storage device, the method 200 further includes:
S207,当第一存储设备和第二存储设备之间的通信链路恢复正常后,第一存储设备向仲裁服务器发送预留清除消息,该预留清除消息用于请求仲裁服务器删除预留指示消息,以便于第二存储设备进行注册。S207. After the communication link between the first storage device and the second storage device returns to normal, the first storage device sends a reservation clear message to the arbitration server, where the reservation clear message is used to request the arbitration server to delete the reservation indication message. In order to facilitate the registration of the second storage device.
S208,仲裁服务器根据该预留清除消息删除所述预留指示信息。S208. The arbitration server deletes the reservation indication information according to the reservation clear message.
当第一存储设备与第二存储设备之间的通信链路恢复正常后,第一存储设备可以向仲裁服务器发送预留清除消息,请求清除预留指示信息,仲裁服务器清除掉预留指示信息后,第二存储设备就可以向仲裁服务器发送注册请求消息,请求进行注册,此时,仲裁服务器就可以保存第二存储设备的注册信息,第二存储设备注册成功后,就可以与第一存储设备共同接管主机业务并且同步数据,继续执行双活系统的安全备份功能。After the communication link between the first storage device and the second storage device returns to normal, the first storage device may send a reservation clear message to the arbitration server, requesting to clear the reservation indication information, and the arbitration server clears the reservation indication information. The second storage device may send a registration request message to the arbiter server to request registration. At this time, the arbitration server may save the registration information of the second storage device. After the second storage device is successfully registered, the second storage device may be associated with the first storage device. Take over the host service and synchronize the data, and continue to perform the secure backup function of the active-active system.
可选地,方法200还包括:Optionally, the method 200 further includes:
S209,第二存储设备向仲裁服务器发送预留清除消息,所述预留清除消息用于请求仲裁服务器删除第一存储设备的预留指示信息。S209. The second storage device sends a reservation clear message to the arbitration server, where the reservation clear message is used to request the arbitration server to delete the reservation indication information of the first storage device.
S210,仲裁服务器根据该预留指示信息拒绝第二存储设备的预留清除消息的请求,其中,该预留指示信息用于指示仲裁服务器拒绝第二存储设备的删除请求。S210. The arbitration server rejects the request for the reservation clear message of the second storage device according to the reservation indication information, where the reservation indication information is used to indicate that the arbitration server rejects the deletion request of the second storage device.
第一存储设备的预留指示信息只能由第一存储设备主动清除,其它设备不能清除该状态,从而可以避免病毒入侵、软件bug等问题导致的第一阵列的预留指示信息被删除,提高安全性。The reservation indication information of the first storage device can be automatically cleared by the first storage device, and the other device cannot clear the state, so that the reservation indication information of the first array caused by virus intrusion, software bugs, and the like can be prevented from being deleted. safety.
图2中仅举例示出了两个存储设备,根据本发明实施例的设备仲裁的方法还可应用于包括大于两个存储设备的存储系统,因此,根据本发明实施例的设备仲裁的方法200,存储设备在仲裁获胜后向仲裁服务器发送预留请求信息,请求将该存储设备确定为唯一接管主机业务的设备,避免软件bug、用户误操作、网络传输故障、病毒入侵等问题导致的不同存储设备分别对外提供业务,从而避免了对外提供数据不一致的情况,提高了双活仲裁系统的容错能力、可靠性和安全性。Only two storage devices are illustrated by way of example in FIG. 2, and the method of device arbitration according to an embodiment of the present invention is also applicable to a storage system including more than two storage devices. Therefore, the method 200 for device arbitration according to an embodiment of the present invention is illustrated. After the arbitration wins, the storage device sends the reservation request information to the arbitration server, and requests the storage device to be the only device that takes over the host service, and avoids different storage caused by software bugs, user misoperations, network transmission failures, virus intrusion, and the like. The devices provide services to the outside, thus avoiding the inconsistency of external data and improving the fault tolerance, reliability and security of the dual-active arbitration system.
图3示出了本发明实施例提供的设备仲裁的方法的示意性流程图。如图3所示,该方法300包括:FIG. 3 is a schematic flowchart of a method for device arbitration provided by an embodiment of the present invention. As shown in FIG. 3, the method 300 includes:
S301,当第一存储设备和第二存储设备之间的通信链路发生故障时,第一存储设备向仲裁服务器发送仲裁请求消息,该仲裁请求消息包括第一存储设备的标识信息、业务接管信息和预留指示信息,其中,所述业务接管信息用于指示第一存储设备要求接管主机业务,所述预留指示信息用于指示所述仲裁服务器禁止第二存储设备进行注册。S301. When the communication link between the first storage device and the second storage device fails, the first storage device sends an arbitration request message to the arbitration server, where the arbitration request message includes the identifier information of the first storage device and the service takeover information. And the reservation indication information, wherein the service takeover information is used to indicate that the first storage device requests to take over the host service, and the reservation indication information is used to instruct the arbitration server to prohibit the second storage device from registering.
S302,仲裁服务器根据第一存储设备的仲裁请求消息、该第一存储设备的注册信息以及第二存储设备未接管主机业务,删除仲裁服务器保存的第二存储设备的注册信息,其中,仲裁服务器预先保存有第一存储设备和第二存储设备的注册信息。S302, the arbitration server deletes the registration information of the second storage device saved by the arbitration server according to the arbitration request message of the first storage device, the registration information of the first storage device, and the second storage device does not take over the host service, where the arbitration server is pre- The registration information of the first storage device and the second storage device is saved.
S303,仲裁服务器向第一存储设备发送指示消息,该指示消息用于指示第一存储设备可以接管主机业务。S303. The arbitration server sends an indication message to the first storage device, where the indication message is used to indicate that the first storage device can take over the host service.
S304,仲裁服务器从第二存储设备接收注册请求消息,该注册请求消息包括第二存 储设备的注册信息。S304. The arbitration server receives a registration request message from the second storage device, where the registration request message includes the second storage. Storage device registration information.
S305,仲裁服务器根据第一存储设备的预留指示信息,拒绝第二存储设备进行注册。S305. The arbitration server rejects the second storage device to register according to the reservation indication information of the first storage device.
第一存储设备可以是第一阵列,第一阵列可以在发现其与第二阵列(即,第二存储设备)的通信链路断开时生成仲裁请求信息,该仲裁请求信息用于请求接管主机业务,该仲裁请求消息还包括预留指示信息,该预留指示信息指示仲裁服务器禁止第二阵列进行注册;仲裁服务器可以根据本地存储的第一阵列的注册信息,以及当前没有其它阵列接管主机业务的情况将第一阵列确定为接管主机业务的阵列,并向第一阵列发送指示消息,通知第一阵列仲裁获胜,仲裁服务器还可以根据该预留指示信息将第一阵列预留在仲裁服务器中的注册信息修改为预留信息,仲裁服务器可以根据该预留信息拒绝第二阵列的仲裁请求、注册请求或者清除该预留信息的请求,从而可以确保第一阵列为唯一接管主机业务的设备,避免可能出现的多个阵列同时接管主机业务导致的数据不同步,根据本发明实施例的设备仲裁的方法还可以节省信令开销。The first storage device may be a first array, and the first array may generate arbitration request information when it is found that the communication link with the second array (ie, the second storage device) is disconnected, the arbitration request information is used to request to take over the host The arbitration request message further includes reservation indication information, the reservation indication information instructing the arbitration server to prohibit the second array from registering; the arbitration server may take over the registration information of the first array stored locally, and currently no other array takes over the host service. The first array is determined to take over the array of host services, and sends an indication message to the first array to notify the first array that the arbitration wins, and the arbitration server may further reserve the first array in the arbitration server according to the reservation indication information. The registration information is modified into reservation information, and the arbitration server may reject the arbitration request, the registration request, or the request for clearing the reservation information according to the reservation information, thereby ensuring that the first array is the only device that takes over the host service. Avoid the number of possible multiple arrays taking over the host business at the same time Not synchronized, it can also save signaling overhead equipment arbitration method according to an embodiment of the present invention.
图4示出了本发明另一实施例提供的设备仲裁的方法的示意性流程图。如图4所示,该方法400包括:FIG. 4 is a schematic flowchart of a method for device arbitration provided by another embodiment of the present invention. As shown in FIG. 4, the method 400 includes:
S401,阵列410发现阵列410与阵列420之间的通信链路断开(即,脑裂)。At S401, array 410 finds that the communication link between array 410 and array 420 is broken (ie, brain split).
S402,阵列410向仲裁设备(例如,仲裁服务器430)发起仲裁请求,请求接管主机业务;S402. The array 410 initiates an arbitration request to the arbitration device (for example, the arbitration server 430) to request to take over the host service.
S403,仲裁服务器430确定本地是否存储有阵列410的注册信息A;S403, the arbitration server 430 determines whether the registration information A of the array 410 is stored locally;
阵列410在自身具有处理主机业务能力时向仲裁服务器430进行注册,以便于在脑裂发生后仲裁服务器430能够确定阵列410具有接管主机业务的能力,当阵列410发现自己失去处理业务的能力时,向仲裁服务器430发送清除注册信息A的信息。The array 410 registers with the arbiter server 430 when it has its own ability to handle host services so that the arbitration server 430 can determine that the array 410 has the ability to take over host services after the brain split occurs, and when the array 410 finds itself losing the ability to process traffic, The information for clearing the registration information A is sent to the arbitration server 430.
S404,仲裁服务器430判定阵列410仲裁获胜,并清除阵列420的注册信息B,其中,仲裁服务器430只有在确定本地存储有阵列410的注册信息A时,才会处理阵列410发送的仲裁请求,判定阵列仲裁胜利的方法可以是先到先得原则,即,仲裁服务器将接收到的第一个仲裁请求所指示的阵列确定为仲裁胜利的阵列,判定仲裁胜利的方法也可以是其它方法,本发明实施例对此不作限定。S404, the arbitration server 430 determines that the array 410 arbitrates the win, and clears the registration information B of the array 420, wherein the arbitration server 430 processes the arbitration request sent by the array 410 only when it determines that the registration information A of the array 410 is stored locally, and determines The method for arbitrating the array arbitration may be a first-come-first-served principle, that is, the arbitration server determines the array indicated by the first arbitration request to be an array of arbitration wins, and the method for determining the arbitration victory may also be other methods. The embodiment does not limit this.
S405,仲裁服务器430向阵列410发送仲裁胜利消息,通知阵列410仲裁获胜。S405, the arbitration server 430 sends an arbitration victory message to the array 410, informing the array 410 to arbitrate the win.
S406,阵列410向仲裁服务器430发送预留请求信息,请求仲裁服务器430将注册信息A修改为预留信息A,预留信息A用于表示阵列410对主机业务的接管具有独占性,在阵列410接管主机业务期间,仲裁服务器430拒绝其它阵列的预留、注册、仲裁请求等操作,将注册信息A修改为预留信息A仅是举例说明,本发明实施例不限于此,可选地,阵列410可以向仲裁服务器430发送独占请求信息,请求仲裁服务器430对注册信息A添加标识,该标识用于表示阵列410对主机业务的接管具有独占性。S406, the array 410 sends the reservation request information to the arbitration server 430, requesting the arbitration server 430 to modify the registration information A to the reservation information A, and the reservation information A is used to indicate that the array 410 is exclusive to the takeover of the host service, in the array 410. During the process of taking over the host service, the arbitrating server 430 rejects the operations of the reservation, the registration, the arbitration, and the like of the other arrays, and the modification of the registration information A to the reservation information A is only an example. The embodiment of the present invention is not limited thereto, and optionally, the array The 410 may send the exclusive request information to the arbitration server 430, requesting the arbitration server 430 to add an identifier to the registration information A, the identifier being used to indicate that the array 410 is exclusive to the takeover of the host service.
S407,仲裁服务器430根据阵列410发送的预留请求信息,将注册信息A修改为预留信息A,仲裁服务器430可以根据预留信息A清除阵列420的注册信息B。S407, the arbitration server 430 modifies the registration information A into the reservation information A according to the reservation request information sent by the array 410, and the arbitration server 430 can clear the registration information B of the array 420 according to the reservation information A.
S408,阵列420发现阵列420与阵列410之间的通信断开(即,脑裂)。At S408, array 420 finds that the communication between array 420 and array 410 is broken (ie, brain splitting).
S409,阵列420向仲裁服务器430发送注册请求信息。S409, the array 420 sends registration request information to the arbitration server 430.
S410,仲裁服务器430根据本地存储的预留信息A,禁止阵列420进行注册。S410. The arbitration server 430 prohibits the array 420 from registering according to the locally stored reservation information A.
S411,仲裁服务器430向阵列420发送拒绝注册的消息。S411, the arbitration server 430 sends a message rejecting registration to the array 420.
S412,阵列420向仲裁服务器430发送仲裁请求消息,请求接管主机业务。 S412, the array 420 sends an arbitration request message to the arbitration server 430 requesting to take over the host service.
S413,仲裁服务器430根据本地没有存储阵列420的注册信息B,判定阵列420仲裁失败。S413, the arbitration server 430 determines that the array 420 fails arbitration according to the local registration information B of the storage array 420.
S414,仲裁服务器430向阵列420发送仲裁失败消息。S414, the arbitration server 430 sends an arbitration failure message to the array 420.
S415,阵列410根据阵列410与阵列420之间的通信链路恢复,向阵列420发起数据同步任务。S415, the array 410 initiates a data synchronization task to the array 420 based on the communication link recovery between the array 410 and the array 420.
S416,阵列410根据阵列410与阵列420的数据同步完成,向仲裁服务器430发送清除消息,该清除消息用于请求仲裁服务器430清除阵列410的唯一接管主机业务的状态。S416, the array 410 is synchronized according to the data of the array 410 and the array 420, and sends a clear message to the arbitration server 430, which is used to request the arbitration server 430 to clear the state of the unique takeover host service of the array 410.
S417,仲裁服务器430根据阵列410发送的清除消息,将预留信息A修改为注册信息A。S417. The arbitration server 430 modifies the reservation information A into the registration information A according to the clear message sent by the array 410.
S418,阵列420向仲裁服务器430发送注册请求消息,请求处理主机业务。S418, the array 420 sends a registration request message to the arbitration server 430 requesting to process the host service.
S419,仲裁服务器430根据本地没有存储预留信息,确定阵列420可以处理主机业务,并保存阵列420的注册信息B。S419, the arbitration server 430 determines that the array 420 can process the host service according to the local storage reservation information, and saves the registration information B of the array 420.
S420,仲裁服务器430向阵列420发送注册成功消息,通知阵列420可以处理主机业务。S420, the arbitration server 430 sends a registration success message to the array 420, informing the array 420 that the host service can be processed.
根据本发明实施例的设备仲裁的方法400,存储设备在仲裁获胜后向仲裁服务器发送预留请求信息,请求将该存储设备确定为唯一接管主机业务的设备,避免软件bug、用户误操作、网络传输故障、病毒入侵等问题导致的不同存储设备分别接管主机业务,从而避免了对外提供数据不一致的情况,提高了双活仲裁系统的容错能力、可靠性和安全性。According to the method 400 for device arbitration according to the embodiment of the present invention, the storage device sends the reservation request information to the arbitration server after the arbitration wins, requesting the storage device to be the only device that takes over the host service, avoiding software bugs, user misoperations, and networks. Different storage devices caused by transmission failures and virus intrusion take over the host services, thus avoiding the inconsistency of external data and improving the fault tolerance, reliability, and security of the dual-active arbitration system.
图5示出了本发明另一实施例提供的设备仲裁的方法的示意性流程图。如图5所示,该方法500包括:FIG. 5 is a schematic flowchart of a method for device arbitration provided by another embodiment of the present invention. As shown in FIG. 5, the method 500 includes:
S501,阵列510发现阵列510与阵列520之间的通信链路断开(即,脑裂)。At S501, array 510 finds that the communication link between array 510 and array 520 is broken (ie, brain split).
S502,阵列510向仲裁设备(例如,仲裁服务器530)发起仲裁请求,请求接管主机业务,并请求仲裁服务器330将注册信息A修改为预留信息A,预留信息A用于表示阵列310对主机业务的接管具有独占性,在阵列310接管主机业务期间,仲裁服务器330拒绝其它阵列的预留、注册、仲裁请求等操作,将注册信息A修改为预留信息A仅是举例说明,本发明实施例不限于此;S502, the array 510 initiates an arbitration request to the arbitration device (for example, the arbitration server 530), requests to take over the host service, and requests the arbitration server 330 to modify the registration information A to the reservation information A, and the reservation information A is used to represent the array 310 to the host. The takeover of the service is exclusive. During the takeover of the host service by the array 310, the arbitrating server 330 rejects the operations of reservation, registration, and arbitration requests of other arrays, and the modification of the registration information A into the reserved information A is only an example, and the implementation of the present invention is implemented. The example is not limited to this;
S503,仲裁服务器530确定本地是否存储有阵列510的注册信息A;S503, the arbitration server 530 determines whether the registration information A of the array 510 is stored locally;
S504,仲裁服务器530判定阵列510仲裁获胜,并清除阵列520的注册信息B,其中,仲裁服务器530只有在确定本地存储有阵列510的注册信息A时,才会处理阵列510发送的仲裁请求,判定阵列仲裁胜利的方法可以是先到先得原则,即,仲裁服务器将接收到的第一个仲裁请求所指示的阵列确定为仲裁胜利的阵列,判定仲裁胜利的方法也可以是其它方法,本发明实施例对此不作限定。S504, the arbitration server 530 determines that the array 510 arbitrates the win and clears the registration information B of the array 520. The arbitration server 530 processes the arbitration request sent by the array 510 only when determining that the registration information A of the array 510 is stored locally. The method for arbitrating the array arbitration may be a first-come-first-served principle, that is, the arbitration server determines the array indicated by the first arbitration request to be an array of arbitration wins, and the method for determining the arbitration victory may also be other methods. The embodiment does not limit this.
S505,仲裁服务器530根据仲裁请求消息将注册信息A修改为预留信息A。S505. The arbitration server 530 modifies the registration information A into the reservation information A according to the arbitration request message.
S506,仲裁服务器530向阵列510发送仲裁胜利消息,通知阵列510仲裁获胜。S506, the arbitration server 530 sends an arbitration victory message to the array 510, informing the array 510 to arbitrate the win.
S507,阵列520发现阵列520与阵列510之间的通信断开(即,脑裂)。At S507, array 520 finds that communication between array 520 and array 510 is broken (ie, brain splitting).
S508,阵列520向仲裁服务器530发送注册请求信息。S508. The array 520 sends registration request information to the arbitration server 530.
S509,仲裁服务器530根据本地存储的预留信息A,禁止阵列520进行注册。S509. The arbitration server 530 prohibits the array 520 from registering according to the locally stored reservation information A.
S510,仲裁服务器530向阵列520发送拒绝注册的消息。S510, the arbitration server 530 sends a message rejecting registration to the array 520.
S511,阵列520向仲裁服务器530发送仲裁请求消息,请求接管主机业务。 S511. The array 520 sends an arbitration request message to the arbitration server 530 requesting to take over the host service.
S512,仲裁服务器530根据本地没有存储阵列520的注册信息B,判定阵列520仲裁失败。S512. The arbitration server 530 determines that the array 520 has failed arbitration according to the local registration information B of the storage array 520.
S513,仲裁服务器530向阵列520发送仲裁失败消息。S513, the arbitration server 530 sends an arbitration failure message to the array 520.
S514,阵列510根据阵列510与阵列520之间的通信链路恢复,向阵列520发起数据同步任务。S514, the array 510 initiates a data synchronization task to the array 520 according to the communication link recovery between the array 510 and the array 520.
S515,阵列510根据阵列510与阵列520的数据同步完成,向仲裁服务器530发送清除消息,该清除消息用于请求仲裁服务器530清除阵列510的唯一接管主机业务的状态。S515, the array 510 is synchronized according to the data of the array 510 and the array 520, and sends a clear message to the arbitration server 530, which is used to request the arbitration server 530 to clear the state of the unique takeover host service of the array 510.
S516,仲裁服务器530根据阵列510发送的清除消息,将预留信息A修改为注册信息A。S516, the arbitration server 530 modifies the reservation information A into the registration information A according to the clear message sent by the array 510.
S517,阵列520向仲裁服务器530发送注册请求消息,请求处理主机业务。S517. The array 520 sends a registration request message to the arbitration server 530 requesting to process the host service.
S518,仲裁服务器530根据本地没有存储预留信息,确定阵列520可以处理主机业务,并保存阵列520的注册信息B。S518. The arbitration server 530 determines that the array 520 can process the host service according to the local storage reservation information, and saves the registration information B of the array 520.
S519,仲裁服务器530向阵列520发送注册成功消息,通知阵列520可以处理主机业务。S519, the arbitration server 530 sends a registration success message to the array 520, informing the array 520 that the host service can be processed.
根据本发明实施例的设备仲裁的方法500,存储设备通过向仲裁服务器发送包括预留请求信息的仲裁请求信息,请求将该存储设备确定为唯一接管主机业务的设备,节省了信令开销,避免软件bug、用户误操作、网络传输故障、病毒入侵等问题导致的不同存储设备分别接管主机业务,从而避免了对外提供数据不一致的情况,提高了双活仲裁系统的容错能力、可靠性和安全性。According to the method 500 for device arbitration according to the embodiment of the present invention, the storage device requests the storage device to be the only device that takes over the host service by sending the arbitration request information including the reservation request information to the arbitration server, thereby saving signaling overhead and avoiding Different storage devices caused by software bugs, user misoperations, network transmission failures, virus intrusion, etc. take over the host services, thus avoiding the inconsistency of external data and improving the fault tolerance, reliability and security of the active-active arbitration system. .
上述实施例主要从各个网元之间交互的角度对本发明实施例的方案进行了介绍。可以理解的是,各个网元,例如仲裁服务器、第一存储设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。The foregoing embodiment mainly introduces the solution of the embodiment of the present invention from the perspective of interaction between the network elements. It can be understood that each network element, such as the arbitration server and the first storage device, includes hardware structures and/or software modules corresponding to the execution of the respective functions in order to implement the above functions. Those skilled in the art will readily appreciate that the present invention can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
本发明实施例可以根据上述方法示例对仲裁服务器、第一存储设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本发明实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present invention may divide the functional unit into the arbitration server and the first storage device according to the foregoing method example. For example, each functional unit may be divided according to each function, or two or more functions may be integrated into one processing unit. in. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
在采用集成的单元的情况下,图6A示出了上述实施例中所涉及的仲裁服务器的一种可能的结构示意图。仲裁服务器600包括:处理单元602和通信单元603。处理单元602用于对仲裁服务器600的动作进行控制管理,例如,处理单元602用于支持仲裁服务器600执行图2的S202和S206,处理单元602还可以用于支持仲裁服务器600执行图3的S302和S305,和/或用于本文所描述的技术的其它过程。通信单元603用于支持仲裁服务器600与其它网络实体的通信,例如与图2中示出的第一存储设备之间的通信。仲裁服务器600还可以包括存储单元601,用于存储仲裁服务器600的程序代码和数据。In the case of employing an integrated unit, FIG. 6A shows a possible structural diagram of the arbitration server involved in the above embodiment. The arbitration server 600 includes a processing unit 602 and a communication unit 603. The processing unit 602 is configured to perform control management on the action of the arbitration server 600. For example, the processing unit 602 is configured to support the arbitration server 600 to execute S202 and S206 of FIG. 2, and the processing unit 602 may further be configured to support the arbitration server 600 to execute S302 of FIG. 3. And S305, and/or other processes for the techniques described herein. Communication unit 603 is used to support communication between arbitration server 600 and other network entities, such as communication with the first storage device shown in FIG. 2. The arbitration server 600 may further include a storage unit 601 for storing program codes and data of the arbitration server 600.
其中,处理单元602可以是处理器或控制器,例如可以是中央处理器(Central  Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本发明公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信单元603可以是通信接口、收发器、收发电路等,其中,通信接口是统称,可以包括一个或多个接口。存储单元601可以是存储器。The processing unit 602 can be a processor or a controller, for example, can be a central processing unit (Central) Processing Unit, CPU), general purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), Field Programmable Gate Array (FPGA) or other Programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like. The communication unit 603 can be a communication interface, a transceiver, a transceiver circuit, etc., wherein the communication interface is a collective name and can include one or more interfaces. The storage unit 601 can be a memory.
当处理单元602为处理器,通信单元603为通信接口,存储单元601为存储器时,本发明实施例所涉及的仲裁服务器可以为图6B所示的仲裁服务器。When the processing unit 602 is a processor, the communication unit 603 is a communication interface, and the storage unit 601 is a memory, the arbitration server according to the embodiment of the present invention may be the arbitration server shown in FIG. 6B.
参阅图6B所示,该仲裁服务器610包括:处理器612、通信接口613、存储器611。可选的,仲裁服务器610还可以包括总线614。其中,通信接口613、处理器612以及存储器611可以通过总线614相互连接;总线614可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。所述总线614可以分为地址总线、数据总线、控制总线等。为便于表示,图6B中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Referring to FIG. 6B, the arbitration server 610 includes a processor 612, a communication interface 613, and a memory 611. Optionally, the arbitration server 610 can also include a bus 614. The communication interface 613, the processor 612, and the memory 611 may be connected to each other through a bus 614. The bus 614 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (abbreviated). EISA) bus and so on. The bus 614 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 6B, but it does not mean that there is only one bus or one type of bus.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
因此,本发明实施例提供的仲裁服务器,根据第一存储设备在仲裁获胜后发送的预留请求信息,或者根据第一存储设备发送的包括预留指示信息的仲裁请求消息,可以将第一存储设备的注册信息修改为预留信息,从而可以避免第二存储设备再次注册成功并接管主机业务,此外,该预留信息只能根据第一存储设备发送的预留清除消息删除,提高了仲裁系统的安全性。Therefore, the arbitration server provided by the embodiment of the present invention may perform the first storage according to the reservation request information sent by the first storage device after the arbitration wins, or according to the arbitration request message that includes the reservation indication information sent by the first storage device. The registration information of the device is modified to the reservation information, so that the second storage device can be re-registered successfully and the host service is taken over. In addition, the reservation information can only be deleted according to the reservation clear message sent by the first storage device, thereby improving the arbitration system. Security.
在采用集成的单元的情况下,图7A示出了上述实施例中所涉及的第一存储设备的一种可能的结构示意图。第一存储设备700包括:处理单元702和通信单元703。处理单元702用于对第一存储设备700的动作进行控制管理,例如,处理单元702用于通过通信单元703支持第一存储设备700执行图2的S201和S204,处理单元702还可以用于支持第一存储设备700执行图3的S301,和/或用于本文所描述的技术的其它过程。通信单元703用于支持第一存储设备700与其它网络实体的通信,例如与图2或图3中示出的仲裁服务器之间的通信。第一存储设备700还可以包括存储单元701,用于存储第一存储设备700的程序代码和数据。In the case of employing an integrated unit, FIG. 7A shows a possible structural diagram of the first storage device involved in the above embodiment. The first storage device 700 includes a processing unit 702 and a communication unit 703. The processing unit 702 is configured to perform control management on the action of the first storage device 700. For example, the processing unit 702 is configured to support the first storage device 700 to perform S201 and S204 of FIG. 2 through the communication unit 703, and the processing unit 702 may further be used to support The first storage device 700 performs S301 of Figure 3, and/or other processes for the techniques described herein. The communication unit 703 is for supporting communication between the first storage device 700 and other network entities, such as communication with the arbitration server shown in FIG. 2 or 3. The first storage device 700 may further include a storage unit 701 for storing program codes and data of the first storage device 700.
其中,处理单元702可以是处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本发明公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信单元703可以是通信接口、收发器、收发电路等,其中,通信接口是统称,可以包括一个或多个接口。存储单元701可以是存 储器。The processing unit 702 can be a processor or a controller, and can be, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application-specific integrated circuit (Application-Specific). Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like. The communication unit 703 can be a communication interface, a transceiver, a transceiver circuit, etc., wherein the communication interface is a collective name and can include one or more interfaces. The storage unit 701 can be stored Reservoir.
当处理单元702为处理器,通信单元703为通信接口,存储单元701为存储器时,本发明实施例所涉及的第一存储设备可以为图7B所示的第一存储设备。When the processing unit 702 is a processor, the communication unit 703 is a communication interface, and the storage unit 701 is a memory, the first storage device involved in the embodiment of the present invention may be the first storage device shown in FIG. 7B.
参阅图7B所示,该第一存储设备710包括:处理器712、通信接口713、存储器711。可选的,第一存储设备710还可以包括总线714。其中,通信接口713、处理器712以及存储器711可以通过总线714相互连接;总线714可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。所述总线714可以分为地址总线、数据总线、控制总线等。为便于表示,图7B中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Referring to FIG. 7B, the first storage device 710 includes a processor 712, a communication interface 713, and a memory 711. Optionally, the first storage device 710 may further include a bus 714. The communication interface 713, the processor 712, and the memory 711 may be connected to each other through a bus 714. The bus 714 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (abbreviated). EISA) bus and so on. The bus 714 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 7B, but it does not mean that there is only one bus or one type of bus.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
因此,本发明实施例提供的第一存储设备,通过在仲裁获胜后向仲裁服务器发送预留请求消息,该预留请求消息用于请求仲裁服务器拒绝第二存储设备进行注册,或者直接向仲裁服务器发送包括预留指示信息的仲裁请求消息,请求接管主机业务并请求拒绝第二存储设备进行注册,从而可以避免第二存储设备再次注册成功并接管主机业务,此外,该预留信息只能根据第一存储设备发送的预留清除消息删除,提高了仲裁系统的安全性。Therefore, the first storage device provided by the embodiment of the present invention sends a reservation request message to the arbitration server after the arbitration wins, and the reservation request message is used to request the arbitration server to reject the second storage device for registration, or directly to the arbitration server. Sending an arbitration request message including the reservation indication information, requesting to take over the host service and requesting to reject the second storage device for registration, thereby preventing the second storage device from re-registering successfully and taking over the host service, and further, the reservation information can only be based on the The deletion of the reservation clear message sent by a storage device improves the security of the arbitration system.
在本发明实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。In the embodiment of the present invention, the sequence number of each process does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be limited to the implementation process of the embodiment of the present invention.
另外,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" herein is merely an association relationship describing an associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, and A and B exist at the same time. There are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
结合本发明实施例公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(Random Access Memory,RAM)、闪存、只读存储器(Read Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、电可擦可编程只读存储器(Electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于仲裁服务器或第一存储设备中。当然,处理器和存储介质也可以作为分立组件存在于仲裁服务器或第一存储设备中。The steps of the method or algorithm described in connection with the disclosure of the embodiments of the present invention may be implemented in a hardware manner, or may be implemented by a processor executing software instructions. The software instructions may be composed of corresponding software modules, which may be stored in a random access memory (RAM), a flash memory, a read only memory (ROM), an erasable programmable read only memory ( Erasable Programmable ROM (EPROM), electrically erasable programmable read only memory (EEPROM), registers, hard disk, removable hard disk, compact disk read only (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an ASIC. Additionally, the ASIC can be located in an arbitration server or a first storage device. Of course, the processor and the storage medium may also exist as discrete components in the arbitration server or the first storage device.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art will appreciate that in one or more examples described above, the functions described herein can be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored in a computer readable medium or transmitted as one or more instructions or code on a computer readable medium. Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage medium may be any available media that can be accessed by a general purpose or special purpose computer.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详 细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本发明的保护范围之内。 The specific embodiments described above further detail the object, technical solution and beneficial effects of the present invention. It is to be understood that the foregoing description is only illustrative of the embodiments of the present invention, and is not intended to limit the scope of the present invention. Equivalent substitutions, improvements, etc., are intended to be included within the scope of the invention.

Claims (16)

  1. 一种设备仲裁的方法,其特征在于,所述方法应用于存储系统中,所述存储系统包括第一存储设备、第二存储设备和仲裁服务器,所述方法包括:A method for device arbitration, wherein the method is applied to a storage system, where the storage system includes a first storage device, a second storage device, and an arbitration server, and the method includes:
    当所述第一存储设备和所述第二存储设备之间的通信链路发生故障时,所述第一存储设备向所述仲裁服务器发送仲裁请求消息,所述仲裁请求消息包括所述第一存储设备的标识信息以及业务接管信息,所述业务接管信息用于指示所述第一存储设备要求接管主机业务;When the communication link between the first storage device and the second storage device fails, the first storage device sends an arbitration request message to the arbitration server, where the arbitration request message includes the first The identification information of the storage device and the service takeover information, where the service takeover information is used to indicate that the first storage device requests to take over the host service;
    所述仲裁服务器根据所述第一存储设备的仲裁请求消息、所述第一存储设备的注册信息以及所述第二存储设备未接管主机业务,向所述第一存储设备发送指示所述第一存储设备接管主机业务的指示消息,并删除所述仲裁服务器保存的所述第二存储设备的注册信息,其中,所述仲裁服务器预先保存有所述第一存储设备的注册信息和所述第二存储设备的注册信息;The arbitration server sends an indication to the first storage device to the first storage device according to the arbitration request message of the first storage device, the registration information of the first storage device, and the second storage device not taking over the host service. The storage device takes over the indication message of the host service, and deletes the registration information of the second storage device saved by the arbitration server, where the arbitration server pre-stores the registration information of the first storage device and the second Registration information of the storage device;
    所述第一存储设备根据所述指示消息接管主机业务,并向所述仲裁服务器发送预留请求消息,所述预留请求消息包括所述第一存储设备的标识信息以及预留指示信息,所述预留指示信息用于指示所述仲裁服务器禁止所述第二存储设备进行注册;The first storage device takes over the host service according to the indication message, and sends a reservation request message to the arbitration server, where the reservation request message includes the identifier information of the first storage device and the reservation indication information. The reservation indication information is used to indicate that the arbitration server prohibits the second storage device from registering;
    所述仲裁服务器从所述第二存储设备接收注册请求消息,所述注册请求消息包括所述第二存储设备的注册信息;The arbitration server receives a registration request message from the second storage device, where the registration request message includes registration information of the second storage device;
    所述仲裁服务器根据所述预留指示信息,拒绝所述第二存储设备进行注册。The arbitration server rejects the second storage device to register according to the reservation indication information.
  2. 根据权利要求1所述的方法,其特征在于,所述仲裁服务器从所述第一存储设备接收所述预留请求消息之后,所述方法还包括:The method according to claim 1, wherein after the arbitration server receives the reservation request message from the first storage device, the method further includes:
    当所述第一存储设备和所述第二存储设备之间的通信链路恢复正常后,所述第一存储设备向所述仲裁服务器发送预留清除消息,所述预留清除消息用于请求所述仲裁服务器删除所述预留指示信息,以便于所述第二存储设备进行注册;After the communication link between the first storage device and the second storage device returns to normal, the first storage device sends a reservation clear message to the arbitration server, where the reservation clear message is used for requesting The arbitration server deletes the reservation indication information to facilitate registration by the second storage device;
    所述仲裁服务器根据所述预留清除消息删除所述预留指示信息。The arbitration server deletes the reservation indication information according to the reservation clear message.
  3. 根据权利要求1所述的方法,其特征在于,所述仲裁服务器从所述第一存储设备接收所述预留请求消息之后,所述方法还包括:The method according to claim 1, wherein after the arbitration server receives the reservation request message from the first storage device, the method further includes:
    所述第二存储设备向所述仲裁服务器发送预留清除消息,所述预留清除消息用于请求所述仲裁服务器删除所述预留指示信息;The second storage device sends a reservation clear message to the arbitration server, where the reservation clear message is used to request the arbitration server to delete the reservation indication information;
    所述仲裁服务器根据所述预留指示信息拒绝清除所述预留清除消息的请求,其中,所述预留指示信息用于指示所述仲裁服务器拒绝所述第二存储设备的删除请求。The arbitration server rejects the request to clear the reservation clear message according to the reservation indication information, where the reservation indication information is used to indicate that the arbitration server rejects the deletion request of the second storage device.
  4. 一种设备仲裁的方法,其特征在于,所述方法应用于存储系统中,所述存储系统包括第一存储设备、第二存储设备和仲裁服务器,所述方法包括:A method for device arbitration, wherein the method is applied to a storage system, where the storage system includes a first storage device, a second storage device, and an arbitration server, and the method includes:
    当所述第一存储设备和所述第二存储设备之间的通信链路发生故障时,所述第一存储设备向所述仲裁服务器发送仲裁请求消息,所述仲裁请求消息包括所述第一存储设备的标识信息、业务接管信息和预留指示信息,其中,所述业务接管信息用于指示所述第一存储设备要求接管主机业务,所述预留指示信息用于指示所述仲裁服务器禁止所述第二存储设备进行注册;When the communication link between the first storage device and the second storage device fails, the first storage device sends an arbitration request message to the arbitration server, where the arbitration request message includes the first The storage device identifier information, the service takeover information, and the reservation indication information, where the service takeover information is used to indicate that the first storage device requests to take over the host service, and the reservation indication information is used to indicate that the arbitration server prohibits The second storage device performs registration;
    所述仲裁服务器根据所述第一存储设备的仲裁请求消息、所述第一存储设备的注册信息以及所述第二存储设备未接管主机业务,向所述第一存储设备发送指示所述第一存储设备接管主机业务的指示消息,并删除所述仲裁服务器保存的所述第二存储设备的注 册信息,其中,所述仲裁服务器预先保存有所述第一存储设备的注册信息和所述第二存储设备的注册信息;The arbitration server sends an indication to the first storage device to the first storage device according to the arbitration request message of the first storage device, the registration information of the first storage device, and the second storage device not taking over the host service. The storage device takes over the indication message of the host service, and deletes the note of the second storage device saved by the arbitration server The registration information, wherein the arbitration server pre-stores registration information of the first storage device and registration information of the second storage device;
    所述仲裁服务器从所述第二存储设备接收注册请求消息,所述注册请求消息包括所述第二存储设备的注册信息;The arbitration server receives a registration request message from the second storage device, where the registration request message includes registration information of the second storage device;
    所述仲裁服务器根据所述预留指示信息,拒绝所述第二存储设备进行注册。The arbitration server rejects the second storage device to register according to the reservation indication information.
  5. 根据权利要求4所述的方法,其特征在于,所述仲裁服务器从所述第一存储设备接收所述仲裁请求消息之后,所述方法还包括:The method according to claim 4, wherein after the arbitration server receives the arbitration request message from the first storage device, the method further includes:
    当所述第一存储设备和所述第二存储设备之间的通信链路恢复正常后,所述第一存储设备向所述仲裁服务器发送预留清除消息,所述预留清除消息用于请求所述仲裁服务器删除所述预留指示信息,以便于所述第二存储设备进行注册;After the communication link between the first storage device and the second storage device returns to normal, the first storage device sends a reservation clear message to the arbitration server, where the reservation clear message is used for requesting The arbitration server deletes the reservation indication information to facilitate registration by the second storage device;
    所述仲裁服务器根据所述预留清除消息删除所述预留指示信息。The arbitration server deletes the reservation indication information according to the reservation clear message.
  6. 根据权利要求4所述的方法,其特征在于,所述仲裁服务器从所述第一存储设备接收所述仲裁请求消息之后,所述方法还包括:The method according to claim 4, wherein after the arbitration server receives the arbitration request message from the first storage device, the method further includes:
    所述仲裁服务器从所述第二存储设备接收预留清除消息,所述预留清除消息用于请求所述仲裁服务器删除所述预留指示信息;The arbitration server receives a reservation clear message from the second storage device, where the reservation clear message is used to request the arbitration server to delete the reservation indication information;
    所述仲裁服务器根据所述预留指示信息拒绝所述预留清除消息的请求,其中,所述预留指示信息用于指示所述仲裁服务器拒绝所述第二存储设备的删除请求。The arbitration server rejects the request for the reservation clear message according to the reservation indication information, where the reservation indication information is used to indicate that the arbitration server rejects the deletion request of the second storage device.
  7. 一种设备仲裁的仲裁服务器,其特征在于,所述仲裁服务器应用于存储系统中,所述存储系统包括第一存储设备、第二存储设备和所述仲裁服务器,所述仲裁服务器包括:处理单元和通信单元,An arbitration server for device arbitration, wherein the arbitration server is applied to a storage system, the storage system includes a first storage device, a second storage device, and the arbitration server, and the arbitration server includes: a processing unit And communication unit,
    所述处理单元用于通过所述通信单元从所述第一存储设备接收仲裁请求消息,所述仲裁请求消息包括所述第一存储设备的标识信息以及业务接管信息,所述业务接管信息用于指示所述第一存储设备要求接管主机业务;以及根据所述第一存储设备的仲裁请求消息、所述第一存储设备的注册信息以及所述第二存储设备未接管主机业务,通过所述通信单元向所述第一存储设备发送指示所述第一存储设备接管主机业务的指示消息,并删除所述仲裁服务器保存的所述第二存储设备的注册信息,其中,所述仲裁服务器预先保存有所述第一存储设备的注册信息和所述第二存储设备的注册信息;以及通过所述通信单元从所述第一存储设备接收预留请求消息,所述预留请求消息包括所述第一存储设备的标识信息以及预留指示信息,所述预留指示信息用于指示所述仲裁服务器禁止所述第二存储设备进行注册;以及通过所述通信单元从所述第二存储设备接收注册请求消息,所述注册请求消息包括所述第二存储设备的注册信息;以及根据所述预留指示信息,拒绝所述第二存储设备进行注册。The processing unit is configured to receive, by the communication unit, an arbitration request message from the first storage device, where the arbitration request message includes identifier information of the first storage device and service takeover information, where the service takeover information is used Instructing the first storage device to request to take over host service; and, according to the arbitration request message of the first storage device, registration information of the first storage device, and the second storage device not taking over host service, by using the communication The unit sends an indication message indicating that the first storage device takes over the host service to the first storage device, and deletes the registration information of the second storage device saved by the arbitration server, where the arbitration server is pre-stored Registration information of the first storage device and registration information of the second storage device; and receiving, by the communication unit, a reservation request message from the first storage device, the reservation request message including the first Identification information of the storage device and reservation indication information, where the reservation indication information is used to indicate the arbitration The server prohibits the second storage device from registering; and receives, by the communication unit, a registration request message from the second storage device, the registration request message including registration information of the second storage device; The indication information is reserved, and the second storage device is rejected for registration.
  8. 根据权利要求7所述的仲裁服务器,其特征在于,所述处理单元还用于通过所述通信单元从所述第一存储设备接收预留清除消息,所述预留清除消息用于请求所述仲裁服务器删除所述预留指示信息;以及根据所述预留清除消息清除所述预留指示信息,以便于所述第二存储设备进行注册。The arbitration server according to claim 7, wherein the processing unit is further configured to receive, by the communication unit, a reservation clear message from the first storage device, where the reservation clear message is used to request the The arbitration server deletes the reservation indication information; and clears the reservation indication information according to the reservation clear message, so that the second storage device performs registration.
  9. 根据权利要求7所述的仲裁服务器,其特征在于,所述处理单元还用于通过所述通信单元从所述第二存储设备接收预留清除消息,所述预留清除消息用于请求所述仲裁服务器删除所述预留指示信息;以及根据所述预留指示信息拒绝清除所述预留清除消息的请求,其中,所述预留指示信息用于指示所述仲裁服务器拒绝所述第二存储设备的删 除请求。The arbitration server according to claim 7, wherein the processing unit is further configured to receive, by the communication unit, a reservation clear message from the second storage device, where the reservation clear message is used to request the The arbitration server deletes the reservation indication information; and rejects the request to clear the reservation clear message according to the reservation indication information, where the reservation indication information is used to indicate that the arbitration server rejects the second storage Device deletion In addition to the request.
  10. 一种设备仲裁的存储设备,其特征在于,所述存储设备应用于存储系统中,所述存储系统包括所述存储设备、第二存储设备和仲裁服务器,所述存储设备包括:处理单元和通信单元,A storage device for device arbitration, wherein the storage device is applied to a storage system, the storage system includes the storage device, a second storage device, and an arbitration server, and the storage device includes: a processing unit and a communication unit,
    当所述存储设备和第二存储设备之间的通信链路发生故障时,所述处理单元用于通过所述通信单元向仲裁服务器发送仲裁请求消息,所述仲裁请求消息包括所述存储设备的标识信息以及业务接管信息,所述业务接管信息用于指示所述存储设备要求接管主机业务;以及通过所述通信单元从所述仲裁服务器接收指示消息,所述指示消息用于指示所述存储设备可以接管主机业务;以及根据所述指示消息接管主机业务;以及通过所述通信单元向所述仲裁服务器发送预留请求消息,所述预留请求消息用于指示所述仲裁服务器禁止所述第二存储设备进行注册。When the communication link between the storage device and the second storage device fails, the processing unit is configured to send, by the communication unit, an arbitration request message to the arbitration server, where the arbitration request message includes the storage device Identification information and service takeover information, the service takeover information is used to indicate that the storage device requests to take over the host service; and receiving, by the communication unit, an indication message from the arbitration server, the indication message is used to indicate the storage device Receiving a host service; and taking over the host service according to the indication message; and transmitting, by the communication unit, a reservation request message to the arbitration server, the reservation request message being used to instruct the arbitration server to prohibit the second service The storage device is registered.
  11. 根据权利要求10所述的存储设备,其特征在于,当所述存储设备和所述第二存储设备之间的通信链路恢复正常后,所述处理单元还用于向所述仲裁服务器发送预留清除消息,所述预留清除消息用于请求所述仲裁服务器删除所述预留指示信息,以便于所述第二存储设备进行注册。The storage device according to claim 10, wherein the processing unit is further configured to send a pre-send to the arbitration server after the communication link between the storage device and the second storage device returns to normal And leaving a clear message, the reservation clear message is used to request the arbitration server to delete the reservation indication information, so that the second storage device performs registration.
  12. 一种设备仲裁的仲裁服务器,其特征在于,所述仲裁服务器应用于存储系统中,所述存储系统包括第一存储设备、第二存储设备和所述仲裁服务器,所述仲裁服务器包括:处理单元和通信单元,An arbitration server for device arbitration, wherein the arbitration server is applied to a storage system, the storage system includes a first storage device, a second storage device, and the arbitration server, and the arbitration server includes: a processing unit And communication unit,
    所述处理单元用于通过所述通信单元从所述第一存储设备接收仲裁请求消息,所述仲裁请求消息包括所述第一存储设备的标识信息以及业务接管信息和预留指示信息,其中,所述业务接管信息用于指示所述第一存储设备要求接管主机业务,所述预留指示信息用于指示所述仲裁服务器禁止所述第二存储设备进行注册;以及根据所述第一存储设备的仲裁请求消息、所述第一存储设备的注册信息以及所述第二存储设备未接管主机业务,通过所述通信单元向所述第一存储设备发送指示所述第一存储设备接管主机业务的指示消息,并删除所述仲裁服务器保存的所述第二存储设备的注册信息,其中,所述仲裁服务器预先保存有所述第一存储设备的注册信息和所述第二存储设备的注册信息;以及通过所述通信单元从所述第二存储设备接收注册请求消息,所述注册请求消息包括所述第二存储设备的注册信息;以及根据所述预留指示信息拒绝所述第二存储设备进行注册。The processing unit is configured to receive, by the communication unit, an arbitration request message from the first storage device, where the arbitration request message includes identifier information of the first storage device, and service takeover information and reservation indication information, where The service takeover information is used to indicate that the first storage device requests to take over the host service, and the reservation indication information is used to instruct the arbitration server to prohibit the second storage device from registering; and according to the first storage device The arbitration request message, the registration information of the first storage device, and the second storage device failing to take over the host service, and sending, by the communication unit, the first storage device to the first storage device to take over the host service. And indicating the message, and deleting the registration information of the second storage device saved by the arbitration server, where the arbitration server pre-stores the registration information of the first storage device and the registration information of the second storage device; And receiving, by the communication unit, a registration request message from the second storage device, the registration Registration request message comprising information the second storage device; and an information storage apparatus rejecting the second register in accordance with the reservation indication.
  13. 根据权利要求12所述的仲裁服务器,其特征在于,所述处理单元还用于通过所述通信单元从所述第一存储设备接收预留清除消息,所述预留清除消息用于请求所述仲裁服务器删除所述预留指示信息;以及根据所述预留清除消息删除所述预留指示信息,以便于所述第二存储设备进行注册。The arbitration server according to claim 12, wherein the processing unit is further configured to receive, by the communication unit, a reservation clear message from the first storage device, where the reservation clear message is used to request the The arbitration server deletes the reservation indication information; and deletes the reservation indication information according to the reservation clear message, so that the second storage device performs registration.
  14. 根据权利要求12所述的仲裁服务器,其特征在于,所述处理单元还用于通过所述通信单元从所述第二存储设备接收预留清除消息,所述预留清除消息用于请求所述仲裁服务器删除所述预留指示信息;以及根据所述预留指示信息拒绝所述预留请求消息的请求,其中,所述预留指示信息用于指示所述仲裁服务器拒绝所述第二存储设备的删除请求。The arbitration server according to claim 12, wherein the processing unit is further configured to receive, by the communication unit, a reservation clear message from the second storage device, where the reservation clear message is used to request the The arbitration server deletes the reservation indication information; and rejects the request for the reservation request message according to the reservation indication information, where the reservation indication information is used to indicate that the arbitration server rejects the second storage device Delete request.
  15. 一种设备仲裁的存储设备,其特征在于,所述存储设备应用于存储系统中,所述存储系统包括所述存储设备、第二存储设备和仲裁服务器,所述存储设备包括:处理 单元和通信单元,A storage device for device arbitration, wherein the storage device is applied to a storage system, the storage system includes the storage device, a second storage device, and an arbitration server, and the storage device includes: processing Unit and communication unit,
    当所述存储设备和第二存储设备之间的通信链路发生故障时,所述处理单元用于通过所述通信单元向所述仲裁服务器发送仲裁请求消息,所述仲裁请求消息包括所述存储设备的标识信息以及业务接管信息和预留指示信息,其中,所述业务接管信息用于指示所述存储设备要求接管主机业务,所述预留指示信息用于指示所述仲裁服务器禁止所述第二存储设备进行注册;以及通过所述通信单元从所述仲裁服务器接收指示消息,所述指示消息用于指示所述存储设备可以接管主机业务;以及根据所述指示消息接管主机业务。And when the communication link between the storage device and the second storage device fails, the processing unit is configured to send, by the communication unit, an arbitration request message to the arbitration server, where the arbitration request message includes the storage The identification information of the device, and the service takeover information and the reservation indication information, where the service takeover information is used to indicate that the storage device requires to take over the host service, and the reservation indication information is used to indicate that the arbitration server prohibits the first The second storage device registers; and receives, by the communication unit, an indication message from the arbitration server, the indication message is used to indicate that the storage device can take over the host service; and take over the host service according to the indication message.
  16. 根据权利要求15所述的存储设备,其特征在于,当所述存储设备和所述第二存储设备之间的通信链路恢复正常后,所述处理单元还用于通过所述通信单元向所述仲裁服务器发送预留清除消息,所述预留清除消息用于请求所述仲裁服务器删除所述预留指示信息,以便于所述第二存储设备进行注册。 The storage device according to claim 15, wherein the processing unit is further configured to pass through the communication unit after the communication link between the storage device and the second storage device returns to normal The arbitration server sends a reservation clear message, where the reservation clear message is used to request the arbitration server to delete the reservation indication information, so that the second storage device performs registration.
PCT/CN2017/079344 2016-08-08 2017-04-01 Method and device for device arbitration WO2018028219A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610644515.4 2016-08-08
CN201610644515.4A CN106301900B (en) 2016-08-08 2016-08-08 The method and apparatus of equipment arbitration

Publications (1)

Publication Number Publication Date
WO2018028219A1 true WO2018028219A1 (en) 2018-02-15

Family

ID=57666843

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/079344 WO2018028219A1 (en) 2016-08-08 2017-04-01 Method and device for device arbitration

Country Status (2)

Country Link
CN (1) CN106301900B (en)
WO (1) WO2018028219A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019223662A1 (en) * 2018-05-25 2019-11-28 华为技术有限公司 Arbitration method and related device
CN117591034A (en) * 2024-01-17 2024-02-23 苏州元脑智能科技有限公司 Storage disk arbitration method, device, equipment and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106301900B (en) * 2016-08-08 2019-08-23 华为技术有限公司 The method and apparatus of equipment arbitration
CN107302598A (en) * 2017-08-21 2017-10-27 长沙曙通信息科技有限公司 A kind of new dual-active storage activity arbitration implementation method
CN107995021A (en) * 2017-10-20 2018-05-04 杭州沃趣科技股份有限公司 A kind of implementation of the dual-active system based on priority
CN111327447B (en) * 2018-12-17 2021-09-14 华为技术有限公司 Distributed system, arbitration method, node device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103229165A (en) * 2010-08-12 2013-07-31 安全第一公司 Systems and methods for secure remote storage
CN105426275A (en) * 2015-10-30 2016-03-23 成都华为技术有限公司 Disaster recovery method and apparatus in dual-activation cluster system
CN106301900A (en) * 2016-08-08 2017-01-04 华为技术有限公司 The method and apparatus of equipment arbitration

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7685346B2 (en) * 2007-06-26 2010-03-23 Intel Corporation Demotion-based arbitration
US8874954B1 (en) * 2012-10-19 2014-10-28 Symantec Corporation Compatibility of high availability clusters supporting application failover with shared storage in a virtualization environment without sacrificing on virtualization features
CN103684941B (en) * 2013-11-23 2018-01-16 广东中兴新支点技术有限公司 Cluster based on arbitrating server splits brain preventing method and device
WO2016106682A1 (en) * 2014-12-31 2016-07-07 华为技术有限公司 Post-cluster brain split quorum processing method and quorum storage device and system
CN105472022A (en) * 2015-12-24 2016-04-06 北京同有飞骥科技股份有限公司 Method and device for solving dual-computer cluster split brain

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103229165A (en) * 2010-08-12 2013-07-31 安全第一公司 Systems and methods for secure remote storage
CN105426275A (en) * 2015-10-30 2016-03-23 成都华为技术有限公司 Disaster recovery method and apparatus in dual-activation cluster system
CN106301900A (en) * 2016-08-08 2017-01-04 华为技术有限公司 The method and apparatus of equipment arbitration

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019223662A1 (en) * 2018-05-25 2019-11-28 华为技术有限公司 Arbitration method and related device
US11533221B2 (en) 2018-05-25 2022-12-20 Huawei Technologies Co., Ltd. Arbitration method and related apparatus
CN117591034A (en) * 2024-01-17 2024-02-23 苏州元脑智能科技有限公司 Storage disk arbitration method, device, equipment and storage medium
CN117591034B (en) * 2024-01-17 2024-03-22 苏州元脑智能科技有限公司 Storage disk arbitration method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN106301900A (en) 2017-01-04
CN106301900B (en) 2019-08-23

Similar Documents

Publication Publication Date Title
WO2018028219A1 (en) Method and device for device arbitration
ES2687609T3 (en) Computer system, method to access an interconnection terminal of express peripheral components and equipment
US11809291B2 (en) Method and apparatus for redundancy in active-active cluster system
JP6362119B2 (en) Arbitration processing method, quorum storage device, and system after cluster brain division
US7519856B2 (en) Fault tolerant system and controller, operation method, and operation program used in the fault tolerant system
CN106843749B (en) Write request processing method, device and equipment
US8775743B2 (en) Resolving ownership deadlock in a distributed shared memory
WO2017114262A1 (en) Method for managing distributed storage system, and distributed storage system
KR101941728B1 (en) Clustered client failover
US10127124B1 (en) Performing fencing operations in multi-node distributed storage systems
US7823008B2 (en) Maintaining consistency in a remote copy data storage system
US20150339200A1 (en) Intelligent disaster recovery
US20120011100A1 (en) Snapshot acquisition processing technique
US10503415B2 (en) Snapshot processing method and related device
WO2010148940A1 (en) Method and system for dumping fault information
US20170206148A1 (en) Cross-region failover of application services
US9063929B2 (en) Information processing apparatus, information processing method, computer-readable recording medium having stored therein program
WO2018058941A1 (en) Method for detecting communication status of cluster system, and gateway cluster
US9146794B2 (en) Enhanced arbitration protocol for nodes in a cluster
CN112148695A (en) Resource lock management method and device
CN110324262B (en) Resource preemption method and device
WO2021082465A1 (en) Method for ensuring data consistency and related device
US20180011763A1 (en) Storage device
CN108512753A (en) The method and device that message is transmitted in a kind of cluster file system
JP5879982B2 (en) Storage device, storage control program, and storage control method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17838351

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17838351

Country of ref document: EP

Kind code of ref document: A1