Hard disk system, hard disk power failure processing method, computer equipment and storage medium
Patent Information
- Application Number
- CN202610923544.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-25
- Publication Date
- 2026-09-18
- Estimated Expiration
- 2046-06-25
AI Technical Summary
[0003]基于此,有必要针对上述技术问题,提供一种硬盘系统、硬盘电源故障处理方法、计算机设备、存储介质及程序产品,以至少解决相关技术中解决硬盘的电源异常导致数据及现场丢失问题
[0021] In summary, the system, method, computer equipment, storage medium, and program product provided in this application, by setting up a backup power supply circuit in the hard disk system, when any power supply circuit in the hard disk system is detected to have abnormal current operating parameters and is thus marked as a faulty power supply circuit, configures the second output voltage value of the backup power supply circuit to the first output voltage value of the faulty power supply circuit. This controls the backup power supply circuit to replace the faulty power supply circuit in supplying power to the load corresponding to the faulty power supply circuit. Thus, in the event of a power supply circuit failure in the hard disk system, the hard disk system itself can provide a certain amount of power to transfer the hot business data in the hard disk system to the backup hard disk. The business corresponding to the hot business data can then continue to be processed through the backup hard disk, achieving on-site protection and ensuring the integrity and recoverability of critical data. Furthermore, it can achieve low user awareness of the fault, improving the user experience.
Smart Images

Figure CN122470449B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of hard disk technology, and in particular to a hard disk system, a hard disk power supply failure handling method, computer equipment, and storage medium. Background Technology
[0002] As a data storage device, a hard drive needs to have a certain power backup capability to ensure the integrity and recoverability of critical data. For example, if an abnormal power loss occurs during data writing (such as disk removal, power outage in the data center, etc.), the power supply is lost, but the current data is still being written to the storage medium. In this case, the hard drive needs to provide a certain amount of power to maintain the data writing process and provide on-site protection. Summary of the Invention
[0003] Therefore, it is necessary to provide a hard disk system, a hard disk power supply failure handling method, computer equipment, storage media, and program products to address the above-mentioned technical problems, so as to at least solve the problem of data and on-site loss caused by power supply abnormalities of hard disks in related technologies.
[0004] In a first aspect, a hard disk system is provided, comprising: at least one power supply circuit, at least one load, a power supply backup circuit, a branch power supply backup controller, and a hard disk controller, wherein the power supply backup circuit includes a backup power output configuration adjustment circuit; wherein... The power supply circuit corresponds one-to-one with the load to supply power to the load; The branch power backup controller is used to obtain the current operating parameters of the at least one power supply circuit, and when any current operating parameter is within the range of fault operating parameters, mark the power supply circuit corresponding to the current operating parameter as a fault power supply circuit, and determine the first output voltage value of the fault power supply circuit. The branch power backup controller is also used to set the second output voltage value of the power supply backup circuit to the first output voltage value by controlling the backup output configuration adjustment circuit, and to control the power supply backup circuit to replace the fault power supply circuit to supply power to the load corresponding to the fault power supply circuit. The branch power backup controller is also used to send fault information for the faulty power supply circuit to the hard disk controller. The hard disk controller is used to transfer the hot business data in the hard disk system to a backup hard disk in response to receiving the fault information, so that the business corresponding to the hot business data can continue to be processed through the backup hard disk.
[0005] In one embodiment, the input terminal of the hard disk system is connected to the output terminal of the main power supply circuit, and the output terminal of the main power supply circuit is connected to the input terminal of the at least one power supply circuit and the input terminal of the power supply backup circuit, respectively. The power supply circuit includes a first switch, a branch power chip, and a second switch connected in series. The power backup circuit includes a third switch, a branch backup power chip, and a fourth switch set connected in series. The fourth switch set includes at least one fourth switch. The first end of each of the at least one fourth switch is connected to the output end of the branch backup power chip, and the second end of the fourth switch is connected to the output end of the power supply circuit in a corresponding manner. The branch power backup controller is connected to the control terminals of the first switch, the second switch, the third switch, and the fourth switch respectively. It is used to control the first switch and the second switch in the faulty power supply circuit to be in the off state and control the third switch and the fourth switch connected to the output terminal of the faulty power supply circuit to be in the on state when the power supply circuit is marked as a faulty power supply circuit and the second output voltage value of the power backup circuit reaches the first output voltage value.
[0006] In one embodiment, the backup power output configuration adjustment circuit includes a first adjustable resistor circuit and a second adjustable resistor circuit. The first end of the first adjustable resistor circuit is connected to the output end of the branch backup power chip and the first end of the fourth switch, respectively. The connection point between the second end of the first adjustable resistor circuit and the first end of the second adjustable resistor circuit is connected to the feedback input end of the branch backup power chip. The second end of the second adjustable resistor circuit is grounded. The branch power backup controller is connected to the control terminals of the first adjustable resistor circuit and the second adjustable resistor circuit respectively, and is used to adjust the first resistance value of the first adjustable resistor circuit and the second resistance value of the second adjustable resistor circuit, so as to set the second output voltage value of the power backup circuit to the first output voltage value.
[0007] In one embodiment, both the first adjustable resistor circuit and the second adjustable resistor circuit include a first resistor branch and at least one second resistor branch, the first resistor branch and the at least one second resistor branch are connected in parallel, the first resistor branch includes a first resistor, and the second resistor branch includes a second resistor and a fifth switch connected in series. The branch power backup controller is connected to the control terminal of the fifth switch and is used to determine the first number of times the fifth switch in the first adjustable resistor circuit and the second number of times the fifth switch in the second adjustable resistor circuit is turned on according to the first output voltage value. The controller adjusts the switching state of the fifth switch in the first adjustable resistor circuit according to the first number of times the fifth switch is turned on and adjusts the switching state of the fifth switch in the second adjustable resistor circuit according to the second number of times the fifth switch is turned on, so that the second output voltage value of the backup power supply circuit in the hard disk system reaches the first output voltage value.
[0008] In one embodiment, the input terminal of the hard disk system is connected to the output terminal of the main power supply circuit. The hard disk system further includes a main power backup circuit and a power switching circuit. The output terminal of the main power supply circuit is connected to the first input terminal of the power switching circuit, the output terminal of the main power backup circuit is connected to the second input terminal of the power switching circuit, and the output terminal of the power switching circuit is connected to the input terminal of the at least one power supply circuit and the input terminal of the power backup circuit, respectively. The power switching circuit is used to obtain the power operating parameters of the main power circuit, and when the power operating parameters are not within the preset power operating parameter range, control the main power backup circuit to replace the main power circuit to supply power to the at least one power supply circuit. The hard disk controller is connected to the power switching circuit and is used to obtain the power operation parameters of the main power circuit. When the power operation parameters are not within the preset power operation parameter range, the business data in the hard disk system is stored in the storage medium in the hard disk system. The hard disk controller is further configured to disable the branch power backup function of the branch power backup controller after the main power backup circuit supplies power to the at least one power supply circuit and stores all business data in the hard disk system into the storage medium in the hard disk system. The branch power backup function is used to control the power backup circuit to supply power to the load corresponding to the faulty power supply circuit.
[0009] Secondly, a method for handling hard drive power supply failures is provided, including: Obtain the current operating parameters of at least one power supply circuit in the hard disk system, wherein the at least one power supply circuit supplies power to at least one load in the hard disk system, and the power supply circuit corresponds one-to-one with the load; If any current operating parameter is within the range of faulty operating parameters, the power supply circuit corresponding to the current operating parameter is marked as a faulty power supply circuit, and the first output voltage value of the faulty power supply circuit is determined. Set the second output voltage value of the power supply backup circuit in the hard disk system to the first output voltage value, and control the power supply backup circuit to replace the faulty power supply circuit to supply power to the load corresponding to the faulty power supply circuit; A fault message is issued for the faulty power supply circuit, and the hot service data in the hard disk system is transferred to the backup hard disk so that the service corresponding to the hot service data can continue to be processed through the backup hard disk.
[0010] In one embodiment, after obtaining the current operating parameters of at least one power supply circuit within the hard disk system, the method further includes: Plot the current operating parameter curve corresponding to the current operating parameters; Determine the current business scenario of the hard disk system and obtain the health operation parameter curve of at least one power supply circuit under the business scenario; Every first preset time interval, the curve difference value between the current operating parameter curve and the healthy operating parameter curve is determined; If the curve difference value is greater than the curve difference threshold and the current operating parameter is not within the range of faulty operating parameters, the power supply circuit corresponding to the current operating parameter is marked as a suspected faulty power supply circuit, and the suspected faulty power supply circuit is screened for suspected faults.
[0011] In one embodiment, the suspected fault screening of the suspected faulty power supply circuit includes: Continuously monitor the current operating parameter curve corresponding to the suspected faulty power supply circuit, and calculate the curve fluctuation value of the current operating parameter curve; If the curve fluctuation value is greater than the first curve fluctuation threshold and the current operating parameters are not within the range of faulty operating parameters, the suspected faulty power supply circuit is marked in the operation and maintenance inspection information. The suspected faulty power supply circuit was inspected and maintained according to the operation and maintenance strategy.
[0012] In one embodiment, after calculating the curve fluctuation value of the current operating parameter curve, the method further includes: If the curve fluctuation value is less than the second curve fluctuation threshold, the healthy operating parameter curve corresponding to the suspected faulty power supply circuit will be updated to the current operating parameter curve corresponding to the suspected faulty power supply circuit. Remove the suspected fault marker from the suspected faulty power supply circuit.
[0013] In one embodiment, the step of performing maintenance inspections on the suspected faulty power supply circuit according to the maintenance strategy includes: If the operation and maintenance policy indicates that the backup hard drive can be enabled, and the hard drive system meets the data backup and migration conditions, the data in the hard drive system will be backed up and / or migrated to the backup hard drive; The data backup and migration conditions include at least one of the following: The hard disk system is in an idle state; The hard disk system is in an idle period.
[0014] In one embodiment, calculating the curve fluctuation value of the current operating parameter curve includes: Every second preset time interval, a third preset time interval of the operating parameter curve is extracted from the current operating parameter curve, and the first multi-dimensional parameter corresponding to the operating parameter curve is calculated to obtain a first multi-dimensional parameter set; wherein, the first multi-dimensional parameter includes at least one of the following: maximum current value, minimum current value, effective current value, average current value, and peak-to-peak current value; Calculate the average value of the parameters corresponding to the first multi-dimensional parameter set, and compare at least one first multi-dimensional parameter in the first multi-dimensional parameter set with the average value of the parameters to obtain the curve fluctuation value of the current running parameter curve.
[0015] In one embodiment, determining the curve difference value between the current operating parameter curve and the healthy operating parameter curve includes: Calculate the first multi-dimensional parameter corresponding to the current operating parameter curve; The first multi-dimensional parameter is compared with the second multi-dimensional parameter corresponding to the healthy operating parameter curve to obtain the curve difference value between the current operating parameter curve and the healthy operating parameter curve.
[0016] In one embodiment, after transferring the hot business data within the hard disk system to a spare hard disk, the method further includes: When the hard disk system is in normal working condition, the cold data in the hard disk system is transferred to the spare hard disk.
[0017] In one embodiment, the method further includes: Obtain the power operating parameters of the main power circuit connected to the hard disk system, wherein the main power circuit is used to supply power to the at least one power supply circuit; When the power operating parameters are not within the preset power operating parameter range, the main power backup circuit in the hard disk system is controlled to replace the main power circuit to supply power to the at least one power supply circuit. The business data within the hard disk system is stored in the storage medium within the hard disk system; After the main power backup circuit supplies power to the at least one power supply circuit and stores all business data in the hard disk system into the storage medium in the hard disk system, the branch power backup function is turned off. The branch power backup function is used to control the power backup circuit to supply power to the load corresponding to the faulty power supply circuit.
[0018] Thirdly, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method shown in any of the first aspects above.
[0019] Fourthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method shown in any of the first aspects above.
[0020] Fifthly, a computer program product is provided, including a computer program that, when executed by a processor, implements the method shown in any of the first aspects above.
[0021] In summary, the system, method, computer equipment, storage medium, and program product provided in this application, by setting up a backup power supply circuit in the hard disk system, when any power supply circuit in the hard disk system is detected to have abnormal current operating parameters and is thus marked as a faulty power supply circuit, configures the second output voltage value of the backup power supply circuit to the first output voltage value of the faulty power supply circuit. This controls the backup power supply circuit to replace the faulty power supply circuit in supplying power to the load corresponding to the faulty power supply circuit. Thus, in the event of a power supply circuit failure in the hard disk system, the hard disk system itself can provide a certain amount of power to transfer the hot business data in the hard disk system to the backup hard disk. The business corresponding to the hot business data can then continue to be processed through the backup hard disk, achieving on-site protection and ensuring the integrity and recoverability of critical data. Furthermore, it can achieve low user awareness of the fault, improving the user experience. Attached Figure Description
[0022] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is an application environment diagram of a hard disk power supply failure handling method in one embodiment; Figure 2 This is a schematic diagram of the hard disk system in one embodiment; Figure 3This is a flowchart illustrating a hard disk power supply failure handling method in one embodiment; Figure 4 This is a schematic diagram of the hard disk system in another embodiment; Figure 5 This is a schematic diagram of the hard disk system in yet another embodiment; Figure 6 This is a schematic diagram of the backup power output configuration regulation circuit in one embodiment; Figure 7 A schematic diagram of the backup power output configuration regulation circuit in another embodiment; Figure 8 This is a flowchart illustrating a hard disk power supply failure handling method in yet another embodiment; Figure 9 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0024] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0025] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0026] It's important to note that to support backup power capabilities, hard drives typically employ two methods: firstly, they monitor the main power supply status; secondly, they incorporate an energy storage capacitor within the hard drive's circuitry. When a main power failure is detected, the hard drive circuitry switches to supply power to the main power supply via the energy storage capacitor, completing the hard drive's backup power operation. This approach effectively preserves critical data and the current state of the system during a power failure.
[0027] However, each electronic component on a hard drive has its own power supply requirements. After the main power supply enters the hard drive, it generates power for each branch circuit through a power chip to meet the power supply requirements of different electronic components. The normal operation of each branch circuit is a prerequisite for the normal operation of the entire hard drive. However, currently, hard drive backup power only addresses scenarios where the main power supply fails, and there are no measures to handle failures of individual branch power supplies. This design makes it impossible to write critical data or perform on-site protection when a branch power supply fails. For example, during hard drive use, if the core power chip of the hard drive controller fails, causing a drop in core power output, the controller core will not function, thus preventing the hard drive from performing backup power operations.
[0028] The present application will now be described in detail with reference to specific embodiments.
[0029] The hard disk power supply failure handling method provided in this application can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices, and server 104 can be a standalone server or a server cluster consisting of multiple servers.
[0030] In one embodiment, a hard disk power supply failure handling method is provided, which is applied to... Figure 1 Taking a server as an example, the server contains a hard disk system, such as... Figure 2 As shown, the hard disk system includes at least one power supply circuit, at least one load, and a backup power supply circuit; wherein, at least one power supply circuit supplies power to at least one load, and the power supply circuit and the load correspond one-to-one.
[0031] For example, such as Figure 3 As shown, the method includes the following steps: Step S1: Obtain the current operating parameters of at least one power supply circuit within the hard disk system; Step S2: If any current operating parameter is within the range of faulty operating parameters, mark the power supply circuit corresponding to any current operating parameter as a faulty power supply circuit, and determine the first output voltage value of the faulty power supply circuit. Step S3: Set the second output voltage value of the backup power supply circuit in the hard disk system to the first output voltage value, and control the backup power supply circuit to replace the faulty power supply circuit to supply power to the load corresponding to the faulty power supply circuit. Step S4: Issue a fault message for the faulty power supply circuit and transfer the hot business data in the hard disk system to the backup hard disk so that the business corresponding to the hot business data can continue to be processed through the backup hard disk.
[0032] According to some embodiments, the hard disk system does not specifically refer to a particular fixed system. The hard disk system can be, for example, a solid state drive (SSD) system, where a solid state drive is a storage device that uses flash memory storage technology.
[0033] According to some embodiments, the current operating parameters refer to the relevant parameters of the power supply circuit during operation. These current operating parameters include, but are not limited to, voltage parameters, current parameters, etc.
[0034] In some embodiments, the fault operating parameter range refers to the range of operating parameters when the power supply circuit is in a fault state. This fault operating parameter range does not specifically refer to a fixed range; for example, the fault operating parameter range may also change when the business processed by the hard disk system changes. In addition, the fault operating parameter ranges corresponding to different power supply circuits may be the same or different.
[0035] For example, the load corresponding to a certain power supply circuit is a NAND controller. The NAND controller has requirements for the root mean square (RMS) value and peak-to-peak value of the voltage parameters of the power supply circuit. The fault operation parameter range corresponding to the power supply circuit can be set according to these requirements. If these requirements are not met, the power supply circuit is considered to have a serious fault.
[0036] The load's requirements for operating parameters can be obtained from the load's corresponding manual, or by collecting the voltage parameters of the power supply circuit over a period of time and then calculating the RMS value, peak-to-peak value, etc.
[0037] When setting the fault operation parameter range of the power supply circuit according to the above requirements, the set value can be the value required by the load, or the value required by the load can be appropriately tightened.
[0038] For example, if the peak-to-peak voltage of the load is required to reach 120mV, the fault operating parameter range corresponding to the peak-to-peak voltage of the power supply circuit can be set to less than 100mV.
[0039] According to some embodiments, the first output voltage value refers to the output voltage value of the faulty power supply circuit. The second output voltage value refers to the output voltage value of the power supply backup circuit. The terms "first" and "second" have no special meaning and are used only for distinction.
[0040] According to some embodiments, fault information is used to indicate a power supply circuit marked as a faulty power supply circuit.
[0041] According to some embodiments, "hot data" refers to data that is currently active, frequently accessed, or modified on the hard drive. Even if a power supply circuit fails and a backup power supply circuit is in use, the hard drive system can still operate normally. However, due to size limitations and cost considerations, it's not possible to have a backup power supply circuit for every power supply circuit. In other words, the hard drive system only has one backup power supply circuit. If other power supply circuits fail at this time, the hard drive system will be unable to function. Therefore, by transferring hot data from the hard drive system to the backup hard drive, the business currently being processed by the hard drive system can be immediately migrated, preventing data loss due to the hard drive system's inability to function.
[0042] In some embodiments, frequently accessed business data can be transferred to a backup hard drive in one go to reduce the risk of data loss.
[0043] In some embodiments, the priority of transferring hot business data can be increased to a higher priority than the priority of processing business. That is, the current business is paused first, and the current business is continued to be processed on the spare hard drive after the hot business data transfer is completed, so as to further reduce the risk of data loss.
[0044] In summary, the method provided in this embodiment, by setting up a backup power supply circuit in the hard disk system, when any power supply circuit in the hard disk system is detected to have abnormal current operating parameters and is thus marked as a faulty power supply circuit, configures the second output voltage value of the backup power supply circuit to the first output voltage value of the faulty power supply circuit. This controls the backup power supply circuit to replace the faulty power supply circuit in supplying power to the load corresponding to the faulty power supply circuit. Thus, in the event of a power supply circuit failure in the hard disk system, the hard disk system itself can provide a certain amount of power to transfer the hot business data in the hard disk system to the backup hard disk. The backup hard disk can then continue to process the business corresponding to the hot business data, achieving on-site protection and ensuring the integrity and recoverability of critical data. Furthermore, it can achieve low user awareness of the fault, improving the user experience.
[0045] The following describes and explains the hard disk power supply failure handling method provided in the embodiments of this application, with specific steps.
[0046] For example, after step S4, the method further includes: Step S5: While the hard disk system is in normal working condition, transfer the cold data in the hard disk system to the spare hard disk.
[0047] According to some implementations, cold data refers to historically completed data on a hard drive system that is not related to current business transactions. For example, in a banking scenario, cold data could be customer financial data related to previously completed transactions that are not related to current transactions.
[0048] In some embodiments, if a failure occurs in other power supply circuits during cold data transfer, causing the hard disk system to malfunction, the hard disk system can be restored through subsequent maintenance to maintain data integrity.
[0049] For example, after step S1, the method further includes: Step S6: Plot the current running parameter curve corresponding to the current running parameters; Step S7: Determine the current business scenario of the hard disk system and obtain the health operation parameter curves corresponding to at least one power supply circuit in the business scenario; Step S8: Every first preset time interval, determine the curve difference value between the current operating parameter curve and the healthy operating parameter curve; Step S9: If the curve difference value is greater than the curve difference threshold and the current operating parameter is not within the range of faulty operating parameters, mark the power supply circuit corresponding to the current operating parameter as a suspected faulty power supply circuit and perform suspected fault screening on the suspected faulty power supply circuit.
[0050] According to some embodiments, the voltage and current of a hard disk system fluctuate during operation, and the fluctuations can even differ depending on the specific business scenario. Therefore, during the functional testing of the hard disk system before it leaves the factory, different business processes can be controlled to run the system, and the voltage and current data under each business process can be recorded, plotted as curves, and stored. These curves can then be used as health operation parameter curves.
[0051] In some embodiments, operating parameters other than voltage and current parameters can also be recorded and plotted as curves as healthy operating parameter curves.
[0052] In some embodiments, the different services include, but are not limited to, sequential write, sequential read, random write, and random read.
[0053] According to some embodiments, the first preset duration does not specifically refer to a fixed duration. The first preset duration can be adjusted according to the actual application scenario. For example, the first preset duration can be 5 minutes.
[0054] In some embodiments, the current operating parameter curve may be, for example, a fluctuation curve of voltage or current data.
[0055] According to some embodiments, the curve difference value is used to indicate the degree of difference between the current operating parameter curve and the healthy operating parameter curve.
[0056] In some embodiments, the curve difference threshold does not specifically refer to a fixed threshold. The curve difference threshold could be, for example, ±5%.
[0057] It should be noted that if the current operating parameters of the power supply circuit are within the fault operating parameter range, it indicates that the power supply circuit is in a serious fault state. However, the power supply circuit may also be in a fault state even if the current operating parameters are not within the fault operating parameter range. Therefore, by executing steps S6 to S9, suspected faulty power supply circuits are first screened out, and then further suspected fault screening is performed on the suspected faulty power supply circuits to determine whether the suspected faulty power supply circuit is a normal power supply circuit or a faulty power supply circuit, which can improve the accuracy of power supply circuit fault detection.
[0058] For example, in step S8, the following sub-steps can be used to determine the curve difference value between the current operating parameter curve and the healthy operating parameter curve: Step S81: Calculate the first multi-dimensional parameter corresponding to the current running parameter curve; Step S82: Compare the first multi-dimensional parameter with the second multi-dimensional parameter corresponding to the healthy operating parameter curve to obtain the curve difference value between the current operating parameter curve and the healthy operating parameter curve.
[0059] According to some embodiments, multi-dimensional parameters, such as first multi-dimensional parameters or second multi-dimensional parameters, include, but are not limited to, maximum current, minimum current, effective current, average current, peak-to-peak current, maximum voltage, minimum voltage, effective voltage, average voltage, peak-to-peak voltage, etc.
[0060] In some embodiments, the first multidimensional parameter and the second multidimensional parameter of the same type are compared to obtain the difference value corresponding to each multidimensional parameter, and finally the average or weighted average of all difference values is used as the curve difference value.
[0061] It should be noted that by performing steps S81 to S82, calculating the curve difference value between the current operating parameter curve and the healthy operating parameter curve based on multi-dimensional parameters, the accuracy and reliability of the obtained curve difference value can be improved. Furthermore, this embodiment does not limit the specific method of step S8; other methods besides steps S81 to S82 can also be used to calculate the curve difference value.
[0062] For example, in step S9, the following sub-steps can be used to screen for suspected faults in the power supply circuit: Step S91: Continuously monitor the current operating parameter curve corresponding to the suspected faulty power supply circuit, and calculate the curve fluctuation value of the current operating parameter curve; Step S92: If the curve fluctuation value is greater than the first curve fluctuation threshold and the current operating parameters are not within the range of fault operating parameters, mark the suspected faulty power supply circuit in the operation and maintenance inspection information. Step S93: Conduct maintenance inspections on suspected faulty power supply circuits according to the maintenance strategy.
[0063] In some embodiments, the curve fluctuation value is used to indicate the trend of the current operating parameter curve. If the curve fluctuation value continues to increase, it indicates that the health status of the corresponding suspected faulty power supply circuit is continuously deteriorating, and the suspected faulty power supply circuit needs to be marked.
[0064] According to some embodiments, the first curve fluctuation threshold does not specifically refer to a fixed threshold; for example, the first curve fluctuation threshold can be 3%. If the curve fluctuation value is greater than the first curve fluctuation threshold, it indicates that the health status of the suspected faulty power supply circuit has deteriorated to the point where maintenance and inspection are required.
[0065] According to some implementations, when performing maintenance inspections on suspected faulty power supply circuits based on maintenance policies, data in the hard drive system can be backed up and / or migrated to the backup hard drive if the maintenance policy indicates that the backup hard drive can be used and the hard drive system meets the data backup and migration conditions. Therefore, if the health of a suspected faulty power supply circuit continues to deteriorate, causing the hard drive system to malfunction, the server can switch to the backup hard drive to continue processing business, thereby improving the user experience.
[0066] In some embodiments, data backup migration conditions include at least one of the following: The hard drive system is in an idle state; The hard drive system is in an idle period.
[0067] The idle state refers to the state when the server and hard disk system are not writing or reading data.
[0068] The idle time period refers to the time period when business is not busy, such as 2:00 AM.
[0069] In some embodiments, the data backup and migration conditions can also be preset conditions in the server. Data backup and / or migration are performed when the preset conditions are met. The preset conditions can be adjusted according to the actual application scenario.
[0070] In some embodiments, the hard disk system may initiate a data migration request and / or a data backup request, and the server responds to the data migration request and / or data backup request according to its own resources.
[0071] In some embodiments, when backing up and / or migrating data in the hard disk system to a spare hard disk, data can be migrated / backed up in small amounts multiple times, prioritizing non-business-related cold data to avoid consuming server resources during busy periods; business-related hot data can be transferred to the spare hard disk during idle periods, thereby ensuring that users are unaware of the data backup and / or migration process and improving the user experience.
[0072] Multiple small-scale data migrations / backups can reduce the time required for a single data migration / backup. If a data packet is 1GB in size, it will require a longer migration time. If the server suddenly has business to process at this time, it will affect the operation of that business. Therefore, the amount of data to be migrated / backed up each time can be less than the preset data amount, which can be, for example, 4KB.
[0073] When migrating / backing up data multiple times in small amounts, the migration / backup time can be discretely distributed to further improve the user experience.
[0074] It should be noted that by executing steps S81 to S83, using curve fluctuation values that reflect the changing trend of the current operating parameter curves to determine whether maintenance inspection of the suspected faulty power supply circuit is necessary can improve the accuracy and reliability of screening for suspected faulty power supply circuits. Furthermore, this embodiment does not limit the specific method of step S8; other methods besides steps S81 to S83 can also be used to screen for suspected faulty power supply circuits.
[0075] For example, after step S91, the method further includes: Step S94: If the curve fluctuation value is less than the second curve fluctuation threshold, update the healthy operating parameter curve corresponding to the suspected faulty power supply circuit to the current operating parameter curve corresponding to the suspected faulty power supply circuit. Step S95: Remove the suspected fault mark from the suspected faulty power supply circuit.
[0076] According to some embodiments, the first curve fluctuation threshold is not less than the second curve fluctuation threshold. The second curve fluctuation threshold can be, for example, 1%.
[0077] It should be noted that the factory-preset healthy operating parameter curve only reflects the operating status parameters of the hard drive system during the period of testing before leaving the factory. In actual application scenarios, the power supply circuit may undergo certain state changes due to the influence of external environmental factors such as temperature and humidity, and system power supply status. Therefore, if the curve fluctuation value is less than the second curve fluctuation threshold, the curve difference between the current operating parameter curve and the healthy operating parameter curve can be considered as a result of differences such as hard drive aging and changes in the external environment. Thus, by executing steps S94 to S95, the state change of the power supply circuit can be calibrated, the preset healthy operating parameter curve of the power supply circuit can be updated to the current operating parameter curve, and then the suspected fault markers of the power supply circuit can be cleared.
[0078] For example, in step S91, the curve fluctuation value of the current operating parameter curve can be calculated using the following sub-step: Step S911: Every second preset time interval, extract the operating parameter curve for the third preset time interval from the current operating parameter curve, and calculate the first multi-dimensional parameter corresponding to the operating parameter curve to obtain the first multi-dimensional parameter set; Step S912: Calculate the average value of the parameters corresponding to the first multi-dimensional parameter set, and compare at least one first multi-dimensional parameter in the first multi-dimensional parameter set with the average value of the parameters to obtain the curve fluctuation value of the current running parameter curve.
[0079] According to some embodiments, the second preset duration is not less than the third preset duration. For example, the second preset duration can be 1 hour, and the third preset duration can be 5 minutes.
[0080] In some embodiments, the second preset duration can be determined based on the frequency and duration of the current service running on the hard disk system.
[0081] According to some embodiments, when the number of parameters in the first multi-dimensional parameter set is greater than the parameter number threshold, or when the duration of the first multi-dimensional parameter set is greater than a fourth preset duration, the average value of the parameters can be calculated, thereby improving the accuracy and reliability of obtaining the curve fluctuation value.
[0082] In some embodiments, the parameter quantity threshold can be, for example, 24, and the fourth preset duration can be, for example, 24h.
[0083] According to some embodiments, when calculating the average value of parameters corresponding to the first multi-dimensional parameter set, the average value of parameters includes the average value of parameters corresponding to each first multi-dimensional parameter. For example, when the first multi-dimensional parameters include the maximum current value and the minimum current value, the average value of parameters includes the maximum average value of current and the minimum average value of current.
[0084] Subsequently, when comparing at least one first multi-dimensional parameter in the first multi-dimensional parameter set with the parameter average, each first multi-dimensional parameter is compared with its corresponding parameter average. For example, the maximum current value is compared with the maximum average current value, and the minimum current value is compared with the minimum average current value.
[0085] Finally, the average or weighted average of the comparison values corresponding to all the first multidimensional parameters can be taken to obtain the curve fluctuation value of the current operating parameter curve.
[0086] It should be noted that by performing steps S911 to S912 and comparing the differences between multiple first multi-dimensional parameters to determine the curve fluctuation value of the current operating parameter curve, the accuracy and reliability of obtaining the curve fluctuation value can be improved. Furthermore, this embodiment does not limit the specific method of step S91; other methods besides steps S911 to S912 can also be used to calculate the curve fluctuation value of the current operating parameter curve.
[0087] For example, after step S1, the method further includes: Step S10: Obtain the power operation parameters of the main power supply circuit connected to the hard disk system, wherein the main power supply circuit is used to supply power to at least one power supply circuit. Step S11: When the power operating parameters are not within the preset power operating parameter range, control the main power backup circuit in the hard disk system to replace the main power circuit to supply power to at least one power supply circuit. Step S12: Store the business data in the hard disk system into the storage medium in the hard disk system; Step S13: After the main power backup circuit supplies power to at least one power supply circuit and all business data in the hard disk system is stored in the storage medium in the hard disk system, the branch power backup function is turned off. The branch power backup function is used to control the power backup circuit to supply power to the load corresponding to the faulty power supply circuit.
[0088] According to some embodiments, the power supply operating parameters include, but are not limited to, current parameters, voltage parameters, etc.
[0089] According to some embodiments, the preset power supply operating parameter range does not specifically refer to a fixed range, and the preset power supply operating parameter range can be adjusted according to the actual application scenario.
[0090] According to some embodiments, business data includes, but is not limited to, hot data, cold data, cached data, etc.
[0091] It should be noted that by executing steps S10 to S13, when a drop in the main power circuit is detected, the system initiates a software-side backup power process, i.e., storage of business data, enabling functions such as critical data preservation and on-site protection. Simultaneously, it switches to the main power backup circuit to maintain the normal operation of the hard drive system. Furthermore, after completing the business data storage, disabling the branch power backup function reduces the possibility of the power supply circuit's current operating parameters falling within the fault operating parameter range due to insufficient power from the main power backup circuit's prolonged discharge time, thus preventing misjudgments of the power supply circuit's fault. Secondly, if the power supply circuit's current operating parameters fall within the fault operating parameter range during the business data storage process, steps S1 to S4 can continue to be executed.
[0092] It should be understood that although the steps in the above embodiments are numbered sequentially, these steps are not necessarily executed in the order indicated by the numbers. Unless explicitly stated in this application, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the above embodiments may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least a portion of the sub-steps or stages of other steps.
[0093] To implement the above embodiments, this application also proposes a hard disk system.
[0094] For example, Figure 4 This is a schematic diagram of the hard disk system in another embodiment. Figure 4 As shown, the hard disk system includes: at least one power supply circuit, at least one load, a power backup circuit, a branch power backup controller, and a hard disk controller. The power backup circuit includes a backup power output configuration adjustment circuit. The power supply circuit corresponds one-to-one with the load to supply power to the load; A branch power supply backup controller is used to acquire the current operating parameters of at least one power supply circuit. If any current operating parameter is within the range of fault operating parameters, the power supply circuit corresponding to any current operating parameter is marked as a fault power supply circuit, and the first output voltage value of the fault power supply circuit is determined. The branch power supply backup controller is also used to set the second output voltage value of the power supply backup circuit to the first output voltage value by controlling the backup power output configuration adjustment circuit, and to control the power supply backup circuit to replace the fault power supply circuit to supply power to the load corresponding to the fault power supply circuit. The branch power backup controller is also used to send fault information for a faulty power supply circuit to the hard disk controller. The hard disk controller is used to transfer hot business data in the hard disk system to a backup hard disk in response to receiving fault information, so that the backup hard disk can continue to process the business corresponding to the hot business data.
[0095] In one embodiment, such as Figure 4 As shown, the input terminal of the hard disk system is connected to the output terminal of the main power supply circuit, and the output terminal of the main power supply circuit is connected to the input terminal of at least one power supply circuit and the input terminal of a backup power supply circuit.
[0096] The power supply circuit includes a first switch, a branch power chip and a second switch connected in series. The backup power supply circuit includes a third switch, a branch backup power chip and a fourth switch set connected in series. The fourth switch set includes at least one fourth switch. The first end of each of the at least one fourth switch is connected to the output end of the branch backup power chip, and the second end of the fourth switch is connected to the output end of the power supply circuit. The branch power backup controller is connected to the control terminals of the first switch, the second switch, the third switch, and the fourth switch respectively. When the power supply circuit is marked as a faulty power supply circuit and the second output voltage value of the backup power supply circuit reaches the first output voltage value, the controller controls the first switch and the second switch in the faulty power supply circuit to be in the off state, and controls the third switch and the fourth switch connected to the output terminal of the faulty power supply circuit to be in the on state.
[0097] According to some embodiments, the branch power backup controller can detect the output status of each power supply circuit and the power backup circuit, and control the conduction or cutoff behavior of each switch, including but not limited to the first switch, the second switch, the third switch and the fourth switch, according to the corresponding status, so as to realize the branch power backup function.
[0098] In some embodiments, the branch power backup controller can communicate with the hard disk controller via a communication bus. The hard disk controller, as the core component of the hard disk system, can communicate with the host (server, etc.) and the storage medium, acting as a bridge for data interaction between the host and the storage medium.
[0099] In one embodiment, the branch power backup controller can be a microcontroller unit (MCU) or the like, and its power supply can be selected according to the design of the hard disk system. For example, it can be powered by an auxiliary power supply (AUX) or a main power supply circuit. The auxiliary power supply can be, for example, the power supplied by a certain power supply circuit.
[0100] In one embodiment, the input terminal of the hard disk system is connected to the output terminal of the main power supply circuit. The hard disk system also includes a main power backup circuit and a power switching circuit. The output terminal of the main power supply circuit is connected to the first input terminal of the power switching circuit, the output terminal of the main power backup circuit is connected to the second input terminal of the power switching circuit, and the output terminal of the power switching circuit is connected to the input terminal of at least one power supply circuit and the input terminal of the power backup circuit, respectively. The power switching circuit is used to obtain the power operating parameters of the main power circuit. When the power operating parameters are not within the preset power operating parameter range, it controls the main power backup circuit to replace the main power circuit to supply power to at least one power supply circuit. The hard disk controller is connected to the power switching circuit to obtain the power operating parameters of the main power circuit, and to store the business data in the hard disk system into the storage medium in the hard disk system when the power operating parameters are not within the preset power operating parameter range. The hard disk controller is also used to disable the branch power backup function of the branch power backup controller after the main power backup circuit supplies power to at least one power supply circuit and stores all business data in the hard disk system into the storage medium in the hard disk system. The branch power backup function is used to control the power backup circuit to supply power to the load corresponding to the faulty power supply circuit.
[0101] In one embodiment, the power switching circuit may employ a Power-Loss Protection (PLP) chip, a key electronic component designed for storage devices (especially enterprise-grade solid-state drives). Its core function is to provide a brief backup power supply to the hard drive system in the event of a sudden power outage or voltage anomaly, ensuring that data can be written completely and preventing data loss or damage.
[0102] When the main power circuit is in normal working condition, the PLP chip acts as a switch, allowing the main power circuit to supply power to the downstream power supply circuit. When the power operating parameters of the main power circuit are abnormal, the PLP chip can switch to a working mode and supply the power from the main power backup circuit to the downstream power supply circuit.
[0103] In one embodiment, the main power backup circuit may include a main power energy storage capacitor for storing the power required by the hard disk system when the main power is on standby.
[0104] The main power supply energy storage capacitor can be, for example, an aluminum electrolytic capacitor.
[0105] For the sake of simplicity, we will use two power supply circuits as an example to illustrate the specific implementation method. The design of multiple power supply circuits is consistent with the design of two power supply circuits in principle. Figure 5 This is a schematic diagram of the hard disk system in another embodiment, such as... Figure 5 As shown, the hard disk system includes two power supply circuits: power supply circuit A and power supply circuit B. Power supply circuit A includes a first switch A1, a branch power chip A11, and a second switch A2. Power supply circuit B includes a first switch B1, a branch power chip B11, and a second switch B2. The backup power supply circuit includes a branch backup power chip, a third switch, a fourth switch A3, and a fourth switch B3.
[0106] In some embodiments, the hard disk controller detects the power operating parameters of the main power circuit through the status detection signal line ①, and decides whether to protect critical data and save the data on-site.
[0107] In some embodiments, the hard disk host controller communicates via a communication bus. Enables data communication with the branch power backup controller, including but not limited to the synchronization of the main and branch backup power status and the synchronization of hardware anomaly information.
[0108] In some embodiments, the branch power backup controller obtains the current operating parameters of power supply circuit A through status detection signal line ③ and the current operating parameters of power supply circuit B through status detection signal line ⑧. When the branch power backup controller detects that the current operating parameters of a power supply circuit are abnormal through the status detection signal line, it enters the branch power backup process.
[0109] In some embodiments, the branch power supply backup controller can send first-level electronic switch control signals through control signal lines ② and ⑨ to realize the conduction and shutdown control of the first switch A1, the second switch A2, the first switch B1 and the second switch B2; the first switch and the second switch corresponding to different power supply circuits can be controlled separately, that is, control signal line ② controls the first switch A1 and the second switch A2, and control signal line ⑨ controls the first switch B1 and the second switch B2.
[0110] When the power supply circuit is in normal condition, it controls the corresponding first and second switches to be in the conducting state, thereby supplying power to the corresponding load. When the branch power backup controller detects that the current operating parameters of a power supply circuit are abnormal, the branch power backup controller can send a corresponding control signal to control the first and second switches in the faulty power supply circuit to be in the off state, thereby removing the branch power chip in the faulty power supply circuit.
[0111] In some embodiments, the branch power backup controller can send three-level electronic switch control signals via control signal lines ④ and ⑦ to control the conduction and shutdown of the fourth switch A3 and the fourth switch B3. The fourth switches corresponding to different power supply circuits can be controlled independently, that is, the fourth switch A3 is controlled via control signal line ④, and the fourth switch B3 is controlled via control signal line ⑦.
[0112] Specifically, when the power supply circuit is in normal condition, the fourth switch is controlled to be in the off state; when the branch power backup controller removes the branch power chip in the faulty power supply circuit and detects that the second output voltage value of the branch backup power chip has reached the first output voltage value, it controls the corresponding fourth switch to be in the on state, connects the power backup circuit to the corresponding branch, and provides normal power to the branch.
[0113] Among them, the branch power backup controller can determine whether the second output voltage value of the branch backup power chip has reached the first output voltage value through the control signal line ⑤.
[0114] In some embodiments, the branch power backup controller can send a secondary electronic switch control signal through the control signal line ⑩ to realize the conduction and shutdown control of the third switch.
[0115] When the power supply circuit is in normal condition, the third switch is controlled to be in the off state; when the branch power backup controller detects that the current operating parameters of a certain power supply circuit are abnormal, and the branch power backup controller has configured the second output voltage value of the branch backup power chip to the first output voltage value, the third switch is controlled to be in the on state so that the branch backup power chip can start working.
[0116] In some embodiments, the branch power backup controller can control the backup power output configuration adjustment circuit through the control signal line ⑥ to configure the second output voltage value of the branch backup power chip as the first output voltage value, thereby enabling the power supply backup circuit to have the ability to output multiple branch power supplies.
[0117] For example, when power supply circuit A is a fault power supply circuit, the branch power backup controller can configure the second output voltage value of the branch backup power chip to the output voltage value corresponding to power supply circuit A.
[0118] In one embodiment, Figure 6 This is a schematic diagram of the backup power output configuration regulation circuit in one embodiment. For example... Figure 6 As shown, the backup power output configuration adjustment circuit includes a first adjustable resistor circuit and a second adjustable resistor circuit. The first end of the first adjustable resistor circuit is connected to the output end of the branch backup power chip and the first end of the fourth switch, respectively. The connection point between the second end of the first adjustable resistor circuit and the first end of the second adjustable resistor circuit is connected to the feedback input terminal FB of the branch backup power chip. The second end of the second adjustable resistor circuit is grounded.
[0119] The branch power backup controller is connected to the control terminals of the first adjustable resistor circuit and the second adjustable resistor circuit respectively, and is used to adjust the first resistance value of the first adjustable resistor circuit and the second resistance value of the second adjustable resistor circuit so as to set the second output voltage value of the power backup circuit to the first output voltage value.
[0120] In some embodiments, when the power chip output Vout of the branch backup power supply chip passes through the feedback voltage divider formed by the first and second adjustable resistor circuits, the feedback voltage formed by the voltage divider can be connected to the feedback input terminal FB of the branch backup power supply chip. This feedback voltage is then compared with the reference voltage Vref of the branch backup power supply chip, and the comparison result is used for the internal logic control of the branch backup power supply chip, thereby achieving negative feedback control of the power chip output Vout. Therefore, by configuring the resistance values of the first and second adjustable resistor circuits, the power chip output Vout of the branch backup power supply chip can be changed.
[0121] In some embodiments, the power chip output Vout can be calculated according to the following formula: Vout = Vref * (1 + R1 / R2); Where R1 is the resistance value of the first adjustable resistor circuit, and R2 is the resistance value of the second adjustable resistor circuit.
[0122] In one embodiment, both the first adjustable resistor circuit and the second adjustable resistor circuit include a first resistor branch and at least one second resistor branch, the first resistor branch and at least one second resistor branch are connected in parallel, the first resistor branch includes a first resistor, and the second resistor branch includes a second resistor and a fifth switch connected in series. The branch power supply backup controller is connected to the control terminal of the fifth switch and is used to determine the first number of times the fifth switch in the first adjustable resistor circuit and the second number of times the fifth switch in the second adjustable resistor circuit is turned on according to the first output voltage value. The controller adjusts the switching state of the fifth switch in the first adjustable resistor circuit according to the first number of times the fifth switch is turned on and adjusts the switching state of the fifth switch in the second adjustable resistor circuit according to the second number of times the fifth switch is turned on, so that the second output voltage value of the power supply backup circuit reaches the first output voltage value.
[0123] For the sake of simplicity, we will use a single second resistor branch as an example to illustrate the specific implementation method. The design of multiple second resistor branches is consistent with the design of a single second resistor branch in principle. Figure 7 A schematic diagram of the backup power output regulation circuit in another embodiment is shown, as follows. Figure 7 As shown, the first adjustable resistor circuit includes a first resistor Ra, a second resistor Rb, and a fifth switch 1, and the second adjustable resistor circuit includes a first resistor Rc, a second resistor Rd, and a fifth switch 2.
[0124] In some embodiments, the branch power backup controller controls the opening or closing of the fifth switch 1 by sending a power output configuration signal 1, and controls the opening or closing of the fifth switch 2 by sending a power output configuration signal 2, thereby realizing the change of the power chip output Vout. The relevant configuration is shown in Table 1.
[0125] Table 1
[0126] As can be seen from Table 1, Figure 7 The two power output configuration signals, two fifth switches, and four resistors (Ra / Rb / Rc / Rd) in the circuit allow the backup power chip in the branch to output four different voltages via the power output configuration signals. The specific second resistor branch, i.e., the number of fifth switches and configuration signals used, can be determined based on the actual power supply circuit of the hard drive. For example... Figure 5 If there are two power supply circuits, then only one second resistor branch is needed.
[0127] In one embodiment, the switches used in the hard disk system, including but not limited to a first switch, a second switch, a third switch, a fourth switch, and a fifth switch, can be electronic switches. The electronic switches can realize their conduction and shutdown operations according to the "high" and "low" levels of the switch control signals input to their control terminals.
[0128] Among them, electronic switches come in various specifications, and different current carrying capacity or response time electronic switches can be selected according to application requirements; for example, the electronic switch can be a switch built with metal oxide semiconductor (MOS) field effect transistors, or it can be a dedicated load switch chip.
[0129] For example, the following describes and explains the process of the hard disk system executing the hard disk power failure handling method provided in this application embodiment, combined with a specific application scenario. The hard disk power failure handling process of this hard disk system is divided into two scenarios: power supply circuit backup power and main power supply backup power.
[0130] In some embodiments, Figure 8 This is a flowchart illustrating a hard disk power supply failure handling method in yet another embodiment. For example... Figure 8As shown, in a backup power scenario, when the branch power backup controller detects an anomaly in a power supply circuit, it synchronizes the fault status of the power supply circuit to the hard drive controller, which then initiates the software-side backup power process, including critical data saving and field protection. Simultaneously, the branch power backup controller controls the first and second switches in the faulty power supply circuit to be in the off state, removing the faulty branch power chip. Next, it configures the second output voltage value of the backup power circuit to the first output voltage value, controls the third switch to be in the conducting state, and performs output detection on the branch backup power chip until its output reaches the first output voltage value. Then, it controls the fourth switch corresponding to the faulty power supply circuit to be in the conducting state, thereby connecting the branch backup power chip to the corresponding branch power supply and restoring branch power supply. After completing the software-side backup power process, the fault information is reported to the host, and the branch power backup ends.
[0131] In some embodiments, for main power backup scenarios, when the PLP chip detects a drop in the main power circuit, it synchronizes the main power circuit drop status to the hard drive controller, which then initiates the software-side backup power process, including critical data saving and field protection. Simultaneously, the PLP chip switches to main power storage capacitor power supply to maintain hard drive system operation. After completing the software-side backup power process, the hard drive controller notifies the branch power backup controller to disable the branch power backup function to prevent branch power supply failures caused by the main power storage capacitor discharging. If the hard drive controller has not yet completed the software-side backup power process during main power backup, and a power supply backup scenario occurs, the handling method is the same as for the branch power backup scenario described above.
[0132] The software-based backup power process can cover a variety of common scenarios during hard drive use, such as hot-swapping and branch power failure. It can effectively protect the integrity of data and the field in the event of a hard drive power drop. For specific limitations, please refer to the limitations of steps S1 to S13 and their sub-steps above, which will not be repeated here.
[0133] For specific limitations regarding the hard disk system, please refer to the limitations on hard disk power supply failure handling methods mentioned above, which will not be repeated here. Each module in the aforementioned hard disk system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware within or independently of the processor in the computer device, or stored in software within the computer device's memory, so that the processor can call and execute the corresponding operations of each module.
[0134] To implement the above embodiments, this application also provides a computer device, which may be a server, and its internal structure diagram may be as follows. Figure 9As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores hard disk power failure handling data. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a hard disk power failure handling method.
[0135] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0136] To implement the above embodiments, this application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the following steps: Obtain the current operating parameters of at least one power supply circuit in the hard disk system, wherein at least one power supply circuit supplies power to at least one load in the hard disk system, and there is a one-to-one correspondence between the power supply circuit and the load; If any current operating parameter is within the range of faulty operating parameters, mark the power supply circuit corresponding to any current operating parameter as a faulty power supply circuit and determine the first output voltage value of the faulty power supply circuit. Set the second output voltage value of the backup power supply circuit in the hard disk system to the first output voltage value, and control the backup power supply circuit to replace the faulty power supply circuit to supply power to the load corresponding to the faulty power supply circuit. It issues a fault message for the faulty power supply circuit and transfers the hot business data in the hard disk system to the backup hard disk so that the business corresponding to the hot business data can continue to be processed through the backup hard disk.
[0137] In one embodiment, the processor, when executing a computer program, also performs the following steps: After obtaining the current operating parameters of at least one power supply circuit in the hard disk system, the current operating parameter curve corresponding to the current operating parameters is plotted; the current business scenario of the hard disk system is determined, and the healthy operating parameter curve corresponding to at least one power supply circuit in the business scenario is obtained; every first preset time interval, the curve difference value between the current operating parameter curve and the healthy operating parameter curve is determined; if the curve difference value is greater than the curve difference threshold, and the current operating parameters are not within the range of faulty operating parameters, the power supply circuit corresponding to the current operating parameters is marked as a suspected faulty power supply circuit, and suspected faulty power supply circuits are screened for suspected faults.
[0138] In one embodiment, the processor, when executing a computer program, also performs the following steps: When screening suspected faulty power supply circuits: continuously monitor the current operating parameter curves corresponding to the suspected faulty power supply circuits and calculate the curve fluctuation value of the current operating parameter curves; if the curve fluctuation value is greater than the first curve fluctuation threshold and the current operating parameters are not within the range of faulty operating parameters, mark the suspected faulty power supply circuits in the operation and maintenance inspection information; and conduct operation and maintenance inspections on the suspected faulty power supply circuits according to the operation and maintenance strategy.
[0139] In one embodiment, the processor, when executing a computer program, also performs the following steps: After calculating the curve fluctuation value of the current operating parameter curve, if the curve fluctuation value is less than the second curve fluctuation threshold, the healthy operating parameter curve corresponding to the suspected faulty power supply circuit is updated to the current operating parameter curve corresponding to the suspected faulty power supply circuit; the suspected fault mark of the suspected faulty power supply circuit is removed.
[0140] In one embodiment, the processor, when executing a computer program, also performs the following steps: When performing maintenance inspections on suspected faulty power supply circuits according to the maintenance policy, if the maintenance policy indicates that the backup hard drive can be used and the hard drive system meets the data backup and migration conditions, the data in the hard drive system will be backed up and / or migrated to the backup hard drive. The data backup and migration conditions include at least one of the following: The hard drive system is in an idle state; The hard drive system is in an idle period.
[0141] In one embodiment, the processor, when executing a computer program, also performs the following steps: When calculating the curve fluctuation value of the current operating parameter curve, every second preset time interval, the operating parameter curve for a third preset time interval is extracted from the current operating parameter curve, and the first multi-dimensional parameter corresponding to the operating parameter curve is calculated to obtain the first multi-dimensional parameter set; wherein, the first multi-dimensional parameter includes at least one of the following: maximum current value, minimum current value, effective current value, average current value, and peak-to-peak current value; the average value of the parameter corresponding to the first multi-dimensional parameter set is calculated, and at least one first multi-dimensional parameter in the first multi-dimensional parameter set is compared with the average value of the parameter to obtain the curve fluctuation value of the current operating parameter curve.
[0142] In one embodiment, the processor, when executing a computer program, also performs the following steps: When determining the curve difference between the current operating parameter curve and the healthy operating parameter curve, the first multi-dimensional parameter corresponding to the current operating parameter curve is calculated; the first multi-dimensional parameter is compared with the second multi-dimensional parameter corresponding to the healthy operating parameter curve to obtain the curve difference between the current operating parameter curve and the healthy operating parameter curve.
[0143] In one embodiment, the processor, when executing a computer program, also performs the following steps: After transferring the hot data in the hard drive system to the backup hard drive, and while the hard drive system is in normal working condition, the cold data in the hard drive system is transferred to the backup hard drive.
[0144] In one embodiment, the processor, when executing a computer program, also performs the following steps: The system acquires the power operating parameters of the main power circuit connected to the hard disk system, wherein the main power circuit supplies power to at least one power supply circuit; if the power operating parameters are not within the preset range, it controls the main power backup circuit within the hard disk system to replace the main power circuit in supplying power to at least one power supply circuit; it stores the business data within the hard disk system into the storage medium within the hard disk system; after the main power backup circuit supplies power to at least one power supply circuit and all business data within the hard disk system is stored into the storage medium within the hard disk system, it shuts down the branch power backup function, wherein the branch power backup function controls the power backup circuit to supply power to the load corresponding to the failed power supply circuit.
[0145] To implement the above embodiments, this application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the following steps: Obtain the current operating parameters of at least one power supply circuit in the hard disk system, wherein at least one power supply circuit supplies power to at least one load in the hard disk system, and there is a one-to-one correspondence between the power supply circuit and the load; If any current operating parameter is within the range of faulty operating parameters, mark the power supply circuit corresponding to any current operating parameter as a faulty power supply circuit and determine the first output voltage value of the faulty power supply circuit. Set the second output voltage value of the backup power supply circuit in the hard disk system to the first output voltage value, and control the backup power supply circuit to replace the faulty power supply circuit to supply power to the load corresponding to the faulty power supply circuit. It issues a fault message for the faulty power supply circuit and transfers the hot business data in the hard disk system to the backup hard disk so that the business corresponding to the hot business data can continue to be processed through the backup hard disk.
[0146] In one embodiment, when the computer program is executed by a processor, it also performs the following steps: After obtaining the current operating parameters of at least one power supply circuit in the hard disk system, the current operating parameter curve corresponding to the current operating parameters is plotted; the current business scenario of the hard disk system is determined, and the healthy operating parameter curve corresponding to at least one power supply circuit in the business scenario is obtained; every first preset time interval, the curve difference value between the current operating parameter curve and the healthy operating parameter curve is determined; if the curve difference value is greater than the curve difference threshold, and the current operating parameters are not within the range of faulty operating parameters, the power supply circuit corresponding to the current operating parameters is marked as a suspected faulty power supply circuit, and suspected faulty power supply circuits are screened for suspected faults.
[0147] In one embodiment, when the computer program is executed by a processor, it also performs the following steps: When screening suspected faulty power supply circuits: continuously monitor the current operating parameter curves corresponding to the suspected faulty power supply circuits and calculate the curve fluctuation value of the current operating parameter curves; if the curve fluctuation value is greater than the first curve fluctuation threshold and the current operating parameters are not within the range of faulty operating parameters, mark the suspected faulty power supply circuits in the operation and maintenance inspection information; and conduct operation and maintenance inspections on the suspected faulty power supply circuits according to the operation and maintenance strategy.
[0148] In one embodiment, when the computer program is executed by a processor, it also performs the following steps: After calculating the curve fluctuation value of the current operating parameter curve, if the curve fluctuation value is less than the second curve fluctuation threshold, the healthy operating parameter curve corresponding to the suspected faulty power supply circuit is updated to the current operating parameter curve corresponding to the suspected faulty power supply circuit; the suspected fault mark of the suspected faulty power supply circuit is removed.
[0149] In one embodiment, when the computer program is executed by a processor, it also performs the following steps: When performing maintenance inspections on suspected faulty power supply circuits according to the maintenance policy, if the maintenance policy indicates that the backup hard drive can be used and the hard drive system meets the data backup and migration conditions, the data in the hard drive system will be backed up and / or migrated to the backup hard drive. The data backup and migration conditions include at least one of the following: The hard drive system is in an idle state; The hard drive system is in an idle period.
[0150] In one embodiment, when the computer program is executed by a processor, it also performs the following steps: When calculating the curve fluctuation value of the current operating parameter curve, every second preset time interval, the operating parameter curve for a third preset time interval is extracted from the current operating parameter curve, and the first multi-dimensional parameter corresponding to the operating parameter curve is calculated to obtain the first multi-dimensional parameter set; wherein, the first multi-dimensional parameter includes at least one of the following: maximum current value, minimum current value, effective current value, average current value, and peak-to-peak current value; the average value of the parameter corresponding to the first multi-dimensional parameter set is calculated, and at least one first multi-dimensional parameter in the first multi-dimensional parameter set is compared with the average value of the parameter to obtain the curve fluctuation value of the current operating parameter curve.
[0151] In one embodiment, when the computer program is executed by a processor, it also performs the following steps: When determining the curve difference between the current operating parameter curve and the healthy operating parameter curve, the first multi-dimensional parameter corresponding to the current operating parameter curve is calculated; the first multi-dimensional parameter is compared with the second multi-dimensional parameter corresponding to the healthy operating parameter curve to obtain the curve difference between the current operating parameter curve and the healthy operating parameter curve.
[0152] In one embodiment, when the computer program is executed by a processor, it also performs the following steps: After transferring the hot data in the hard drive system to the backup hard drive, and while the hard drive system is in normal working condition, the cold data in the hard drive system is transferred to the backup hard drive.
[0153] In one embodiment, when the computer program is executed by a processor, it also performs the following steps: The system acquires the power operating parameters of the main power circuit connected to the hard disk system, wherein the main power circuit supplies power to at least one power supply circuit; if the power operating parameters are not within the preset range, it controls the main power backup circuit within the hard disk system to replace the main power circuit in supplying power to at least one power supply circuit; it stores the business data within the hard disk system into the storage medium within the hard disk system; after the main power backup circuit supplies power to at least one power supply circuit and all business data within the hard disk system is stored into the storage medium within the hard disk system, it shuts down the branch power backup function, wherein the branch power backup function controls the power backup circuit to supply power to the load corresponding to the failed power supply circuit.
[0154] To implement the above embodiments, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the methods provided in the foregoing embodiments.
[0155] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods.
[0156] Any references to memory, storage, database, or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable read-only memory (PROM), electrically programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, random access memory is available in a variety of forms, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), sync link dynamic random access memory (SLDRAM), Rambus dynamic random access memory (RDRAM), and direct Rambus dynamic random access memory (DRDRAM).
[0157] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0158] The embodiments described above are merely examples of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application.
Claims
1. A hard disk system, characterized by comprising: include: The system includes at least one power supply circuit, at least one load, a backup power supply circuit, a branch power backup controller, and a hard disk controller, wherein the backup power supply circuit includes a backup power output configuration adjustment circuit; wherein... The power supply circuit corresponds one-to-one with the load to supply power to the load; The branch power backup controller is used to obtain the current operating parameters of the at least one power supply circuit, and when any current operating parameter is within the range of fault operating parameters, mark the power supply circuit corresponding to the current operating parameter as a fault power supply circuit, and determine the first output voltage value of the fault power supply circuit. The branch power backup controller is also used to set the second output voltage value of the power supply backup circuit to the first output voltage value by controlling the backup output configuration adjustment circuit, and to control the power supply backup circuit to replace the fault power supply circuit to supply power to the load corresponding to the fault power supply circuit. The branch power backup controller is also used to send fault information for the faulty power supply circuit to the hard disk controller, wherein the fault information is used to indicate the power supply circuit marked as a faulty power supply circuit. The hard disk controller is used to transfer the hot business data in the hard disk system to a backup hard disk in response to receiving the fault information, so that the business corresponding to the hot business data can continue to be processed through the backup hard disk. The power supply circuit includes a first switch, a branch power chip, and a second switch connected in series. The backup power supply circuit includes a third switch, a branch backup power chip, and a fourth switch set connected in series. The fourth switch set includes at least one fourth switch. The first end of each of the at least one fourth switch is connected to the output end of the branch backup power chip, and the second end of the fourth switch is connected to the output end of the power supply circuit. The backup power output configuration adjustment circuit includes a first adjustable resistor circuit and a second adjustable resistor circuit. The first end of the first adjustable resistor circuit is connected to the output end of the branch backup power chip and the first end of the fourth switch, respectively. The connection point between the second end of the first adjustable resistor circuit and the first end of the second adjustable resistor circuit is connected to the feedback input end of the branch backup power chip. The second end of the second adjustable resistor circuit is grounded. The branch power backup controller is connected to the control terminals of the first adjustable resistor circuit and the second adjustable resistor circuit respectively, and is used to adjust the first resistance value of the first adjustable resistor circuit and the second resistance value of the second adjustable resistor circuit, so as to set the second output voltage value of the power backup circuit to the first output voltage value.
2. The system of claim 1, wherein, The input terminal of the hard disk system is connected to the output terminal of the main power supply circuit, and the output terminal of the main power supply circuit is connected to the input terminal of the at least one power supply circuit and the input terminal of the backup power supply circuit. The branch power backup controller is connected to the control terminals of the first switch, the second switch, the third switch, and the fourth switch respectively. It is used to control the first switch and the second switch in the faulty power supply circuit to be in the off state and control the third switch and the fourth switch connected to the output terminal of the faulty power supply circuit to be in the on state when the power supply circuit is marked as a faulty power supply circuit and the second output voltage value of the power backup circuit reaches the first output voltage value.
3. The system of claim 2, wherein, Both the first adjustable resistor circuit and the second adjustable resistor circuit include a first resistor branch and at least one second resistor branch. The first resistor branch and the at least one second resistor branch are connected in parallel. The first resistor branch includes a first resistor, and the second resistor branch includes a second resistor and a fifth switch connected in series. The branch power backup controller is connected to the control terminal of the fifth switch and is used to determine the first number of times the fifth switch in the first adjustable resistor circuit and the second number of times the fifth switch in the second adjustable resistor circuit is turned on according to the first output voltage value. The controller adjusts the switching state of the fifth switch in the first adjustable resistor circuit according to the first number of times the fifth switch is turned on and adjusts the switching state of the fifth switch in the second adjustable resistor circuit according to the second number of times the fifth switch is turned on, so that the second output voltage value of the backup power supply circuit in the hard disk system reaches the first output voltage value.
4. The system of any one of claims 1 to 3, wherein, The input terminal of the hard disk system is connected to the output terminal of the main power supply circuit. The hard disk system also includes a main power backup circuit and a power switching circuit. The output terminal of the main power supply circuit is connected to the first input terminal of the power switching circuit. The output terminal of the main power backup circuit is connected to the second input terminal of the power switching circuit. The output terminal of the power switching circuit is connected to the input terminal of the at least one power supply circuit and the input terminal of the power backup circuit, respectively. The power switching circuit is used to obtain the power operating parameters of the main power circuit, and when the power operating parameters are not within the preset power operating parameter range, control the main power backup circuit to replace the main power circuit to supply power to the at least one power supply circuit. The hard disk controller is connected to the power switching circuit and is used to obtain the power operation parameters of the main power circuit. When the power operation parameters are not within the preset power operation parameter range, the business data in the hard disk system is stored in the storage medium in the hard disk system. The hard disk controller is further configured to disable the branch power backup function of the branch power backup controller after the main power backup circuit supplies power to the at least one power supply circuit and stores all business data in the hard disk system into the storage medium in the hard disk system. The branch power backup function is used to control the power backup circuit to supply power to the load corresponding to the faulty power supply circuit.
5. A method for handling a power failure of a hard disk, applicable to the hard disk system of any one of claims 1 to 4, characterized in that, The method includes: Obtain the current operating parameters of at least one power supply circuit in the hard disk system, wherein the at least one power supply circuit supplies power to at least one load in the hard disk system, and the power supply circuit corresponds one-to-one with the load; If any current operating parameter is within the range of faulty operating parameters, the power supply circuit corresponding to the current operating parameter is marked as a faulty power supply circuit, and the first output voltage value of the faulty power supply circuit is determined. Set the second output voltage value of the power supply backup circuit in the hard disk system to the first output voltage value, and control the power supply backup circuit to replace the faulty power supply circuit to supply power to the load corresponding to the faulty power supply circuit; A fault message is issued for the faulty power supply circuit, and the hot service data in the hard disk system is transferred to the backup hard disk so that the service corresponding to the hot service data can continue to be processed through the backup hard disk.
6. The method of claim 5, wherein, After obtaining the current operating parameters of at least one power supply circuit within the hard disk system, the method further includes: Plot the current operating parameter curve corresponding to the current operating parameters; Determine the current business scenario of the hard disk system and obtain the health operation parameter curve of at least one of the power supply circuits under the business scenario; Every first preset time interval, the curve difference value between the current operating parameter curve and the healthy operating parameter curve is determined; If the curve difference value is greater than the curve difference threshold and the current operating parameter is not within the range of faulty operating parameters, the power supply circuit corresponding to the current operating parameter is marked as a suspected faulty power supply circuit, and the suspected faulty power supply circuit is screened for suspected faults.
7. The method of claim 6, wherein, The suspected fault screening of the power supply circuit includes: Continuously monitor the current operating parameter curve corresponding to the suspected faulty power supply circuit, and calculate the curve fluctuation value of the current operating parameter curve; If the curve fluctuation value is greater than the first curve fluctuation threshold and the current operating parameters are not within the range of faulty operating parameters, the suspected faulty power supply circuit is marked in the operation and maintenance inspection information. The suspected faulty power supply circuit was inspected and maintained according to the operation and maintenance strategy.
8. The method of claim 7, wherein, After calculating the curve fluctuation value of the current operating parameter curve, the method further includes: If the curve fluctuation value is less than the second curve fluctuation threshold, the healthy operating parameter curve corresponding to the suspected faulty power supply circuit will be updated to the current operating parameter curve corresponding to the suspected faulty power supply circuit. Remove the suspected fault marker from the suspected faulty power supply circuit.
9. The method according to claim 7 or 8, characterized in that, The maintenance inspection of the suspected faulty power supply circuit according to the maintenance strategy includes: If the operation and maintenance policy indicates that the backup hard drive can be enabled, and the hard drive system meets the data backup and migration conditions, the data in the hard drive system will be backed up and / or migrated to the backup hard drive; The data backup and migration conditions include at least one of the following: The hard disk system is in an idle state; The hard disk system is in an idle period.
10. The method of claim 7, wherein, The calculation of the curve fluctuation value of the current operating parameter curve includes: Every second preset time interval, a third preset time interval of the operating parameter curve is extracted from the current operating parameter curve, and the first multi-dimensional parameter corresponding to the operating parameter curve is calculated to obtain a first multi-dimensional parameter set; wherein, the first multi-dimensional parameter includes at least one of the following: maximum current value, minimum current value, effective current value, average current value, and peak-to-peak current value; Calculate the average value of the parameters corresponding to the first multi-dimensional parameter set, and compare at least one first multi-dimensional parameter in the first multi-dimensional parameter set with the average value of the parameters to obtain the curve fluctuation value of the current running parameter curve.
11. The method of claim 6, wherein, Determining the curve difference between the current operating parameter curve and the healthy operating parameter curve includes: Calculate the first multi-dimensional parameter corresponding to the current operating parameter curve; The first multi-dimensional parameter is compared with the second multi-dimensional parameter corresponding to the healthy operating parameter curve to obtain the curve difference value between the current operating parameter curve and the healthy operating parameter curve.
12. The method of claim 5, wherein, After transferring the frequently accessed business data from the hard disk system to the spare hard disk, the method further includes: When the hard disk system is in normal working condition, the cold data in the hard disk system is transferred to the spare hard disk.
13. The method of claim 5, wherein, The method further includes: Obtain the power operating parameters of the main power supply circuit connected to the hard disk system, wherein the main power supply circuit is used to supply power to the at least one power supply circuit; When the power operating parameters are not within the preset power operating parameter range, the main power backup circuit in the hard disk system is controlled to replace the main power circuit to supply power to the at least one power supply circuit. The business data within the hard disk system is stored in the storage medium within the hard disk system; After the main power backup circuit supplies power to the at least one power supply circuit and stores all business data in the hard disk system into the storage medium in the hard disk system, the branch power backup function is turned off. The branch power backup function is used to control the power backup circuit to supply power to the load corresponding to the faulty power supply circuit.
14. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 5 to 13.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 5 to 13.
Citation Information
Patent Citations
Power supply control method, equipment and device, storage medium and electronic device
CN116301278A