Arbitration method, device and equipment of storage system and storage medium

By using a dual-arbitration node approach, combining hardware status and lock preemption to generate the target arbitration result for the storage system, the problem of poor arbitration reliability in dual-active sites is solved, and the accuracy of arbitration decisions and data consistency in fault scenarios are improved.

CN123138155APending Publication Date: 2026-11-20DAWNING INFORMATION IND (BEIJING) CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611560709.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-09
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, storage systems with dual-active sites are prone to single-point failure risks during arbitration, resulting in poor arbitration reliability and difficulty in quickly forming a unified arbitration result in failure scenarios, which affects business continuity and data consistency.

Method used

A dual-arbitration-node approach is adopted, where the first arbitration node generates the hardware arbitration result and the second arbitration node generates the logical arbitration result of lock preemption. By combining the hardware state and the lock preemption result, the target arbitration result of the storage system is determined, avoiding decision failure or result divergence caused by relying on a single arbitration node.

Benefits of technology

It improves the reliability and accuracy of arbitration decisions in active-active system failure scenarios, reduces the impact on business continuity and data consistency, and ensures the consistency and accuracy of data recovery after failure recovery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138155A_ABST
    Figure CN123138155A_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a kind of arbitration method, device and equipment of storage system and storage medium.It includes first storage device, second storage device, first arbitration node and second arbitration node, which method includes: when detecting that there is failure between first storage device and second storage device in storage system, control first storage device respectively to first arbitration node and second arbitration node send the arbitration instruction of first storage device, and control second storage device respectively to first arbitration node and second arbitration node send the arbitration instruction of second storage device;Determine the arbitration result of first arbitration node and the arbitration result of second arbitration node;According to the arbitration result of first arbitration node and the arbitration result of second arbitration node, determine the target arbitration result of storage system.Solve the problem that arbitration result is less reliable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of storage technology, and in particular to an arbitration method, apparatus, device and storage medium for a storage system. Background Technology

[0002] To ensure business continuity and data consistency in critical industries, a dual-active site approach is adopted, which involves setting up two independent storage systems. In the event of a failure at any site or in the link between sites, an arbitration mechanism can be used to automatically select a takeover site and take over all business operations.

[0003] In related technologies, a single arbitration node is typically used. The two active sites transmit data in real time through a synchronous link. When the link is interrupted, the site sends an arbitration request to the arbitration node, which determines to take over the site based on the link connectivity or resource status.

[0004] However, in the above methods, a single arbitration node is prone to single point of failure, which leads to poor reliability of arbitration. Summary of the Invention

[0005] This application provides an arbitration method, apparatus, device, and storage medium for a storage system to address the problem of poor reliability in arbitration.

[0006] In a first aspect, embodiments of this application provide an arbitration method for a storage system, the storage system including a first storage device, a second storage device, a first arbitration node, and a second arbitration node, the method comprising:

[0007] When the storage system detects a fault between the first storage device and the second storage device, it controls the first storage device to send arbitration instructions to the first arbitration node and the second arbitration node respectively, and controls the second storage device to send arbitration instructions to the first arbitration node and the second arbitration node respectively.

[0008] Determine the arbitration result of the first arbitration node and the arbitration result of the second arbitration node. The arbitration result of the first arbitration node is generated based on the hardware status, and the arbitration result of the second arbitration node is generated based on logical preemption.

[0009] The target arbitration result of the storage system is determined based on the arbitration results of the first arbitration node and the arbitration results of the second arbitration node.

[0010] This embodiment uses a dual-arbitration-node approach. The first arbitration node generates a hardware arbitration result, and the second arbitration node generates a logical arbitration result for lock preemption. The target arbitration result of the storage system is then determined based on the hardware arbitration result (the arbitration result of the first arbitration node) and the logical arbitration result (the arbitration result of the second arbitration node). This avoids the decision failure or result discrepancy caused by relying on a single arbitration node or a single judgment criterion, thereby improving the reliability and accuracy of arbitration decisions in dual-active system failure scenarios and reducing the impact on business continuity and data consistency.

[0011] In one possible implementation, determining the arbitration result of the first arbitration node includes:

[0012] The first arbitration node determines the first status information of the first storage device according to the arbitration instruction of the first storage device. The first status information is used to indicate the operating status of the first storage device.

[0013] According to the arbitration instruction of the second storage device, the second status information of the second storage device is determined, and the second status information is used to indicate the operating status of the second storage device;

[0014] Based on the first state information and the second state information, the arbitration result of the first arbitration node is determined.

[0015] This embodiment incorporates the status information corresponding to the arbitration instructions of the first storage device and the arbitration instructions of the second storage device into the same arbitration determination process. The first arbitration node can determine the result based on the real-time operating status of both devices, thereby making the arbitration result of the first arbitration node consistent and executable, and providing a stable basis for the generation of the target arbitration result of the subsequent storage system.

[0016] In one possible implementation, determining the arbitration result of the first arbitration node based on the first state information and the second state information includes:

[0017] Based on the first state information, determine the first link state parameters and the first resource load parameters of the first storage device;

[0018] The first hardware parameters of the first storage device are determined based on the first link status parameters and the first resource load parameters.

[0019] Based on the second state information, determine the second link state parameters and the second resource load parameters of the second storage device;

[0020] The second hardware parameters of the second storage device are determined based on the second link status parameters and the second resource load parameters.

[0021] The arbitration result of the first arbitration node is determined based on the first hardware parameter and the second hardware parameter.

[0022] This embodiment uses both link status and resource load as hardware judgment criteria. The first arbitration node can form a unified decision when both sides of the site are simultaneously reachable or partially degraded, so that the arbitration result matches the current carrying capacity of the storage device, thereby improving the accuracy and consistency of takeover judgment and ensuring stable output results for service takeover in fault scenarios.

[0023] In one possible implementation, determining the arbitration result of the first arbitration node based on the first hardware parameters and the second hardware parameters includes:

[0024] When the first hardware parameter is greater than or equal to the second hardware parameter, the arbitration result of the first arbitration node is determined to be that the first storage device takes over the storage system;

[0025] When the first hardware parameter is less than the second hardware parameter, the arbitration result of the first arbitration node is determined to be that the second storage device takes over the storage system.

[0026] This embodiment compares the first hardware parameters and the second hardware parameters to determine which device has better hardware capabilities to take over the storage system.

[0027] In one possible implementation, determining the arbitration outcome of the second arbitration node includes:

[0028] When the second arbitration node receives the arbitration instruction from the first storage device and the arbitration instruction from the second storage device, it sends a lock preemption instruction to the first storage device and the second storage device respectively.

[0029] The second arbitration node determines the third storage device that successfully preempts the first storage device and the second storage device. The locking request sent by the third storage device is prior to the locking request sent by the other storage device.

[0030] Based on the third storage device, the arbitration result of the second arbitration node is determined to be that the third storage device takes over the storage system.

[0031] This embodiment establishes the arbitration result of the second arbitration node based on the lock preemption order, enabling the second arbitration node to form a clear takeover decision in a dual-active failure scenario and stably direct the takeover right to the third storage device. Since the arbitration result of the second arbitration node directly corresponds to the side that completes locking first, it can provide a consistent control basis for subsequent system switching and provide an arbitration basis for subsequent read-only control and data synchronization after fault recovery.

[0032] In one possible implementation, determining the target arbitration result of the storage system based on the arbitration results of the first arbitration node and the second arbitration node includes:

[0033] In response to the difference between the arbitration result of the first arbitration node and the arbitration result of the second arbitration node, the system obtains the preset arbitration strategy and the third status information of the storage system. The third status information is used to indicate the operating status of the storage system.

[0034] The preset arbitration strategy is updated based on the third state information.

[0035] The target arbitration result for the storage system is determined based on the updated preset arbitration strategy.

[0036] This embodiment combines static arbitration weights with dynamic state weights, enabling the system to synchronously adjust the criteria for determining the target arbitration result when the operating state changes. This makes the final output more consistent with the actual availability and takeover capability of the current dual-active storage environment, thereby improving the consistency and accuracy of the arbitration conclusion.

[0037] In one possible implementation, after determining the target arbitration result of the storage system based on the arbitration results of the first arbitration node and the second arbitration node, the method further includes:

[0038] Based on the outcome of the arbitration, the target storage device for taking over the storage system will be determined;

[0039] The target storage device is controlled to determine the target data block to be synchronized according to a preset differential algorithm;

[0040] Perform validation processing on the target data block;

[0041] When the verification process passes, the target data block is synchronized.

[0042] In this embodiment, the storage system can identify, verify, and synchronize only the changed data based on the formation of a unique target arbitration result, making the data recovery after takeover more targeted and matching the synchronized content with the actual takeover status after arbitration, thereby improving the data consistency after fault recovery.

[0043] Secondly, embodiments of this application provide an arbitration device for a storage system, comprising:

[0044] The control module is used to control the first storage device to send arbitration instructions to the first arbitration node and the second arbitration node respectively when the storage system detects a fault between the first storage device and the second storage device; and to control the second storage device to send arbitration instructions to the first arbitration node and the second arbitration node respectively.

[0045] The first determining module is used to determine the arbitration result of the first arbitration node and the arbitration result of the second arbitration node. The arbitration result of the first arbitration node is the arbitration result generated based on the hardware status, and the arbitration result of the second arbitration node is the arbitration result generated based on logical preemption.

[0046] The second determining module is used to determine the target arbitration result of the storage system based on the arbitration result of the first arbitration node and the arbitration result of the second arbitration node.

[0047] In one possible implementation, the first determining module is specifically used for,

[0048] The first arbitration node determines the first status information of the first storage device according to the arbitration instruction of the first storage device. The first status information is used to indicate the operating status of the first storage device.

[0049] According to the arbitration instruction of the second storage device, the second status information of the second storage device is determined, and the second status information is used to indicate the operating status of the second storage device;

[0050] Based on the first state information and the second state information, the arbitration result of the first arbitration node is determined.

[0051] In one possible implementation, the first determining module is specifically used for,

[0052] Based on the first state information, determine the first link state parameters and the first resource load parameters of the first storage device;

[0053] The first hardware parameters of the first storage device are determined based on the first link status parameters and the first resource load parameters.

[0054] Based on the second state information, determine the second link state parameters and the second resource load parameters of the second storage device;

[0055] The second hardware parameters of the second storage device are determined based on the second link status parameters and the second resource load parameters.

[0056] The arbitration result of the first arbitration node is determined based on the first hardware parameter and the second hardware parameter.

[0057] In one possible implementation, the first determining module is specifically used for,

[0058] When the first hardware parameter is greater than or equal to the second hardware parameter, the arbitration result of the first arbitration node is determined to be that the first storage device takes over the storage system;

[0059] When the first hardware parameter is less than the second hardware parameter, the arbitration result of the first arbitration node is determined to be that the second storage device takes over the storage system.

[0060] In one possible implementation, the first determining module is specifically used for,

[0061] When the second arbitration node receives the arbitration instruction from the first storage device and the arbitration instruction from the second storage device, it sends a lock preemption instruction to the first storage device and the second storage device respectively.

[0062] The second arbitration node determines the third storage device that successfully preempts the first storage device and the second storage device. The locking request sent by the third storage device is prior to the locking request sent by the other storage device.

[0063] Based on the third storage device, the arbitration result of the second arbitration node is determined to be that the third storage device takes over the storage system.

[0064] In one possible implementation, the second determining module is specifically used for,

[0065] In response to the difference between the arbitration result of the first arbitration node and the arbitration result of the second arbitration node, the system obtains the preset arbitration strategy and the third status information of the storage system. The third status information is used to indicate the operating status of the storage system.

[0066] The preset arbitration strategy is updated based on the third state information.

[0067] The target arbitration result for the storage system is determined based on the updated preset arbitration strategy.

[0068] In one possible implementation, a synchronization module is also included.

[0069] The synchronization module is used to determine the target storage device to take over the storage system based on the target arbitration result;

[0070] The target storage device is controlled to determine the target data block to be synchronized according to a preset differential algorithm;

[0071] Perform validation processing on the target data block;

[0072] When the verification process passes, the target data block is synchronized.

[0073] Thirdly, embodiments of this application provide an electronic device, including: a processor and a memory communicatively connected to the processor;

[0074] The memory stores instructions that the computer executes;

[0075] The processor executes computer execution instructions stored in memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0076] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.

[0077] The arbitration method, apparatus, device, and storage medium for a storage system provided in this application embodiment include a first storage device, a second storage device, a first arbitration node, and a second arbitration node. When the storage system detects a fault between the first storage device and the second storage device, it controls the first storage device to send arbitration instructions to the first arbitration node and the second arbitration node, and controls the second storage device to send arbitration instructions to the first arbitration node and the second arbitration node, respectively. The arbitration results of the first arbitration node and the second arbitration node are determined. The arbitration result of the first arbitration node is generated based on the hardware state, and the arbitration result of the second arbitration node is generated based on logical preemption. Based on the arbitration results of the first arbitration node and the second arbitration node, a target arbitration result for the storage system is determined. In this way, by using the above method, a dual-arbitration-node approach can be adopted. The first arbitration node generates the hardware arbitration result, and the second arbitration node generates the logical arbitration result of lock preemption. Then, the target arbitration result of the storage system is determined based on the hardware arbitration result (the arbitration result of the first arbitration node) and the logical arbitration result (the arbitration result of the second arbitration node). This can avoid the decision failure or result discrepancy caused by relying on a single arbitration node or a single judgment criterion, thereby improving the reliability and accuracy of arbitration decisions in dual-active system failure scenarios and reducing the impact on business continuity and data consistency. Attached Figure Description

[0078] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0079] Figure 1 A schematic diagram of the system architecture provided for this application;

[0080] Figure 2 A flowchart illustrating the arbitration method for the storage system provided in this application;

[0081] Figure 3 A schematic diagram of the process for determining the arbitration result of the first arbitration node, provided for an embodiment of this application;

[0082] Figure 4 A flowchart illustrating the process of determining the target arbitration result of a storage system, provided for an embodiment of this application;

[0083] Figure 5A complete flowchart illustrating the arbitration method of the storage system provided in this application embodiment;

[0084] Figure 6 A schematic diagram of the arbitration device for the storage system provided in this application;

[0085] Figure 7 A schematic diagram of the structure of an arbitration device for another storage system provided in this application;

[0086] Figure 8 A schematic diagram of the structure of the electronic device provided in this application.

[0087] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0088] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0089] First, let me explain the terms used in this application:

[0090] Active-Active System: An active-active system is a highly available cluster system built in parallel with two architectures deployed on independent physical sites, each with complete business processing capabilities. It relies on synchronous replication technology to ensure real-time data consistency between the two ends. Under normal operating conditions, both sites simultaneously carry read and write services and distribute traffic evenly. When the link between sites is interrupted or any site experiences hardware or software failure, the system uses two independent arbitration mechanisms—a physical arbitration server and a remote dictionary server (Redis) cluster—to complete a comprehensive evaluation of multi-dimensional operating indicators and distributed lock preemption verification. It automatically selects a unique takeover site and isolates the faulty site, avoiding data corruption caused by split-brain, achieving near-zero data loss and second-level business switching. After the fault is repaired, it automatically synchronizes the different data to restore bidirectional active-active operation. It is suitable for core scenarios with stringent requirements for business continuity and data integrity, such as finance and government.

[0091] Arbitration Mechanism of Active-Active Systems: The arbitration mechanism of active-active systems is a judgment logic designed to solve the split-brain problem caused by network interruption and link failure when two data centers provide services to the outside world at the same time. When the storage or cluster communication between the two locations is lost, the arbitration node will quickly complete the permission judgment according to the preset rules (such as third-party arbitration server, disk arbitration, voting weight, etc.), authorizing only one site to take over the business read and write permissions, forcibly isolating the data writing capability of the other site, avoiding data conflicts and fragmentation disorder caused by the two ends independently modifying the same data, ensuring global data consistency. After the faulty link is restored, the data difference between the two sides is filled in through the data synchronization mechanism to restore normal active-active load balancing operation.

[0092] In core financial databases, medical image storage platforms, or enterprise-level disaster recovery centers, when inter-site links are abnormal, equipment fails, or local network connections are lost, the system needs to promptly determine which storage device should continue to handle write operations in order to maintain continuous service and avoid simultaneous independent writes from both ends.

[0093] Existing active-active storage systems typically detect a fault between the first and second storage devices and receive status information reported by both parties through an arbitration node to determine which device will take over the service. Common methods include setting up a single arbitration node to make the decision, or setting up two independent arbitration nodes and outputting arbitration conclusions separately. The basic idea is to form a judgment based on link connectivity, device reachability, or local operating status.

[0094] When using a single arbitration node, if that node fails, the two storage devices will be unable to obtain a valid ruling in a failure scenario, leading to a halt in the takeover process. When using a parallel independent arbitration method, different arbitration nodes often make judgments based on relatively singular criteria, lacking a unified result coordination mechanism. When the two results are inconsistent, the system struggles to quickly reach a single conclusion.

[0095] Because information in fault scenarios is often localized and time-sensitive, relying on a single dimension for judgment can easily lead to misjudgments or conflicting results. If the target takeover party cannot be accurately identified, it may at best prolong business recovery time, and at worst, cause two storage devices to provide write services separately, resulting in data version forks, difficulties in subsequent synchronization, and a decline in consistency assurance capabilities.

[0096] In view of this, how to improve the reliability and accuracy of arbitration decisions when a failure occurs between the first and second storage devices, and how to form a unified target arbitration result in the presence of different arbitration conclusions, has become an urgent technical problem to be solved.

[0097] To address the aforementioned issues, the arbitration method for the storage system provided in this application employs a dual-arbitration-node approach. The first arbitration node generates a hardware arbitration result, while the second arbitration node generates a logical arbitration result for lock preemption. The target arbitration result of the storage system is then determined based on both the hardware arbitration result (the arbitration result of the first arbitration node) and the logical arbitration result (the arbitration result of the second arbitration node). This approach avoids decision failures or result discrepancies caused by relying solely on a single arbitration node or a single judgment criterion, thereby improving the reliability and accuracy of arbitration decisions in active-active system failure scenarios and reducing the impact on business continuity and data consistency.

[0098] Figure 1 A schematic diagram of the system architecture provided for this application, such as Figure 1 As shown, the system architecture of the storage system includes a first storage device, a second storage device, a first arbitration node, and a second arbitration node.

[0099] The first and second storage devices can be independent physical data center units with complete storage hardware deployed to support upper-layer business data read and write operations. The first arbitration node can be an independently deployed dedicated physical arbitration server, providing hardware-level decision-making. The second arbitration node can form a Redis cluster with the first and second storage devices, supporting atomic preemption of distributed locks.

[0100] The first and second storage devices are deployed in data centers located at different sites within the same city. The first and second storage devices can be connected via a high-speed synchronization link to support dual-active core services.

[0101] The first arbitration node and the second arbitration node maintain independent heartbeat communication with the first storage device and the second storage device, respectively.

[0102] During normal operation, the first and second storage devices will continuously report data such as link, load, and operating status to the first and second arbitration nodes. The first and second arbitration nodes only perform routine monitoring.

[0103] When a failure occurs, such as a link interruption between the first and second storage devices or a failure of either storage device, the first and second storage devices will simultaneously initiate arbitration requests to the first and second arbitration nodes and receive the final target arbitration result, and take over the storage system according to the target arbitration result.

[0104] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0105] Figure 2 This is a flowchart illustrating the arbitration method for the storage system provided in this application. This method can be executed by the arbitration device of the storage system, which can be implemented through a computer program; it can also be implemented through a medium storing the relevant computer program, such as a USB flash drive and / or optical disc; or it can be implemented through the storage system itself. The following explanation uses a storage system as an example. Figure 2 As shown, the method includes the following steps S201-S203.

[0106] S201. When the storage system detects a fault between the first storage device and the second storage device, it controls the first storage device to send arbitration instructions to the first arbitration node and the second arbitration node respectively, and controls the second storage device to send arbitration instructions to the first arbitration node and the second arbitration node respectively.

[0107] The storage system may include a first storage device, a second storage device, a first arbitration node, and a second arbitration node.

[0108] The first storage device and the second storage device can be deployed on two isolated sites and provide storage services to the outside world. The first arbitration node can be used to perform arbitration judgment based on hardware status, and the second arbitration node can be used to perform arbitration judgment based on lock preemption.

[0109] The arbitration instruction of the first storage device can be a standardized fault arbitration message generated by the first storage device. The arbitration instruction of the first storage device can include the resource utilization rate, load status, business operation status, timestamp, device unique identifier, etc. of the first storage device itself.

[0110] The arbitration command for the second storage device can be a standardized fault arbitration message generated by the second storage device. The arbitration command for the second storage device can include the second storage device's own resource utilization, load status, service operation status, timestamp, device unique identifier, etc.

[0111] Understandably, when the storage system detects that the link between the first and second storage devices is interrupted due to network disconnection, leased line failure, switch failure, or other issues, it can be assumed that there is a fault between the first and second storage devices. Alternatively, when the storage system detects that either the first or second storage device experiences a controller crash, process crash, disk failure, or site power failure, it can also be assumed that there is a fault between the first and second storage devices.

[0112] After detecting and confirming a fault between the first storage device and the second storage device, the storage system will trigger an arbitration process and control the first and second storage devices to send corresponding arbitration instructions to the first arbitration node and the second arbitration node, respectively, so that the two arbitration nodes can obtain input information for subsequent arbitration judgment.

[0113] S202. Determine the arbitration results of the first arbitration node and the arbitration results of the second arbitration node.

[0114] The arbitration result of the first arbitration node can be generated based on the hardware status. The hardware status can include resource utilization, load status, service operation status, timestamp, device unique identifier, etc., carried in the arbitration command.

[0115] After receiving the arbitration instructions from the first storage device and the second storage device, the first arbitration node can first perform verification processing on the arbitration instructions from the first storage device and the second storage device. The verification processing is used to verify the compliance of the instructions, the consistency of transaction identifiers, the validity of timestamps, etc., thereby filtering out expired, replayed, and forged instructions. Based on the hardware status-related information carried by the arbitration instructions from the first storage device and the second storage device, the first arbitration node performs arbitration judgment on the first storage device and the second storage device, and generates the arbitration result of the first arbitration node.

[0116] That is, the arbitration result of the first arbitration node can be used to indicate which of the first and second storage devices is more suitable as the takeover device based on the hardware status.

[0117] The arbitration result of the second arbitration node can be the arbitration result generated by logical preemption, that is, the arbitration result generated after the lock preemption of the first storage device and the second storage device.

[0118] Lock preemption can refer to the atomic competition between the first and second storage devices to initiate a globally unique takeover lock on the second arbitration node in parallel, with only one storage device successfully acquiring the lock at any given time.

[0119] The second arbitration node can be used to perform logic layer competition determination. By preempting the lock, the first storage device and the second storage device can compete for the same lock resource. The arbitration result of the second arbitration node can be determined based on the takeover device formed by the competition result.

[0120] In practice, after receiving arbitration instructions from both the first and second storage devices, the second arbitration node arbitrates the first and second storage devices based on a lock preemption mechanism and determines its arbitration result. The arbitration result of the second arbitration node indicates which of the first and second storage devices will act as the takeover device under the judgment corresponding to the lock preemption result.

[0121] Understandably, when the first storage device acquires the lock first, the arbitration result of the second arbitration node can be considered that the first storage device takes over the storage system; when the second storage device acquires the lock first, the arbitration result of the second arbitration node can be considered that the second storage device takes over the storage system.

[0122] In one possible implementation, the arbitration result of the second arbitration node can be determined as follows: the second arbitration node receives the arbitration instructions from the first storage device and the second storage device, and sends lock preemption instructions to the first storage device and the second storage device respectively; based on the first lock request sent by the first storage device and the second lock request sent by the second storage device, the second arbitration node determines the third storage device that has successfully preempted the first storage device and the second storage device; based on the third storage device, the arbitration result of the second arbitration node is determined to be that the third storage device takes over the storage system.

[0123] The locking request sent by the third storage device precedes the locking request sent by the other storage device. Understandably, the third storage device is the one that successfully preempted the lock between the first and second storage devices.

[0124] Understandably, the second arbitration node processes all locking requests serially in a single thread. Locking requests that arrive at the second arbitration node first will be executed successfully and acquire the global lock. Requests that arrive later will fail directly because the lock already exists, thus avoiding the split-brain problem. At the same time, the decision logic is based solely on the arrival order of locking requests, without the need for complex hardware state calculations, thereby ensuring higher reliability in extreme network scenarios.

[0125] S203. Determine the target arbitration result of the storage system based on the arbitration results of the first arbitration node and the arbitration results of the second arbitration node.

[0126] The arbitration result of the first arbitration node can select the device with higher hardware service stability and better performance from the first storage device and the second storage device as the takeover device.

[0127] The arbitration result of the second arbitration node can select the device with fast response and the ability to prevent split-brain from the first and second storage devices as the takeover device.

[0128] The target arbitration result can be used to indicate which of the first and second storage devices will ultimately take over the storage system in the current failure scenario.

[0129] In one possible implementation, if the arbitration result of the first arbitration node is the same as the arbitration result of the second arbitration node, then the arbitration result of the first arbitration node or the arbitration result of the second arbitration node can be determined as the target arbitration result of the storage system.

[0130] In another possible implementation, if the arbitration result of the first arbitration node is different from that of the second arbitration node, a preset arbitration strategy pre-set by the storage system can be obtained. The preset arbitration strategy can be used to determine the target arbitration result according to a first weight ratio, which can be the ratio of the first weight of the arbitration result of the first arbitration node to the second weight of the arbitration result of the second arbitration node.

[0131] For example, when the first weight ratio is 0.6, meaning the first weight of the arbitration result of the first arbitration node is less than the second weight of the arbitration result of the second arbitration node, the arbitration result of the second arbitration node can be considered to have a higher weight, and thus the arbitration result of the second arbitration node is determined as the target arbitration result of the storage system. When the first weight ratio is 1.5, meaning the first weight of the arbitration result of the first arbitration node is greater than the second weight of the arbitration result of the second arbitration node, the arbitration result of the first arbitration node can be considered to have a higher weight, and thus the arbitration result of the first arbitration node is determined as the target arbitration result of the storage system.

[0132] In one possible implementation, after determining the target arbitration result of the storage system, the method further includes: determining the target storage device to take over the storage system based on the target arbitration result; controlling the target storage device to determine the target data block to be synchronized according to a preset differential algorithm; performing verification processing on the target data block; and performing synchronization processing on the target data block when the verification processing result is that the verification passes.

[0133] In the implementation, once the storage system identifies the target storage device, the device that failed the arbitration enters read-only mode, allowing only data reading. This failed device then initiates data verification. The target storage device generates verification information (such as a hash digest) by reading the read-only data blocks from the failed device and compares this information with its own data block verification information to determine the data blocks that need to be synchronized. In this way, by having the target storage device lead the verification process, data consistency verification can still be completed in read-only mode.

[0134] Specifically, the target storage device can read data change information from local cache, log records, or mirror copies, and compare the data versions before and after synchronization based on a preset differential algorithm to generate a set of target data blocks to be recovered. The preset differential algorithm can be implemented using block checksum comparison, hash digest comparison, or change bitmap comparison. The selected algorithm type matches the data organization form to reduce the involvement of irrelevant data. Subsequently, the target storage device performs integrity checks on each target data block. The checks include, but are not limited to, block length consistency, checksum consistency, and data format validity. Only data blocks that pass the checks are added to the synchronization queue and synchronized through the mirror channel, replication link, or internal write interface. If the checks fail, the corresponding data block can be marked as pending retry and not entered into synchronization to ensure that the finally written data is consistent with the takeover state.

[0135] In this process, the target arbitration result first defines a unique takeover storage device, which then filters out the difference blocks from the changed data and performs verification. Only data blocks that meet the verification conditions will be synchronized to the corresponding storage side, thereby ensuring that the data recovery process after takeover is consistent with the arbitration conclusion.

[0136] In this way, the storage system can identify, verify, and synchronize only the changed data based on the formation of a unique target arbitration result, making data recovery after takeover more targeted and matching the synchronized content with the actual takeover state after arbitration, thereby improving data consistency after fault recovery.

[0137] In this embodiment, the storage system may include a first storage device, a second storage device, a first arbitration node, and a second arbitration node. When the storage system detects a fault between the first and second storage devices, it controls the first storage device to send arbitration instructions to both the first and second arbitration nodes, and controls the second storage device to send arbitration instructions to both the first and second arbitration nodes. The first arbitration node can perform arbitration based on hardware status, and the second arbitration node can perform arbitration based on lock preemption. The arbitration instructions of the first and second storage devices can be standardized fault arbitration messages generated by the first and second storage devices, respectively. The first arbitration node determines its arbitration result based on the arbitration instructions of the first and second storage devices, and the arbitration result of the first arbitration node can be an arbitration result generated based on hardware status. The second arbitration node determines its arbitration result based on the arbitration instructions of the first and second storage devices, and the arbitration result of the second arbitration node can be an arbitration result generated after lock preemption by the first and second storage devices. Finally, the target arbitration result of the storage system is determined based on the arbitration results of the first and second arbitration nodes. In this way, by using the above method and employing dual arbitration nodes, arbitration results are generated based on hardware status and lock preemption respectively. The weights are determined according to a pre-set arbitration strategy for unified decision-making. This enables the dual-active storage system to form a target arbitration result based on hardware status and lock preemption in the event of inter-site failure, thereby improving system reliability. At the same time, the dual arbitration node setup ensures that the overall arbitration is not affected when either arbitration node fails, further enhancing system reliability.

[0138] Below, in conjunction with Figure 3 The process of determining the arbitration result of the first arbitration node is explained.

[0139] Figure 3 This is a schematic flowchart illustrating the process of determining the arbitration result of the first arbitration node, provided as an embodiment of this application. Based on the above embodiment, see [link to relevant documentation]. Figure 3 The method includes:

[0140] S301. The first arbitration node determines the first state information of the first storage device according to the arbitration instruction of the first storage device.

[0141] The first status information can be used to indicate the operating status of the first storage device.

[0142] The first status information can be a structured and standardized dataset obtained by parsing, cleaning, and normalizing the original message of the arbitration instruction from the first arbitration node to the first storage device. It can be used for subsequent parameter extraction after being formatted in a unified manner, and can fully reflect the operating status of the first storage device.

[0143] S302. Determine the second state information of the second storage device according to the arbitration instruction of the second storage device.

[0144] The second status information can be used to indicate the operating status of the second storage device.

[0145] The second status information can be a structured and standardized dataset obtained by parsing, cleaning, and normalizing the original message of the arbitration instruction from the first arbitration node to the second storage device. It can be used for subsequent parameter extraction after being formatted in a unified manner, and can fully reflect the operating status of the second storage device.

[0146] Understandably, steps S301 and S302 above can be executed in parallel. The first arbitration node can store the first state information and the second state information in partitions, so that the two sets of data do not interfere with each other. After completion, it is marked that the state data at both ends of the first storage device and the second storage device have been collected.

[0147] S303. Determine the arbitration result of the first arbitration node based on the first state information and the second state information.

[0148] The arbitration result of the first arbitration node can be an arbitration result generated based on the hardware status.

[0149] In one possible implementation, the arbitration result of the first arbitration node can be determined as follows: based on first state information, determine the first link state parameters and the first resource load parameters of the first storage device; based on the first link state parameters and the first resource load parameters, determine the first hardware parameters of the first storage device; based on second state information, determine the second link state parameters and the second resource load parameters of the second storage device; based on the second link state parameters and the second resource load parameters, determine the second hardware parameters of the second storage device; when the first hardware parameter is greater than or equal to the second hardware parameter, determine that the arbitration result of the first arbitration node is that the first storage device takes over the storage system; when the first hardware parameter is less than the second hardware parameter, determine that the arbitration result of the first arbitration node is that the second storage device takes over the storage system.

[0150] Link status parameters refer to quantitative scores extracted from device status information to evaluate the quality of cross-site communication. They can include weighted scores for indicators such as link latency, packet loss rate, synchronization channel connectivity, and heartbeat response speed. The more stable the link, the higher the link status parameter score.

[0151] Resource load parameters can refer to the quantitative scores extracted from device status information to assess the pressure of local hardware resources. They can include CPU utilization, memory usage, I / O queue length, disk activity, and frequency of business errors. The lower the load and the fewer the failures, the higher the resource load parameters.

[0152] Hardware parameters can be a comprehensive score calculated by combining link status parameters and resource load parameters according to preset weights. Higher hardware parameters indicate better equipment performance and suitability for handling all storage system services.

[0153] After receiving the first and second status information, the first arbitration node first extracts the link status parameters and resource load parameters of the two storage devices respectively, then maps each parameter to a hardware judgment value with unified dimensions, and performs a numerical comparison accordingly. When the first hardware parameter is not less than the second hardware parameter, the first arbitration node outputs the arbitration conclusion that the first storage device takes over the storage system; when the first hardware parameter is less than the second hardware parameter, the first arbitration node outputs the arbitration conclusion that the second storage device takes over the storage system. This comparison result is directly used as the arbitration result output by the first arbitration node.

[0154] exist Figure 3 In the illustrated embodiment, when it is necessary to determine the arbitration result of the first arbitration node, the first arbitration node can determine the first state information of the first storage device according to the arbitration instruction of the first storage device. The first state information can be used to indicate the operating state of the first storage device. According to the arbitration instruction of the second storage device, the first arbitration node can determine the second state information of the second storage device. The second state information can be used to indicate the operating state of the second storage device. Based on the first and second state information, the arbitration result of the first arbitration node is determined. The arbitration result of the first arbitration node can be an arbitration result generated based on the hardware status. Thus, by using the above method and combining link status and resource load as hardware judgment criteria, the first arbitration node can form a unified ruling even when both sites are simultaneously reachable or partially degraded. This ensures that the arbitration result matches the current carrying capacity of the storage device, thereby improving the accuracy and consistency of takeover judgment and providing stable output results for service takeover in fault scenarios.

[0155] Below, in conjunction with Figure 4 The process of determining the target arbitration result for the storage system is explained.

[0156] Figure 4 This is a flowchart illustrating the process of determining the target arbitration result of a storage system, as provided in an embodiment of this application. Based on the above embodiments, see also... Figure 4 The method includes:

[0157] S401. In response to the difference between the arbitration result of the first arbitration node and the arbitration result of the second arbitration node, obtain the preset arbitration strategy.

[0158] The preset arbitration strategy can be used to instruct the determination of the target arbitration result based on a first weight ratio, which is the ratio of the first weight of the arbitration result of the first arbitration node to the second weight of the arbitration result of the second arbitration node.

[0159] For example, when the first weight ratio is greater than 1, the first weight of the arbitration result of the first arbitration node can be considered greater than the second weight of the arbitration result of the second arbitration node, that is, the arbitration result of the first arbitration node is used as the target arbitration result. When the first weight ratio is less than 1, the first weight of the arbitration result of the first arbitration node can be considered less than the second weight of the arbitration result of the second arbitration node, that is, the arbitration result of the second arbitration node is used as the target arbitration result.

[0160] Understandably, the preset arbitration strategy can be a strategy pre-set by the user. Furthermore, when the arbitration result of the first arbitration node is the same as that of the second arbitration node, it is not necessary to obtain the preset arbitration strategy. The arbitration result of the first arbitration node and the arbitration result of the second arbitration node can be directly determined as the target arbitration result.

[0161] S402, Obtain the third state information of the storage system.

[0162] Third-state information can be used to indicate the operating status of the storage system.

[0163] For example, the third status information may include the hardware load and health of the first and second storage devices, the latency status and cluster shard health of the second arbitration cluster, the network quality of the cross-site leased line between the first and second storage devices, and the load and packet loss rate of the first arbitration server.

[0164] Understandably, third-state information can be used to reflect the stability of the storage system itself, business storage, and underlying network, thus serving as a basis for dynamically adjusting weights.

[0165] S403. Based on the third state information, determine the ratio of the third weight of the arbitration result of the first arbitration node to the second weight of the fourth weight of the arbitration result of the second arbitration node.

[0166] In one possible implementation, when the third state information indicates that the current situation is a high network latency scenario, the first weight of the arbitration result of the first arbitration node can be increased to the third weight, and the second weight of the arbitration result of the second arbitration node can be decreased to the fourth weight. That is, the weight of hardware layer arbitration is increased, thereby obtaining the second weight ratio.

[0167] In another possible implementation, when the third state information indicates that the current business scenario is high-concurrency, the first weight of the arbitration result of the first arbitration node can be reduced to the third weight, and the second weight of the arbitration result of the second arbitration node can be increased to the fourth weight. That is, the weight of the logical layer arbitration is increased, thereby obtaining the second weight ratio.

[0168] S404. When the difference between the first weight ratio and the second weight ratio is greater than or equal to the first threshold, the first weight ratio is updated according to the second weight ratio.

[0169] The first threshold can be a pre-set value, which can be used to determine whether the current weight is seriously incompatible with the current state of the storage system. That is, when the difference between the first weight ratio and the second weight ratio exceeds the first threshold, it means that the preset weight deviation is too large and needs to be updated.

[0170] Understandably, when the difference between the first weight ratio and the second weight ratio is less than the first threshold, it can be assumed that the first weight ratio of the preset arbitration strategy is applicable to the current storage system and does not need to be modified. The target arbitration result can be determined directly based on the first weight ratio of the preset arbitration strategy.

[0171] S405. Determine the target arbitration result based on the updated first weight ratio.

[0172] Based on the updated first weighting ratio, the arbitration result with the higher weight is determined as the target arbitration result.

[0173] exist Figure 4In the illustrated embodiment, when a target arbitration result needs to be determined, in response to the difference between the arbitration result of the first arbitration node and the arbitration result of the second arbitration node, a preset arbitration strategy is obtained. This preset arbitration strategy can be used to instruct the determination of the target arbitration result based on a first weight ratio, where the first weight ratio is the ratio of the first weight of the arbitration result of the first arbitration node to the second weight of the arbitration result of the second arbitration node. Third state information of the storage system is obtained, which can be used to indicate the operating status of the storage system. Based on the third state information, a second weight ratio is determined between the third weight of the arbitration result of the first arbitration node and the fourth weight of the arbitration result of the second arbitration node. When the difference between the first weight ratio and the second weight ratio is greater than or equal to a first threshold, the first weight ratio is updated based on the second weight ratio. The first threshold can be a pre-set value used to determine whether the current weight is severely incompatible with the current state of the storage system. Based on the updated first weight ratio, the target arbitration result is determined. Thus, by combining static arbitration weights with dynamic state weights, the criteria for determining the target arbitration result can be adjusted synchronously when the operating status changes, making the final output more consistent with the actual availability and takeover capability of the current storage system, thereby improving the consistency and accuracy of the arbitration conclusion.

[0174] Below, in conjunction with Figure 5 This section explains the complete process of arbitration methods for storage systems.

[0175] Figure 5 A complete flowchart illustrating the arbitration method of the storage system provided in this application embodiment. Please refer to... Figure 5 ,include:

[0176] S501. When the storage system detects a fault between the first storage device and the second storage device, it controls the first storage device to send arbitration instructions to the first arbitration node and the second arbitration node respectively, and controls the second storage device to send arbitration instructions to the first arbitration node and the second arbitration node respectively.

[0177] S502, The first arbitration node determines the first state information of the first storage device according to the arbitration instruction of the first storage device.

[0178] S503. Determine the second state information of the second storage device according to the arbitration instruction of the second storage device.

[0179] S504. Determine the arbitration result of the first arbitration node based on the first state information and the second state information.

[0180] S505, the second arbitration node receives the arbitration instructions from the first storage device and the second storage device, and sends lock preemption instructions to the first storage device and the second storage device respectively.

[0181] S506. Based on the first locking request sent by the first storage device and the second locking request sent by the second storage device, the second arbitration node determines the third storage device that has successfully preempted the first storage device and the second storage device.

[0182] S507. Based on the third storage device, determine that the arbitration result of the second arbitration node is that the third storage device takes over the storage system.

[0183] S508. When the arbitration result of the first arbitration node and the arbitration result of the second arbitration node are the same, the arbitration result of the first arbitration node and the arbitration result of the second arbitration node shall be determined as the target arbitration result.

[0184] S509. When the arbitration result of the first arbitration node and the arbitration result of the second arbitration node are different, the target arbitration result of the storage system is determined according to the preset arbitration strategy.

[0185] This application also provides an arbitration device for a storage system, which is integrated into an electronic device.

[0186] Figure 6 A schematic diagram of the arbitration device for the storage system provided in this application is shown below. Figure 6 As shown, the arbitration device 60 of the storage system provided in this embodiment includes:

[0187] Control module 61 is used to control the first storage device to send arbitration instructions to the first arbitration node and the second arbitration node respectively, and to control the second storage device to send arbitration instructions to the first arbitration node and the second arbitration node respectively, when the storage system detects a fault between the first storage device and the second storage device;

[0188] The first determining module 62 is used to determine the arbitration result of the first arbitration node and the arbitration result of the second arbitration node. The arbitration result of the first arbitration node is the arbitration result generated based on the hardware status, and the arbitration result of the second arbitration node is the arbitration result generated based on logical preemption.

[0189] The second determining module 63 is used to determine the target arbitration result of the storage system based on the arbitration result of the first arbitration node and the arbitration result of the second arbitration node.

[0190] In one possible implementation, the first determining module 62 is specifically used for,

[0191] The first arbitration node determines the first status information of the first storage device according to the arbitration instruction of the first storage device. The first status information is used to indicate the operating status of the first storage device.

[0192] According to the arbitration instruction of the second storage device, the second status information of the second storage device is determined, and the second status information is used to indicate the operating status of the second storage device;

[0193] Based on the first state information and the second state information, the arbitration result of the first arbitration node is determined.

[0194] In one possible implementation, the first determining module 62 is specifically used for,

[0195] Based on the first state information, determine the first link state parameters and the first resource load parameters of the first storage device;

[0196] The first hardware parameters of the first storage device are determined based on the first link status parameters and the first resource load parameters.

[0197] Based on the second state information, determine the second link state parameters and the second resource load parameters of the second storage device;

[0198] The second hardware parameters of the second storage device are determined based on the second link status parameters and the second resource load parameters.

[0199] The arbitration result of the first arbitration node is determined based on the first hardware parameter and the second hardware parameter.

[0200] In one possible implementation, the first determining module 62 is specifically used for,

[0201] When the first hardware parameter is greater than or equal to the second hardware parameter, the arbitration result of the first arbitration node is determined to be that the first storage device takes over the storage system;

[0202] When the first hardware parameter is less than the second hardware parameter, the arbitration result of the first arbitration node is determined to be that the second storage device takes over the storage system.

[0203] In one possible implementation, the first determining module 62 is specifically used for,

[0204] When the second arbitration node receives the arbitration instruction from the first storage device and the arbitration instruction from the second storage device, it sends a lock preemption instruction to the first storage device and the second storage device respectively.

[0205] The second arbitration node determines the third storage device that successfully preempts the first storage device and the second storage device. The locking request sent by the third storage device is prior to the locking request sent by the other storage device.

[0206] Based on the third storage device, the arbitration result of the second arbitration node is determined to be that the third storage device takes over the storage system.

[0207] In one possible implementation, the second determining module 63 is specifically used for,

[0208] In response to the difference between the arbitration result of the first arbitration node and the arbitration result of the second arbitration node, the system obtains the preset arbitration strategy and the third status information of the storage system. The third status information is used to indicate the operating status of the storage system.

[0209] The preset arbitration strategy is updated based on the third state information.

[0210] The target arbitration result for the storage system is determined based on the updated preset arbitration strategy.

[0211] The arbitration device of the storage system provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0212] Figure 7 A schematic diagram of the structure of an arbitration device for another storage system provided in this application, in Figure 6 Based on what is shown, as Figure 7 As shown, the arbitration device 60 of the storage system provided in this embodiment further includes: a synchronization module 64, wherein,

[0213] The synchronization module 64 is used to determine the target storage device to take over the storage system based on the target arbitration result;

[0214] The target storage device is controlled to determine the target data block to be synchronized according to a preset differential algorithm;

[0215] Perform validation processing on the target data block;

[0216] When the verification process passes, the target data block is synchronized.

[0217] The arbitration device of the storage system provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0218] Figure 8 A schematic diagram of the structure of the electronic device provided in this application. Figure 8 As shown, the electronic device 80 provided in this embodiment includes: a processor 801 and a memory 802 communicatively connected to the processor 801.

[0219] Optionally, the electronic device 80 also includes a communication component 803. The processor 801, memory 802, and communication component 803 are connected via a bus.

[0220] In the specific implementation process, the processor 801 executes the computer execution instructions stored in the memory 802, causing the processor 801 to perform the above-mentioned method.

[0221] The specific implementation process of processor 801 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0222] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.

[0223] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0224] Buses can be Industry Standard Architecture (ISA) buses, Peripheral Component Interconnect (PCI) buses, or Extended Industry Standard Architecture (EISA) buses, etc. Buses can be categorized into address buses, data buses, control buses, etc.

[0225] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0226] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0227] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as read-only memory (ROM), static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0228] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in application-specific integrated circuits (ASICs). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0229] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0230] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0231] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0232] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a server to execute all or part of the steps of the methods of the various embodiments of the present invention.

[0233] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. An arbitration method for a storage system, characterized in that, The storage system includes a first storage device, a second storage device, a first arbitration node, and a second arbitration node; the method includes: When the storage system detects a fault between the first storage device and the second storage device, it controls the first storage device to send an arbitration instruction to the first arbitration node and the second arbitration node, respectively, and controls the second storage device to send an arbitration instruction to the first arbitration node and the second arbitration node, respectively. Determine the arbitration result of the first arbitration node and the arbitration result of the second arbitration node. The arbitration result of the first arbitration node is generated based on the hardware status, and the arbitration result of the second arbitration node is generated based on logical preemption. The target arbitration result of the storage system is determined based on the arbitration results of the first arbitration node and the second arbitration node.

2. The method according to claim 1, characterized in that, Determining the arbitration outcome of the first arbitration node includes: The first arbitration node is controlled to determine the first status information of the first storage device according to the arbitration instruction of the first storage device. The first status information is used to indicate the operating status of the first storage device. According to the arbitration instruction of the second storage device, the second status information of the second storage device is determined, and the second status information is used to indicate the operating status of the second storage device; Based on the first status information and the second status information, the arbitration result of the first arbitration node is determined.

3. The method according to claim 2, characterized in that, Based on the first status information and the second status information, the arbitration result of the first arbitration node is determined, including: Based on the first status information, the first link status parameters and the first resource load parameters of the first storage device are determined; Based on the first link status parameters and the first resource load parameters, the first hardware parameters of the first storage device are determined; Based on the second status information, determine the second link status parameters and the second resource load parameters of the second storage device; The second hardware parameters of the second storage device are determined based on the second link status parameters and the second resource load parameters. The arbitration result of the first arbitration node is determined based on the first hardware parameters and the second hardware parameters.

4. The method according to claim 3, characterized in that, Based on the first hardware parameters and the second hardware parameters, the arbitration result of the first arbitration node is determined, including: When the first hardware parameter is greater than or equal to the second hardware parameter, the arbitration result of the first arbitration node is determined to be that the first storage device takes over the storage system; When the first hardware parameter is less than the second hardware parameter, the arbitration result of the first arbitration node is determined to be that the second storage device takes over the storage system.

5. The method according to any one of claims 1-4, characterized in that, The arbitration outcome of the second arbitration node includes: When the second arbitration node receives the arbitration instructions from the first storage device and the second storage device, it sends lock preemption instructions to the first storage device and the second storage device respectively. The second arbitration node determines the third storage device that successfully preempts the first storage device and the second storage device, wherein the locking request sent by the third storage device is prior to the locking request sent by the other storage device; Based on the third storage device, the arbitration result of the second arbitration node is determined to be that the third storage device takes over the storage system.

6. The method according to any one of claims 1-4, characterized in that, Based on the arbitration results of the first arbitration node and the second arbitration node, the target arbitration result of the storage system is determined, including: In response to a difference between the arbitration result of the first arbitration node and the arbitration result of the second arbitration node, a preset arbitration strategy and third state information of the storage system are obtained, the third state information being used to indicate the operating state of the storage system; The preset arbitration strategy is updated based on the third state information. The target arbitration result of the storage system is determined based on the updated preset arbitration strategy.

7. The method according to any one of claims 1-4, characterized in that, After determining the target arbitration result of the storage system based on the arbitration results of the first arbitration node and the second arbitration node, the process further includes: Based on the target arbitration result, the target storage device for taking over the storage system is determined; The target storage device is controlled to determine the target data block to be synchronized according to a preset differential algorithm; The target data block is then verified. When the verification process results in a successful verification, the target data block is synchronized.

8. An arbitration device for a storage system, characterized in that, include: The control module is configured to, when the storage system detects a fault between the first storage device and the second storage device, control the first storage device to send an arbitration instruction of the first storage device to the first arbitration node and the second arbitration node respectively, and control the second storage device to send an arbitration instruction of the second storage device to the first arbitration node and the second arbitration node respectively; The first determining module is used to determine the arbitration result of the first arbitration node and the arbitration result of the second arbitration node. The arbitration result of the first arbitration node is generated based on the hardware status, and the arbitration result of the second arbitration node is generated based on logical preemption. The second determining module is used to determine the target arbitration result of the storage system based on the arbitration result of the first arbitration node and the arbitration result of the second arbitration node.

9. An electronic device, characterized in that, include: A processor and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-6.