The disclosure claims priority to the Chinese Patent Application No. 202210315458.0, entitled “METHOD AND DEVICE FOR SUPPLYING POWER TO STORAGE ARRAY, AND SERVER”, filed to the China National Intellectual Property Administration on Mar. 29, 2022, the entire contents of which are incorporated herein by reference.
The disclosure relates to the field of storage, in particular to a method and a device for supplying power to a storage array, and a server.
A storage array needs to be powered by a power module when it is normal operation.
Objects of the disclosure are to provide a method and device for supplying power to a storage array, and a server.
In order to solve the above-mentioned technical problems, the disclosure provides a method for supplying power to a storage array, including:
In some embodiments, the acquiring state data for representing power supply state of power modules includes:
In some embodiments, before the acquiring state data for representing power supply state of power modules, the method further includes:
In some embodiments, the determining whether the in-place signal of the storage array is an interference signal in response to receiving the in-place signal includes:
In some embodiments, after the acquiring state data for representing power supply state of power modules, the method further includes:
In some embodiments, the redetermining a power supply control mode of the storage array according to the state data includes:
In some embodiments, the power supply control mode of the storage array includes:
In some embodiments, the distributed logic parallel control is a power supply control mode in which the multiple power modules supply power at the same time; and the master-slave redundant parallel control is a power supply control mode in which one of the power modules supplies power alone and other power modules are in a standby state.
In some embodiments, the method further includes:
In some embodiments, the method further includes:
In some embodiments, the output data includes bus output voltages, and after the acquiring state data for representing power supply state of power modules, the method further includes:
In some embodiments, when the power supply control mode is the distributed logic parallel control, the redetermining a power supply control mode of the storage array according to the state data includes:
In some embodiments, the power supply control mode of the storage array is the other model control; and accordingly, after the redetermining a power supply control mode of the storage array according to the state data, the method further includes:
In some embodiments, after the restoring an anomaly through a self-diagnosis subroutine, the method further includes:
In some embodiments, a specific implementation process of supplying power to the storage array by the power modules is as follows:
In some embodiments, the acquiring power supply data of a power grid, output data of multiple power modules, a control signal for controlling the multiple power modules, temperature data of controllable switches, and driving data for driving the multiple power modules includes:
In some embodiments, the acquiring, by a sampling module in a circuit, the power supply data of the power grid, the output data of the multiple power modules, the control signal for controlling the multiple power modules and the temperature data of the controllable switches includes:
In some embodiments, the method further includes:
In order to solve the above-mentioned technical problems, the disclosure further provides a device for supplying power to a storage array, including:
In order to solve the above-mentioned technical problems, the disclosure further provides a server, including the above-mentioned power supply device for the storage array.
The accompanying drawings, which are incorporated in and constitute a part of the present description, illustrate embodiments consistent with the disclosure and serve to explain the principle of the disclosure together with the description.
To describe the technical solutions in the embodiments of the disclosure more clearly, the accompanying drawings required for describing the related art and the embodiments will be briefly introduced below. Apparently, the accompanying drawings in the following descriptions show only some embodiments of the disclosure, and those of ordinary skill in the art may still derive other accompanying drawings from these accompanying drawings without creative efforts.
Cores of the disclosure are to provide a method and device for supplying power to a storage array, and a server, by which the risk of power failure of the storage array is reduced, and the data security is improved.
In order to make objects, technical solutions and advantages of the embodiments of the disclosure clearer, the technical solutions in the embodiments of the disclosure will be described clearly and thoroughly below in conjunction with the accompanying drawings in the embodiments of the disclosure. Apparently, the described embodiments are a part, but not all, of the embodiments of the disclosure. Based on the described embodiments of the disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protective scope of the disclosure.
In the related art, after it is found that the storage array is abnormally powered down, a standby battery can be switched to supply power to the storage array under the control of a processor. However, since the storage array has been powered down at this moment, that is, the standby battery is switched to supply power after the storage array is powered down, data of the storage array might have been lost, which increases the risk of data loss.
At S11, state data for representing power supply state of power modules is acquired.
At S12, it is determined, according to the state data, whether the storage array satisfies power failure triggering conditions, and if the storage array satisfies the power failure triggering conditions, the process proceeds to S13.
At S13, a current power module is controlled to be switched to another power module or a standby battery.
If a storage array is abnormally powered down while being powered by a power module, data stored in the storage array will be lost. However, if a power module or standby battery that is available for supplying power normally are provided for the storage array before the storage array is powered down, the storage array will not be powered down, and will continue to operate. In the disclosure, by acquiring the state data for representing the power supply state of the power modules, determining, according to the state data, whether the storage array satisfies the power failure triggering conditions, and controlling the current power module to be switched to another power module or standby battery under the condition that the storage array satisfies the power failure triggering conditions, power is continued to be supplied for the storage array before the storage array is powered down, so that the storage array continues to work, which reduces the risk of the storage array being powered down, and improves the data security.
The state data for representing the power supply state of the power modules is acquired first. The state data refers to data for representing the power supply state of the power modules. The state data may be data about the power module per se, or other data, for example all data that can represent the power supply state of the power module on a transmission path between an input from a power grid and the power module, through which the power supply state of the power modules can also be reflected. Then, if the state data of the power supply state of the power module satisfies the power failure triggering conditions, which means that the storage array will be powered down shortly, or there is a greater possibility that powerdown occurs, then the current power module is switched to another power module or standby battery without faults according to specific situations of the state data. Accordingly, the reliability of the solution is improved.
It should be noted that the power failure triggering conditions are met before the storage array is powered down, so the power module and standby power source is switched for the storage array before the storage array is powered down. Accordingly, the reliability of the solution is improved.
The disclosure provides a method for supplying power to a storage array, including: acquiring state data for representing power supply state of power modules first: determining, according to the state data, whether the storage array satisfies power failure triggering conditions; and controlling the current power module to be switched to another power module or standby battery under the condition that the storage array satisfies the power failure triggering conditions. By adopting the present solution, when the storage array satisfies the power failure triggering conditions, another power module or standby battery without anomalies can be switched in time to continue to supply power to the storage array, so that power is supplied to the storage array continuously, thereby reducing the risk of the storage array being powered down, and improving the data security.
On the basis of the above embodiment, reference is made to
In some embodiments, the step in which state data for representing power supply state of the power modules is acquired includes:
A specific implementation of supplying power to the storage array by the power modules is as follows: an input from the power grid is converted by an APFC circuit 1, then inverted and rectified driven by a driver circuit 3, output to a control circuit 5 for the power modules, and the control circuit 5 selects a power module to supply power to the storage array. Controllable switches participate in realizing functions of the APFC circuit 1 and the control circuit 5. Data in an intermediate process from the input from the power grid to the power modules includes the power supply data of the power grid, the output data of the multiple power modules, the control signal for controlling the multiple power modules, the temperature data of the controllable switches and the driving data for driving the multiple power modules, all of these data can be used for reflecting the power supply state of the power modules. If an issue that affects the power module to supply power to the storage array exists in any one of circuits between the input from the power grid and the power module, it is considered that the storage array will be powered down shortly, then, another power module or standby battery is switched to supply power to the storage array before the storage array is powered down, thereby improving the reliability of the solution.
The input from the power grid is connected to an input end of the APFC circuit 1, an output end of the APFC circuit 1 is connected to a first end of an inverter circuit 2, a second end of the inverter circuit 2 is connected to an end of a rectifier circuit 4, a third end of the inverter circuit 2 is connected to the driver circuit 3, the other end of the rectifier circuit 4 is connected to an end of the control circuit 5 for the power modules, the other end of the control circuit 5 is connected to the power modules, the power modules are connected to the storage array, the controllable switches are further disposed in the APFC circuit 1 and the control circuit 5, thereby improving the integrity of the solution.
In addition, when the driving data for driving the multiple power modules is acquired, the data of the driver circuit 3 is directly acquired by a processor 21 to determine whether the driver circuit 3 is abnormal. Other data, for example the power supply data of the power grid, the output data of the multiple power modules, the control signal for controlling the multiple power modules and the temperature data of the controllable switches, are acquired by a sampling module 6 in the circuitry. The sampling module 6 is connected to the processor 21, the sampling module 6 may include different types of samplings. For example, if the power supply data of the power grid is collected, current sampling, voltage sampling and frequency sampling for the input from the power grid can be adopted: if the output data of the multiple power modules is collected, current sampling and voltage sampling can be adopted: if the temperature data of the controllable switches is collected, a temperature sensor can be adopted. The sampling module 6 herein may be adaptively changed according to a type of data desired to be collected, thereby improving the flexibility and feasibility of the solution.
According to specific situations of the acquired power supply data of the power grid, the output data of the multiple power modules, the control signal for controlling the multiple power modules, the temperature data of the controllable switches, and the driving data for driving the multiple power modules, it can be analyzed whether there is a problem and whether it is required to switch a power module and a standby battery for the storage array. The power failure triggering conditions include: the power supply from the power grid being cut off or the power supply stability threshold being smaller than the preset threshold, the output of the power modules being stopped, the output voltage of the power module not reaching the minimum power supply voltage required by the storage array or exceeding the maximum power supply voltage of the storage array, the control signals for controlling the multiple power modules disappearing, the temperature of the controllable switch being too high, and abnormal driving of the power module. For the power supply from the power grid, there may be a power supply voltage of 220 volts, a power supply voltage of 110 volts or other power supply voltages in different countries. If the power grid for supplying power is faulted, none of the power modules will supply power any more, and it is switched to the standby battery to supply power: if a voltage of the power grid is instable, the power supply stability threshold is smaller than the preset threshold, that is, the power supply stability threshold is smaller than a stability value required by the power modules and the storage array, which may also result in the powerdown of the storage array, at this time, it is also necessary to switch to the standby battery; and when the output data of the multiple power modules, the control signal for controlling the multiple power modules and the driving data for driving the multiple power modules are abnormal, the storage array may also be powered down abnormally. Accordingly, the reliability and integrity of the solution are improved.
The controllable switches disposed in the APFC circuit 1 and the control circuit 5 belong to key components in the circuit. When temperatures of these components are too high, the storage array may also be powered down: Moreover, when the circuit is abnormal, the temperatures of the key components are more easily changed. Thus, by detecting temperature changes of the key components, whether power supply for the storage array is abnormal can be better reflected, thereby improving the reliability of the solution.
In addition, in the disclosure, a plurality of protection circuits are added in the circuit, and a first Transient Voltage Suppressor (TVS) D1, a second TVS D2, a third TVS D3, a fourth TVS D4, a fifth TVS D5, a sixth TVS D6, a seventh TVS D7 and an eighth TVS D8 are added TVSs, which prevent static electricity and hot-drawing from damaging a power control signal pin. A fifth switching tube Q5, a sixth switching tube Q6 and the control circuit 5 are used for eliminating impacts of a power on sequence on Power Management Units (PMUS), thereby preventing an abnormal power source from affecting a Power Management Bus (PMBUS) link of a storage system, and achieving the object of real redundant power supply. An intelligent Power ok (PWOK) signal is abnormal when a voltage of the control circuit 5 is 12 volts, the abnormal PWOK signal is sent within the first time, and thus, software delay impacts are eliminated.
The first TVS D1, the second TVS D2, the third TVS D3, the fourth TVS D4, the fifth TVS D5, the sixth TVS D6, the seventh TVS D7 and the eighth TVS D8 as TVSs are added into the circuit to play a role in protecting the circuit, thereby protecting an interface signal, preventing a backflow from affecting the circuit, and protecting the circuit. Therefore, the safety of the circuit is improved.
The seventh TVS D7 and the eighth TVS D8 can suppress impacts of a transient voltage caused by lightning stroke, static electricity, etc. on a Serial Data Line/Serial Clock Line (SDA/SCL) link. The fifth switching tube Q5 and the sixth switching tube Q6 prevent an abnormal power module from affecting a system communication link. The fourth TVS D4 and the third TVS D3 suppress impacts of the transient voltage caused by lightning stroke, static electricity, etc. on a Vin good signal. A fourth resistor R4 and a first capacitor CI form a Rc filter circuit. A third switching tube Q3 and a fourth switching tube Q4 form an OR gate. A working state of a power source is jointly monitored by means of hardware and software. The sixth TVS D6 can suppress impacts of the transient voltage caused by lightning stroke, static electricity, etc. on a PSON signal. The fifth TVS D5 functions as a camping diode to protect a Mcu pin.
In some embodiments, before the state data for representing power supply state of power modules is acquired, the method further includes:
From the view of the software, when the storage array is connected to the power modules, the processor 21 receives the in-place signal of the storage array, at the same time, detection software filter dithering elimination is performed on a PSON (Power Supply On) signal by means of a PSON dithering elimination determination subroutine, it is determined whether the signal is the interference signal. If it is detected that the PSON signal has a low level, the power modules start to work normally, which indicates that the signal at this moment is not the interference signal. If a non-low-level state is detected, an initial flow of a main program is returned to continue to detect the PSON signal, which indicates that the signal is an interference signal triggered by mistake, rather than a real in-place signal, then the process returns to the step that it is determined whether an in-place signal of the storage array is received to continue to perform determination; and if the signal is not the interference signal, the step that state data for representing power supply state of power modules is acquired is performed to facilitate subsequent steps, thereby improving the reliability of the solution.
In some embodiments, after the state data for representing power supply state of power modules is acquired, the method further includes:
After the power modules are connected to the storage array, a power supply control mode suitable for the storage array is redetermined according to the state data, an intelligent switching may be performed, thereby improving the reliability and the degree of automation of the solution.
From the view of the software, the state data is intelligently analyzed by means of a power supply mode determination subroutine, different control algorithm subroutines are called according to the analysis result, a subroutine corresponding to the storage array is selected in conjunction with the state data, and thus, the power supply efficiency is increased. Since an appropriate power supply control mode is selected for the storage array, electric energy can also be saved, and resource waste is avoided.
In some embodiments, the power supply control mode of the storage array includes:
The multiple power modules may have different power supply control modes, among them, the distributed logic parallel control means that the multiple power modules supply power at the same time; and the master-slave redundant parallel control means that one of the power modules supplies power alone and other power modules are in a “standby” state, so that electric energy can be saved.
From the view of the software, a current-sharing bus voltage is added, by a current-sharing control subroutine, into a proportional-integral-derivative (PID) control loop as a control parameter, and the current-sharing bus voltage is also used as a feedforward signal to improve the current-sharing precision when a load is suddenly changed. In response to receiving a primary-standby host configuration instruction, a primary-standby control subroutine sends a cold redundant control signal: in response to receiving a primary-standby slave configuration instruction, the primary-standby control subroutine adjusts the output voltage to be lower than a normal output voltage by 0.3 volts, thereby ensuring the power supply mode of the master-slave redundant parallel control.
From the view of the software, it should be noted that the distributed logic parallel control is equivalent to the current-sharing control subroutine, and the master-slave redundant parallel control is equivalent to the primary-standby control subroutine.
In some embodiments, the output data includes bus output voltages, and after the state data for representing power supply state of power modules is acquired, the method further includes:
When the multiple power modules supply power, from the view of the software, the PID control may be performed, according to the state data, through the APFC control subroutine: the output data of the power modules includes the bus output voltages; by performing the PID control on the multiple power modules, the bus output voltages of the power modules can be stabilized. For example, if a 12 V voltage is required for normal operations of the storage array, the bus output voltages of the power modules can be stabilized through the PID control: outputs of the power modules may be fluctuated to a certain extent in a normal case, by performing the PID control on the multiple power modules, fluctuations can be reduced, and the voltages can be stabilized at 12 volts, so that higher reliability is achieved during supplying power for the storage array, and the feasibility of the solution is improved.
In some embodiments, when the power supply control mode is the distributed logic parallel control, the power supply control mode of the storage array is redetermined according to the state data by:
When the power supply control mode is the master-slave redundant parallel control, the power supply control mode of the storage array is redetermined according to the state data by: calling a second algorithm for the master-slave redundant parallel control; and
Different intelligent control algorithms are called in different power supply modes to ensure the precision of power parameters in different working modes. When the power supply control mode is the distributed logic parallel control, the first algorithm for the distributed logic parallel control is called, and the power supply control mode of the storage array is redetermined according to the first algorithm, so that a power supply control mode suitable for the storage array is determined, thereby ensuring the precision of the power parameters at the moment: when the power supply control mode is the master-slave redundant parallel control, the second algorithm for the master-slave redundant parallel control is called, and the power supply control mode of the storage array is redetermined according to the second algorithm, so that a power supply control mode suitable for the storage array is determined, thereby ensuring the precision of the power parameters at the moment. By calling different intelligent control algorithms according to the corresponding different power supply modes, the precision of the power parameters at the moment can be ensured, and the reliability of the solution is improved.
In some embodiments, the power supply control mode of the storage array is the other model control. Accordingly, after the power supply control mode of the storage array is redetermined according to the state data, the method further includes:
When the power supply control mode of the storage array is the other model control, it means that power supply for the storage array at the moment has been abnormal, the standby battery is ready for supplying power. When the power supply control mode of the storage array is redetermined as the other model control according to the state data from the view of the software, the anomaly is restored through the self-diagnosis subroutine, and the process is a process of trying for restoring: if the anomaly may be solved from the view of the software of the processor 21, the anomaly can be restored, power is continued to be supplied for the storage array through the power modules; and if the anomaly cannot be restored, it means that the anomaly is a problem of hardware or other relatively complex problems, at the moment, the standby battery is controlled to supply power to the storage array, and the alarm module is controlled to give an alarm. First, it is ensured that the storage array is not powered down, so that the reliability of power supply and the safety of stored data are ensured; and then, the alarm module is controlled to give an alarm at the same time, so that it is convenient for a user to find problems in time and perform corresponding maintenance. The standby battery has a certain service life. The power modules can be reutilized to supply power after being maintained, and thus, the integrity of the solution is improved.
From the view of the software, the result is intelligently analyzed, according to a working state of a power supply and key parameters, through a self-diagnosis restore subroutine, an interface signal of the working state of the power supply is sent by intelligent control, at the same time, a power supply state register is updated according to an intelligent analysis result, and three attempts for restoring an abnormal state are made, so that the reliability of the solution is improved.
The disclosure further provides a device for supplying power to a storage array, including: a memory 22, configured to store a computer program; and
The introduction for the power supply apparatus for the storage array provided in the disclosure refers to the embodiment of the above-mentioned power supply method for the storage array so as to be no longer repeated herein.
The disclosure further provides a server, including the above-mentioned device for supplying power to the storage array.
The introduction for the server provided in the disclosure refers to the embodiment of the above-mentioned power supply apparatus for the storage array so as to be no longer repeated herein.
Various embodiments in this specification is described in a progressive manner. Each embodiment focuses on differences from other embodiments. The same and similar parts between the various embodiments may be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple. For relevant details, please refer to the description in the method section.
Those skilled in the art may further realize that the units and algorithm steps of each example described in connection with the embodiments disclosed herein may be implemented by electronic hardware, computer software, or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, in the above description, the composition and steps of each example have been generally described according to functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
202210315458.0 | Mar 2022 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2022/133473 | 11/22/2022 | WO |