Hard disk heat dissipation control method and device, equipment and medium
By obtaining the hard disk configuration mode in the server, determining the target temperature value, risk threshold and speed regulation value, and controlling the fan speed for heat dissipation, it solves the problem of poor heat dissipation requirements after the mixed hard disk is inserted, improves computing efficiency and system stability, and enhances data security.
Patent Information
- Application Number
- CN202510393239.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-07-04
AI Technical Summary
After inserting hard disks of different brands into the server, the existing technology cannot effectively take into account the heat dissipation needs of hard disks of each brand, resulting in poor heat dissipation performance and affecting data security.
By obtaining the hard disk configuration mode, the target temperature value, risk threshold and speed regulation value are determined, and these values are used as data sources to control the fan speed for heat dissipation, replacing multiple temperature control points to improve heat dissipation efficiency.
Improves computing efficiency and system stability, enhances data security of storage servers, and does not require secondary code development when the hard disk increases.
Smart Images

Figure CN120255675A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of heat dissipation control, and particularly to a hard disk heat dissipation control method, device, equipment and medium. Background Art
[0002] With the development of the digital age, the requirement for data security has increased. For servers, data loss can cause serious financial risks. Therefore, in order to improve data security, different brands of hard disks are mixed and inserted in the server to reduce the risk of data loss.
[0003] However, the heat dissipation requirements and strategies for hard disks of different brands and specifications are different. Therefore, in the scenario of mixed insertion of hard disks, conventional heat dissipation strategies cannot meet the heat dissipation requirements of multiple hard disks. Summary of the Invention
[0004] This application provides a hard disk heat dissipation control method, device, equipment and medium to at least solve the problem of poor heat dissipation performance in related technologies.
[0005] This application provides a hard disk heat dissipation control method, including:
[0006] Obtain the hard disk configuration mode of the server system, where the hard disk configuration mode includes a mixed insertion mode and a single mode;
[0007] In response to detecting that the hard disk configuration mode is the mixed insertion mode, call a target rule matching the hard disk interface type of one or more backplanes to obtain the hard disk parameters corresponding to multiple hard disks connected to the backplane;
[0008] Determine a target temperature value, a target risk threshold, and a target speed regulation value according to the hard disk parameters;
[0009] Control the fan speed in the server system according to the target temperature value, the target risk threshold, and the target speed regulation value to dissipate heat from the hard disk.
[0010] This application also provides a hard disk heat dissipation control device, including:
[0011] A data acquisition module, configured to obtain the hard disk configuration mode of the server system, where the hard disk configuration mode includes a mixed insertion mode and a single mode;
[0012] The data acquisition module is further configured to, in response to detecting that the hard disk configuration mode is the mixed insertion mode, call a target rule matching the hard disk interface type of one or more backplanes to obtain the hard disk parameters corresponding to multiple hard disks connected to the backplane;
[0013] A data processing module, configured to determine a target temperature value, a target risk threshold, and a target speed regulation value according to the hard disk parameters;
[0014] A heat dissipation processing module is used to control the fan speed in the server system according to the target temperature value, the target risk threshold, and the target speed regulation value to dissipate heat from the hard disk.
[0015] This application also provides an electronic device, including: a memory for storing a computer program; a processor for implementing the steps of any one of the above hard disk heat dissipation control methods when executing the computer program.
[0016] This application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the above hard disk heat dissipation control methods are implemented.
[0017] This application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the steps of any one of the above hard disk heat dissipation control methods are implemented.
[0018] Through this application, a target temperature value, a target risk threshold, and a target speed regulation value are determined as data sources for heat dissipation control, that is, a method of using one temperature regulation point to replace multiple temperature regulation points for heat dissipation is used, which improves the calculation efficiency, greatly improves the heat dissipation efficiency, further improves the system stability, thereby increasing the data security in the storage server. Further, when adding a hard disk in the server system, the method disclosed in this application can also be directly compatible without secondary code development. Description of the Drawings
[0019] To more clearly illustrate the embodiments of this application, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of this application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0020] Figure 1 Schematic diagram of a hard disk heat dissipation control method provided by an embodiment of this application;
[0021] Figure 2 Schematic diagram of a parameter acquisition process provided by an embodiment of this application;
[0022] Figure 3 Schematic diagram of the function of parameters provided by an embodiment of this application;
[0023] Figure 4 Schematic diagram of the architecture of a hard disk heat dissipation control device provided by an embodiment of this application;
[0024] Figure 5 Schematic diagram of an electronic device provided by an embodiment of this application. Detailed Embodiments
[0025] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0026] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover a non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0027] In order to enable those skilled in the art of the present technology to better understand the solution of the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0028] The hard disk heat dissipation control method disclosed in the present application is mainly applied to a server system, and the present application does not limit the specific server model.
[0029] As described in the background art, in the current digital age, with the application and popularization of the Internet, the data volume such as the digital transformation of enterprises has increased explosively; at the same time, the requirements for data security have been improved, and data loss may trigger serious risks and trust crises. Data sharing brought by internal enterprise collaboration and cross-organizational cooperation, in-depth mining and analysis of enterprise data, and simulation and storage of experimental data in the scientific research field, etc. require a storage server as the core device for data storage and management. Therefore, the server plays a crucial role in today's digital age.
[0030] Therefore, in order to provide better services, it is quite common to mix different brands of hard disks in a server. By mixing different brands of hard disks, the server can meet diverse customer needs, mainly capacity requirements and performance requirements. Different brands of hard disks have their own characteristics in terms of capacity specifications and can be flexibly configured. Moreover, different brands of hard disks have their own advantages in terms of performance, and the most suitable storage device can be allocated for the performance requirements of different applications in the server to improve the overall operation efficiency. By mixing different brands of hard disks, the server also realizes the optimization of costs and increases data redundancy and reliability. That is, from the perspective of data storage reliability, using different brands of hard disks in a mixed way can, to a certain extent, reduce the risk of data loss caused by common problems of a single brand of hard disks.
[0031] Although the server has brought a series of beneficial effects by mixing different brands of hard drives, it is precisely because different manufacturers' brands are mixed that the server correspondingly needs to face the problem of how to solve the heat dissipation control of the hard drives due to the different upper limit temperatures of hard drives from different manufacturers.
[0032] Therefore, the embodiments of the present application provide a hard drive heat dissipation control method, which is applied to a controller, as Figure 1 shown, and mainly includes the following content:
[0033] S1. Obtain the hard drive configuration mode of the server system, where the hard drive configuration mode includes a mixed mode and a single mode.
[0034] Specifically, as Figure 2 shown in the parameter acquisition process schematic diagram, the above-mentioned obtaining of the hard drive configuration mode of the server system includes:
[0035] Obtain the backplane combination form and physical address information accessed within the server system; specifically, different backplane combination forms (i.e., backplane configurations) can be distinguished according to the current hardware signals of the system, such as whether the current configuration is 2 hard drive backplanes or 3 hard drive backplanes, and obtain the connection topology settings of each backplane; among them, the physical address can be obtained by using IPMI commands (Intelligent Platform Management Interface, an open standard hardware management interface specification), or can be obtained by using Redfish API. Redfish is a modern, RESTful architecture-based API for managing and monitoring server hardware; of course, the physical address can also be determined by other means, and the present application does not limit this.
[0036] According to the physical address information, access the processors of one or more backplanes included in the backplane combination form to obtain the hard drive interface types on the backplanes; preferably, the processor is set as a CPLD (Complex Programmable Logic Device), and of course, it can also be set as other logic devices; the present application does not limit this.
[0037] Call a matching first script according to the hard drive interface type to obtain information of multiple manufacturers; the first script is a pre-programmed program script for retrieving the manufacturer information of the hard drive, and the first script is specifically adjusted according to the interface type, and different programs are called through different interface types. The specific content of script writing is a conventional technical means in the art, and the present application does not expand it here. If the manufacturer information is the same, it is determined that the hardware configuration mode of the server system is a mixed mode; if the manufacturer information is different, it is determined that the hardware configuration mode of the server system is a single mode.
[0038] S2. In response to detecting that the hard disk configuration mode is the mixed insertion mode, call the target rule that matches the hard disk interface type of one or more backplanes to obtain the hard disk parameters corresponding to the multiple hard disks connected to the backplane.
[0039] Specifically, the hard disk interface types include the first hard disk interface type and the second hard disk interface type. In a specific implementation scenario, the above-mentioned first hard disk interface type can be the SATA interface type for connecting to an SSD (Solid State Disk or Solid State Drive, solid state drive), and the above-mentioned second hard disk interface type can be the PCIe (Peripheral Component Interconnect Express) interface for connecting to an NVMe (Non-Volatile Memory Express) hard disk. The above-mentioned calling the target rule that matches the hard disk interface type of one or more backplanes to obtain the hard disk parameters corresponding to the multiple hard disks connected to the backplane includes: in response to detecting that the hard disk interface type of the hard disk is the first hard disk interface type, call the monitoring library function to obtain the hard disk parameters of the hard disk, that is, after determining that it is an SSD hard disk, call the monitoring library functions of different network cards to obtain the information in the network cards. It can be understood that the above-obtained hard disk parameters at least include the hard disk temperature value, the regulation target value, and the risk threshold.
[0040] If it is a single mode, directly obtain the temperature values of all hard disks, calculate the average temperature value, and determine the average temperature value as the target temperature value. It can be understood that in the storage server system in the single mode, the speed regulation target values and risk thresholds corresponding to each hard disk are the same. Therefore, without comparison, the target speed regulation value and the target risk threshold can be determined according to the speed regulation target value and the risk threshold of one of the hard disks.
[0041] In response to detecting that the hard disk interface type of the hard disk is the second hard disk interface type, that is, for an NVMe hard disk, the monitoring script matched according to the manufacturer information matching the hard disk is used to obtain the hard disk parameters of the hard disk. Further, the monitoring script includes a first monitoring script and a second monitoring script. Using the monitoring script matched according to the manufacturer information matching the hard disk to obtain the hard disk parameters of the hard disk includes: in response to detecting that the manufacturer information is the first type of manufacturer, calling the first monitoring script to read a specified area of the hard disk to obtain the hard disk parameters; in response to detecting that the manufacturer information is the second type of manufacturer, calling the second monitoring script to read the hard disk using a specified communication protocol to obtain the hard disk parameters. The first monitoring script is used to trigger the controller to read specific parameters such as Device ID, Available Spare, and Firmware Version through the manager (ox6a) area. The specific programming language script is not limited in this application. The second monitoring script is used to trigger the controller to read the hard disk based on the NVME-MI protocol to obtain the above specific parameters. Of course, if public information needs to be read, it can be obtained by obtaining the VPD information of the hard disk. VPD (Vital Product Data) information refers to some key identification and attribute data stored on the hard disk. The specific obtaining method is a conventional technical means in this field and is not limited in this application. It can be understood that in the mixed insertion mode of this application, the manufacturer information of the hard disk is first obtained, and then differentiated monitoring is performed. Different rules are called for different interface types to achieve targeted acquisition of the hard disk parameters of different manufacturers, improving the acquisition efficiency of the hard disk parameters.
[0042] S3. Determine the target temperature value, target risk threshold, and target speed regulation value according to the hard disk parameters.
[0043] Specifically, as Figure 3 shown, determining the target temperature value, target risk threshold, and target speed regulation value according to the hard disk parameters includes: obtaining the hard disk temperature values of each hard disk in the hard disk parameters, and determining the maximum value among the multiple hard disk temperature values as the target temperature value; obtaining the speed regulation target values of each hard disk in the hard disk parameters, and determining the minimum value among the multiple speed regulation target values as the target speed regulation value; obtaining the risk thresholds of each hard disk in the hard disk parameters, and determining the minimum value among the multiple risk thresholds as the target risk threshold. The selection of the above target temperature value, target risk threshold, and target speed regulation value can meet the working requirements of all hard disks. On this basis, hard disk heat dissipation control is performed, and there is no need to calculate the fan speed for each hard disk, greatly saving computing resources.
[0044] It can be understood that the number of sensors supported by the controller is limited. For example, in the case of a BMC (Baseboard Management Controller), a single baseboard management controller usually only supports displaying 256 sensors. In the prior art, a temperature sensor is set for each hard disk, that is, each temperature sensor uses a separate temperature and risk threshold for display. Generally, for a storage server, if there is a 72-disk configuration, 72 temperature sensors are required, while the entire baseboard management control only supports displaying 256 sensors. This results in excessive consumption of sensor resources. Moreover, if the configuration of the storage server system changes, such as from 36 disks to 72 disks, the baseboard management controller needs to add additional temperature sensors, and further requires developing code for testing and production, thus increasing the economic cost and lengthening the shipping cycle.
[0045] It is worth noting that in the hard disk heat dissipation control method disclosed in the embodiments of the present application, only one temperature sensor (sensor) is set in the controller as the temperature regulation point. After the controller determines the unique target temperature value and target risk threshold in the entire server system, they are sent as data sources to the temperature sensor for display. Therefore, the method disclosed in the embodiments of the present application greatly saves the consumption of sensors, provides more resources for the temperature monitoring of other components, further improves the stability of the entire storage server system, and can be compatible with various types of storage servers without the need for secondary code development.
[0046] In a specific implementation scenario, the controller generates a display adjustment request based on the target temperature value and the target risk threshold; and sends the display adjustment request to the temperature sensor to dynamically adjust the display value of the temperature sensor to the target temperature value and the target risk threshold.
[0047] In some implementation scenarios, the controller obtains the minimum value among the hard disk temperature values in the hard disk parameters of each hard disk, and determines the minimum value as the lower limit temperature value; in response to detecting that the target temperature value is greater than the target risk threshold and the lower limit temperature value is greater than or equal to the target speed regulation value, the controller uses the backplane as an index to compare the hard disk temperature values of each hard disk on each backplane with the target risk threshold; a hard disk with a hard disk temperature value exceeding the target risk threshold is defined as a risky hard disk; if it is detected that the number of risky hard disks on a backplane exceeds the preset threshold, the backplane is determined as a risky backplane; the storage status of each hard disk on the risky backplane is obtained, and a hard disk with a storage status of idle or low storage is selected as a spare hard disk; the spare hard disk is powered off; it should be noted that for a hard disk with a low storage status, the data in the hard disk needs to be backed up; and when the lower limit temperature value is less than the target speed regulation value and the target temperature value is less than the target risk threshold, the spare hard disk is powered on and started. Through the above steps, when there are potential problems with heat dissipation in the server, the spare hard disk is powered off, reducing the heat generated by the hard disk operation, further improving the server heat dissipation efficiency, and thus improving the stability of the entire storage server system.
[0048] S4. Control the fan speed in the server system according to the target temperature value, the target risk threshold, and the target speed regulation value to dissipate heat from the hard disk.
[0049] Specifically, in response to detecting that the target temperature value is less than the target speed regulation value, calculate the target fan speed according to the target temperature value, which is implemented through a preset fan speed calculation algorithm in a specific implementation scenario. The fan speed calculation algorithm is based on the fan speed calculated from the temperature value. In this embodiment, the above fan speed calculation algorithm is set by those skilled in the art, and one or more algorithms can be set according to the actual scenario. This application does not limit the specific algorithm.
[0050] In response to detecting that the target temperature value is greater than or equal to the target speed regulation value and less than the risk threshold, determine the fixed fan speed matching the target speed regulation value as the target fan speed; in response to detecting that the target temperature value is greater than or equal to the risk threshold, determine the fixed fan speed matching the risk threshold as the target fan speed, that is, when the temperature reaches the risk threshold, the temperature in the entire storage server system is too high. At this time, the fan speed calculated based on the temperature cannot be adjusted slowly, and it is necessary to immediately pull the fan speed to the fixed fan speed matching the risk threshold; control the fan speed in the server system to be the target fan speed to dissipate heat from the hard disks. In the heat dissipation control method disclosed in the embodiments of the present application, for multiple hard disks, only one data source for regulation needs to be obtained to dissipate heat from multiple hard disks reasonably; it reduces the waste of computing resources caused by repeatedly calculating multiple fan speeds based on the temperature values, regulation values, and thresholds corresponding to multiple hard disks in traditional heat dissipation control and then analyzing and determining the appropriate fan speed, greatly accelerating the efficiency of the entire heat dissipation process and further improving the stability of the entire storage server system.
[0051] The hard disk heat dissipation control method disclosed in the embodiments of the present application solves the heat dissipation problem. It uses a method of replacing multiple regulation points with one temperature regulation point for heat dissipation control, and uses the minimum value of the regulation value, the minimum value of the risk threshold, and the maximum value of the hard disk temperature as the data source for calculation, improving the heat dissipation efficiency. If it is necessary to add hard disks in the storage system, the method disclosed in this embodiment can be directly compatible without secondary code development.
[0052] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. However, in many cases, the former is a better implementation method.
[0053] The embodiments of the present application also provide a hard disk heat dissipation control device, including:
[0054] A data acquisition module 410, configured to acquire the hard disk configuration mode of the server system, where the hard disk configuration mode includes a mixed insertion mode and a single mode;
[0055] The data acquisition module 410 is further configured to, in response to detecting that the hard disk configuration mode is a mixed insertion mode, call a target rule matching the hard disk interface type of one or more backplanes to acquire hard disk parameters corresponding to multiple hard disks connected to the backplane;
[0056] A data processing module 420, configured to determine a target temperature value, a target risk threshold, and a target speed regulation value according to the hard disk parameters;
[0057] The heat dissipation processing module 430 is used to control the fan speed within the server system according to the target temperature value, the target risk threshold, and the target speed regulation value to dissipate heat from the hard disk.
[0058] In some implementation scenarios, the data acquisition module 410 is further configured to obtain the hard disk temperature value of each hard disk in the hard disk parameters, and determine the maximum value among the multiple hard disk temperature values as the target temperature value; obtain the speed regulation target value of each hard disk in the hard disk parameters, and determine the minimum value among the multiple speed regulation target values as the target speed regulation value; obtain the risk threshold of each hard disk in the hard disk parameters, and determine the minimum value among the multiple risk thresholds as the target risk threshold.
[0059] In some implementation scenarios, the heat dissipation processing module 430 is further configured to, in response to detecting that the target temperature value is less than the target speed regulation value, calculate the target fan speed according to the target temperature value; in response to detecting that the target temperature value is greater than or equal to the target speed regulation value and less than the risk threshold, determine the fixed fan speed matching the target speed regulation value as the target fan speed; in response to detecting that the target temperature value is greater than or equal to the risk threshold, determine the fixed fan speed matching the risk threshold as the target fan speed; control the fan speed within the server system to be the target fan speed to dissipate heat from the hard disk.
[0060] In some implementation scenarios, the data processing module 420 is further configured to generate a display adjustment request according to the target temperature value and the target risk threshold; send the display adjustment request to the temperature sensor to dynamically adjust the display value of the temperature sensor to the target temperature value and the target risk threshold.
[0061] In some implementation scenarios, the data acquisition module 410 is further configured to obtain the backplane combination form and physical address information accessed within the server system; according to the physical address information, access the processors of one or more backplanes included in the backplane combination form to obtain the hard disk interface type on the backplane; call a matching first script according to the hard disk interface type to obtain multiple vendor information; if the vendor information is consistent, determine that the hardware configuration mode of the server system is the mixed insertion mode; if the vendor information is inconsistent, determine that the hardware configuration mode of the server system is the single mode.
[0062] In some implementation scenarios, the data acquisition module 410 is further configured to, in response to detecting that the hard disk interface type of the hard disk is the first hard disk interface type, call the monitoring library function to obtain the hard disk parameters of the hard disk; in response to detecting that the hard disk interface type of the hard disk is the second hard disk interface type, obtain the hard disk parameters of the hard disk according to the monitoring script matching the vendor information matching the hard disk.
[0063] In some implementation scenarios, the data acquisition module 410 is further configured to, in response to detecting that the manufacturer information is of the first type of manufacturer, call a first monitoring script to read a specified area of the hard disk to obtain hard disk parameters; and in response to detecting that the manufacturer information is of the second type of manufacturer, call a second monitoring script to read the hard disk using a specified communication protocol to obtain hard disk parameters.
[0064] For the descriptions of the features in the corresponding embodiments of the above hard disk heat dissipation control device, reference can be made to the relevant descriptions in the corresponding embodiments of the hard disk heat dissipation control method, which will not be elaborated here one by one.
[0065] An embodiment of the present application further provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above embodiments of the hard disk heat dissipation control method:
[0066] Obtain the hard disk configuration mode of the server system, where the hard disk configuration mode includes a mixed insertion mode and a single mode;
[0067] In response to detecting that the hard disk configuration mode is the mixed insertion mode, call a target rule that matches the hard disk interface type of one or more backplanes to obtain the hard disk parameters corresponding to multiple hard disks connected to the backplane;
[0068] Determine a target temperature value, a target risk threshold, and a target speed regulation value according to the hard disk parameters;
[0069] Control the fan speed within the server system according to the target temperature value, the target risk threshold, and the target speed regulation value to dissipate heat from the hard disk.
[0070] In some implementation scenarios, the memory is used to store program instructions. When the program instructions are read and executed by one or more processors, the following operations are further performed:
[0071] Obtain the hard disk temperature values of each hard disk in the hard disk parameters, and determine the maximum value among the multiple hard disk temperature values as the target temperature value;
[0072] Obtain the speed regulation target values of each hard disk in the hard disk parameters, and determine the minimum value among the multiple speed regulation target values as the target speed regulation value;
[0073] Obtain the risk thresholds of each hard disk in the hard disk parameters, and determine the minimum value among the multiple risk thresholds as the target risk threshold.
[0074] In some implementation scenarios, the memory is used to store program instructions. When the program instructions are read and executed by one or more processors, the following operations are further performed:
[0075] In response to detecting that the target temperature value is less than the target speed regulation value, calculate the target fan speed according to the target temperature value;
[0076] In response to detecting that the target temperature value is greater than or equal to the target speed regulation value and less than the risk threshold, determine the fixed fan speed matching the target speed regulation value as the target fan speed;
[0077] In response to detecting that the target temperature value is greater than or equal to the risk threshold, determine the fixed fan speed matching the risk threshold as the target fan speed;
[0078] Control the fan speed in the server system to the target fan speed to dissipate heat from the hard disk.
[0079] In some implementation scenarios, the memory is used to store program instructions. When the program instructions are read and executed by one or more processors, the following operations are also performed:
[0080] Generate a display adjustment request according to the target temperature value and the target risk threshold;
[0081] Send the display adjustment request to the temperature sensor to dynamically adjust the display value of the temperature sensor to the target temperature value and the target risk threshold.
[0082] In some implementation scenarios, the memory is used to store program instructions. When the program instructions are read and executed by one or more processors, the following operations are also performed:
[0083] Obtain the backplane combination form and physical address information accessed within the server system;
[0084] According to the physical address information, access the processors of one or more backplanes included in the backplane combination form to obtain the hard disk interface types on the backplane;
[0085] Call a matching first script according to the hard disk interface type to obtain multiple vendor information;
[0086] If the vendor information is consistent, determine that the hardware configuration mode of the server system is the mixed insertion mode;
[0087] If the vendor information is inconsistent, determine that the hardware configuration mode of the server system is the single mode.
[0088] In some implementation scenarios, the memory is used to store program instructions. When the program instructions are read and executed by one or more processors, the following operations are also performed:
[0089] In response to detecting that the hard disk interface type of the hard disk is the first hard disk interface type, call the monitoring library function to obtain the hard disk parameters of the hard disk;
[0090] In response to detecting that the hard disk interface type of the hard disk is the second hard disk interface type, obtain the hard disk parameters of the hard disk according to the monitoring script matched with the vendor information matched with the hard disk.
[0091] In some implementation scenarios, a memory is used to store program instructions. When the program instructions are read and executed by one or more processors, the following operations are also performed:
[0092] In response to detecting that the hard disk interface type of the hard disk is the first hard disk interface type, call the monitoring library function to obtain the hard disk parameters of the hard disk;
[0093] In response to detecting that the hard disk interface type of the hard disk is the second hard disk interface type, match the monitoring script according to the manufacturer information matching the hard disk to obtain the hard disk parameters of the hard disk.
[0094] Among them, Figure 5 An exemplary architecture of the electronic device is shown, which may specifically include a processor 510, a video display adapter 511, a disk drive 512, an input / output interface 513, a network interface 514, and a memory 520. The above-mentioned processor 510, video display adapter 511, disk drive 512, input / output interface 513, network interface 514, and the memory 520 can be communicatively connected through a bus 530.
[0095] Among them, the processor 510 can be implemented in a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., and is used to execute relevant programs to implement the technical solutions provided by this application.
[0096] The memory 520 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage devices, dynamic storage devices, etc. The memory 520 can store an operating system 521 for controlling the execution of the electronic device 500, and a basic input / output system (BIOS) 522 for controlling the low-level operations of the electronic device 500. In addition, a web browser 523, a data storage management system 524, an icon font processing system 525, etc. can also be stored. The above-mentioned icon font processing system 525 can be the application program that specifically implements the foregoing steps in the embodiments of this application. In short, when implementing the technical solutions provided by this application through software or firmware, the relevant program codes are stored in the memory 520 and called and executed by the processor 510.
[0097] The input / output interface 513 is used to connect to the input / output module to achieve information input and output. The input / output module can be configured as a component in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Among them, the input devices can include keyboards, mice, touchscreens, microphones, various sensors, etc., and the output devices can include displays, speakers, vibrators, indicator lights, etc.
[0098] The network interface 514 is used to connect to the communication module (not shown in the figure) to achieve communication and interaction between this device and other devices. Among them, the communication module can achieve communication through wired means (such as USB, network cable, etc.) or through wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0099] The bus 530 includes a path for transmitting information between various components of the device (such as the processor 510, video display adapter 511, disk drive 512, input / output interface 513, network interface 514, and memory 520).
[0100] In addition, the electronic device 500 can also obtain information on specific collection conditions from the conditional information database of the virtual resource object for conditional judgment, etc.
[0101] It should be noted that although the above device only shows the processor 510, video display adapter 511, disk drive 512, input / output interface 513, network interface 514, memory 520, bus 530, etc., in the specific implementation process, the device may also include other components necessary for normal execution. In addition, those skilled in the art can understand that the above device may also only include the components necessary to implement the solution of the present application and does not necessarily include all the components shown in the figure.
[0102] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. Among them, the computer program is set to execute the steps in any of the above embodiments of the hard disk heat dissipation control method when running:
[0103] Obtain the hard disk configuration mode of the server system, where the hard disk configuration mode includes a mixed insertion mode and a single mode;
[0104] In response to detecting that the hard disk configuration mode is the mixed insertion mode, call the target rule matching the hard disk interface type of one or more backplanes to obtain the hard disk parameters corresponding to the multiple hard disks connected to the backplane;
[0105] Determine the target temperature value, target risk threshold, and target speed regulation value according to the hard disk parameters;
[0106] Control the fan speed within the server system according to the target temperature value, target risk threshold, and target speed regulation value to dissipate heat from the hard disk.
[0107] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: USB flash drives, read-only memory (ROM), random access memory (RAM), external hard drives, magnetic disks, or optical discs, and other various media that can store computer programs.
[0108] An embodiment of the present application also provides a computer program product. The above computer program product includes a computer program, and when the computer program is executed by a processor, it implements the steps in any of the above embodiments of the hard disk heat dissipation control method:
[0109] Obtain the hard disk configuration mode of the server system, where the hard disk configuration mode includes a mixed insertion mode and a single mode;
[0110] In response to detecting that the hard disk configuration mode is the mixed insertion mode, call a target rule that matches the hard disk interface type of one or more backplanes to obtain the hard disk parameters corresponding to multiple hard disks connected to the backplane;
[0111] Determine the target temperature value, target risk threshold, and target speed regulation value according to the hard disk parameters;
[0112] Control the fan speed within the server system according to the target temperature value, target risk threshold, and target speed regulation value to dissipate heat from the hard disk.
[0113] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium. The non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the steps in any of the above embodiments of the hard disk heat dissipation control method:
[0114] Obtain the hard disk configuration mode of the server system, where the hard disk configuration mode includes a mixed insertion mode and a single mode;
[0115] In response to detecting that the hard disk configuration mode is the mixed insertion mode, call a target rule that matches the hard disk interface type of one or more backplanes to obtain the hard disk parameters corresponding to multiple hard disks connected to the backplane;
[0116] Determine the target temperature value, target risk threshold, and target speed regulation value according to the hard disk parameters;
[0117] Control the fan speed within the server system according to the target temperature value, target risk threshold, and target speed regulation value to dissipate heat from the hard disk.
[0118] Those skilled in the art may further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0119] The above has introduced in detail a hard disk heat dissipation control provided by this application. Specific examples are used herein to elaborate on the principle and implementation manner of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the principle of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the protection scope of the claims of this application.
Claims
1. A hard disk heat dissipation control method, characterized in that, Applied to a controller, the method includes: Obtain the hard disk configuration mode of the server system, where the hard disk configuration mode includes a mixed insertion mode and a single mode; In response to detecting that the hard disk configuration mode is the mixed insertion mode, call a target rule that matches the hard disk interface type of one or more backplanes to obtain the hard disk parameters corresponding to the multiple hard disks connected to the backplane; Determine a target temperature value, a target risk threshold, and a target speed regulation value according to the hard disk parameters; Control the fan speed in the server system according to the target temperature value, the target risk threshold, and the target speed regulation value to dissipate heat from the hard disks.
2. The method according to claim 1, characterized in that The determining the target temperature value, the target risk threshold, and the target speed regulation value according to the hard disk parameters includes: Obtain the hard disk temperature value of each hard disk in the hard disk parameters, and determine the maximum value among the multiple hard disk temperature values as the target temperature value; Obtain the speed regulation target value of each hard disk in the hard disk parameters, and determine the minimum value among the multiple speed regulation target values as the target speed regulation value; Obtain the risk threshold of each hard disk in the hard disk parameters, and determine the minimum value among the multiple risk thresholds as the target risk threshold.
3. The method according to claim 2, characterized in that, The controlling the fan speed in the server system according to the target temperature value, the target threshold, and the target speed regulation value to dissipate heat from the hard disks includes: In response to detecting that the target temperature value is less than the target speed regulation value, calculate the target fan speed according to the target temperature value; In response to detecting that the target temperature value is greater than or equal to the target speed regulation value and less than the risk threshold, determine the fixed fan speed that matches the target speed regulation value as the target fan speed; In response to detecting that the target temperature value is greater than or equal to the risk threshold, determine the fixed fan speed that matches the risk threshold as the target fan speed; Control the fan speed in the server system to be the target fan speed to dissipate heat from the hard disks.
4. The method according to claim 1, wherein After determining the target temperature value, the target risk threshold, and the target speed regulation value according to the hard disk parameters, the method further includes: Generate a display adjustment request according to the target temperature value and the target risk threshold; Send the display adjustment request to the temperature sensor to dynamically adjust the display value of the temperature sensor to the target temperature value and the target risk threshold.
5. The method according to claim 1, characterized in that, The obtaining the hard disk configuration mode of the server system includes: Obtain the backplane combination form and physical address information connected in the server system; According to the physical address information, access the processors of one or more backplanes included in the backplane combination form to obtain the hard disk interface type on the backplane; Call a matching first script according to the hard disk interface type to obtain multiple manufacturer information; If the manufacturer information is consistent, determine that the hardware configuration mode of the server system is the mixed insertion mode; If the manufacturer information is inconsistent, determine that the hardware configuration mode of the server system is the single mode.
6. The method according to claim 1, wherein The hard disk interface type includes a first hard disk interface type and a second hard disk interface type. The calling a target rule that matches the hard disk interface type of one or more backplanes to obtain the hard disk parameters corresponding to the multiple hard disks connected to the backplane includes: In response to detecting that the hard disk interface type of the hard disk is the first hard disk interface type, call the monitoring library function to obtain the hard disk parameters of the hard disk; In response to detecting that the hard disk interface type of the hard disk is the second hard disk interface type, match the monitoring script according to the manufacturer information matching the hard disk to obtain the hard disk parameters of the hard disk.
7. The method according to claim 6, wherein The monitoring script includes a first monitoring script and a second monitoring script. Matching the monitoring script according to the manufacturer information matching the hard disk to obtain the hard disk parameters of the hard disk includes: In response to detecting that the manufacturer information is the first type of manufacturer, call the first monitoring script to read a specified area of the hard disk to obtain the hard disk parameters; In response to detecting that the manufacturer information is the second type of manufacturer, call the second monitoring script to read the hard disk using a specified communication protocol to obtain the hard disk parameters.
8. A hard disk heat dissipation control device, characterized in that, Includes: A data acquisition module, configured to acquire the hard disk configuration mode of the server system, where the hard disk configuration mode includes a mixed insertion mode and a single mode; The data acquisition module is further configured to, in response to detecting that the hard disk configuration mode is the mixed insertion mode, call the target rule matching the hard disk interface type of one or more backplanes to obtain the hard disk parameters corresponding to multiple hard disks connected to the backplane; A data processing module, configured to determine a target temperature value, a target risk threshold, and a target speed regulation value according to the hard disk parameters; A heat dissipation processing module, configured to control the fan speed in the server system according to the target temperature value, the target risk threshold, and the target speed regulation value to dissipate heat from the hard disk.
9. An electronic device, characterized in that, Includes: A memory, configured to store a computer program; A processor, configured to implement the steps of the hard disk heat dissipation control method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, where the computer program implements the steps of the hard disk heat dissipation control method according to any one of claims 1 to 7 when executed by a processor.