CN113032213A - Fan hot plug method, device, equipment and computer readable storage medium - Google Patents

Fan hot plug method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN113032213A
CN113032213A CN202110314328.0A CN202110314328A CN113032213A CN 113032213 A CN113032213 A CN 113032213A CN 202110314328 A CN202110314328 A CN 202110314328A CN 113032213 A CN113032213 A CN 113032213A
Authority
CN
China
Prior art keywords
fan
preset
rotating speed
setting
server
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.)
Pending
Application number
CN202110314328.0A
Other languages
Chinese (zh)
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.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer 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 Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110314328.0A priority Critical patent/CN113032213A/en
Publication of CN113032213A publication Critical patent/CN113032213A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/20Cooling means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4081Live connection to bus, e.g. hot-plugging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Control Of Positive-Displacement Air Blowers (AREA)

Abstract

The invention discloses a hot plug method for a fan, which comprises the following steps: detecting the in-place state of each fan in the server fan set; judging whether a fan with an in-place state being a pulling-out state exists or not; if so, determining the fan with the in-place state being the pull-out state as a target fan, and setting the rotating speeds of other fans except the target fan in the server fan set as a first preset rotating speed; when the fan is detected to be inserted, setting the rotating speed of the inserted fan as a second preset rotating speed; the second preset rotating speed is greater than the first preset rotating speed; and when the inserted fan delays for a first preset time length from the insertion, setting the rotating speed of each fan in the current server fan set to be in a preset automatic debugging mode. By applying the fan hot-plug method provided by the invention, the reverse probability of the inserted fan is effectively reduced, and the availability of the server system is improved. The invention also discloses a fan hot plug device, equipment and a storage medium, and has corresponding technical effects.

Description

Fan hot plug method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of computer application technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for hot plugging a fan.
Background
The server system field needs to have very high Reliability, Availability, Serviceability (RAS), and in addition to improving the Reliability of key components such as a Central Processing Unit (CPU) and a memory, it is important to improve the Availability of other easily maintained components such as a power supply and a fan, and to support hot plug of the fan.
With the development of science and technology, under application scenarios such as various cloud computing, big data, Artificial Intelligence (AI), and the like, higher challenges are provided for the computing power of a server, and on the other hand, for the computing Processing of videos and Graphics, a Graphics Processing Unit (GPU) is more needed to participate in the computing. The graphics processing unit is used as a peripheral core processing unit of the server, has complex functions and large heat productivity during working, and provides new challenges for the problem of hot plug of a fan of an artificial intelligent server containing a large number of graphics processing units.
The fan can have back pressure as long as the fan rotates, when the fan is pulled out, the original uniform wind flow field wind flow can be changed, the wind flow can flow to a low-impedance place, the back pressure of the fan is too strong, and the fan which is just inserted back can be easily reversed. The fan can have an anti-reverse function, but as the power consumption of the CPU and the GPU is higher and higher, the rotating speed requirement of the fan is higher and higher, the anti-reverse rotation of the fan has a physical limit, and when the physical limit is reached, the fan cannot resist the reverse rotation, so that the usability of the server system is influenced.
In summary, how to effectively solve the problem that the fan just inserted back is easy to reverse and affects the availability of the server system is a problem that needs to be solved urgently by those skilled in the art.
Disclosure of Invention
The invention aims to provide a fan hot plug method, which effectively reduces the reverse rotation probability of a plug-in fan and improves the usability of a server system; another object of the present invention is to provide a fan hot plug apparatus, a device and a computer readable storage medium.
In order to solve the technical problems, the invention provides the following technical scheme:
a hot plug method for a fan comprises the following steps:
detecting the in-place state of each fan in the server fan set;
judging whether the fan with the in-place state being the pull-out state exists or not;
if yes, determining the fan with the in-place state being the pull-out state as a target fan, and setting the rotating speeds of other fans except the target fan in the server fan set as a first preset rotating speed;
when the fan is detected to be inserted, setting the rotating speed of the inserted fan as a second preset rotating speed; the second preset rotating speed is greater than the first preset rotating speed;
and when the inserted fan delays for a first preset time length from the insertion, setting the rotating speed of each fan in the current server fan set to be in a preset automatic debugging mode.
In one embodiment of the present invention, when it is detected that there is a fan insertion, setting the rotation speed of the inserted fan to a second preset rotation speed includes:
judging whether a fan is inserted or not from the time when the target fan is pulled out to the time when the second preset time is delayed;
and if so, setting the rotating speed of the inserting fan to be the second preset rotating speed.
In one embodiment of the present invention, the method further comprises:
when the target fan is pulled out until the fan insertion is not detected within the second preset time, setting the rotating speeds of other fans except the target fan in the server fan set to be the second preset rotating speed;
judging whether a fan is inserted or not after the target fan is pulled out until the delay time exceeds the second preset time;
if so, setting the rotating speed of the inserted fan as the second preset rotating speed, and setting the rotating speeds of other fans except the inserted fan in the server fan set as the third preset rotating speed; wherein the third preset rotating speed is less than the first preset rotating speed;
when the inserting fan is from inserting to delaying for a first preset duration, setting the rotating speed of each fan in the server fan set at present to be a preset automatic debugging mode, including:
when the inserted fan is delayed for a third preset time length from the insertion, setting the rotating speed of each fan in the current server fan set to be in a preset automatic debugging mode; and the third preset time length is greater than the first preset time length.
In one embodiment of the present invention, the method further comprises:
and when the target fan is pulled out until the time delay exceeds the second preset time length and the fan is not detected to be inserted, setting other fans except the target fan in the server fan set to rotate at the second preset rotating speed.
A hot swap apparatus for a fan, comprising:
the state detection module is used for detecting the in-place state of each fan in the server fan set;
the first judgment module is used for judging whether the fan with the in-place state being the pull-out state exists or not;
the first rotating speed setting module is used for determining the fan with the pulling-out state as a target fan when the fan with the pulling-out state in the in-place state is determined to exist, and setting the rotating speeds of other fans except the target fan in the server fan set as a first preset rotating speed;
the second rotating speed setting module is used for setting the rotating speed of the inserted fan to be a second preset rotating speed when the fan is detected to be inserted; the second preset rotating speed is greater than the first preset rotating speed;
and the mode setting module is used for setting the rotating speed of each fan in the current server fan set to be a preset automatic debugging mode when the inserted fan delays for a first preset time length from the insertion.
In one embodiment of the present invention, the second rotation speed setting module includes:
the judgment submodule is used for judging whether the fan is inserted or not from the time when the target fan is pulled out to the time when the second preset time is delayed;
and the second rotating speed setting submodule is used for setting the rotating speed of the inserted fan to be the second preset rotating speed when the fact that the fan is inserted in the second preset time period from the time when the target fan is pulled out to the time when the time is delayed is determined.
In one embodiment of the present invention, the method further comprises:
a third rotation speed setting module, configured to set, when a fan insertion is not detected within the second preset duration after the target fan is pulled out, the rotation speeds of fans other than the target fan in the server fan set to the second preset rotation speed;
the second judgment module is used for judging whether the fan is inserted or not after the target fan is pulled out until the delay time exceeds the second preset time length;
a fourth rotation speed setting module, configured to set, when there is a fan inserted after the target fan is pulled out to a time delay exceeding the second preset duration, the rotation speed of the inserted fan to the second preset rotation speed, and set the rotation speeds of fans other than the inserted fan in the server fan set to the third preset rotation speed; wherein the third preset rotating speed is less than the first preset rotating speed;
the mode setting module is specifically used for setting the rotating speed of each fan in the current server fan set to be a preset automatic debugging mode when the inserting fan delays for a third preset time length from the inserting; and the third preset time is longer than the first preset time.
In one embodiment of the present invention, the method further comprises:
and the rotating speed maintaining module is used for setting other fans except the target fan in the server fan set to rotate at the second preset rotating speed when the fan is not detected to be inserted after the time delay from the pulling-out of the target fan exceeds the second preset time length.
A fan hot plug device, comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the fan hot plug method when executing the computer program.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the fan hot plug method as described above.
The fan hot-plug method provided by the invention detects the in-place state of each fan in the server fan set; judging whether a fan with an in-place state being a pulling-out state exists or not; if so, determining the fan with the in-place state being the pull-out state as a target fan, and setting the rotating speeds of other fans except the target fan in the server fan set as a first preset rotating speed; when the fan is detected to be inserted, setting the rotating speed of the inserted fan as a second preset rotating speed; the second preset rotating speed is greater than the first preset rotating speed; and when the inserted fan delays for a first preset time length from the insertion, setting the rotating speed of each fan in the current server fan set to be in a preset automatic debugging mode.
According to the technical scheme, when the situation that the fan is pulled out is detected, the rotating speeds of other fans except for the pulled target fan in the server fan set are set to be the first preset rotating speed, when the fan is inserted, the rotating speed of the inserted fan is set to be the second preset rotating speed, and the second preset rotating speed is larger than the first preset rotating speed, so that the rotating speed of the inserted fan is larger than the rotating speeds of other fans except for the inserted fan in the server fan set, the rotating speeds of other fans except for the pulled target fan in the server fan set are reduced, the reverse rotation probability of the inserted fan is effectively reduced, and the usability of the server system is improved.
Correspondingly, the invention also provides a fan hot plug device, equipment and a computer readable storage medium corresponding to the fan hot plug method, which have the technical effects and are not described herein again.
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, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating an embodiment of a method for hot plugging a fan according to the present invention;
FIG. 2 is a flowchart illustrating another embodiment of a method for hot plugging a fan according to the present invention;
FIG. 3 is a block diagram of a hot swap apparatus for a fan according to an embodiment of the present invention;
fig. 4 is a block diagram of a hot plug device of a fan according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of a hot plug method for a fan according to an embodiment of the present invention, where the method may include the following steps:
s101: and detecting the in-place state of each fan in the server fan set.
When the server processes the running state, the baseboard management controller detects the in-place state of each fan in the server fan set. Thereby knowing whether each fan in the server fan set is in a unplugged state or a plugged-in state.
S102: and judging whether the fan in the on-position state is the pull-out state, if so, executing the step S103, and if not, not processing.
After the in-place state of each fan in the server fan set is detected, whether a fan in the in-place state is a pulled-out fan is judged, if yes, it is indicated that the fan is pulled out currently, in order to maintain the heat dissipation effect before the fan is pulled out, the rotation speed of each fan which is remained in the server fan set is generally defaulted to be rapidly increased, if the default rotation speed is rapidly increased to the maximum rotation speed, step S103 is executed, if not, it is indicated that each fan in the server fan set is in a normal insertion state, and no processing is needed.
S103: and determining the fan with the on-site state as the pull-out state as a target fan, and setting the rotating speeds of other fans except the target fan in the server fan set as a first preset rotating speed.
Presetting a first preset rotating speed to which the remaining fans in the server fan set need to be adjusted when the fans are pulled out, for example, the first preset rotating speed can be set to 80% of the maximum rotating speed of the fans. When the fans with the in-place states being in the pulling-out states are determined to exist, the fans with the in-place states being in the pulling-out states are determined to be target fans, and the rotating speeds of the fans except the target fans in the server fan set are set to be first preset rotating speeds, so that the rotating speeds of the fans except the target fans in the server fan set are reduced, and the phenomenon that the rotating speeds of the remaining fans in the server fan set are rapidly increased and the fans are always kept rotating at high speeds due to the fact that the fans are pulled out is avoided.
S104: and when the existence of the fan insertion is detected, setting the rotating speed of the inserted fan to be a second preset rotating speed.
The second preset rotating speed is greater than the first preset rotating speed.
The rotational speed of the inserted fan is preset, and for example, in order to prevent the inserted fan from reversing to the maximum, the second preset rotational speed of the fan is set to the maximum rotational speed of the fan. The method comprises the steps of determining that a fan is pulled out from a server fan set, setting the rotating speeds of other fans except a target fan in the server fan set to be first preset rotating speeds, detecting whether a back-inserted fan exists, when the fact that the fan is inserted is detected, setting the rotating speed of the inserted fan to be second preset rotating speeds, and setting the second preset rotating speeds to be larger than the first preset rotating speeds, so that the rotating speed of the inserted fan is larger than the rotating speeds of the other fans except the inserted fan in the server fan set, the inserted fan is enabled to easily rotate along the same direction along with the other fans, and the probability of reverse rotation of the inserted fan is effectively reduced.
S105: and when the inserted fan delays for a first preset time length from the insertion, setting the rotating speed of each fan in the current server fan set to be in a preset automatic debugging mode.
The method comprises the steps of presetting the delay time length for restoring an automatic debugging mode of each fan inserted into a server fan set from the fan, and setting the rotating speed of each fan in the current server fan set to be in the preset automatic debugging mode when the inserted fan delays for the first preset time length from the insertion. Such as the first preset duration may be set to 20 seconds.
According to the technical scheme, when the situation that the fan is pulled out is detected, the rotating speeds of other fans except for the pulled target fan in the server fan set are set to be the first preset rotating speed, when the fan is inserted, the rotating speed of the inserted fan is set to be the second preset rotating speed, and the second preset rotating speed is larger than the first preset rotating speed, so that the rotating speed of the inserted fan is larger than the rotating speeds of other fans except for the inserted fan in the server fan set, the rotating speeds of other fans except for the pulled target fan in the server fan set are reduced, the reverse rotation probability of the inserted fan is effectively reduced, and the usability of the server system is improved.
It should be noted that, based on the first embodiment, the embodiment of the present invention further provides a corresponding improvement scheme. In the following embodiments, steps that are the same as or correspond to those in the first embodiment may be referred to each other, and corresponding advantageous effects may also be referred to each other, which are not described in detail in the following modified embodiments.
Example two:
referring to fig. 2, fig. 2 is a flowchart of another implementation of a hot plug method for a fan according to an embodiment of the present invention, where the method may include the following steps:
s201: and detecting the in-place state of each fan in the server fan set.
S202: and judging whether the fan in the on-site state is in the pull-out state, if so, executing the step S203, and if not, not processing.
S203: and determining the fan with the on-site state as the pull-out state as a target fan, and setting the rotating speeds of other fans except the target fan in the server fan set as a first preset rotating speed.
S204: and judging whether the fan is inserted or not within a second preset time period after the target fan is pulled out, if so, executing step S205, and if not, executing step S207.
After determining that the server fan set has a fan pulled out and the rotation speeds of the fans except the target fan in the server fan set are set to be the first preset rotation speed, judging whether the fans are inserted within a second preset time delay from the pulling out of the target fan, if so, indicating that the fans are inserted immediately after the target fan is pulled out, and executing step S205, otherwise, indicating that the fans are not inserted again immediately after the target fan is pulled out, and executing step S207.
It should be noted that the second preset time period may be set and adjusted according to actual situations, which is not limited in the embodiment of the present invention, and may be set to 30 seconds, for example.
S205: the rotational speed of the insertion fan is set to a second preset rotational speed.
The second preset rotating speed is greater than the first preset rotating speed.
When it is determined that the fan is inserted within the second preset time period after the target fan is pulled out, indicating that the fan is inserted immediately after the target fan is pulled out, the rotating speed of the inserted fan is set to be the second preset rotating speed.
S206: and when the inserted fan delays for a first preset time length from the insertion, setting the rotating speed of each fan in the current server fan set to be in a preset automatic debugging mode.
And when determining that the fan is inserted from the pulling-out of the target fan to the time delay within the second preset time and the inserted fan is inserted from the inserting to the time delay within the first preset time, setting the rotating speed of each fan in the current server fan set to be in a preset automatic debugging mode. Therefore, after the inserted fans are successfully inserted, the fans are timely restored to the preset automatic debugging mode.
S207: and setting the rotating speeds of other fans except the target fan in the server fan set as a second preset rotating speed.
When it is determined that no fan is inserted within the second preset time period after the target fan is pulled out, indicating that the fan is not immediately inserted again after the target fan is pulled out, setting the rotating speeds of the fans except the target fan in the server fan set to be the second preset rotating speed. The remaining fans in the server fan set are adjusted to the second preset rotating speed with a larger rotating speed value, so that effective heat dissipation of all components in the server is guaranteed.
S208: and judging whether the target fan is pulled out until the delay time exceeds a second preset time length and then a fan is inserted, if so, executing step S209, and if not, executing step S211.
After determining that no fan is inserted within a second preset time period from the target fan being pulled out to the time delay, and setting the rotating speeds of other fans except the target fan in the server fan set to be a second preset rotating speed, judging whether fan insertion exists after the target fan being pulled out to the time delay exceeds the second preset time period, if so, executing step S209, and if not, executing step S211.
S209: the rotational speed of the plug-in fan is set to a second preset rotational speed, and the rotational speeds of the fans in the server fan set except the plug-in fan are set to a third preset rotational speed.
Wherein the third preset rotating speed is less than the first preset rotating speed.
And respectively presetting the wind speeds required to be adjusted by inserting the fans and other fans into the server fan set when the fans are inserted after the target fan is pulled out until the time delay exceeds a second preset time. If the wind speed of the inserted fan is set to be a second preset rotating speed, the second preset rotating speed is preset to be the maximum rotating speed of the fan. Setting the wind speed to which other fans need to be adjusted to be a third preset rotating speed, wherein the third preset rotating speed is less than the first preset rotating speed, and if the third preset rotating speed is set to be 60% of the maximum rotating speed of the fans. And when the situation that the fan is inserted after the target fan is pulled out until the delay time exceeds a second preset time length is determined, setting the rotating speed of the inserted fan as a second preset rotating speed, and setting the rotating speeds of other fans except the inserted fan in the server fan set as a third preset rotating speed.
S210: and when the inserted fan is delayed to a third preset time length from the insertion, setting the rotating speed of each fan in the current server fan set to be in a preset automatic debugging mode.
And the third preset time length is greater than the first preset time length.
Presetting the delay time length for each fan to return to the automatic debugging mode when the target fan is pulled out until the delay time exceeds the second preset time length and the fan is inserted into the server fan set, setting the delay time length as a third preset time length, and setting the third preset time length to be greater than the first preset time length, if so, setting the third preset time length as 40 seconds. And when the inserted fan is delayed to a third preset time length from the insertion, setting the rotating speed of each fan in the current server fan set to be in a preset automatic debugging mode.
Before the target fan is inserted, each fan in the server fan set rotates at a second preset rotating speed with a higher rotating speed, and a longer time is needed for changing the wind speed from higher to lower, so that the third preset time length is set to be longer than the first preset time length.
S211: and setting other fans except the target fan in the server fan set to keep rotating at a second preset rotating speed.
And when it is determined that no fan is inserted after the target fan is pulled out until the delay time exceeds a second preset time, setting other fans except the target fan in the server fan set to rotate at a second preset rotating speed. Thereby ensuring normal heat dissipation of the server system.
According to the in-place state of each fan in the server fan set, the rotating speed of each fan in the server fan set is adjusted in a corresponding state in a state machine mode, the probability of reverse rotation of the inserted fan is effectively reduced, and the availability of a server system is improved.
The present embodiment is different from the first embodiment corresponding to the technical solution claimed in independent claim 1, and the technical solutions claimed in the dependent claims 2 to 4 are added, and of course, according to different practical situations and requirements, the technical solutions claimed in the dependent claims can be flexibly combined on the basis of not affecting the completeness of the solutions, so as to better meet the requirements of different use scenarios.
Example three:
corresponding to the above method embodiments, the present invention further provides a fan hot plug device, and the fan hot plug device described below and the fan hot plug method described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a block diagram of a hot plug device for a fan according to an embodiment of the present invention, where the device may include:
a state detection module 31, configured to detect an in-place state of each fan in the server fan set;
the first judging module 32 is used for judging whether a fan with an in-place state being a pulling-out state exists;
a first rotation speed setting module 33, configured to, when it is determined that there is a fan in the presence state being the pull-out state, determine the fan in the presence state being the pull-out state as a target fan, and set the rotation speeds of fans other than the target fan in the server fan set to be a first preset rotation speed;
a second rotation speed setting module 34, configured to set a rotation speed of the inserted fan to a second preset rotation speed when it is detected that there is a fan insertion; the second preset rotating speed is greater than the first preset rotating speed;
and the mode setting module 35 is configured to set the rotation speed of each fan in the current server fan set to the preset automatic debugging mode when the fan is inserted from the time of insertion to the time delay by the first preset time length.
According to the technical scheme, when the situation that the fan is pulled out is detected, the rotating speeds of other fans except for the pulled target fan in the server fan set are set to be the first preset rotating speed, when the fan is inserted, the rotating speed of the inserted fan is set to be the second preset rotating speed, and the second preset rotating speed is larger than the first preset rotating speed, so that the rotating speed of the inserted fan is larger than the rotating speeds of other fans except for the inserted fan in the server fan set, the rotating speeds of other fans except for the pulled target fan in the server fan set are reduced, the reverse rotation probability of the inserted fan is effectively reduced, and the usability of the server system is improved.
In one embodiment of the present invention, the second speed setting module 34 includes:
the judgment submodule is used for judging whether the fan is inserted or not from the time when the target fan is pulled out to the time when the second preset time is delayed;
and the second rotating speed setting submodule is used for setting the rotating speed of the inserted fan to be a second preset rotating speed when the fact that the fan is inserted exists within a second preset time period from the time when the target fan is pulled out to the time when the time is delayed.
In one embodiment of the present invention, the apparatus may further include:
the third rotating speed setting module is used for setting the rotating speeds of other fans except the target fan in the server fan set as a second preset rotating speed when the fan insertion is not detected within a second preset time period after the target fan is pulled out;
the second judgment module is used for judging whether the fan is inserted or not after the target fan is pulled out until the delay time exceeds a second preset time length;
the fourth rotating speed setting module is used for setting the rotating speed of the inserted fan to be a second preset rotating speed and setting the rotating speeds of other fans except the inserted fan in the server fan set to be a third preset rotating speed when the fan is inserted after the target fan is pulled out and the delay time exceeds a second preset duration; wherein the third preset rotating speed is less than the first preset rotating speed;
the mode setting module 35 specifically sets the rotation speed of each fan in the current server fan set to be the preset automatic debugging mode when the fan is inserted from the time of insertion to the time delay of a third preset duration; and the third preset time length is greater than the first preset time length.
In one embodiment of the present invention, the apparatus may further include:
and the rotating speed maintaining module is used for setting other fans except the target fan in the server fan set to rotate at a second preset rotating speed when the fan is not detected to be inserted after the time delay from the pulling-out of the target fan exceeds a second preset time length.
Corresponding to the above method embodiment, referring to fig. 4, fig. 4 is a schematic diagram of a hot plug device for a fan provided by the present invention, where the device may include:
a memory 41 for storing a computer program;
the processor 42, when executing the computer program stored in the memory 41, may implement the following steps:
detecting the in-place state of each fan in the server fan set; judging whether a fan with an in-place state being a pulling-out state exists or not; if so, determining the fan with the in-place state being the pull-out state as a target fan, and setting the rotating speeds of other fans except the target fan in the server fan set as a first preset rotating speed; when the fan is detected to be inserted, setting the rotating speed of the inserted fan as a second preset rotating speed; the second preset rotating speed is greater than the first preset rotating speed; and when the inserted fan delays for a first preset time length from the insertion, setting the rotating speed of each fan in the current server fan set to be in a preset automatic debugging mode.
For the introduction of the device provided by the present invention, please refer to the above method embodiment, which is not described herein again.
Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
detecting the in-place state of each fan in the server fan set; judging whether a fan with an in-place state being a pulling-out state exists or not; if so, determining the fan with the in-place state being the pull-out state as a target fan, and setting the rotating speeds of other fans except the target fan in the server fan set as a first preset rotating speed; when the fan is detected to be inserted, setting the rotating speed of the inserted fan as a second preset rotating speed; the second preset rotating speed is greater than the first preset rotating speed; and when the inserted fan delays for a first preset time length from the insertion, setting the rotating speed of each fan in the current server fan set to be in a preset automatic debugging mode.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device, the apparatus and the computer-readable storage medium disclosed in the embodiments correspond to the method disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A hot plug method for a fan is characterized by comprising the following steps:
detecting the in-place state of each fan in the server fan set;
judging whether the fan with the in-place state being the pull-out state exists or not;
if yes, determining the fan with the in-place state being the pull-out state as a target fan, and setting the rotating speeds of other fans except the target fan in the server fan set as a first preset rotating speed;
when the fan is detected to be inserted, setting the rotating speed of the inserted fan as a second preset rotating speed; the second preset rotating speed is greater than the first preset rotating speed;
and when the inserted fan delays for a first preset time length from the insertion, setting the rotating speed of each fan in the current server fan set to be in a preset automatic debugging mode.
2. The method for hot plug of a fan according to claim 1, wherein when detecting that the fan is inserted, setting the rotation speed of the inserted fan to be a second preset rotation speed comprises:
judging whether a fan is inserted or not from the time when the target fan is pulled out to the time when the second preset time is delayed;
and if so, setting the rotating speed of the inserting fan to be the second preset rotating speed.
3. The method for hot plugging a fan according to claim 2, further comprising:
when the target fan is pulled out until the fan insertion is not detected within the second preset time, setting the rotating speeds of other fans except the target fan in the server fan set to be the second preset rotating speed;
judging whether a fan is inserted or not after the target fan is pulled out until the delay time exceeds the second preset time;
if so, setting the rotating speed of the inserted fan as the second preset rotating speed, and setting the rotating speeds of other fans except the inserted fan in the server fan set as the third preset rotating speed; wherein the third preset rotating speed is less than the first preset rotating speed;
when the inserting fan is from inserting to delaying for a first preset duration, setting the rotating speed of each fan in the server fan set at present to be a preset automatic debugging mode, including:
when the inserted fan is delayed for a third preset time length from the insertion, setting the rotating speed of each fan in the current server fan set to be in a preset automatic debugging mode; and the third preset time length is greater than the first preset time length.
4. A method for hot plugging a fan according to claim 3, further comprising:
and when the target fan is pulled out until the time delay exceeds the second preset time length and the fan is not detected to be inserted, setting other fans except the target fan in the server fan set to rotate at the second preset rotating speed.
5. A hot plug device for a fan, comprising:
the state detection module is used for detecting the in-place state of each fan in the server fan set;
the first judgment module is used for judging whether the fan with the in-place state being the pull-out state exists or not;
the first rotating speed setting module is used for determining the fan with the pulling-out state as a target fan when the fan with the pulling-out state in the in-place state is determined to exist, and setting the rotating speeds of other fans except the target fan in the server fan set as a first preset rotating speed;
the second rotating speed setting module is used for setting the rotating speed of the inserted fan to be a second preset rotating speed when the fan is detected to be inserted; the second preset rotating speed is greater than the first preset rotating speed;
and the mode setting module is used for setting the rotating speed of each fan in the current server fan set to be a preset automatic debugging mode when the inserted fan delays for a first preset time length from the insertion.
6. The hot plug device for fan according to claim 5, wherein the second rotation speed setting module comprises:
the judgment submodule is used for judging whether the fan is inserted or not from the time when the target fan is pulled out to the time when the second preset time is delayed;
and the second rotating speed setting submodule is used for setting the rotating speed of the inserted fan to be the second preset rotating speed when the fact that the fan is inserted in the second preset time period from the time when the target fan is pulled out to the time when the time is delayed is determined.
7. The hot plug device for a fan according to claim 6, further comprising:
a third rotation speed setting module, configured to set, when a fan insertion is not detected within the second preset duration after the target fan is pulled out, the rotation speeds of fans other than the target fan in the server fan set to the second preset rotation speed;
the second judgment module is used for judging whether the fan is inserted or not after the target fan is pulled out until the delay time exceeds the second preset time length;
a fourth rotation speed setting module, configured to set, when there is a fan inserted after the target fan is pulled out to a time delay exceeding the second preset duration, the rotation speed of the inserted fan to the second preset rotation speed, and set the rotation speeds of fans other than the inserted fan in the server fan set to the third preset rotation speed; wherein the third preset rotating speed is less than the first preset rotating speed;
the mode setting module is specifically used for setting the rotating speed of each fan in the current server fan set to be a preset automatic debugging mode when the inserting fan delays for a third preset time length from the inserting; and the third preset time is longer than the first preset time.
8. The hot plug module for a fan according to claim 7, further comprising:
and the rotating speed maintaining module is used for setting other fans except the target fan in the server fan set to rotate at the second preset rotating speed when the fan is not detected to be inserted after the time delay from the pulling-out of the target fan exceeds the second preset time length.
9. A hot plug device for a fan, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the fan hot plug method according to any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the fan hot plug method according to any of claims 1 to 4.
CN202110314328.0A 2021-03-24 2021-03-24 Fan hot plug method, device, equipment and computer readable storage medium Pending CN113032213A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110314328.0A CN113032213A (en) 2021-03-24 2021-03-24 Fan hot plug method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110314328.0A CN113032213A (en) 2021-03-24 2021-03-24 Fan hot plug method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113032213A true CN113032213A (en) 2021-06-25

Family

ID=76473578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110314328.0A Pending CN113032213A (en) 2021-03-24 2021-03-24 Fan hot plug method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113032213A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114020670A (en) * 2021-10-28 2022-02-08 郑州云海信息技术有限公司 PCIE card management method, system, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105546681A (en) * 2016-02-02 2016-05-04 珠海格力电器股份有限公司 Device and method for preventing cooling fan from rotating reversely and air conditioner
WO2017202152A1 (en) * 2016-05-24 2017-11-30 中兴通讯股份有限公司 Fan control method and apparatus
CN108105138A (en) * 2017-12-18 2018-06-01 青岛海信激光显示股份有限公司 A kind of target method for starting fan
CN112506739A (en) * 2020-12-04 2021-03-16 苏州浪潮智能科技有限公司 Method, system, equipment and medium for solving fan reversion problem

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105546681A (en) * 2016-02-02 2016-05-04 珠海格力电器股份有限公司 Device and method for preventing cooling fan from rotating reversely and air conditioner
WO2017202152A1 (en) * 2016-05-24 2017-11-30 中兴通讯股份有限公司 Fan control method and apparatus
CN108105138A (en) * 2017-12-18 2018-06-01 青岛海信激光显示股份有限公司 A kind of target method for starting fan
CN112506739A (en) * 2020-12-04 2021-03-16 苏州浪潮智能科技有限公司 Method, system, equipment and medium for solving fan reversion problem

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114020670A (en) * 2021-10-28 2022-02-08 郑州云海信息技术有限公司 PCIE card management method, system, equipment and storage medium
CN114020670B (en) * 2021-10-28 2024-04-26 郑州云海信息技术有限公司 PCIE card management method, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
TW201702799A (en) Method and system for dynamically managing power supply
EP4002132A1 (en) Adaptive device behavior based on available energy
CN107273182B (en) Method and system for dynamically expanding virtual machine resources
CN107844165B (en) Hard disk hot plug realizing device
CN103927230A (en) Memory usage feedback method and device
US9601180B2 (en) Automatic partial array self-refresh
CN106992326B (en) Charging control method and device and electronic equipment
CN104932933A (en) Spin lock acquisition method and apparatus
CN113032213A (en) Fan hot plug method, device, equipment and computer readable storage medium
CN112732616A (en) BMC starting method, device and equipment based on SPI controller
CN110580195B (en) Memory allocation method and device based on memory hot plug
CN110674064B (en) Data transmission method, device, equipment and computer readable storage medium
CN109144778A (en) A kind of storage server system and its backup method, system and readable storage medium storing program for executing
CN109185208B (en) Fan speed regulation method and related device
CN111953569B (en) State information reporting method, device, equipment and medium
CN116467235B (en) DMA-based data processing method and device, electronic equipment and medium
CN104854535A (en) Computing systems and methods for controlling a computing system
CN116823587A (en) Graphics processor control method and device, electronic equipment and storage medium
CN113094231B (en) Computer fan control method, system, controller and storage medium
CN112346556A (en) Method, device, computer equipment and medium for improving low power consumption efficiency of chip
CN104391564A (en) Power consumption control method and device
CN113835508A (en) Power consumption management method and device of server, BMC and storage medium
CN111338567A (en) Mirror image caching method based on Protocol Buffer
CN110554763A (en) information processing method and electronic equipment
CN112817746B (en) CPU power adjusting method, device, equipment and readable storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210625

RJ01 Rejection of invention patent application after publication