Expansion cabinet control method and systemTechnical Field
The invention relates to the technical field of computer storage, in particular to an expansion cabinet control method and system.
Background
When the storage capacity is expanded in the storage industry, a mode of connecting expansion cabinets is often adopted, and the expansion quantity is one to two, one to four or even one to ten. Due to the limitation of the stored software, in the power-on starting process of the system, the control cabinet is restarted after all the expansion cabinets are required to be started, a large number of expansion cabinets are started at the same time, the instantaneous power consumption is large, and system power supply fluctuation can be caused.
For the above problem, there are two general solutions, one is to limit the system configuration, and the system does not support the configuration of more than 2 expansion cabinets. And the other method is that an additional control line is added during system design, and the starting time and sequence of the expansion cabinet are controlled by the control cabinet.
For the first solution, the configuration of the expansion cabinet cannot be increased, more expansion cabinets need to be configured under the same capacity requirement, the cost is higher, the time duration application configuration is reduced, and the product competitiveness is weakened. And when the SAS signal is in fault, the expansion cabinet cannot report signals of the terminal and the like in time.
For the second solution, a control cable is additionally added, the system cost is increased, and the system networking is complex.
Disclosure of Invention
The invention aims to provide a control method and a control system for an expansion cabinet, which can realize the power-on control of the expansion cabinet under the condition of not increasing an additional control cable.
In order to solve the technical problem, the invention provides a control method of an expansion cabinet, which comprises the following steps: cascading the controller with each expansion frame through a CLK signal and a CTL signal; and taking the CLK signal as a control clock, taking the CTL signal as a control signal, and carrying out power-on control on each expansion frame according to the cascade sequence.
In some embodiments, when the controller is cascaded with each expansion block, the CLK signal of the controller is connected with the CLK signal of the first stage expansion block, and the CTL signal of the controller is connected with the CTL signal of the first stage expansion block; the CLK signal of the front stage expansion frame is connected with the CLK signal of the rear stage expansion frame, and the CTL signal of the front stage expansion frame is connected with the CTL signal of the rear stage expansion frame.
In some embodiments, the CLK signal is the CLK signal of MINI SAS HD cable and the CTL signal is the CLK signal of MINI SAS HD cable.
In some embodiments, the power-on control of each expansion block in the cascade order by using the CLK signal as a control clock and the CTL signal as a control signal includes: the CTL signal is pulled down by the controller for four clock cycles indicating the start of a new control cycle; and carrying out power-on control on each expansion frame according to the cascade sequence of each expansion frame.
In some embodiments, the power-on control of each expansion block is performed according to the cascade order of each expansion block, and includes: after the number of the expansion cabinets in the current cascade order is 2 clock cycles, pulling down the CTL by half clock cycles to represent that the expansion cabinet 0 is in place; the controller determines whether the expansion cabinet is powered on, if so, the controller pulls down the CTL by half a clock cycle after a clock cycle, the expansion cabinet detects a low level, and the expansion cabinet system is powered on and started; if the expansion cabinet detects that the inside of the expansion cabinet has a fault or an emergency state and informs the controller, the CTL is pulled down for half a clock cycle every other clock cycle, the controller reads a low level signal, and the state information inside the expansion cabinet is read through the SAS signal.
In addition, the invention also provides an extension cabinet control system, which comprises: the controller is cascaded with each expansion frame through a CLK signal and a CTL signal of the controller, and is used for controlling each expansion frame by taking the CLK signal as a control clock and the CTL signal as a control signal according to the cascade sequence; the expansion frame is cascaded to the controller through the CLK signal and the CTL signal of the expansion frame, and the expansion frame is electrified and controlled according to the CLK signal and the CTL signal sent by the controller through cascade connection.
After adopting such design, the invention has at least the following advantages:
1. under the condition of not increasing extra cable cost and networking complexity, orderly power-on of the expansion cabinet is realized, and impact on system software and a power supply is avoided;
2. meanwhile, an extra channel for interrupting the reporting is added, and the reliability of the system is improved.
Drawings
The foregoing is only an overview of the technical solutions of the present invention, and in order to make the technical solutions of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and the detailed description.
Fig. 1 is a system structural diagram of an expansion cabinet control system according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a connection structure between a controller and an expansion block according to an embodiment of the present invention;
FIG. 3 is a timing logic diagram of the CLK signal and CTL signal provided by an embodiment of the present invention;
fig. 4 is a flowchart of an extension cabinet control method according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
The main core of the invention comprises two parts, namely MINI SASHD interface hardware and control logic.
Two unused signal lines, one defined as ctl (control) and one defined as clk (clock) signals, are taken at the MINI SAS HD interface, and are connected to the internal CPLD on both the expansion cabinet and the control cabinet.
After connecting MINI SAS HD the cables according to fig. 1 and 2, the controller is cascaded with the expansion block, CTL and CLK are interconnected separately.
The CLK signal is sent by the controller, and the expansion block is transferred to the next-level expansion block after receiving the CLK signal.
The CTL signal is controlled by the controller and the expansion block.
Referring to fig. 3, CTL is first pulled down by the controller for four clock cycles, indicating that a new control cycle is starting.
After the number of the extension cabinet is 2 clock cycles, CTL is pulled down by half clock cycle, which indicates that the extension cabinet 0 is in place.
And the controller determines whether the expansion cabinet is powered on, if so, the controller pulls down the CTL by half a clock cycle after a clock cycle, the expansion cabinet detects a low level, and the expansion cabinet system is powered on and started.
If the expansion cabinet detects that the inside of the expansion cabinet has a fault or an emergency state and informs the controller, the CTL is pulled down for half a clock cycle every other clock cycle, the controller reads a low level signal, and the state information inside the expansion cabinet is read through the SAS signal.
And then the control and state detection of the extension cabinet 1 are carried out. And (4) until no in-place signal is fed back by the continuous 3 expansion cabinet signal segments, the detection is finished, and a new cycle is started after the detection is finished.
The execution process of the control method of the expansion cabinet provided by the invention is a cyclic process. In the process of one-time cycle execution, the power-on control operation is sequentially performed on each expansion frame of the controller cascade. The specific process can be seen in fig. 4. It should be noted that the process shown in fig. 4 is a case where only two expansion blocks are cascaded with the controller. Without loss of generality, other numbers of cascading processes are similar.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the present invention in any way, and it will be apparent to those skilled in the art that the above description of the present invention can be applied to various modifications, equivalent variations or modifications without departing from the spirit and scope of the present invention.