CN111090324A - Method, equipment and medium for off-peak power-up of server hard disk - Google Patents

Method, equipment and medium for off-peak power-up of server hard disk Download PDF

Info

Publication number
CN111090324A
CN111090324A CN201911090092.6A CN201911090092A CN111090324A CN 111090324 A CN111090324 A CN 111090324A CN 201911090092 A CN201911090092 A CN 201911090092A CN 111090324 A CN111090324 A CN 111090324A
Authority
CN
China
Prior art keywords
hard disk
electrified
power
data
blocks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911090092.6A
Other languages
Chinese (zh)
Other versions
CN111090324B (en
Inventor
翟振辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201911090092.6A priority Critical patent/CN111090324B/en
Publication of CN111090324A publication Critical patent/CN111090324A/en
Priority to PCT/CN2020/104010 priority patent/WO2021088425A1/en
Application granted granted Critical
Publication of CN111090324B publication Critical patent/CN111090324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations

Abstract

The invention discloses a method, a device and a medium for off-peak power-up of a server hard disk, wherein the method comprises the following steps: setting the total number of the hard disk blocks electrified in each group and the time interval between the two groups of electrified hard disk blocks; judging whether the set total number of hard disk blocks is effective or not; responding to the fact that the set total hard disk block number is effective, calculating the number of all electrified hard disk rows and the number of non-all electrified hard disk rows based on the total hard disk block number, and setting corresponding first electrified data based on the number of all electrified hard disk rows; judging whether the number of the non-all electrified hard disk lines is one or not; responding to the number of the non-fully-powered hard disk lines as one, and calculating second powered-on data corresponding to the number of the non-fully-powered hard disk lines; powering on the corresponding hard disk based on the first power-on data and the second power-on data; and in response to reaching the time interval between powering up the two sets, powering up the next set of hard disks. The scheme provided by the invention can enable the server to be started with low power consumption, reduce the impact on the power supply during power-on and ensure the stability of the power supply module of the server.

Description

Method, equipment and medium for off-peak power-up of server hard disk
Technical Field
The present invention relates to the field of servers, and in particular, to a method, an apparatus, and a readable medium for off-peak power-up of a server hard disk.
Background
The BMC (Baseboard Management Controller) is a specific Management Controller of the server, and the BMC may automatically monitor the operation state of the server and timely regulate and control the operation state according to the current state, wherein one of the main functions is to regulate and control other module devices through I2C (Inter-Integrated Circuit) bus communication. With the development and progress of server technology, some servers will have tens of large-capacity hard disks for storing a large amount of data, and the power consumption of each hard disk is generally about 12 watts, so that it can be seen that in a data storage server, the power consumption of the hard disk accounts for a large proportion of the power consumption of the whole server. When the server is powered on and started, if all the hard disks are powered on simultaneously, and the power supply has the problem of surge current, the power-on instantaneous current is too large, impact can be brought to power supply equipment, and even potential safety hazards can be caused.
Because the data storage server is provided with a large number of hard disks, and the hard disks are respectively designed on different hard disk backboards, a plurality of hard disk backboards exist. The hard disk power management on different hard disk backplanes is generally controlled by corresponding CPLDs (Complex Programmable Logic devices). Since different CPLDs may be on different I2C buses, and each register controlling power on/off of a hard disk in different CPLDs controls power on/off of a hard disk in different slots, when controlling power on/off of one or some hard disks, it is necessary to perform a correspondence through complex calculation, and then write the calculated data into the corresponding register in the corresponding CPLD using the I2c-test tool. The manual calculation and resetting process is complex and tedious, and errors are easy to occur to cause the failure of setting the hard disk to power on and power off.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, an apparatus, and a medium for off-peak power-up of a hard disk of a server, where the off-peak power-up of the hard disk is calculated according to a condition that a CPLD on a hard disk backplane controls power-up and power-down of the hard disk, so that off-peak power-up of the hard disk is realized, impact on a power supply caused by power-up and power-up of the server is reduced, stability of power supply output when the server is powered-up and power-up is ensured, and a function of setting a data.
Based on the above object, an aspect of the embodiments of the present invention provides a method for off-peak power-up of a server hard disk, including the following steps: setting the total number of the hard disk blocks electrified in each group and the time interval between the two groups of electrified hard disk blocks; judging whether the set total number of hard disk blocks is effective or not; responding to the fact that the set total hard disk block number is effective, calculating the number of all electrified hard disk rows and the number of non-all electrified hard disk rows based on the total hard disk block number, and setting corresponding first electrified data based on the number of all electrified hard disk rows; judging whether the number of the non-all electrified hard disk lines is one or not; responding to the number of the non-fully-powered hard disk lines as one, and calculating second powered-on data corresponding to the number of the non-fully-powered hard disk lines; powering on the corresponding hard disk based on the first power-on data and the second power-on data; and in response to reaching the time interval between powering up the two sets, powering up the next set of hard disks.
In some embodiments, determining whether the set total number of hard disk blocks is valid comprises: and judging whether the set total number of hard disk blocks exceeds a hard disk threshold value of each power-on.
In some embodiments, calculating second power-on data corresponding to the number of rows of the hard disks which are not powered on completely comprises: calculating the number of all electrified back plate blocks and the number of non-all electrified back plate blocks in the number of non-all electrified hard disk rows, and calculating the electrified data of all electrified back plate control hard disks; judging whether the number of the non-all electrified back plate blocks is one; and responding to the situation that the number of the backboard blocks which are not all electrified is one, and calculating the data of controlling the electrification of the hard disk by the backboard which is not all electrified.
In some embodiments, powering up the corresponding hard disk based on the first power-up data and the second power-up data includes: the BMC writes the first power-on data and the second power-on data to the corresponding CPLDs through the I2C bus respectively so as to control the corresponding hard disks.
In some embodiments, powering up the next set of hard disks comprises: and calculating the number of the totally electrified hard disk lines and the number of the non-totally electrified hard disk lines based on the total number of the hard disk blocks and the number of the totally electrified hard disk blocks of the next group, and setting corresponding first electrified data based on the number of the totally electrified hard disk lines.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: setting the total number of the hard disk blocks electrified in each group and the time interval between the two groups of electrified hard disk blocks; judging whether the set total number of hard disk blocks is effective or not; responding to the fact that the set total hard disk block number is effective, calculating the number of all electrified hard disk rows and the number of non-all electrified hard disk rows based on the total hard disk block number, and setting corresponding first electrified data based on the number of all electrified hard disk rows; judging whether the number of the non-all electrified hard disk lines is one or not; responding to the number of the non-fully-powered hard disk lines as one, and calculating second powered-on data corresponding to the number of the non-fully-powered hard disk lines; powering on the corresponding hard disk based on the first power-on data and the second power-on data; and in response to reaching the time interval between powering up the two sets, powering up the next set of hard disks.
In some embodiments, determining whether the set total number of hard disk blocks is valid comprises: and judging whether the set total number of hard disk blocks exceeds a hard disk threshold value of each power-on.
In some embodiments, calculating second power-on data corresponding to the number of rows of the hard disks which are not powered on completely comprises: calculating the number of all electrified back plate blocks and the number of non-all electrified back plate blocks in the number of non-all electrified hard disk rows, and calculating the electrified data of all electrified back plate control hard disks; judging whether the number of the non-all electrified back plate blocks is one; and responding to the situation that the number of the backboard blocks which are not all electrified is one, and calculating the data of controlling the electrification of the hard disk by the backboard which is not all electrified.
In some embodiments, powering up the corresponding hard disk based on the first power-up data and the second power-up data includes: the BMC writes the first power-on data and the second power-on data to the corresponding CPLDs through the I2C bus respectively so as to control the corresponding hard disks.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: the hard disk off-peak power-on is realized by calculating according to the condition that the CPLD on the hard disk backboard controls the hard disk to be powered on and off, the impact of the power supply on the server is reduced, the stability of the power supply output when the server is powered on and off is ensured, and the function of setting data information recording logs is added, so that the power on and off of the hard disk is well documented.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of a method for off-peak power-up of a server hard disk according to the present invention;
FIG. 2 is a flowchart of an embodiment of a method for off-peak power-up of a server hard disk according to the present invention;
fig. 3 is a schematic diagram of a hardware structure of an embodiment of a method for off-peak power-up of a server hard disk according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
Based on the above purpose, a first aspect of the embodiments of the present invention provides an embodiment of a method for powering up a server hard disk in a peak-off manner. Fig. 1 is a schematic diagram illustrating an embodiment of a method for off-peak powering on a server hard disk according to the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, setting the total number of the hard disk blocks electrified in each group and the time interval between the two groups of electrified hard disk blocks;
s2, judging whether the set total number of hard disk blocks is valid;
s3, responding to the fact that the set total number of hard disk blocks is effective, calculating the number of all electrified hard disk lines and the number of non-all electrified hard disk lines based on the total number of hard disk blocks, and setting corresponding first electrified data based on the number of all electrified hard disk lines;
s4, judging whether the number of rows of the hard disk which is not completely electrified is one;
s5, responding to the number of the non-all-powered-on hard disk lines as one, and calculating second powered-on data corresponding to the number of the non-all-powered-on hard disk lines;
s6, powering on the corresponding hard disk based on the first power-on data and the second power-on data; and
and S7, responding to the time interval between the two groups of power-on, and powering on the next group of hard disks.
IPMI (Intelligent Platform Management Interface) is based on Management
Figure BDA0002266590960000051
The industrial standard adopted by the peripheral equipment used in the enterprise system with the structure is that a user can monitor physical health characteristics of the server, such as temperature, voltage, fan working state, power state and the like, by using IPMI, and can also develop own IPMI command to control and set other equipment modules on the server, and the BMC can perform read-write operation on equipment on an I2C bus on a mainboard. The BMC reads and writes the registers which correspondingly control the power on and power off of the hard disk in different CPLDs through I2C bus communication, so that the corresponding power on and power off of the hard disk can be realized.
The embodiment of the invention can directly set the number of the power-on blocks of the server hard disk by using an IPMI command, then calculates according to the set number of the power-on blocks, the total number of the hard disks on each hard disk backboard, the number of the hard disk blocks in each row, the hard disk sequence controlled by each register in the hard disk backboard CPLD, the total number of the hard disks in each row of the hard disk array and other data, and finally obtains the control data to be written in each hard disk backboard CPLD.
Generally, register data of the CPLD is one byte, namely 8 bits, and can control up and down of 8 hard disks at most. Assuming that a server is provided with N hard disk backplanes, each backplane corresponds to a CPLD control chip on an I2C bus, and the hard disk array on each backplane is m rows by N rows (N is less than or equal to 8), the total number of hard disks in each row is w-N; setting the number of the powered-on hard disk blocks as k, making a equal to k/w, b equal to k% w, c equal to b/n, d equal to b% n, a representing the number of hard disk rows needing to be powered on completely, that is, the number of registers needing to be written with all power-on control data on each hard disk backplane CPLD, b representing the number of hard disk blocks needing to be powered on in the a +1 th row, c representing the number of backplane blocks needing to be powered on in the a +1 th row, and d representing the number of hard disk blocks needing to be powered on in the a +1 th row and the c +1 th backplane. Where k/w represents the integer portion of k divided by w, and k% w represents the remainder portion of k divided by w.
And setting the total number of the hard disk blocks electrified in each group and the time interval between the two groups of electrified hard disk blocks. The embodiment of the invention firstly develops an IPMI command which can set the hard disk to be powered on and powered off, and the IPMI command is sent to set the number of blocks to be powered on by the server when the server is powered on and started.
And judging whether the set total hard disk block number is effective or not. In some embodiments, determining whether the set total number of hard disk blocks is valid comprises: and judging whether the set total number of hard disk blocks exceeds a hard disk threshold value of each power-on. For example, the threshold of the hard disk for each power-on is 100, and if the set total number of hard disk blocks is 150, the set total number of hard disk blocks is invalid. In some embodiments, determining whether the set total number of hard disk blocks is valid further comprises: and judging whether the set total number of hard disk blocks exceeds the total number of the hard disks of the server.
And responding to the fact that the set total hard disk block number is effective, calculating the number of the totally electrified hard disk lines and the number of the non-totally electrified hard disk lines based on the total hard disk block number, and setting corresponding first electrifying data based on the totally electrified hard disk line numbers. And after receiving the command, the BMC analyzes the command and judges whether the set number of the power-on blocks of the hard disk is valid, if so, the BMC stores the number of the power-on blocks of the starting hard disk of the server into the power-down nonvolatile memory chip, and if not, an error code is returned to prompt the operation and maintenance personnel of the server to set errors. When the server is powered on and started, the hard disk control program reads the set number of the hard disk power-on blocks from the power-down nonvolatile memory chip, firstly judges whether the parameter is valid or not after reading, if the parameter is invalid, the hard disk control program considers that the parameter is not set, and calculates the next step according to the default of all power-on; and if the parameters are valid, calculating the number a of the hard disk rows which need to be completely electrified according to the parameters. and a is k/w, when k can divide w completely, the number of the hard disk rows which are not all powered on is 0, and when k cannot divide w completely, the number of the hard disk rows which are not all powered on is 1. The hard disks in the first a rows need to be completely powered on, control data does not need to be calculated, and the number of the hard disk blocks needing to be powered on in the (a + 1) th row needs to be calculated. That is, the first power-on data is written into the corresponding CPLD without calculation.
And judging whether the number of the rows of the hard disks which are not completely electrified is one, responding to the number of the rows of the hard disks which are not completely electrified being one, and calculating second electrified data corresponding to the number of the rows of the hard disks which are not completely electrified. In some embodiments, calculating second power-on data corresponding to the number of rows of the hard disks which are not powered on completely comprises: calculating the number of all electrified back plate blocks and the number of non-all electrified back plate blocks in the number of non-all electrified hard disk rows, and calculating the electrified data of all electrified back plate control hard disks; judging whether the number of the non-all electrified back plate blocks is one; and responding to the situation that the number of the backboard blocks which are not all electrified is one, and calculating the data of controlling the electrification of the hard disk by the backboard which is not all electrified. B hard disks in front of the a +1 th row of hard disks need to be electrified, the number of the backboard blocks which need to be controlled to be electrified in the a +1 th row is calculated according to the c ═ b/n, namely CPLD registers corresponding to the c hard disk backboard in front of the a +1 th row write in all electrified control data, and then the data of electrification control of the a +1 th row and the c +1 hard disk backboard are calculated. The number of the hard disk power-on blocks on the a +1 th row and the c +1 th backboard is calculated according to d ═ b% n, and then the data bit 1 represents power-on and the data bit 0 represents power-off so as to calculate the data for controlling the power-on of the hard disk, for example, d ═ 5, then the data for controlling the power-on of the hard disk on the a +1 th row and the c +1 th backboard is 0x 1F. 0x1F represents 00011111, i.e. 5 hard disks powered up.
Because the k hard disks are powered on before being controlled, the k hard disks to the m × N hard disks are all controlled to be powered off, and according to the calculation process, all the hard disks from the c +1 hard disks to the N back plates in the a +1 row need to be controlled to be powered off, the 1 st hard disk from the a +2 row to the m hard disk back plates need to be controlled to be powered off, and 0x00 can be directly written into the corresponding CPLD register.
And powering on the corresponding hard disk based on the first power-on data and the second power-on data. In some embodiments, powering up the corresponding hard disk based on the first power-up data and the second power-up data includes: the BMC writes the first power-on data and the second power-on data to the corresponding CPLDs through the I2C bus respectively so as to control the corresponding hard disks. After calculating the register control data for controlling the power on and power off of each hard disk in each CPLD in the process, the BMC writes the data into the CPLDs respectively and correspondingly through I2C bus communication. When the server is powered on, the CPLD of each hard disk backboard controls the power switch of the hard disk according to the power-up and power-down control data bit corresponding to each hard disk in the register, so that the control of the number of power supply blocks of the hard disk is realized during the startup, the off-peak power-up of the server is further realized, and the stable output of the power supply of the server is facilitated. Such as: a certain server is provided with 120 hard disks, the power consumption of each hard disk is 12 watts, and the power consumption of the whole server is 2000 watts. When the number of the power-on blocks of the server startup hard disk is not set, all the hard disks are defaulted to be powered on, and the power consumption of the hard disks is 1440 watts; if the first 10 hard disks are powered on when the computer is started and the rest 110 hard disks are not powered on when the computer is started, the power consumption of the hard disks during the startup is 120 watts, and the power consumption of the whole computer is 680 watts. Therefore, the embodiment of the invention can greatly reduce the starting power consumption of the server and greatly improve the power output stability of the server.
When receiving a setting command for setting the power-on block of the hard disk of the server, the method also records the information of the number of the power-on blocks of the hard disk, the time for receiving the command and the like into a local log file; after the control data are calculated, the data sent to each CPLD are recorded into a local log file, so that the hard disk is well documented in the process of controlling power on and power off.
And responding to the time interval between the two groups of power-on, and powering on the next group of hard disks. In some embodiments, powering up the next set of hard disks comprises: and calculating the number of the totally electrified hard disk lines and the number of the non-totally electrified hard disk lines based on the total number of the hard disk blocks and the number of the totally electrified hard disk blocks of the next group, and setting corresponding first electrified data based on the number of the totally electrified hard disk lines. After the BMC detects that the startup is finished, the rest hard disks which are not electrified are electrified again according to the above process, for example, the first 10 hard disks are electrified by sending a command for the first time, the first 20 hard disks are electrified by sending a command for the second time (actually, the first 10 electrified hard disks +10 newly electrified hard disks), and the like, and the off-peak electrification effect of the server is realized by the analogy of control. Of course, the number of hard disk blocks powered on each time may also be different, for example, the second command is sent to control the first 30 hard disks to be powered on (actually, the first 10 powered-on hard disks +20 newly powered-on hard disks).
The above embodiments are described below by way of a specific example:
let m be 3, N be 4, N be 10, and k be 105. Then W-N-40.
Firstly, the number of rows a of all powered-on hard disks and the number of rows of non-all powered-on hard disks are calculated, wherein a is equal to k/w equal to 2, b is equal to k% w equal to 25, and b is not equal to 0, so that the number of rows of non-all powered-on hard disks is 1, that is, the hard disk in the 3 rd row is partially powered-on.
And then, calculating the number c of all the electrified back panel blocks and the number of all the electrified back panel blocks in the number of the rows of the hard disks which are not electrified, wherein c is b/n is 6, and d is b% n is 1, so that the first 6 back panels in the 3 rd row are all electrified, and a hard disk is electrified on the 7 th back panel.
Fig. 2 is a flowchart illustrating an embodiment of a method for off-peak power-up of a server hard disk according to the present invention. As shown in FIG. 2, beginning at block 101 and proceeding to block 102, the total number of hard disk blocks powered up for each group and the time interval between powering up the two groups are set; then, go to block 103, judge whether the total hard disk block number is valid, if yes, go to block 104, if not, end directly; a block 104, calculating the number of rows of all powered-on hard disks and the number of rows of non-all powered-on hard disks based on the total number of hard disk blocks, and setting corresponding first powered-on data based on the number of rows of all powered-on hard disks; proceeding to a block 105, determining whether the number of the non-all-powered hard disk rows is one, if so, proceeding to a block 106, calculating second powered-on data corresponding to the number of the non-all-powered hard disk rows, then proceeding to a block 108, if not, proceeding to a block 107, powering on the corresponding hard disk based on the first powered-on data, and then proceeding to a block 109; block 108, powering up the corresponding hard disk based on the first power-up data and the second power-up data; proceeding then to block 109, the next set of hard disks is powered up in response to reaching the time interval between powering up the two sets, and proceeding then to block 110, which ends.
It should be particularly noted that, the steps in the embodiments of the method for powering up a server hard disk in a peak-off manner may be mutually intersected, replaced, added, or deleted, and therefore, the method for powering up a server hard disk in a peak-off manner through reasonable permutation and combination shall also belong to the scope of the present invention, and shall not limit the scope of the present invention to the embodiments.
In view of the above object, a second aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, setting the total number of the hard disk blocks electrified in each group and the time interval between the two groups of electrified hard disk blocks; s2, judging whether the set total number of hard disk blocks is valid; s3, responding to the fact that the set total number of hard disk blocks is effective, calculating the number of all electrified hard disk lines and the number of non-all electrified hard disk lines based on the total number of hard disk blocks, and setting corresponding first electrified data based on the number of all electrified hard disk lines; s4, judging whether the number of rows of the hard disk which is not completely electrified is one; s5, responding to the number of the non-all-powered-on hard disk lines as one, and calculating second powered-on data corresponding to the number of the non-all-powered-on hard disk lines; s6, powering on the corresponding hard disk based on the first power-on data and the second power-on data; and S7, responding to the time interval between the two groups of power-on, and powering on the next group of hard disks.
In some embodiments, determining whether the set total number of hard disk blocks is valid comprises: and judging whether the set total number of hard disk blocks exceeds a hard disk threshold value of each power-on.
In some embodiments, calculating second power-on data corresponding to the number of rows of the hard disks which are not powered on completely comprises: calculating the number of all electrified back plate blocks and the number of non-all electrified back plate blocks in the number of non-all electrified hard disk rows, and calculating the electrified data of all electrified back plate control hard disks; judging whether the number of the non-all electrified back plate blocks is one; and responding to the situation that the number of the backboard blocks which are not all electrified is one, and calculating the data of controlling the electrification of the hard disk by the backboard which is not all electrified.
In some embodiments, powering up the corresponding hard disk based on the first power-up data and the second power-up data includes: the BMC writes the first power-on data and the second power-on data to the corresponding CPLDs through the I2C bus respectively so as to control the corresponding hard disks.
In some embodiments, powering up the next set of hard disks comprises: and calculating the number of the totally electrified hard disk lines and the number of the non-totally electrified hard disk lines based on the total number of the hard disk blocks and the number of the totally electrified hard disk blocks of the next group, and setting corresponding first electrified data based on the number of the totally electrified hard disk lines.
Fig. 3 is a schematic diagram of a hardware structure of an embodiment of the method for powering up a server hard disk in a peak-off manner according to the present invention.
Taking the apparatus shown in fig. 3 as an example, the apparatus includes a processor 301 and a memory 302, and may further include: an input device 303 and an output device 304.
The processor 301, the memory 302, the input device 303 and the output device 304 may be connected by a bus or other means, and fig. 3 illustrates the connection by a bus as an example.
The memory 302 is a non-volatile computer-readable storage medium, and can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for off-peak power-up of a server hard disk in the embodiment of the present application. The processor 301 executes various functional applications and data processing of the server by running the nonvolatile software program, instructions and modules stored in the memory 302, that is, the method for off-peak power-up of the server hard disk of the above-described method embodiment is implemented.
The memory 302 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a method of off-peak power-up of a server hard disk, or the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 302 optionally includes memory located remotely from processor 301, which may be connected to a local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 303 may receive information such as a user name and a password that are input. The output means 304 may comprise a display device such as a display screen.
Program instructions/modules corresponding to the method for off-peak power-up of one or more server hard disks are stored in the memory 302, and when executed by the processor 301, the method for off-peak power-up of server hard disks in any of the above-described method embodiments is performed.
Any embodiment of the computer device executing the method for off-peak power-up of the server hard disk can achieve the same or similar effects as any corresponding embodiment of the method.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the method as above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes in the methods of the above embodiments may be implemented by instructing relevant hardware by a computer program, and the program of the method for powering up a server hard disk in an off-peak manner may be stored in a computer readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for off-peak power-up of a server hard disk is characterized by comprising the following steps:
setting the total number of the hard disk blocks electrified in each group and the time interval between the two groups of electrified hard disk blocks;
judging whether the set total number of hard disk blocks is effective or not;
responding to the fact that the set total hard disk block number is effective, calculating the number of all electrified hard disk rows and the number of non-all electrified hard disk rows based on the total hard disk block number, and setting corresponding first electrified data based on the number of all electrified hard disk rows;
judging whether the number of the non-completely electrified hard disk lines is one or not;
responding to the number of the non-fully-powered hard disk lines as one, and calculating second powered-on data corresponding to the number of the non-fully-powered hard disk lines;
powering on the corresponding hard disk based on the first power-on data and the second power-on data; and
and responding to the time interval between the two groups of power-on, and powering on the next group of hard disks.
2. The method of claim 1, wherein the determining whether the set total number of hard disk blocks is valid comprises:
and judging whether the set total number of hard disk blocks exceeds a hard disk threshold value of each power-on.
3. The method according to claim 1, wherein the calculating second power-on data corresponding to the number of the non-fully powered-on hard disk rows comprises:
calculating the number of all electrified back plate blocks and the number of non-all electrified back plate blocks in the number of the non-all electrified hard disk lines, and calculating the electrified data of the all electrified back plate control hard disks;
judging whether the number of the non-all electrified back plate blocks is one; and
and responding to the situation that the number of the backboard blocks which are not all electrified is one, and calculating the data of controlling the electrification of the hard disk by the backboard which is not all electrified.
4. The method of claim 3, wherein powering up the corresponding hard disk based on the first power-up data and the second power-up data comprises:
and the BMC writes the first power-on data and the second power-on data to the corresponding CPLDs respectively through an I2C bus so as to control the corresponding hard disks.
5. The method of claim 1, wherein powering up the next set of hard disks comprises:
and calculating the number of the totally electrified hard disk lines and the number of the non-totally electrified hard disk lines based on the total number of the hard disk blocks and the number of the totally electrified hard disk blocks of the next group, and setting corresponding first electrifying data based on the number of the totally electrified hard disk lines.
6. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of:
setting the total number of the hard disk blocks electrified in each group and the time interval between the two groups of electrified hard disk blocks;
judging whether the set total number of hard disk blocks is effective or not;
responding to the fact that the set total hard disk block number is effective, calculating the number of all electrified hard disk rows and the number of non-all electrified hard disk rows based on the total hard disk block number, and setting corresponding first electrified data based on the number of all electrified hard disk rows;
judging whether the number of the non-completely electrified hard disk lines is one or not;
responding to the number of the non-fully-powered hard disk lines as one, and calculating second powered-on data corresponding to the number of the non-fully-powered hard disk lines;
powering on the corresponding hard disk based on the first power-on data and the second power-on data; and
and responding to the time interval between the two groups of power-on, and powering on the next group of hard disks.
7. The computer device of claim 6, wherein the determining whether the set total number of hard disk blocks is valid comprises:
and judging whether the set total number of hard disk blocks exceeds a hard disk threshold value of each power-on.
8. The computer device according to claim 6, wherein the calculating second power-on data corresponding to the number of the non-all powered-on hard disk rows comprises:
calculating the number of all electrified back plate blocks and the number of non-all electrified back plate blocks in the number of the non-all electrified hard disk lines, and calculating the electrified data of the all electrified back plate control hard disks;
judging whether the number of the non-all electrified back plate blocks is one; and
and responding to the situation that the number of the backboard blocks which are not all electrified is one, and calculating the data of controlling the electrification of the hard disk by the backboard which is not all electrified.
9. The computer device of claim 8, wherein the powering up the corresponding hard disk based on the first and second power-up data comprises:
and the BMC writes the first power-on data and the second power-on data to the corresponding CPLDs respectively through an I2C bus so as to control the corresponding hard disks.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201911090092.6A 2019-11-08 2019-11-08 Method, equipment and medium for off-peak power-up of server hard disk Active CN111090324B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911090092.6A CN111090324B (en) 2019-11-08 2019-11-08 Method, equipment and medium for off-peak power-up of server hard disk
PCT/CN2020/104010 WO2021088425A1 (en) 2019-11-08 2020-07-24 Method for staggered powering-on of server hard disks, device, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911090092.6A CN111090324B (en) 2019-11-08 2019-11-08 Method, equipment and medium for off-peak power-up of server hard disk

Publications (2)

Publication Number Publication Date
CN111090324A true CN111090324A (en) 2020-05-01
CN111090324B CN111090324B (en) 2021-06-29

Family

ID=70393641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911090092.6A Active CN111090324B (en) 2019-11-08 2019-11-08 Method, equipment and medium for off-peak power-up of server hard disk

Country Status (2)

Country Link
CN (1) CN111090324B (en)
WO (1) WO2021088425A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021088425A1 (en) * 2019-11-08 2021-05-14 苏州浪潮智能科技有限公司 Method for staggered powering-on of server hard disks, device, and medium
CN114063920A (en) * 2021-11-12 2022-02-18 四川华鲲振宇智能科技有限责任公司 Method and system for fixing drive letter under Linux
CN116643636A (en) * 2023-05-29 2023-08-25 合芯科技有限公司 Method, device, equipment and medium for randomly powering on hard disk backboard

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080040543A1 (en) * 2004-01-16 2008-02-14 Hitachi, Ltd. Disk array apparatus and disk array apparatus controlling method
CN104345827A (en) * 2013-08-05 2015-02-11 鸿富锦精密电子(天津)有限公司 Power supply system of server
CN105929923A (en) * 2016-04-25 2016-09-07 浙江大华技术股份有限公司 Management method and apparatus for power of power supply
CN106557139A (en) * 2015-09-30 2017-04-05 中兴通讯股份有限公司 Hard disk electrification control method and device in hard disk array
CN106774801A (en) * 2016-12-09 2017-05-31 郑州云海信息技术有限公司 A kind of hard disk is avoided the peak hour activation system
CN107402623A (en) * 2017-07-27 2017-11-28 郑州云海信息技术有限公司 The method and system that a kind of hard disk staggeredly starts
CN109710047A (en) * 2018-12-28 2019-05-03 郑州云海信息技术有限公司 A kind of hard disk array method of supplying power to and device
CN209265434U (en) * 2019-02-27 2019-08-16 苏州浪潮智能科技有限公司 A kind of 8 disk position NVMe hard disk backboards with off-peak electrification function

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002074811A (en) * 2000-08-30 2002-03-15 Nec Corp System and method for controlling power supply
CN108919931A (en) * 2018-05-25 2018-11-30 郑州云海信息技术有限公司 A kind of power supplying system of server and method
CN111090324B (en) * 2019-11-08 2021-06-29 苏州浪潮智能科技有限公司 Method, equipment and medium for off-peak power-up of server hard disk

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080040543A1 (en) * 2004-01-16 2008-02-14 Hitachi, Ltd. Disk array apparatus and disk array apparatus controlling method
CN104345827A (en) * 2013-08-05 2015-02-11 鸿富锦精密电子(天津)有限公司 Power supply system of server
CN106557139A (en) * 2015-09-30 2017-04-05 中兴通讯股份有限公司 Hard disk electrification control method and device in hard disk array
CN105929923A (en) * 2016-04-25 2016-09-07 浙江大华技术股份有限公司 Management method and apparatus for power of power supply
CN106774801A (en) * 2016-12-09 2017-05-31 郑州云海信息技术有限公司 A kind of hard disk is avoided the peak hour activation system
CN107402623A (en) * 2017-07-27 2017-11-28 郑州云海信息技术有限公司 The method and system that a kind of hard disk staggeredly starts
CN109710047A (en) * 2018-12-28 2019-05-03 郑州云海信息技术有限公司 A kind of hard disk array method of supplying power to and device
CN209265434U (en) * 2019-02-27 2019-08-16 苏州浪潮智能科技有限公司 A kind of 8 disk position NVMe hard disk backboards with off-peak electrification function

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021088425A1 (en) * 2019-11-08 2021-05-14 苏州浪潮智能科技有限公司 Method for staggered powering-on of server hard disks, device, and medium
CN114063920A (en) * 2021-11-12 2022-02-18 四川华鲲振宇智能科技有限责任公司 Method and system for fixing drive letter under Linux
CN116643636A (en) * 2023-05-29 2023-08-25 合芯科技有限公司 Method, device, equipment and medium for randomly powering on hard disk backboard
CN116643636B (en) * 2023-05-29 2024-02-23 合芯科技有限公司 Method, device, equipment and medium for randomly powering on hard disk backboard

Also Published As

Publication number Publication date
WO2021088425A1 (en) 2021-05-14
CN111090324B (en) 2021-06-29

Similar Documents

Publication Publication Date Title
CN111090324B (en) Method, equipment and medium for off-peak power-up of server hard disk
CN109313473B (en) Voltage-based thermal control of processing devices
DE102015115533A1 (en) Control strategy for a drive arrangement
CN111176414A (en) Power supply method and device for server network card and readable medium
CN111090319A (en) Method, device and medium for controlling server fan based on thermistor
CN111142896A (en) Method and device for upgrading firmware of storage device and readable medium
CN112506427A (en) Method, system, equipment and medium for reducing power consumption of solid state disk
CN110569573A (en) Fault confirmation and communication method based on programmable logic device
CN107766180A (en) Management method, device and the readable storage medium storing program for executing of storage medium
US10209726B2 (en) Secure input voltage adjustment in processing devices
CN111722690B (en) Server power module monitoring method and device, server and storage medium
US20180082066A1 (en) Secure data erasure in hyperscale computing systems
CN111339019A (en) I is carried out through CPLD2Method and device for C bus extension
CN111124094A (en) Server hard disk power-on and power-off control method, control device and control equipment
US10901951B2 (en) Memory compaction for append-only formatted data in a distributed storage network
CN111045710B (en) Method, equipment and medium for upgrading SAS-Expander firmware based on IPMI command
CN110879768A (en) Power-on and power-off test method and device for multi-system server
CN111309553B (en) Method, system, equipment and medium for monitoring storage Jbod
CN111856257A (en) Method, system, equipment and medium for detecting and protecting CPLD (complex programmable logic device) firmware
CN110929263A (en) Remote management method and equipment based on active measurement
CN111382030A (en) Method, equipment and medium for unified management of multiple tasks
CN111104673A (en) System data monitoring and protecting method and device
WO2020113421A1 (en) Method for mounting file system, terminal device, and storage medium
CN113448421B (en) Equipment power failure management method and device
EP3798812A1 (en) Storage system, and method for switching operating mode of storage system

Legal Events

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