CN109901954B - Storage device and resource management method - Google Patents

Storage device and resource management method Download PDF

Info

Publication number
CN109901954B
CN109901954B CN201910138437.4A CN201910138437A CN109901954B CN 109901954 B CN109901954 B CN 109901954B CN 201910138437 A CN201910138437 A CN 201910138437A CN 109901954 B CN109901954 B CN 109901954B
Authority
CN
China
Prior art keywords
controller
disk array
disk
module
storage device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910138437.4A
Other languages
Chinese (zh)
Other versions
CN109901954A (en
Inventor
冯国宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201910138437.4A priority Critical patent/CN109901954B/en
Publication of CN109901954A publication Critical patent/CN109901954A/en
Application granted granted Critical
Publication of CN109901954B publication Critical patent/CN109901954B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a storage device and a resource management method. The storage device includes: the system comprises a disk array, a first controller, a second controller, a third controller and a chassis resource module, wherein the first controller and the second controller are master controllers and connected with the disk array and used for managing the disk array; the third controller is connected with the chassis resource module and is used for managing the chassis resource module. The invention solves the problems of relatively complex and redundant realization of control switching of chassis resources, and further achieves the effects of simplifying the design of double-control storage and improving the stability and maintainability of the double-control storage.

Description

Storage device and resource management method
Technical Field
The present invention relates to the field of communications, and in particular, to a storage device and a resource management method.
Background
In a storage device, a controller is often provided for managing disk arrays and chassis resources such as fans, temperature, power supplies, etc. in the chassis. In order to prevent service interruption caused by the fact that the storage device cannot work normally due to the fact that the controller is hung up, a dual-controller scheme is mostly adopted in the existing storage device, and the storage device is called as a storage device.
In the storage device, two controllers, controller a and controller B, are provided, and can be used to manage the disk array and the chassis resources (such as fans, temperature sensors, and power supplies). At the same time, only one controller manages the disk array and the chassis resources. When the working controller fails, control switching can be performed, and the other controller takes over management of the disk array and chassis resources. Fig. 1 is a schematic diagram of management switching of a storage device, and as shown in fig. 1, a specific process of dual-control switching is as follows:
a controller and B controller send heartbeat packets to each other through interconnected network, supposing that the current default is that the A controller manages disk array and chassis resources (such as fan, temperature sensor and power supply), when the A controller is hung up at a certain moment, the B controller does not detect the heartbeat packet of the A controller, the disk array resources are connected, meanwhile, the B controller sends a switching instruction to a Complex Programmable Logic Device (CPLD) through an IO2 bus, and the CPLD switches a control switch according to the switching instruction, so that the chassis resources are switched to an I2C bus of the B controller. Thus, the controller B can control the chassis resources.
However, in the switching control scheme, when the control switching is performed on the chassis resources, the CPLD is required to perform switching of the control switch, and the management switching of the chassis resources is relatively complex and redundant to implement, and the implementation cost is relatively high.
Disclosure of Invention
The embodiment of the invention provides a storage device and a resource management method, which at least solve the problems of relatively complex and redundant control and switching of chassis resources in the related technology.
According to an embodiment of the present invention, there is provided a storage device including: a disk array, a first controller, a second controller, a third controller and a chassis resource module, wherein,
the first controller and the second controller are master controllers and connected with the disk array and are used for managing the disk array;
the third controller is connected with the chassis resource module and is used for managing the chassis resource module.
As an exemplary embodiment, the third controller is further connected to the first controller and the second controller, and the third controller is configured to:
receiving keep-alive information from a master controller of the first controller and the second controller;
and determining whether the main controller is hung up according to the keep-alive information.
As an exemplary embodiment, the third controller is further configured to:
under the condition that the master controller is determined to be hung up, sending first notification information to a slave controller in the first controller and the second controller, wherein the first notification information is used for notifying the slave controller to take over a predetermined authority by the slave controller, and the predetermined authority comprises at least one of:
access rights to chassis resource information of the chassis resource module;
and forwarding the instruction forwarding permission of the control instruction of the chassis resource module to the third controller.
In one exemplary embodiment, in the case where the disk array is a dual-managed disk array,
the storage device further includes: the first controller is connected with the disk array through the first disk expansion module, the second controller is connected with the disk array through the second disk expansion module,
the third controller is further configured to: and sending second notification information to a controller in the first controller and the second controller when it is determined that the main controller is hung up, wherein the second notification information is used for notifying the controller that the disk array is managed by the controller through a disk expansion module connected with the controller.
In one exemplary embodiment, in the case where the disk array is a single-control disk array,
the storage device further includes: the first controller and the second controller are connected with the disk array through the disk expansion gating module and the disk expansion module, the disk expansion gating module is further connected with the third controller, and the third controller is further configured to:
and sending a switching signal to the disk expansion gating module under the condition that the master controller is determined to be hung, wherein the switching signal is used for controlling the disk expansion gating module to gate communication links between the controllers in the first controller and the second controller and the disk array, so that the controllers manage the disk array through the disk expansion module.
As an exemplary embodiment, the third controller is further connected with the first controller and the second controller, the first controller and the second controller are connected through a heartbeat detection link,
the master controller in the first controller and the second controller is used for sending heartbeat packets to the slave controller in the first controller and the second controller through the heartbeat detection link;
the controller is used for determining whether the main controller is hung up according to the heartbeat packet, and executing at least one of the following operations under the condition that the main controller is hung up:
taking over the predetermined authority, and sending third notification information to the third controller, where the third notification information is used to notify the third controller that the controller takes over the predetermined authority, and the predetermined authority includes at least one of: access rights to chassis resource information of the chassis resource module; forwarding an instruction issuing authority of the control instruction of the chassis resource module to the third controller;
and taking over the management authority of the disk array.
As an exemplary embodiment, the third controller is connected to the first controller and the second controller through a first port and a second port, respectively, where the first port and the second port are different UART ports.
As an exemplary embodiment, the third controller includes: and a micro control unit MCU.
According to an embodiment of the present invention, there is also provided a resource management method applied to a storage device including a disk array, a first controller, a second controller, a third controller, and a chassis resource module, the method including:
the first controller and the second controller manage the disk array in a mode of mutual master controller; and
the third controller manages the chassis resource modules.
As an exemplary embodiment, the method further comprises:
the third controller receiving keep-alive information from a master controller of the first controller and the second controller;
and the third controller determines whether the main controller is hung up according to the keep-alive information.
As an exemplary embodiment, after the third controller determines whether the master controller is suspended according to the keep-alive information, the method further comprises:
in a case that it is determined that the master controller is hung up, the third controller sends first notification information to a slave controller in the first controller and the second controller, where the first notification information is used to notify the slave controller that the slave controller takes over a predetermined right, and the predetermined right includes at least one of:
access rights to chassis resource information of the chassis resource module;
and forwarding the instruction forwarding permission of the control instruction of the chassis resource module to the third controller.
As an exemplary embodiment, in the case that the disk array is a dual-control disk array, the storage device further includes: the first controller is connected with the disk array through the first disk expansion module, and the second controller is connected with the disk array through the second disk expansion module;
after the third controller determines whether the master controller is suspended according to the keep-alive information, the method further includes:
and under the condition that the master controller is determined to be hung up, the third controller sends second notification information to a controller in the first controller and the second controller, wherein the second notification information is used for notifying the controller that the controller manages the disk array through a disk expansion module connected with the controller.
As an exemplary embodiment, in the case that the disk array is a single-control disk array, the storage device further includes: the first controller and the second controller are connected with the disk array through the disk expansion gating module and the disk expansion gating module, the disk expansion gating module is also connected with the third controller,
after the third controller determines whether the master controller is suspended according to the keep-alive information, the method further includes:
and under the condition that the master controller is determined to be hung, the third controller sends a switching signal to the disk expansion gating module, wherein the switching signal is used for controlling the disk expansion gating module to gate a communication link between a controller in the first controller and the second controller and the disk array, so that the disk array is managed by the controller through the disk expansion module.
As an exemplary embodiment, the method further comprises:
the master controller of the first controller and the second controller is used for sending heartbeat packets to the slave controller of the first controller and the second controller through a heartbeat detection link between the first controller and the second controller;
the controller determines whether the main controller is hung up according to the heartbeat packet, and executes at least one of the following operations under the condition that the main controller is hung up:
taking over the predetermined authority, and sending third notification information to the third controller, where the third notification information is used to notify the third controller that the controller takes over the predetermined authority, and the predetermined authority includes at least one of: access rights to chassis resource information of the chassis resource module; forwarding an instruction issuing authority of the control instruction of the chassis resource module to the third controller;
and taking over the management authority of the disk array.
According to the invention, as the first controller and the second controller are the master controller to manage the disk array and the third controller manages the chassis resource module in the storage device, the scheme is adopted, the chassis resources are uniformly managed by the third controller in the storage device, the host controller is independent of the master controller, and the chassis management is not influenced when the master controller performs double-control switching, so that the problems of relatively complex and redundant realization of control switching on the chassis resources in the related technology can be solved, the scheme simplifies the double-control storage design and improves the stability and maintainability of double-control storage.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic illustration of management switching of a storage device;
FIG. 2 is a block diagram of a memory device according to an embodiment of the present invention;
FIG. 3 is a block diagram of a first preferred structure of a storage device according to an embodiment of the invention;
FIG. 4 is a block diagram of a second preferred structure of a storage device according to an embodiment of the present invention;
FIG. 5 is a block diagram of a third preferred structure of a storage device according to an embodiment of the present invention;
FIG. 6 is a block diagram of a fourth preferred structure of a memory device according to an embodiment of the present invention;
FIG. 7 is a flow diagram of a method of resource management according to an embodiment of the invention;
FIG. 8 is a detailed block diagram of a storage device containing a dual-managed disk array in accordance with an embodiment of the present invention;
FIG. 9 is a detailed block diagram of a storage device having an array of individually controlled disks, according to an embodiment of the present invention.
Detailed Description
In the related art, the switching control scheme of the storage device needs to switch the control switch by means of the CPLD when controlling and switching the chassis resources, so that relatively complex and redundant switching is realized, the cost is relatively high, and in some switching scenes, a wrong switching action occurs. In addition, because the switching control process of the chassis resources needs to be realized by the CPLD, the maintainability is poor because the CPLD program cannot be upgraded on line.
The invention will be described in detail hereinafter with reference to the drawings and embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
Also provided in this embodiment is a storage device, and as used below, the term "module" may implement a combination of software and/or hardware for a predetermined function.
Fig. 2 is a block diagram of a memory device according to an embodiment of the present invention, as shown in fig. 2, the memory device including: disk array 20, first controller 22, second controller 24, third controller 26, and chassis resource module 28, wherein,
the first controller 22 and the second controller 24 are master controllers and connected to the disk array 20, and are configured to manage the disk array 20;
the third controller 26 is coupled to the chassis resource module 28 and is configured to manage the chassis resource module 28.
As shown in fig. 2, the connection between the first controller 22 and the second controller 24 and the disk array 20 may be in various manners, for example, in the case of a dual-control disk array, the connection between the first controller 22 and the second controller 24 and the disk array 20 may be marked as (1); in the case of a single-control disk array, the connections between the first controller 22 and the second controller 24 and the disk array 20 may be labeled as label (2).
Because the first controller 22 and the second controller 24 are the master controller and the slave controller for each other in the storage device manage the disk array 20, and the third controller 26 manages the enclosure resource module 28, according to the present solution, the enclosure resources are managed uniformly by the third controller 26 in the storage device, and the enclosure management is not affected when the master controller performs dual-control switching, so that the problem that the control switching of the enclosure resources in the related art is relatively complex and redundant can be solved, the solution simplifies the dual-control storage design, and improves the stability and maintainability of the dual-control storage.
Fig. 3 is a first preferred structural block diagram of a storage device according to an embodiment of the present invention, as shown in fig. 3, as an exemplary implementation, the third controller 26 is further connected to the first controller 22 and the second controller 24, and the third controller 26 is configured to:
receiving keep-alive information from a master controller of the first controller 22 and the second controller 24;
and determining whether the main controller is hung up or not according to the keep-alive information.
According to this preferred structure, the third controller 26 can monitor the keep-alive condition of the main controller in the first controller 22 and the second controller 24 in real time, so as to find out whether the main controller is suspended.
Based on the structure shown in fig. 3, the third controller 26 can find out whether the main controller is hung up, and on the basis, the third controller 26 can perform more control functions. For example, although management of the chassis resource is performed by the third controller 26, information access of the chassis resource and transfer of a control instruction to the chassis resource by a user (or an administrator) may still be performed via the first controller 22 and the second controller 24, and the specific authority taken over by which of the first controller 22 and the second controller 24 is to be indicated by the third controller 26 according to the hang-up condition of the main controller. Thus, as an exemplary embodiment, the third controller 26 is further configured to:
in a case that it is determined that the master controller is hung up, sending first notification information to a slave controller in the first controller 22 and the second controller 24, where the first notification information is used to notify the slave controller to take over a predetermined right by the slave controller, and the predetermined right includes at least one of:
access rights to chassis resource information of the chassis resource module 28;
and forwarding the instruction forwarding authority of the control instruction of the chassis resource module 28 to the third controller 26.
The third controller 26 may also implement control switching of the disk array 20 in view of the fact that the third controller 26 is able to discover whether the main controller is hung up. For different control modes of the disk array, that is, whether the disk array is a single-control disk array or a dual-control disk array, the third controller 26 may implement control switching of the disk array 20 in different modes.
Fig. 4 is a block diagram of a second preferred structure of a storage device according to an embodiment of the present invention, as shown in fig. 4, as an exemplary implementation, in a case that the disk array 20 is a dual-control disk array 20, the storage device further includes: a first disk expansion module 32 and a second disk expansion module 34, wherein the first controller 22 is connected to the disk array 20 through the first disk expansion module 32, the second controller 24 is connected to the disk array 20 through the second disk expansion module 34,
the third controller 26 is further configured to: and in the case that the master controller is determined to be hung up, sending second notification information to a controller in the first controller 22 and the second controller 24, wherein the second notification information is used for notifying the controller that the controller manages the disk array 20 through a connected disk expansion module.
Fig. 5 is a block diagram of a third preferred structure of a storage device according to an embodiment of the present invention, as shown in fig. 5, as an exemplary implementation, in the case that the disk array 20 is a single-control disk array,
the storage device further includes: a disk expansion gating module 52 and a disk expansion gating module 54, wherein the first controller 22 and the second controller 24 are connected to the disk array 20 through the disk expansion gating module 54 and the disk expansion gating module 52, the disk expansion gating module 54 is further connected to the third controller 26, and the third controller 26 is further configured to:
and sending a switching signal to the disk expansion gating module 54 in a case that it is determined that the master controller is suspended, wherein the switching signal is used for controlling the disk expansion gating module 54 to gate a communication link between a controller in the first controller 22 and the second controller 24 and the disk array 20, so that the controller manages the disk array 20 via the disk expansion module 52.
Besides the third controller 26 detecting whether the main controller is hung up through the keep-alive information between the first controller 22 and the second controller 24, a heartbeat detection link may be further provided between the first controller 22 and the second controller 24, so that a status detection between dual controllers can be performed through the heartbeat detection link, and a series of switching actions of the permissions, such as taking over the permissions of information access to the chassis resource, control instruction forwarding, and the like, and/or the management permissions of the disk array, and the like, are performed according to the status detection.
Fig. 6 is a block diagram of a fourth preferred structure of the storage device according to the embodiment of the present invention, and as an exemplary implementation, the third controller 26 is further connected to the first controller 22 and the second controller 24, and the first controller 22 and the second controller 24 are connected through a heartbeat detection link.
The master controller of the first controller 22 and the second controller 24 is configured to send a heartbeat packet to the slave controller of the first controller 22 and the second controller 24 through the heartbeat detection link;
the controller is used for determining whether the main controller is hung up according to the heartbeat packet, and executing at least one of the following operations under the condition that the main controller is hung up:
taking over a predetermined right and sending third notification information to the third controller 26, wherein the third notification information is used for notifying the third controller 26 that the predetermined right is taken over by the controller, and the predetermined right includes at least one of: access rights to chassis resource information of the chassis resource module 28; forwarding an instruction issue right of a control instruction to the chassis resource module 28 to the third controller 26;
taking over the administrative rights to the disk array 20.
As an exemplary embodiment, the third controller 26 is connected to the first controller 22 and the second controller 24 through a first port and a second port respectively, wherein the first port and the second port are different UART ports, such as RART _ a and RART _ B. All messages passed between the first controller 22 (or the second controller 24) and the third controller 26, including keep-alive information, first notification information, second notification information, third notification information, chassis resource information access requests and responses, chassis resource external control instructions and responses, and so on, can be passed through the corresponding RART _ a (RART _ B).
As an exemplary embodiment, the third controller 26 includes: and a micro control unit MCU. The MCU is adopted to manage the chassis resources, so that the chassis resource management is independent of the master control and is not influenced by the double-control switching, and the internal system of the whole storage device is simple and stable. In addition, the MCU can be upgraded on line, so that the problem that the traditional CPLD cannot be upgraded on line due to double control can be solved, and the maintainability is high.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 2
In this embodiment, a resource management method is provided, which is applied to a storage device including a disk array, a first controller, a second controller, a third controller, and a chassis resource module. Fig. 7 is a flowchart of a resource management method according to an embodiment of the present invention, and as shown in fig. 7, the flowchart includes the following steps:
step S702, the first controller and the second controller manage the disk array in a manner of being master controllers of each other; and
step S704, the third controller manages the chassis resource module.
It should be noted that the execution sequence of step S702 and step S704 is independent of each other, and there is no specific sequence, and the execution sequence is interchangeable, that is, step S704 may be executed first, and then step S702 may be executed.
Through the steps, as the first controller and the second controller are mutually a master controller to manage the disk array and the third controller manages the chassis resource module in the storage device, the scheme is adopted, the chassis resources are uniformly managed by the third controller in the storage device and are independent of the master control, and the chassis management is not influenced when the master control performs double-control switching, so that the problems of relatively complex and redundant realization of control switching of the chassis resources in the related technology can be solved, the scheme simplifies the double-control storage design and improves the stability and maintainability of double-control storage.
As an exemplary embodiment, the method further comprises:
the third controller receiving keep-alive information from a master controller of the first controller and the second controller;
and the third controller determines whether the main controller is hung up according to the keep-alive information.
As an exemplary embodiment, after the third controller determines whether the master controller is suspended according to the keep-alive information, the method further comprises:
in a case that it is determined that the master controller is hung up, the third controller sends first notification information to a slave controller in the first controller and the second controller, where the first notification information is used to notify the slave controller that the slave controller takes over a predetermined right, and the predetermined right includes at least one of:
access rights to chassis resource information of the chassis resource module;
and forwarding the instruction forwarding permission of the control instruction of the chassis resource module to the third controller.
As an exemplary embodiment, in the case that the disk array is a dual-control disk array, the storage device further includes: the first controller is connected with the disk array through the first disk expansion module, and the second controller is connected with the disk array through the second disk expansion module;
after the third controller determines whether the master controller is suspended according to the keep-alive information, the method further includes:
and under the condition that the master controller is determined to be hung up, the third controller sends second notification information to a controller in the first controller and the second controller, wherein the second notification information is used for notifying the controller that the controller manages the disk array through a disk expansion module connected with the controller.
As an exemplary embodiment, in the case that the disk array is a single-control disk array, the storage device further includes: the first controller and the second controller are connected with the disk array through the disk expansion gating module and the disk expansion gating module, the disk expansion gating module is also connected with the third controller,
after the third controller determines whether the master controller is suspended according to the keep-alive information, the method further includes:
and under the condition that the master controller is determined to be hung, the third controller sends a switching signal to the disk expansion gating module, wherein the switching signal is used for controlling the disk expansion gating module to gate a communication link between a controller in the first controller and the second controller and the disk array, so that the disk array is managed by the controller through the disk expansion module.
As an exemplary embodiment, the method further comprises:
the master controller of the first controller and the second controller is used for sending heartbeat packets to the slave controller of the first controller and the second controller through a heartbeat detection link between the first controller and the second controller;
the controller determines whether the main controller is hung up according to the heartbeat packet, and executes at least one of the following operations under the condition that the main controller is determined to be hung up:
taking over the predetermined authority, and sending third notification information to the third controller, where the third notification information is used to notify the third controller that the controller takes over the predetermined authority, and the predetermined authority includes at least one of: access rights to chassis resource information of the chassis resource module; forwarding an instruction issuing authority of the control instruction of the chassis resource module to the third controller;
and taking over the management authority of the disk array.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 3
FIG. 8 is a detailed block diagram of a storage device having a dual-managed disk array according to an embodiment of the present invention. FIG. 9 is a detailed block diagram of a storage device having an array of individually controlled disks, according to an embodiment of the present invention. As shown in fig. 8, the dual-control management method inside the storage device is as follows:
the resources such as the chassis fan, the temperature sensor, and the power supply are collectively managed by the general controller M (corresponding to the third controller in the foregoing embodiment) (the managed resources correspond to the chassis resource module in the foregoing embodiment). Independent of the controller a (corresponding to the first controller in the foregoing embodiment) or the controller B (corresponding to the second controller in the foregoing embodiment), the controller controls the chassis fan independently, and obtains the chassis temperature information, the chassis power information, and the fan power and other abnormal alarm events.
The general controller M is interconnected with the a controller and the B controller, respectively, through different UART ports. The general controller M and the two controllers can simultaneously communicate in real time.
The controller A and the controller B interact keep-alive information with the general controller M through the UART ports respectively. When the general controller M detects that the controller A is hung up, it will transmit the information to the controller B through UART _ B. And the controller B takes over the disk array after receiving the information. And at the moment, the management of the case is not influenced by master control switching.
Meanwhile, the controller A and the controller B can also carry out real-time communication through the heartbeat detection links which are mutually interconnected.
For the case of the dual-control disk array shown in fig. 8, the controller a and the controller B can access the disk array at the same time, and when one controller is abnormal, the other controller can directly take over the disk array and take over the chassis resource management of the general controller M through the serial port.
For the single-control disk array case of fig. 9, the controller a and the controller B are connected to the same disk expansion module at the same time, and the gating is controlled by the general controller M through the double-control switching signal SK _ SW, for example, if the controller a is hung up, the communication authority of the disk array is gated through the disk expansion gating module, and the control authority of the disk array is switched to the controller B.
In this embodiment, the general controller M may be an MCU, and the MCU manages the chassis resources in a unified manner, and the dual controllers can communicate with the MCU through serial ports in real time at the same time, so as to realize the interaction of dual-control switching information, and when the dual-control switching is performed, the chassis management is not affected. The double-control management program can be upgraded on line and has strong maintainability.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A storage device, comprising: a disk array, a first controller, a second controller, a third controller and a chassis resource module, wherein,
the first controller and the second controller are master controllers and connected with the disk array and are used for managing the disk array;
the third controller is connected with the case resource module and is used for managing the case resource module;
the third controller is further connected with the first controller and the second controller, and is configured to:
receiving keep-alive information from a master controller of the first controller and the second controller;
determining whether the main controller is hung up according to the keep-alive information;
the third controller is further configured to:
under the condition that the master controller is determined to be hung up, sending first notification information to a slave controller in the first controller and the second controller, wherein the first notification information is used for notifying the slave controller to take over a predetermined authority by the slave controller, and the predetermined authority comprises at least one of:
access rights to chassis resource information of the chassis resource module;
forwarding instruction forwarding permission of the control instruction of the chassis resource module to the third controller;
and taking over the management authority of the disk array.
2. The storage device of claim 1, wherein, in the case where the disk array is a dual-managed disk array,
the storage device further includes: the first controller is connected with the disk array through the first disk expansion module, the second controller is connected with the disk array through the second disk expansion module,
the third controller is further configured to: and sending second notification information to a controller in the first controller and the second controller when it is determined that the main controller is hung up, wherein the second notification information is used for notifying the controller that the disk array is managed by the controller through a disk expansion module connected with the controller.
3. The storage device according to claim 1, wherein, in the case where the disk array is a single-control disk array,
the storage device further includes: the first controller and the second controller are connected with the disk array through the disk expansion gating module and the disk expansion module, the disk expansion gating module is further connected with the third controller, and the third controller is further configured to:
and sending a switching signal to the disk expansion gating module under the condition that the master controller is determined to be hung, wherein the switching signal is used for controlling the disk expansion gating module to gate communication links between the controllers in the first controller and the second controller and the disk array, so that the controllers manage the disk array through the disk expansion module.
4. The memory device of claim 1, wherein the first controller and the second controller are connected via a heartbeat detection link,
the master controller in the first controller and the second controller is used for sending heartbeat packets to the slave controller in the first controller and the second controller through the heartbeat detection link;
the controller is used for determining whether the main controller is hung up according to the heartbeat packet, and executing the following operations under the condition that the main controller is hung up:
and taking over the predetermined authority, and sending third notification information to the third controller, wherein the third notification information is used for notifying the third controller that the controller takes over the predetermined authority.
5. The storage device according to any one of claims 1-4, wherein the third controller is connected to the first controller and the second controller via a first port and a second port, respectively, wherein the first port and the second port are different UART ports.
6. The storage device of any of claims 1-4, wherein the third controller comprises: and a micro control unit MCU.
7. A resource management method is applied to a storage device comprising a disk array, a first controller, a second controller, a third controller and a chassis resource module, and comprises the following steps:
the first controller and the second controller manage the disk array in a mode of mutual master controller; and
the third controller manages the chassis resource modules;
the third controller receiving keep-alive information from a master controller of the first controller and the second controller;
the third controller determines whether the main controller is hung up according to the keep-alive information;
after the third controller determines whether the master controller is suspended according to the keep-alive information, the method further includes:
in a case that it is determined that the master controller is hung up, the third controller sends first notification information to a slave controller in the first controller and the second controller, where the first notification information is used to notify the slave controller that the slave controller takes over a predetermined right, and the predetermined right includes at least one of:
access rights to chassis resource information of the chassis resource module;
forwarding instruction forwarding permission of the control instruction of the chassis resource module to the third controller; and taking over the management authority of the disk array.
8. The method of claim 7, wherein in the case where the disk array is a dual-managed disk array, the storage device further comprises: the first controller is connected with the disk array through the first disk expansion module, and the second controller is connected with the disk array through the second disk expansion module;
after the third controller determines whether the master controller is suspended according to the keep-alive information, the method further includes:
and under the condition that the master controller is determined to be hung up, the third controller sends second notification information to a controller in the first controller and the second controller, wherein the second notification information is used for notifying the controller that the controller manages the disk array through a disk expansion module connected with the controller.
9. The method of claim 7, wherein in the case that the disk array is a single-control disk array, the storage device further comprises: the first controller and the second controller are connected with the disk array through the disk expansion gating module and the disk expansion gating module, the disk expansion gating module is also connected with the third controller,
after the third controller determines whether the master controller is suspended according to the keep-alive information, the method further includes:
and under the condition that the master controller is determined to be hung, the third controller sends a switching signal to the disk expansion gating module, wherein the switching signal is used for controlling the disk expansion gating module to gate a communication link between a controller in the first controller and the second controller and the disk array, so that the disk array is managed by the controller through the disk expansion module.
10. The method of claim 7, further comprising:
the master controller of the first controller and the second controller is used for sending heartbeat packets to the slave controller of the first controller and the second controller through a heartbeat detection link between the first controller and the second controller;
the controller determines whether the main controller is hung up according to the heartbeat packet, and executes at least one of the following operations under the condition that the main controller is hung up:
and taking over the predetermined authority, and sending third notification information to the third controller, wherein the third notification information is used for notifying the third controller that the controller takes over the predetermined authority.
CN201910138437.4A 2019-02-25 2019-02-25 Storage device and resource management method Active CN109901954B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910138437.4A CN109901954B (en) 2019-02-25 2019-02-25 Storage device and resource management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910138437.4A CN109901954B (en) 2019-02-25 2019-02-25 Storage device and resource management method

Publications (2)

Publication Number Publication Date
CN109901954A CN109901954A (en) 2019-06-18
CN109901954B true CN109901954B (en) 2022-08-16

Family

ID=66945472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910138437.4A Active CN109901954B (en) 2019-02-25 2019-02-25 Storage device and resource management method

Country Status (1)

Country Link
CN (1) CN109901954B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110687854B (en) * 2019-11-05 2021-07-30 杭州和利时自动化有限公司 PA bus controller and PA bus control system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049225A (en) * 2013-01-05 2013-04-17 浪潮电子信息产业股份有限公司 Double-controller active-active storage system
CN104461386A (en) * 2014-12-01 2015-03-25 北京同有飞骥科技股份有限公司 Double-control disk array based on godson processor
CN104718536A (en) * 2012-06-25 2015-06-17 Netapp股份有限公司 Non-disruptive controller replacement in network storage systems
CN105045688A (en) * 2015-08-17 2015-11-11 山东超越数控电子有限公司 Dual-active dual-control storage system with management function
CN105095125A (en) * 2015-07-08 2015-11-25 北京飞杰信息技术有限公司 Highly available double-control storage system and operation method thereof based on quorum disc
CN205139890U (en) * 2015-11-27 2016-04-06 山东超越数控电子有限公司 Two memory system that live of two accuses based on X86 framework
CN105653213A (en) * 2016-03-24 2016-06-08 浪潮集团有限公司 Double control disk array based on Freescale P3041
CN205507751U (en) * 2016-04-11 2016-08-24 浪潮集团有限公司 Storage mainboard
CN107678891A (en) * 2017-10-13 2018-02-09 郑州云海信息技术有限公司 The dual control method, apparatus and readable storage medium storing program for executing of a kind of storage system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4483168B2 (en) * 2002-10-23 2010-06-16 株式会社日立製作所 Disk array controller

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104718536A (en) * 2012-06-25 2015-06-17 Netapp股份有限公司 Non-disruptive controller replacement in network storage systems
CN103049225A (en) * 2013-01-05 2013-04-17 浪潮电子信息产业股份有限公司 Double-controller active-active storage system
CN104461386A (en) * 2014-12-01 2015-03-25 北京同有飞骥科技股份有限公司 Double-control disk array based on godson processor
CN105095125A (en) * 2015-07-08 2015-11-25 北京飞杰信息技术有限公司 Highly available double-control storage system and operation method thereof based on quorum disc
CN105045688A (en) * 2015-08-17 2015-11-11 山东超越数控电子有限公司 Dual-active dual-control storage system with management function
CN205139890U (en) * 2015-11-27 2016-04-06 山东超越数控电子有限公司 Two memory system that live of two accuses based on X86 framework
CN105653213A (en) * 2016-03-24 2016-06-08 浪潮集团有限公司 Double control disk array based on Freescale P3041
CN205507751U (en) * 2016-04-11 2016-08-24 浪潮集团有限公司 Storage mainboard
CN107678891A (en) * 2017-10-13 2018-02-09 郑州云海信息技术有限公司 The dual control method, apparatus and readable storage medium storing program for executing of a kind of storage system

Also Published As

Publication number Publication date
CN109901954A (en) 2019-06-18

Similar Documents

Publication Publication Date Title
US10715411B1 (en) Altering networking switch priority responsive to compute node fitness
US10693813B1 (en) Enabling and disabling links of a networking switch responsive to compute node fitness
US9619243B2 (en) Synchronous BMC configuration and operation within cluster of BMC
EP2793428B1 (en) Pcie switch-based server system and switching method and device thereof
US10429914B2 (en) Multi-level data center using consolidated power control
US9800087B2 (en) Multi-level data center consolidated power control
US20080043769A1 (en) Clustering system and system management architecture thereof
CN1890638B (en) Method, apparatus and system for proxying, aggregating and optimizing virtual machine information for network-based management
US9189349B2 (en) Distributed blade server system, management server and switching method
US10499531B2 (en) Rack level network switch
US7688715B2 (en) Apparatus for providing shelf manager having duplicate ethernet port in ATCA system
KR20190074962A (en) Local management console for storage devices
EP2503735B1 (en) Multi-service node management system, device and method
WO2011130423A1 (en) Method of identifying destination in a virtual environment
JP2004021556A (en) Memory control device and control process thereof
CN106888111B (en) A method of solving dual computer group FC-SAN switching
CN104281511A (en) Intelligent platform management interface system, substrate management controller and implementation method
CN110661641B (en) Virtual network function VNF deployment method and device
US8732308B1 (en) Coordinated management in virtualized systems using management brokers and management channels
US20110145630A1 (en) Redundant, fault-tolerant management fabric for multipartition servers
CN114356725B (en) Case management system
CN109901954B (en) Storage device and resource management method
CN111262745A (en) Information processing platform redundancy system design
JP3913608B2 (en) Intelligent type device that allows all intelligent type modules to share the same user input / output interface
US9864669B1 (en) Managing data center resources

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant