Disk array system and resource management method
By designing two mutually active and backup controllers in the disk array system, and using heartbeat monitoring links to implement status takeover, the problem of system instability caused by single point failures in the existing technology is solved and the stable operation of the system is ensured. .
Patent Information
- Application Number
- CN202410807632.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
There is only one controller in the existing disk array system, causing the system to run unstable. When a fault occurs, the entire storage array is easily paralyzed, making it difficult to ensure system stability.
Design a disk array system, which contains two controllers that are active and backup for each other. They are connected to each other through heartbeat monitoring links, monitor each other's status, and determine whether to take over or release storage resource management rights based on the status to ensure that the system is on one controller. In the event of a failure, another controller can take over in time.
It improves the stability of the disk array system, avoids system paralysis due to single point failure, and ensures that the system can still operate normally when the controller fails.
Smart Images

Figure CN118732948A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of disk arrays, and in particular to a disk array system and a resource management method. Background Art
[0002] A disk array (Redundant Arrays of Independent Drives, RAID) is an array with huge capacity and redundancy, which is composed of many independent hard disks. In the prior art, a single disk array controller (RAID controller) design is usually adopted in the disk array system, that is, a single controller is used to directly connect the hard disk downstream or to connect the hard disk through an expansion chip. Since there is only one controller in the disk array system, in the prior art, when the controller is abnormal, the disk frame in the disk array system cannot be used, and even the entire storage array may be paralyzed. Even if it can be repaired, the entire disk array system must be powered off before the disk array controller is replaced, which leads to the problem that the prior art is difficult to ensure the stability of the disk array system. Summary of the invention
[0003] The embodiment of the present invention provides a disk array system and a resource management method, which are used to solve the problem in the prior art that it is difficult to ensure the stability of the operation of the disk array system.
[0004] The specific technical solutions are as follows:
[0005] In a first aspect, an embodiment of the present invention provides a disk array system, the disk array system comprising:
[0006] A controller group and a shared disk frame; the controllers in the controller group include: a first controller and a second controller;
[0007] The first controller and the second controller are mutually active and standby controllers, working in parallel and being mutually redundant;
[0008] The first controller and the second controller are respectively connected to the shared disk frame and are used to manage the shared disk frame;
[0009] The first controller and the second controller are connected to each other via a heartbeat monitoring link;
[0010] The controllers in the controller group are also used to monitor each other's heartbeat packets sent through the heartbeat monitoring link to obtain the current status of the other party, and determine whether to take over or release the management authority over the other party's storage resources based on the current status of the other party, wherein the disk frame managed by the first controller in the shared disk frame is the first disk frame, and the disk frame managed by the second controller is the second disk frame; the control resources of the first controller include the first disk frame; and the control resources of the second controller include the second disk frame.
[0011] Optionally, the first controller and the second controller both include the following four states:
[0012] Working state, unknown state, waiting to work state and takeover state; wherein, the working state is the state in which the controller normally provides storage services to the outside; the unknown state is the state in which the state of the controller cannot be normally known; the waiting to work state is the state in which the controller does not provide storage services to the outside; the takeover state is the state after the controller in the working state takes over the management authority of the other party's storage resources.
[0013] Optionally, the controller in the controller group is further used for:
[0014] When a working controller in the controller group detects that the state of the other controller has changed from the original working state to the current unknown state, the working controller will take over the management authority of the other controller's storage resources; and change its own state from the working state to the takeover state;
[0015] When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original working state to the current unknown state, the controller in the waiting state will enter the working state and take over the management authority of the other storage resource, and convert its own state from the waiting state to the takeover state;
[0016] When a controller in the controller group in the takeover state detects that the state of the other controller is converted from the original unknown state to the current waiting-to-work state, the state of the controller in the takeover state remains unchanged and continues to monitor the state of the other controller;
[0017] When a controller in the controller group in the takeover state detects that the state of the other controller is converted from the original waiting-to-work state to the current unknown state, the state of the controller in the takeover state remains unchanged and continues to monitor the state of the other controller;
[0018] When a working controller in the controller group detects that the state of the other controller has changed from the original working state to the current waiting-to-work state, the working controller will take over the management authority of the other storage resource; and change its own state from the working state to the takeover state;
[0019] When a controller in the controller group that is in the standby state detects that the state of the other controller is converted from the original working state to the current standby state, the controller in the standby state will enter the working state and take over the management authority of the other storage resource, and convert its own state from the standby state to the takeover state;
[0020] When a controller in the controller group that is in the takeover state detects that the state of the other controller is converted from the original waiting state to the current working state, the controller in the takeover state will release the management authority over the other storage resources and convert its own state from the takeover state to the working state; or the controller in the takeover state will release the management authority over the other storage resources, stop providing storage services to the outside, and convert its own state from the takeover state to the waiting state; and the other controller will regain the management authority over its own storage resources;
[0021] When a controller in the controller group in the takeover state detects that the state of the other controller is converted from the original waiting state to the current unknown state, the controller in the takeover state stops providing storage services to the outside world and converts its own state from the takeover state to the waiting state;
[0022] When a controller in the controller group in the takeover state detects that the other controller is always in the standby state, the controller in the takeover state stops providing storage services to the outside world and changes its own state from the takeover state to the standby state;
[0023] When a controller in the controller group that is in the standby state detects that the other controller is always in the standby state, the controller in the standby state enters the working state and takes over the management authority of the other controller's storage resources, and converts its own state from the standby state to the takeover state;
[0024] When a controller in the controller group in the takeover state detects that the state of the other controller is converted from the original unknown state to the current waiting state, the controller in the takeover state stops providing storage services to the outside world and converts its own state from the takeover state to the waiting state;
[0025] When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original waiting state to the current unknown state, the controller in the waiting state enters the working state, takes over the management authority of the other storage resource, and converts its own state from the waiting state to the takeover state;
[0026] When a controller in the controller group in working state detects that the state of the other controller is changed from the original working state to the current standby state, the controller in working state stops providing storage services to the outside world and changes its own state from the working state to the standby state;
[0027] When a controller in the controller group that is in working state detects that the state of the other controller is always in the waiting state, the controller in working state stops providing storage services to the outside world and changes its own state from working state to waiting state;
[0028] When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original waiting state to the current working state, the controller in the waiting state maintains its own state unchanged, or enters the working state and converts its own state from the waiting state to the working state;
[0029] When a controller in the controller group that is in working state detects that the state of the other controller is converted from the original working state or the waiting working state to the current unknown state, the controller in the working state or the waiting working state maintains its own state unchanged;
[0030] When a controller in the controller group that is in working state detects that the state of the other controller is converted from the original unknown state to the current working state or the waiting working state, the controller in working state maintains its own state unchanged;
[0031] When a controller in the working state in the controller group detects that the state of the other controller is converted from the original unknown state to the current waiting state, the controller in the working state enters the waiting state and converts its own state from the working state to the waiting state;
[0032] When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original waiting state to the current unknown state, the controller in the waiting state enters the working state and converts its own state from the waiting state to the working state;
[0033] When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original waiting state to the current unknown state, the controller in the waiting state maintains its own state unchanged;
[0034] When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original unknown state to the current waiting state, the controller in the waiting state maintains its own state unchanged.
[0035] In a second aspect, an embodiment of the present invention provides a resource management method, which is applied to the disk array system described in the first aspect, and the method includes:
[0036] The controllers in the controller group monitor each other's heartbeat packets sent through the heartbeat monitoring link to learn the current status of the other party;
[0037] The controllers in the controller group determine whether to take over or release the management authority over the other party's storage resources according to the other party's current status, and if so, take over or release the management authority over the other party's storage resources; wherein, the disk frame managed by the first controller in the shared disk frame is the first disk frame, and the disk frame managed by the second controller is the second disk frame; the control resources of the first controller include the first disk frame; and the control resources of the second controller include the second disk frame.
[0038] Optionally, the first controller and the second controller both include the following four states:
[0039] Working state, unknown state, waiting to work state and takeover state; wherein, the working state is the state in which the controller normally provides storage services to the outside; the unknown state is the state in which the state of the controller cannot be normally known; the waiting to work state is the state in which the controller does not provide storage services to the outside; the takeover state is the state after the controller in the working state takes over the management authority of the other party's storage resources.
[0040] Optionally, the controllers in the controller group respectively determine whether to take over or release the management authority of the other party's storage resources according to the other party's current state, and if so, the step of taking over or releasing the management authority of the other party's storage resources includes:
[0041] When a working controller in the controller group detects that the state of the other controller has changed from the original working state to the current unknown state, the working controller will take over the management authority of the other controller's storage resources; and change its own state from the working state to the takeover state;
[0042] When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original working state to the current unknown state, the controller in the waiting state will enter the working state and take over the management authority of the other storage resource, and convert its own state from the waiting state to the takeover state;
[0043] When a controller in the controller group in the takeover state detects that the state of the other controller is converted from the original unknown state to the current waiting-to-work state, the state of the controller in the takeover state remains unchanged and continues to monitor the state of the other controller;
[0044] When a controller in the controller group in the takeover state detects that the state of the other controller is converted from the original waiting-to-work state to the current unknown state, the state of the controller in the takeover state remains unchanged and continues to monitor the state of the other controller;
[0045] When a working controller in the controller group detects that the state of the other controller has changed from the original working state to the current waiting-to-work state, the working controller will take over the management authority of the other storage resource; and change its own state from the working state to the takeover state;
[0046] When a controller in the controller group that is in the standby state detects that the state of the other controller is converted from the original working state to the current standby state, the controller in the standby state will enter the working state and take over the management authority of the other storage resource, and convert its own state from the standby state to the takeover state;
[0047] When a controller in the controller group that is in the takeover state detects that the state of the other controller is converted from the original waiting state to the current working state, the controller in the takeover state will release the management authority over the other storage resources and convert its own state from the takeover state to the working state; or the controller in the takeover state will release the management authority over the other storage resources, stop providing storage services to the outside, and convert its own state from the takeover state to the waiting state; and the other controller will regain the management authority over its own storage resources;
[0048] When a controller in the controller group in the takeover state detects that the state of the other controller is converted from the original waiting state to the current unknown state, the controller in the takeover state stops providing storage services to the outside world and converts its own state from the takeover state to the waiting state;
[0049] When a controller in the controller group in the takeover state detects that the other controller is always in the standby state, the controller in the takeover state stops providing storage services to the outside world and changes its own state from the takeover state to the standby state;
[0050] When a controller in the controller group that is in the standby state detects that the other controller is always in the standby state, the controller in the standby state enters the working state and takes over the management authority of the other controller's storage resources, and converts its own state from the standby state to the takeover state;
[0051] When a controller in the controller group in the takeover state detects that the state of the other controller is converted from the original unknown state to the current waiting state, the controller in the takeover state stops providing storage services to the outside world and converts its own state from the takeover state to the waiting state;
[0052] When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original waiting state to the current unknown state, the controller in the waiting state enters the working state, takes over the management authority of the other storage resource, and converts its own state from the waiting state to the takeover state;
[0053] When a controller in the controller group in working state detects that the state of the other controller is changed from the original working state to the current standby state, the controller in working state stops providing storage services to the outside world and changes its own state from the working state to the standby state;
[0054] When a controller in the controller group that is in working state detects that the state of the other controller is always in the waiting state, the controller in working state stops providing storage services to the outside world and changes its own state from working state to waiting state;
[0055] When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original waiting state to the current working state, the controller in the waiting state maintains its own state unchanged, or enters the working state and converts its own state from the waiting state to the working state;
[0056] When a controller in the controller group that is in working state detects that the state of the other controller is converted from the original working state or the waiting working state to the current unknown state, the controller in the working state or the waiting working state maintains its own state unchanged;
[0057] When a controller in the controller group that is in working state detects that the state of the other controller is converted from the original unknown state to the current working state or the waiting working state, the controller in working state maintains its own state unchanged;
[0058] When a controller in the working state in the controller group detects that the state of the other controller is converted from the original unknown state to the current waiting state, the controller in the working state enters the waiting state and converts its own state from the working state to the waiting state;
[0059] When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original waiting state to the current unknown state, the controller in the waiting state enters the working state and converts its own state from the waiting state to the working state;
[0060] When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original waiting state to the current unknown state, the controller in the waiting state maintains its own state unchanged;
[0061] When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original unknown state to the current waiting state, the controller in the waiting state maintains its own state unchanged.
[0062] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0063] The memory is used to store computer programs;
[0064] The processor is used to implement the resource management method steps described in the second aspect when executing the program stored in the memory.
[0065] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of resource management described in the second aspect are implemented.
[0066] The disk array system provided in the embodiment of the present invention includes two controllers, which are active and standby controllers for each other, and work in parallel and redundantly manage the shared disk frame in the disk array system. Once one of the controllers fails or goes offline, the other controller will take over the work of the failed controller in time. Therefore, the problem of the prior art that it is difficult to ensure the stability of the disk array system operation due to the existence of only one shared disk frame controller is solved.
[0067] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.
[0068] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0070] Figure 1 A schematic diagram of the structure of a disk array system provided by an embodiment of the present invention;
[0071] Figure 2 A schematic diagram of the internal structure of a disk array system provided by an embodiment of the present invention;
[0072] Figure 3 A conversion diagram of the controller state in the disk array system provided by an embodiment of the present invention;
[0073] Figure 4 A schematic diagram of a process flow of a resource management method provided by an embodiment of the present invention;
[0074] Figure 5 A schematic diagram of the internal structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0075] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0076] An embodiment of the present invention provides a disk array system. Figure 1 A schematic diagram of a disk array system provided by an embodiment of the present invention is shown in FIG. Figure 1 It can be seen that in this embodiment, all devices in the disk array system are arranged in the same chassis. Figure 2 A schematic diagram of the internal structure of a disk array system provided by an embodiment of the present invention, see Figure 2 The disk array system includes:
[0077] A controller group and a shared disk frame; the controllers in the controller group include: a first controller and a second controller;
[0078] The first controller and the second controller are mutually active and standby controllers, working in parallel and being mutually redundant;
[0079] The first controller and the second controller are respectively connected to the shared disk frame and are used to manage the shared disk frame;
[0080] The first controller and the second controller are connected to each other via a heartbeat monitoring link;
[0081] The controllers in the controller group are also used to monitor each other's heartbeat packets sent through the heartbeat monitoring link to obtain the current status of the other party, and determine whether to take over or release the management authority over the other party's storage resources based on the current status of the other party. Among them, the disk frame managed by the first controller in the shared disk frame is the first disk frame, and the disk frame managed by the second controller is the second disk frame; the control resources of the first controller include the first disk frame; the control resources of the second controller include the second disk frame.
[0082] In practical applications, the disk array system provided by the embodiment of the present invention includes: hardware and software supporting RAID (Redundant Arrays of Independent Disks) functions. The hardware includes: 2 controllers, 1 4U chassis, 1 shared disk frame, 2 power supplies and batteries, etc. The shared disk frame is a disk group with a large capacity composed of multiple hard disks, which is jointly managed by the first controller and the second controller. The controller is usually used to manage the disk frame and chassis resources such as fans, temperature sensors, power supplies, etc. in the chassis. The software supporting the RAID function can be a logical device running on the controller, and each controller includes at least one logical device.
[0083] The heartbeat packet is a self-defined command word that periodically notifies the first controller and the second controller of their own status. It is sent at a certain time interval, similar to a heartbeat, so it is called a heartbeat packet.
[0084] In a specific embodiment, the first controller and the second controller may both include the following four states:
[0085] Working state, unknown state, waiting to work state and takeover state; among them, working state is the state in which the controller provides storage services to the outside normally; unknown state is the state in which the state of the controller cannot be normally known; waiting to work state is the state in which the controller does not provide storage services to the outside; takeover state is the state after the working controller takes over the management authority of the other party's storage resources.
[0086] In a specific embodiment, a single letter may be used to represent the state of a controller in a controller group, so for a disk array system including two controllers, the states of the two controllers are combined into the state of the disk array system. For example:
[0087] Letter A indicates that the controller is in working state, that is, the logical devices running on the controller are in working state, the I / O of the controller can be accessed normally, and the controller can provide storage services to the outside normally;
[0088] The letter N indicates that the controller is in an unknown state, that is, the state of the controller cannot be normally known; for example, the disk array system is not started or the disk array system fails, resulting in an unmonitorable state;
[0089] The letter S indicates that the controller is in the standby state, that is, the logic devices running on the controller are in the startup and activation state, but the I / O of the controller cannot be accessed normally, and the controller is in the state of not providing storage services to the outside.
[0090] The letter T indicates that the controller is in the takeover state, that is, the state in which the working controller takes over the management authority of the storage resources of the other controller. At this time, the logical devices on the controller are in the working state, the I / O of the controller can be accessed normally, and the controller can provide storage services to the outside normally.
[0091] In this way, the state of the disk array system composed of the first controller and the second controller can be shown in the following table 1:
[0092]
[0093]
[0094] Among them, the AA state means that both controllers in the disk array system are in working state;
[0095] The AN state indicates that one controller in the disk array system is in working state and the other controller is in unknown state. This state indicates that the A state controller has not taken over the N state storage resources.
[0096] AS status means that one controller in the disk array system is in working state and the other controller is in standby state. This state means that all storage resources are running on the A state controller, that is, the A state controller has the management authority of the entire shared disk frame;
[0097] NT status, indicating that one controller in the disk array system is not working and the other controller is in takeover status;
[0098] ST state means that one controller in the disk array system is in takeover state and the other controller is in unrecovered state;
[0099] SS status means that the disk array system is in an abnormal state. When both controllers are in SS status, it means that an abnormality occurs when the two controllers provide storage services to the outside world, or the two controllers enter an intermediate state due to an abnormality.
[0100] NS status, indicating that the disk array system is in an abnormal state;
[0101] NN status means meaningless; when both controllers are in unknown status, the system cannot maintain the controllers;
[0102] AT status means no meaning; this status does not exist;
[0103] TT state means meaningless; this state does not exist.
[0104] Among them, the dual-controller array in AA state is called dual-active, and the storage resources of the two controllers, for example, the same volume (the volume is a virtual disk generated by the software) provide storage services to the outside world at the same time; the dual-controller array in AS state is called active-standby, and the storage resources of only one controller provide services. AS and AA states are the general working states of the disk array system. The initial working state of the disk array system is either AS or AA. When the AA state is converted to the AS state, it is called the degraded state, which may be artificially downgraded or caused by a fault. When the AS is converted to the AA state, it is called the upgraded state, which may be artificially upgraded or caused by a fault, for example, the AS state is converted to the AA state due to a brain split. Brain split refers to a problem in the path between the controllers, that is, the two controllers are actually normal, but cannot detect the existence of each other. Therefore, both controllers will try to take over each other's storage resources, similar to schizophrenia.
[0105] Figure 3 A diagram showing the controller state transition in a disk array system provided by an embodiment of the present invention. Figure 3 It can be seen that the initial working state of the disk array system is either AA or AS;
[0106] Arrow line 1, AA (AS) -> NT, indicates that the state of the disk array system is converted from the initial working state AA or AS state to the NT state; this process is an offline takeover, that is, the state of one of the controllers in the disk array system is lost, that is, the controller is currently in an unknown state, and another controller takes over the management authority of the storage resources of the controller.
[0107] Arrow line 2, NT->ST; indicates that the state of the disk array system changes from NT state to ST state; this process includes two scenarios: controller recovery fails or the controller does not allow recovery;
[0108] Arrow line 2, ST->NT: indicates that the state of the disk array system changes from ST state to NT state; it indicates that the controller in S state loses state again, and the state of the controller in T state has not changed; or the controller in T state loses state, and the controller in S state successfully takes over the management authority of the storage resources of the controller in T state (if automatic takeover is not allowed, there is no process in which the controller in T state loses state and the controller in S state successfully takes over the management authority of the storage resources of the controller in T state).
[0109] Arrow line 3, AA(AS)->ST: indicates that the state of the disk array system changes from the working state AA or AS state to the ST state. This process is called online takeover, that is, when both controllers provide storage services to the outside, one controller takes over the management authority of the storage resources of the other controller.
[0110] Arrow line 3, ST->AA (AS): indicates that the state of the disk array system is converted from ST state to NT state; this process is called online recovery, that is, the controller in S state successfully recovers the management authority of its storage resources, and the controller in T state successfully releases the management authority of the storage resources of the controller in S state.
[0111] Arrow line 4, ST->NS: indicates that the state of the disk array system changes from ST state to NS state; it means that the controller takeover fails or the takeover is not allowed.
[0112] Arrow line 5, ST->SS: indicates that the disk array system status changes from ST to SS; indicates that the controller in the disk array system is abnormal and cannot provide storage services to the outside; or indicates that the controller in the disk array system is in the renegotiation state;
[0113] Arrow line 5, SS->ST: indicates that the state of the disk array system changes from SS to ST. It indicates that the abnormal controller in the disk array system recovers and the controller in T state successfully takes over the management authority of the storage resources of the controller in S state. This process may also include another takeover.
[0114] Arrow line 6, NT->SS: indicates that the disk array system status changes from NS to SS; indicates that the controller in the disk array system is abnormal and cannot provide storage services to the outside; or indicates that the controller in the disk array system is in the renegotiation state;
[0115] Arrow line 6, SS->NT: indicates that the state of the disk array system is converted from the SS state to the NT state; it means that one controller in the disk array system resumes working and successfully takes over the management authority of the storage resources of another controller.
[0116] Arrow line 7, AA(AS)->SS: indicates that the disk array system status changes from AA or AS status to SS status; it means that the controller in the disk array system is abnormal and cannot provide storage services to the outside world;
[0117] Arrow line 7, SS->AA (AS): indicates that the state of the disk array system is converted from the SS state to the AA or AS state; it indicates that the controller in the disk array system resumes working and enters the normal working state.
[0118] Arrow line 8, AA(AS)->AN: indicates that the state of the disk array system changes from the AA or AS state to the AN state; it indicates that one controller in the disk array system has lost its state and the other controller has not taken over the storage resources of the controller;
[0119] Arrow line 8, AN->AA (AS): indicates that the state of the disk array system is converted from the AN state to the AA or AS state; it indicates that the controller in the disk array system that has lost its state has returned to normal and entered a normal working state.
[0120] Arrow line 9, AN->SS: indicates that the disk array system status changes from AN to SS; indicates that the controller in the disk array system is abnormal and cannot provide storage services externally; or indicates that the controller in the disk array system is in a re-negotiation state;
[0121] Arrow line 9, SS->AN: indicates that the state of the disk array system changes from the SS state to the AN state; it indicates that one controller in the disk array system resumes the working state, and the other controller loses the state.
[0122] Arrow line 10, SS->NS: indicates that the state of the disk array system changes from the SS state to the NS state; it indicates that a controller in the disk array system is abnormal and cannot provide storage services externally, and one of the controllers in the disk array system has lost its state.
[0123] Arrow line 10, NS->SS: indicates that the state of the disk array system changes from the NS state to the SS state; it indicates that the controller that lost the state in the disk array system failed to recover the working state, for example, the problem was not solved after maintenance.
[0124] In a specific embodiment, the controller in the controller group may also be used for:
[0125] When a working controller in a controller group detects that the state of the other controller has changed from the original working state to the current unknown state, the working controller will take over the management authority of the other controller's storage resources and change its own state from the working state to the takeover state, that is, AA->NT;
[0126] When a controller in the waiting state detects that the state of the other controller has changed from the original working state to the current unknown state, the controller in the waiting state will enter the working state and take over the management authority of the other controller's storage resources, and change its own state from the waiting state to the takeover state; that is, AS->NT;
[0127] When a controller in the controller group in the takeover state detects that the state of the other controller has changed from the original unknown state to the current waiting state, the state of the controller in the takeover state remains unchanged and continues to monitor the state of the other controller; that is, NT->ST;
[0128] When a controller in the controller group that is in the takeover state detects that the state of the other controller has changed from the original waiting state to the current unknown state, the state of the controller in the takeover state remains unchanged and continues to monitor the state of the other controller; that is, ST->NT:
[0129] When a working controller in a controller group detects that the state of the other controller has changed from the original working state to the current waiting state, the working controller will take over the management authority of the other controller's storage resources and change its own state from the working state to the takeover state; that is, AA->ST:
[0130] When a controller in the controller group that is in the standby state detects that the state of the other controller has changed from the original working state to the current standby state, the controller in the standby state will enter the working state and take over the management authority of the other controller's storage resources, and change its own state from the standby state to the takeover state; that is, AS->ST:
[0131] When a controller in the controller group that is in the takeover state detects that the state of the other controller has changed from the original waiting state to the current working state, the controller in the takeover state will release the management authority over the other controller's storage resources and change its own state from the takeover state to the working state; or the controller in the takeover state will release the management authority over the other controller's storage resources, stop providing storage services to the outside world, and change its own state from the takeover state to the waiting state; and the other controller will regain the management authority over its own storage resources; that is, ST->AA(AS);
[0132] When a controller in the takeover state detects that the state of the other controller has changed from the original waiting state to the current unknown state, the controller in the takeover state stops providing storage services to the outside world and changes its own state from the takeover state to the waiting state; that is, ST->NS:
[0133] When a controller in the takeover state detects that the other controller is always in the standby state, the controller in the takeover state stops providing storage services to the outside world and changes its own state from the takeover state to the standby state; that is, ST->SS:
[0134] When a controller in the controller group that is in the standby state detects that the other controller is still in the standby state, the controller in the standby state enters the working state and takes over the management authority of the other controller's storage resources, and changes its own state from the standby state to the takeover state; that is, SS->ST:
[0135] When the controller in the takeover state detects that the state of the other controller has changed from the original unknown state to the current waiting state, the controller in the takeover state stops providing storage services to the outside world and changes its own state from the takeover state to the waiting state; that is, NT->SS:
[0136] When a controller in the controller group that is in the standby state detects that the state of the other controller has changed from the original standby state to the current unknown state, the controller in the standby state enters the working state, takes over the management authority of the other controller's storage resources, and changes its own state from the standby state to the takeover state; that is, SS->NT:
[0137] When a working controller in a controller group detects that the state of the other controller has changed from the original working state to the current standby state, the working controller stops providing storage services to the outside world and changes its own state from the working state to the standby state; that is, AA->SS:
[0138] When a working controller in a controller group detects that the other controller is always in the standby state, the working controller stops providing storage services and changes its own state from working to standby state; that is, AS->SS:
[0139] When a controller in the controller group that is in the waiting state detects that the state of the other controller has changed from the original waiting state to the current working state, the controller in the waiting state maintains its own state unchanged, or enters the working state and changes its own state from the waiting state to the working state; that is, SS->AA(AS);
[0140] When a working controller in a controller group detects that the state of the other controller has changed from the original working state or waiting to work state to the current unknown state, the working controller or waiting to work state maintains its own state unchanged; that is, AA(AS)->AN:
[0141] When a working controller in a controller group detects that the state of the other controller has changed from the original unknown state to the current working state or waiting to work state, the working controller maintains its own state unchanged; that is, AN->AA(AS):
[0142] When a controller in the working state detects that the state of the other controller has changed from the original unknown state to the current waiting state, the controller in the working state enters the waiting state and changes its own state from the working state to the waiting state; that is, AN->SS:
[0143] When a controller in the waiting state detects that the state of the other controller has changed from the original waiting state to the current unknown state, the controller in the waiting state enters the working state and changes its own state from the waiting state to the working state; that is, SS->AN:
[0144] When a controller in the waiting state detects that the state of the other controller has changed from the original waiting state to the current unknown state, the controller in the waiting state maintains its own state unchanged; that is, SS->NS:
[0145] When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original unknown state to the current waiting state, the controller in the waiting state maintains its own state unchanged, that is, NS->SS.
[0146] The disk array system provided in the embodiment of the present invention includes two controllers, which are active and standby controllers for each other, and work in parallel and redundantly manage the shared disk frames in the disk array system. Once one of the controllers fails or goes offline, the other controller will take over the work of the failed controller in time. Therefore, the problem of the prior art that it is difficult to ensure the stability of the disk array system due to the existence of only one controller is solved.
[0147] See also Figure 4 The embodiment of the present invention also provides a resource management method applied to the disk array system provided in the above embodiment. The method comprises the following steps:
[0148] S401: The controllers in the controller group monitor each other's heartbeat packets sent through the heartbeat monitoring link to obtain the current status of the other party;
[0149] S402: The controllers in the controller group determine whether to take over or release the management authority over the other party's storage resources according to the other party's current status, and if so, take over or release the management authority over the other party's storage resources; wherein, the disk frame managed by the first controller in the shared disk frame is the first disk frame, and the disk frame managed by the second controller is the second disk frame; the control resources of the first controller include the first disk frame; and the control resources of the second controller include the second disk frame.
[0150] In a specific embodiment, the first controller and the second controller both include the following four states:
[0151] Working state, unknown state, waiting to work state and takeover state; among them, working state is the state in which the controller provides storage services to the outside normally; unknown state is the state in which the state of the controller cannot be normally known; waiting to work state is the state in which the controller does not provide storage services to the outside; takeover state is the state after the working controller takes over the management authority of the other party's storage resources.
[0152] In a specific embodiment, the controllers in the controller group determine whether to take over or release the management authority of the other party's storage resources according to the current state of the other party. If yes, the step of taking over or releasing the management authority of the other party's storage resources may include:
[0153] When a working controller in a controller group detects that the state of the other controller has changed from the original working state to the current unknown state, the working controller will take over the management authority of the other controller's storage resources and change its own state from the working state to the takeover state, that is, AA->NT;
[0154] When a controller in the waiting state detects that the state of the other controller has changed from the original working state to the current unknown state, the controller in the waiting state will enter the working state and take over the management authority of the other controller's storage resources, and change its own state from the waiting state to the takeover state; that is, AS->NT;
[0155] When a controller in the controller group in the takeover state detects that the state of the other controller has changed from the original unknown state to the current waiting state, the state of the controller in the takeover state remains unchanged and continues to monitor the state of the other controller; that is, NT->ST;
[0156] When a controller in the controller group that is in the takeover state detects that the state of the other controller has changed from the original waiting state to the current unknown state, the state of the controller in the takeover state remains unchanged and continues to monitor the state of the other controller; that is, ST->NT:
[0157] When a working controller in a controller group detects that the state of the other controller has changed from the original working state to the current waiting state, the working controller will take over the management authority of the other controller's storage resources and change its own state from the working state to the takeover state; that is, AA->ST:
[0158] When a controller in the controller group that is in the standby state detects that the state of the other controller has changed from the original working state to the current standby state, the controller in the standby state will enter the working state and take over the management authority of the other controller's storage resources, and change its own state from the standby state to the takeover state; that is, AS->ST:
[0159] When a controller in the controller group that is in the takeover state detects that the state of the other controller has changed from the original waiting state to the current working state, the controller in the takeover state will release the management authority over the other controller's storage resources and change its own state from the takeover state to the working state; or the controller in the takeover state will release the management authority over the other controller's storage resources, stop providing storage services to the outside world, and change its own state from the takeover state to the waiting state; and the other controller will regain the management authority over its own storage resources; that is, ST->AA(AS);
[0160] When a controller in the takeover state detects that the state of the other controller has changed from the original waiting state to the current unknown state, the controller in the takeover state stops providing storage services to the outside world and changes its own state from the takeover state to the waiting state; that is, ST->NS:
[0161] When a controller in the takeover state detects that the other controller is always in the standby state, the controller in the takeover state stops providing storage services to the outside world and changes its own state from the takeover state to the standby state; that is, ST->SS:
[0162] When a controller in the controller group that is in the standby state detects that the other controller is still in the standby state, the controller in the standby state enters the working state and takes over the management authority of the other controller's storage resources, and changes its own state from the standby state to the takeover state; that is, SS->ST:
[0163] When the controller in the takeover state detects that the state of the other controller has changed from the original unknown state to the current waiting state, the controller in the takeover state stops providing storage services to the outside world and changes its own state from the takeover state to the waiting state; that is, NT->SS:
[0164] When a controller in the controller group that is in the standby state detects that the state of the other controller has changed from the original standby state to the current unknown state, the controller in the standby state enters the working state, takes over the management authority of the other controller's storage resources, and changes its own state from the standby state to the takeover state; that is, SS->NT:
[0165] When a working controller in a controller group detects that the state of the other controller has changed from the original working state to the current standby state, the working controller stops providing storage services to the outside world and changes its own state from the working state to the standby state; that is, AA->SS:
[0166] When a working controller in a controller group detects that the other controller is always in the standby state, the working controller stops providing storage services and changes its own state from working to standby state; that is, AS->SS:
[0167] When a controller in the controller group that is in the waiting state detects that the state of the other controller has changed from the original waiting state to the current working state, the controller in the waiting state maintains its own state unchanged, or enters the working state and changes its own state from the waiting state to the working state; that is, SS->AA(AS);
[0168] When a working controller in a controller group detects that the state of the other controller has changed from the original working state or waiting to work state to the current unknown state, the working controller or waiting to work state maintains its own state unchanged; that is, AA(AS)->AN:
[0169] When a working controller in a controller group detects that the state of the other controller has changed from the original unknown state to the current working state or waiting to work state, the working controller maintains its own state unchanged; that is, AN->AA(AS):
[0170] When a controller in the working state detects that the state of the other controller has changed from the original unknown state to the current waiting state, the controller in the working state enters the waiting state and changes its own state from the working state to the waiting state; that is, AN->SS:
[0171] When a controller in the waiting state detects that the state of the other controller has changed from the original waiting state to the current unknown state, the controller in the waiting state enters the working state and changes its own state from the waiting state to the working state; that is, SS->AN:
[0172] When a controller in the waiting state detects that the state of the other controller has changed from the original waiting state to the current unknown state, the controller in the waiting state maintains its own state unchanged; that is, SS->NS:
[0173] When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original unknown state to the current waiting state, the controller in the waiting state maintains its own state unchanged, that is, NS->SS.
[0174] The resource management method provided in the embodiment of the present invention manages the shared disk frame in the disk array system through two mutually active and standby controllers in the disk array system, which work in parallel and are redundant to each other. Once one of the controllers fails or goes offline, the other controller will take over the work of the failed controller in time. Therefore, the problem of the prior art that it is difficult to ensure the stability of the operation of the disk array system due to only using one controller to manage the shared disk frame in the disk array system is solved.
[0175] and Figure 4 Corresponding to the embodiment shown, the embodiment of the present invention further provides an electronic device, see Figure 5 , including a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504;
[0176] Memory 503, used for storing computer programs;
[0177] The processor 501 is configured to implement any resource management method step described in the above embodiments when executing a program stored in the memory.
[0178] The electronic device provided in the embodiment of the present invention manages the shared disk frame in the disk array system through two mutually active and standby controllers in the disk array system, which work in parallel and are mutually redundant. Once one of the controllers fails or goes offline, the other controller will take over the work of the failed controller in time. Therefore, the problem of the prior art that it is difficult to ensure the stability of the operation of the disk array system due to only using one controller to manage the shared disk frame in the disk array system is solved.
[0179] and Figure 4 Corresponding to the embodiment shown, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, any one of the resource management method steps described in the above embodiments is implemented.
[0180] The storage medium provided in the embodiment of the present invention manages the shared disk frame in the disk array system through two mutually active and standby controllers in the disk array system, which work in parallel and are mutually redundant. Once one of the controllers fails or goes offline, the other controller will take over the work of the failed controller in time. Therefore, the problem of the prior art that it is difficult to ensure the stability of the operation of the disk array system due to only using one controller to manage the shared disk frame in the disk array system is solved.
[0181] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0182] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0183] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0184] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0185] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A disk array system, characterized in that: The disk array system comprises: A controller group and a shared disk frame; the controllers in the controller group include: a first controller and a second controller; The first controller and the second controller are mutually active and standby controllers, working in parallel and being mutually redundant; The first controller and the second controller are respectively connected to the shared disk frame and are used to manage the shared disk frame; The first controller and the second controller are connected to each other via a heartbeat monitoring link; The controllers in the controller group are also used to monitor each other's heartbeat packets sent through the heartbeat monitoring link to obtain the current status of the other party, and determine whether to take over or release the management authority over the other party's storage resources based on the current status of the other party, wherein the disk frame in the shared disk frame managed by the first controller is the first disk frame, and the disk frame managed by the second controller is the second disk frame; the control resources of the first controller include the first disk frame; and the control resources of the second controller include the second disk frame.
2. The system according to claim 1, characterized in that The first controller and the second controller both include the following four states: Working state, unknown state, waiting to work state and takeover state; wherein, the working state is the state in which the controller normally provides storage services to the outside; the unknown state is the state in which the state of the controller cannot be normally known; the waiting to work state is the state in which the controller does not provide storage services to the outside; the takeover state is the state after the controller in the working state takes over the management authority of the other party's storage resources.
3. The system according to claim 2, characterized in that The controller in the controller group is further used for: When a working controller in the controller group detects that the state of the other controller has changed from the original working state to the current unknown state, the working controller will take over the management authority of the other controller's storage resources; and change its own state from the working state to the takeover state; When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original working state to the current unknown state, the controller in the waiting state will enter the working state and take over the management authority of the other storage resource, and convert its own state from the waiting state to the takeover state; When a controller in the controller group in the takeover state detects that the state of the other controller is converted from the original unknown state to the current waiting-to-work state, the state of the controller in the takeover state remains unchanged and continues to monitor the state of the other controller; When a controller in the controller group in the takeover state detects that the state of the other controller is converted from the original waiting-to-work state to the current unknown state, the state of the controller in the takeover state remains unchanged and continues to monitor the state of the other controller; When a working controller in the controller group detects that the state of the other controller has changed from the original working state to the current waiting-to-work state, the working controller will take over the management authority of the other storage resource; and change its own state from the working state to the takeover state; When a controller in the controller group that is in the standby state detects that the state of the other controller is converted from the original working state to the current standby state, the controller in the standby state will enter the working state and take over the management authority of the other storage resource, and convert its own state from the standby state to the takeover state; When a controller in the controller group that is in the takeover state detects that the state of the other controller is converted from the original waiting state to the current working state, the controller in the takeover state will release the management authority over the other storage resources and convert its own state from the takeover state to the working state; or the controller in the takeover state will release the management authority over the other storage resources, stop providing storage services to the outside, and convert its own state from the takeover state to the waiting state; and the other controller will regain the management authority over its own storage resources; When a controller in the controller group in the takeover state detects that the state of the other controller is converted from the original waiting state to the current unknown state, the controller in the takeover state stops providing storage services to the outside world and converts its own state from the takeover state to the waiting state; When a controller in the controller group in the takeover state detects that the other controller is always in the standby state, the controller in the takeover state stops providing storage services to the outside world and changes its own state from the takeover state to the standby state; When a controller in the controller group that is in the standby state detects that the other controller is always in the standby state, the controller in the standby state enters the working state and takes over the management authority of the other controller's storage resources, and converts its own state from the standby state to the takeover state; When a controller in the controller group in the takeover state detects that the state of the other controller is converted from the original unknown state to the current waiting state, the controller in the takeover state stops providing storage services to the outside world and converts its own state from the takeover state to the waiting state; When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original waiting state to the current unknown state, the controller in the waiting state enters the working state, takes over the management authority of the other storage resource, and converts its own state from the waiting state to the takeover state; When a controller in the controller group in working state detects that the state of the other controller is changed from the original working state to the current standby state, the controller in working state stops providing storage services to the outside world and changes its own state from the working state to the standby state; When a controller in the controller group that is in working state detects that the state of the other controller is always in the waiting state, the controller in working state stops providing storage services to the outside world and changes its own state from working state to waiting state; When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original waiting state to the current working state, the controller in the waiting state maintains its own state unchanged, or enters the working state and converts its own state from the waiting state to the working state; When a controller in the controller group that is in working state detects that the state of the other controller is converted from the original working state or the waiting working state to the current unknown state, the controller in the working state or the waiting working state maintains its own state unchanged; When a controller in the controller group that is in working state detects that the state of the other controller is converted from the original unknown state to the current working state or the waiting working state, the controller in working state maintains its own state unchanged; When a controller in the working state in the controller group detects that the state of the other controller is converted from the original unknown state to the current waiting state, the controller in the working state enters the waiting state and converts its own state from the working state to the waiting state; When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original waiting state to the current unknown state, the controller in the waiting state enters the working state and converts its own state from the waiting state to the working state; When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original waiting state to the current unknown state, the controller in the waiting state maintains its own state unchanged; When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original unknown state to the current waiting state, the controller in the waiting state maintains its own state unchanged.
4. A resource management method, characterized in that: Applied to the disk array system of claim 1, the method comprises: The controllers in the controller group monitor each other's heartbeat packets sent through the heartbeat monitoring link to learn the current status of the other party; The controllers in the controller group determine whether to take over or release the management authority over the other party's storage resources according to the other party's current status, and if so, take over or release the management authority over the other party's storage resources; wherein, the disk frame managed by the first controller in the shared disk frame is the first disk frame, and the disk frame managed by the second controller is the second disk frame; the control resources of the first controller include the first disk frame; and the control resources of the second controller include the second disk frame.
5. The method according to claim 4, characterized in that The first controller and the second controller both include the following four states: Working state, unknown state, waiting to work state and takeover state; wherein, the working state is the state in which the controller normally provides storage services to the outside; the unknown state is the state in which the state of the controller cannot be normally known; the waiting to work state is the state in which the controller does not provide storage services to the outside; the takeover state is the state after the controller in the working state takes over the management authority of the other party's storage resources.
6. The method according to claim 5, characterized in that The controllers in the controller group respectively determine whether to take over or release the management authority of the other party's storage resources according to the other party's current state, and if yes, the step of taking over or releasing the management authority of the other party's storage resources includes: When a working controller in the controller group detects that the state of the other controller has changed from the original working state to the current unknown state, the working controller will take over the management authority of the other controller's storage resources; and change its own state from the working state to the takeover state; When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original working state to the current unknown state, the controller in the waiting state will enter the working state and take over the management authority of the other storage resource, and convert its own state from the waiting state to the takeover state; When a controller in the controller group in the takeover state detects that the state of the other controller is converted from the original unknown state to the current waiting-to-work state, the state of the controller in the takeover state remains unchanged and continues to monitor the state of the other controller; When a controller in the controller group in the takeover state detects that the state of the other controller is converted from the original waiting-to-work state to the current unknown state, the state of the controller in the takeover state remains unchanged and continues to monitor the state of the other controller; When a working controller in the controller group detects that the state of the other controller has changed from the original working state to the current waiting-to-work state, the working controller will take over the management authority of the other storage resource; and change its own state from the working state to the takeover state; When a controller in the controller group that is in the standby state detects that the state of the other controller is converted from the original working state to the current standby state, the controller in the standby state will enter the working state and take over the management authority of the other storage resource, and convert its own state from the standby state to the takeover state; When a controller in the controller group that is in the takeover state detects that the state of the other controller is converted from the original waiting state to the current working state, the controller in the takeover state will release the management authority over the other storage resources and convert its own state from the takeover state to the working state; or the controller in the takeover state will release the management authority over the other storage resources, stop providing storage services to the outside, and convert its own state from the takeover state to the waiting state; and the other controller will regain the management authority over its own storage resources; When a controller in the controller group in the takeover state detects that the state of the other controller is converted from the original waiting state to the current unknown state, the controller in the takeover state stops providing storage services to the outside world and converts its own state from the takeover state to the waiting state; When a controller in the controller group in the takeover state detects that the other controller is always in the standby state, the controller in the takeover state stops providing storage services to the outside world and changes its own state from the takeover state to the standby state; When a controller in the controller group that is in the standby state detects that the other controller is always in the standby state, the controller in the standby state enters the working state and takes over the management authority of the other controller's storage resources, and converts its own state from the standby state to the takeover state; When a controller in the controller group in the takeover state detects that the state of the other controller is converted from the original unknown state to the current waiting state, the controller in the takeover state stops providing storage services to the outside world and converts its own state from the takeover state to the waiting state; When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original waiting state to the current unknown state, the controller in the waiting state enters the working state, takes over the management authority of the other storage resource, and converts its own state from the waiting state to the takeover state; When a controller in the controller group in working state detects that the state of the other controller is changed from the original working state to the current standby state, the controller in working state stops providing storage services to the outside world and changes its own state from the working state to the standby state; When a controller in the controller group that is in working state detects that the state of the other controller is always in the waiting state, the controller in working state stops providing storage services to the outside world and changes its own state from working state to waiting state; When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original waiting state to the current working state, the controller in the waiting state maintains its own state unchanged, or enters the working state and converts its own state from the waiting state to the working state; When a controller in the controller group that is in working state detects that the state of the other controller is converted from the original working state or the waiting working state to the current unknown state, the controller in the working state or the waiting working state maintains its own state unchanged; When a controller in the controller group that is in working state detects that the state of the other controller is converted from the original unknown state to the current working state or the waiting working state, the controller in working state maintains its own state unchanged; When a controller in the working state in the controller group detects that the state of the other controller is converted from the original unknown state to the current waiting state, the controller in the working state enters the waiting state and converts its own state from the working state to the waiting state; When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original waiting state to the current unknown state, the controller in the waiting state enters the working state and converts its own state from the waiting state to the working state; When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original waiting state to the current unknown state, the controller in the waiting state maintains its own state unchanged; When a controller in the controller group that is in the waiting state detects that the state of the other controller is converted from the original unknown state to the current waiting state, the controller in the waiting state maintains its own state unchanged.
7. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method steps described in any one of claims 4-6 when executing the program stored in the memory.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 4 to 6 are implemented.
Citation Information
Patent Citations
Dual-controller disk array, storage system and data storage path switching method
CN102629225A
Switching method for high-availability state machine of multi-controller disk array
CN104391658A
Redundant heartbeat management method capable of quantizing link stability based on double controllers
CN116909784A
Multi-control storage array, storage system, data processing method and storage medium
CN117632808A
