Server storage capability determination method and apparatus, and electronic device
By obtaining the storage capacity information of the server host in the substrate management controller, the problem of collecting storage capacity information occupation resources and bandwidths in the existing technology has been solved, and efficient monitoring and management of server storage capacity is realized.
Patent Information
- Application Number
- CN202411308504.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2025-01-28
AI Technical Summary
In the prior art, when collecting storage capacity information of a server host, it is necessary to occupy the host's computing resources and network bandwidth, affecting the host's normal service operation.
Send a request to the server host in the substrate management controller, obtain the server storage capacity information of the storage device, and obtain the storage capacity data from the server storage capacity based on the installation of the property perception option, and based on the storage capacity and preset storage capacity standard Determine the server storage ability.
Do not occupy the computing resources and network bandwidth of the host, reduce the risks that affect the normal business operation of the host, and achieve effective monitoring and management of server storage capacity.
Smart Images

Figure CN119377035A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device and electronic device for determining server storage capacity. Background Art
[0002] With the rapid development of emerging technologies such as artificial intelligence, the Internet of Things, and cloud computing, the amount of global data has exploded, and the demand for data storage has continued to rise. As the core infrastructure for data storage, server hosts play a vital role in storing and processing large amounts of data. In order to ensure data security and efficiency, it is particularly important to perceive the operating status of the storage devices of the server hosts.
[0003] At present, the storage capacity information of the server host is generally collected through the storage device monitoring system to perceive the operating status of the server host's storage device, such as collecting the storage capacity information of the solid state disk (SSD), mechanical hard disk (HDD) or redundant array of independent disks (RAID). However, the monitoring system needs to occupy the host's computing resources and network bandwidth in the process of collecting the server host's storage capacity information, which affects the normal business operation of the host. Summary of the invention
[0004] In view of the problems existing in the prior art, the present application provides a method, device and electronic device for determining the storage capacity of a server.
[0005] The present application provides a method for determining server storage capacity, which is applied to a baseboard management controller. The method includes: sending a request to a server host to obtain server storage capacity information responded by the server host; obtaining storage capacity data from the server storage capacity information based on a storage capacity perception option configuration; wherein the storage capacity data includes a plurality of storage capacity perception options; determining the server storage capacity based on the storage capacity data and a preset storage capacity standard; wherein the preset storage capacity standard is used to determine the server storage capacity based on the storage capacity perception option in the storage capacity data.
[0006] According to a method for determining server storage capacity provided by the present application, the server host includes a storage device; the server storage capacity is determined based on the storage capacity data and a preset storage capacity standard, specifically including: when determining that the storage device does not meet the preset storage capacity standard based on the storage capacity perception option in the storage capacity data, generating an alarm message, and sending the alarm message to a designated location to determine the server storage capacity; wherein the alarm message includes multiple types, and the alarm information type corresponds to the storage capacity perception option.
[0007] According to a method for determining server storage capacity provided by the present application, before obtaining storage capacity data from the server storage capacity information based on the storage capacity awareness option configuration, the method also includes: receiving the storage capacity awareness option configuration sent by the server host; wherein the storage capacity awareness option configuration includes multiple storage capacity awareness option collection indicators, and the storage capacity awareness option collection indicators are determined based on the type of the storage device, the number of the storage devices and the business needs.
[0008] According to a method for determining server storage capacity provided by the present application, the storage capacity perception options specifically include a storage device in-place status and a storage device usage rate; when it is determined based on the storage capacity perception options in the storage capacity data that the storage device does not meet the preset storage capacity standard, an alarm message is generated, including: when it is determined based on the storage device in-place status that the storage device is not in place, a storage device not in place alarm message is generated; when it is determined based on the storage device in-place status that the storage device is in place and the storage device usage rate exceeds an upper threshold limit of the storage device, a storage device high usage rate alarm message is generated; when it is determined based on the storage device in-place status that the storage device is in place and the storage device usage rate exceeds a lower threshold limit of the storage device, a storage device low usage rate alarm message is generated.
[0009] According to a server storage capacity determination method provided by the present application, before determining that the storage device does not meet the preset storage capacity standard based on the storage capacity perception option in the storage capacity data, the method also includes: receiving the preset storage capacity standard sent by the server host; wherein the preset storage capacity standard includes multiple sub-standards, and the sub-standards are determined based on the storage device type, the number of the storage devices and business needs, and the sub-standards correspond to the storage capacity perception option.
[0010] According to a method for determining server storage capacity provided by the present application, the baseboard management controller includes a timer, and a storage device log file is pre-generated in the baseboard management controller; sending a request to the server host specifically includes: after the set time of the timer is reached, sending a request to the server host; after obtaining storage capacity data from the server storage capacity information based on the storage capacity perception option configuration, the method also includes: when it is determined that the storage capacity data volume is less than the remaining capacity of the storage device log file, adding the storage capacity data to the end of the storage device log file.
[0011] According to a server storage capacity determination method provided in the present application, after obtaining storage capacity data from the server storage capacity information based on the storage capacity perception option configuration, the method also includes: when determining that the storage capacity data volume is greater than the remaining capacity of the storage device log file, creating a new storage device log file and adding the storage capacity data to the new storage device log file.
[0012] The present application also provides a server storage capacity determination device, which is applied to a baseboard management controller, and the device includes: an information transceiver module, which is used to send a request to a server host to obtain server storage capacity information of a storage device responded by the server host; wherein the server host includes the storage device; a storage capacity data acquisition module, which is used to obtain storage capacity data from the server storage capacity information based on a storage capacity perception option configuration; wherein the storage capacity data includes multiple storage capacity perception options; a storage capacity determination module, which is used to determine the server storage capacity based on the storage capacity data and a preset storage capacity standard; wherein the preset storage capacity standard is used to determine the server storage capacity based on the storage capacity perception option in the storage capacity data.
[0013] The present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the server storage capacity determination method described in any one of the above is implemented.
[0014] The present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the server storage capacity determination method described in any one of the above is implemented.
[0015] Compared to running a monitoring system in a server host to determine the server storage capacity, the server storage capacity determination method, device and electronic device provided in the present application obtain server storage capacity information of the storage device by sending a request to the server host in a baseboard management controller, obtains storage capacity data from the server storage capacity information based on the storage capacity perception option configuration, and determines the server storage capacity based on the storage capacity data and preset storage capacity standards, without occupying the host's computing resources and network bandwidth, thereby reducing the risk of affecting the normal business operation of the host. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 It is a flow chart of the method for determining server storage capacity provided in this application.
[0018] Figure 2 This is one of the framework diagrams of the method for determining server storage capacity provided in this application.
[0019] Figure 3 This is the second framework diagram of the method for determining server storage capacity provided by this application.
[0020] Figure 4 It is a structural diagram of a server storage capacity determination system of an application server storage capacity determination method provided in the present application.
[0021] Figure 5 It is a structural diagram of the server storage capacity determination device provided in this application.
[0022] Figure 6 It is a schematic diagram of the structure of the electronic device provided by this application. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0024] Combine the following Figure 1-Figure 6The present invention describes a method, device and electronic device for determining the storage capacity of a server.
[0025] Figure 1 It is a flow chart of the method for determining the server storage capacity provided by the present application, which is applied to a baseboard management controller.
[0026] The baseboard management controller includes an independent processor and an independent memory, so as to execute preset rules in the baseboard management controller, send requests to the server host, receive and store responses returned by the server host.
[0027] like Figure 1 As shown, the method includes: Step 101: Send a request to a server host to obtain server storage capacity information responded by the server host.
[0028] The baseboard management controller is located in the server host. Exemplarily, the baseboard management controller can be connected to the processor of the server host through a bus, thereby sending a request to the server host to obtain server storage capacity information and receiving a response returned by the server host, where the response is the server storage capacity information.
[0029] Server storage capacity information is also called server storage information, which is used to characterize the ability of the server host to store data.
[0030] Step 102: Acquire storage capacity data from the server storage capacity information based on the storage capacity awareness option configuration; wherein the storage capacity data includes a plurality of the storage capacity awareness options.
[0031] Exemplarily, the baseboard management controller may include a pre-acquired storage capacity sensing option configuration, and the storage capacity sensing option configuration may include a storage capacity sensing collection index. The independent processor of the baseboard management controller may acquire corresponding storage capacity sensing options from the server storage capacity information based on the storage capacity sensing collection index, and compose storage capacity data based on the acquired storage capacity sensing options.
[0032] The storage capacity sensing option configuration is a series of settings that enable the baseboard management controller to obtain storage capacity sensing options. For example, the storage capacity sensing option configuration may be a storage capacity sensing option configuration file, or a storage capacity sensing option configuration rule, etc.
[0033] Storage capacity awareness options are information that characterizes the storage capacity of a server in a certain aspect. For example, storage capacity awareness options may include storage device presence status, storage device capacity, storage device usage rate, storage device IOPS (Input / Output Per Second), storage device throughput, storage device estimated remaining life, storage device name, etc.
[0034] Step 103: Determine the server storage capacity based on the storage capacity data and a preset storage capacity standard; wherein the preset storage capacity standard is used to determine the server storage capacity based on the storage capacity perception option in the storage capacity data.
[0035] Exemplarily, the baseboard management controller may include a preset storage capacity standard obtained in advance. The preset storage capacity standard can be used to determine whether each storage capacity perception option in the storage capacity data meets the standard, and each storage capacity perception option in the storage capacity data can also be judged by the preset storage capacity standard to perform detailed storage capacity level division to determine the server storage capacity.
[0036] For example, the storage capacity perception option is that the estimated remaining life of the storage device is 10%. By comparing the estimated remaining life threshold of the storage device of 15% in the preset storage capacity standard judgment with the estimated remaining life of the storage device of 10%, it is determined that the estimated remaining life of the storage device does not meet the standard and the server storage capacity is poor.
[0037] Compared to running a monitoring system in a server host to determine the server storage capacity, in an embodiment of the present application, a request is sent to the server host in a baseboard management controller to obtain server storage capacity information of a storage device, storage capacity data is obtained from the server storage capacity information based on a storage capacity awareness option configuration, and the server storage capacity is determined based on the storage capacity data and a preset storage capacity standard, without occupying the host's computing resources and network bandwidth, thereby reducing the risk of affecting the normal business operation of the host.
[0038] Based on the above embodiment, the server host includes a storage device. The data storage capability may include the performance, capacity, reliability and data access speed of the storage device of the server host.
[0039] Storage devices may include mechanical hard disks, solid-state hard disks, and independent disk arrays. A server host may include a single storage device or multiple storage devices. Accordingly, the server storage capacity information may be a reflection of the storage capacity of a single storage device or a comprehensive reflection of the storage capacity of multiple storage devices.
[0040] Furthermore, in the case where the server host includes multiple storage devices, the server storage capacity information may be a reflection of the storage capacity of a selected portion of the storage devices, or may be a reflection of the storage capacity of all the storage devices.
[0041] Determining the storage capacity of the server based on the storage capacity data and a preset storage capacity standard specifically includes: When it is determined based on the storage capacity perception option in the storage capacity data that the storage device does not meet the preset storage capacity standard, an alarm message is generated and the alarm message is sent to a designated location to determine the storage capacity of the server; wherein the alarm message includes multiple types, and the type of the alarm message corresponds to the storage capacity perception option.
[0042] If a storage capacity sensing option in the storage capacity data does not meet the preset storage capacity standard, the storage device does not meet the preset storage capacity standard in terms of the storage capacity sensing option, and generates an alarm message of the type of the storage capacity sensing option. It can be understood that one type of alarm message may include multiple storage capacity sensing options.
[0043] The designated location may also be referred to as a designated destination, a target location, etc. For example, the designated location may be an administrator mailbox. Exemplarily, the alarm information may be sent to the administrator mailbox through various interfaces of the network device, such as a network interface, a serial port, etc.
[0044] The alarm information is used to notify the administrator or user of the server host that the storage capacity of the server host does not meet the preset storage capacity standard, so that the administrator or user can handle it in time to reduce the risk of data damage in the storage device of the server host.
[0045] The type of alarm information is used to assist in determining the alarm cause of the storage device of the server host, so as to facilitate further processing of the storage device of the server host. For example, the type of alarm information may include storage device status type, storage device attribute type, storage device interaction type, etc. Among them, the storage device status type alarm information may be that the storage device is not in place.
[0046] Based on the storage device status type alarm information, it is determined that the storage device is not in place, and the connection between the storage device and the server host can be repaired in a targeted manner to increase the speed at which the storage device returns to normal and reduce the impact of the storage device on the server storage capacity.
[0047] In this embodiment, by determining that a certain aspect of the storage device does not meet the preset storage capacity standard through the storage capacity perception option not meeting the preset storage capacity standard, and generating a corresponding type of alarm information based on the storage capacity perception option not meeting the preset storage capacity standard, it is possible to easily determine the alarm cause of the storage device of the server host, increase the speed at which the storage device returns to normal, and reduce the impact of the storage device on the server storage capacity.
[0048] Figure 2 This is one of the schematic diagrams of the framework of the method for determining the server storage capacity provided by this application. Figure 2 As shown, further, in one embodiment, the storage capacity perception options specifically include storage device in-place status and storage device usage rate; When it is determined based on the storage capacity awareness option in the storage capacity data that the storage device does not meet the preset storage capacity standard, generating alarm information includes: When determining that the storage device is not in place based on the storage device in place state, generating storage device not in place alarm information; Determining that a storage device is in place based on the in-place status of the storage device, and generating storage device high-usage alarm information when the usage rate of the storage device exceeds an upper threshold of the storage device; The presence of the storage device is determined based on the storage device presence status, and when the storage device usage rate is lower than a storage device threshold lower limit, storage device low usage rate alarm information is generated.
[0049] The process of judging whether a storage device meets the preset storage capacity standard based on the storage capacity perception option can be called storage capacity alarm judgment. When a storage device is not in place alarm message, a storage device high usage alarm message, or a storage device low usage alarm message is generated, an alarm message will be sent, and then the next storage capacity alarm judgment will be made.
[0050] When the storage device presence status and storage device usage rate meet the preset storage capacity standard, or when no storage device absence alarm information, storage device high usage alarm information or storage device low usage alarm information is generated, the next storage capacity alarm judgment can be made directly.
[0051] In this embodiment, the storage capacity data and preset storage capacity standards can be used to determine the storage capacity of the server host in different aspects, and when the storage capacity of the server host is abnormal and there is a performance bottleneck, alarm information can be sent in time to provide early warning, so that the server administrator or user can take measures to deal with it in time, such as replacing storage devices or transferring data.
[0052] Based on any of the above embodiments, before acquiring storage capacity data from the server storage capacity information based on the storage capacity awareness option configuration, the method further includes: Receive a storage power awareness option configuration sent by a server host; wherein the storage power awareness option configuration includes a plurality of storage power awareness option collection indicators, and the storage power awareness option collection indicators are determined based on the type of the storage device, the number of the storage devices, and business requirements.
[0053] The types of storage devices may include mechanical hard disks, solid-state hard disks, and redundant arrays of independent disks. The number of storage devices may be a single storage device or multiple storage devices. The types of servers may include computing servers, storage servers, and real-time processing servers.
[0054] Different types of storage devices have different characteristics, and the storage capacity awareness option collection indicators of different types of storage devices are also different. Business needs are generally to improve the storage performance of the server, and different types of servers have different functions and different requirements for storage performance. Therefore, the storage capacity awareness option collection indicators of different business needs are also different. If there are multiple storage devices, it is necessary to set the storage capacity awareness option collection indicators for each storage device. The storage capacity awareness option collection indicators of different storage devices are different.
[0055] For example, a server host of a storage server includes two storage devices, storage device 1 is a mechanical hard disk, and storage device 2 is a solid state disk. The storage capacity awareness option configuration may include the name of storage device 1, the status of storage device 1, the capacity of storage device 1, the throughput of storage device 2, and the usage rate of storage device 1; the name of storage device 2, the status of storage device 2, the estimated remaining life of storage device 2, the capacity of storage device 2, the IOPS of storage device 2, the throughput of storage device 2, and the usage rate of storage device 2.
[0056] Exemplarily, the storage device name may include the storage device type and number, such as HHD1, SSD2. 0 may be used to indicate that the storage device is not in place, and 1 may be used to indicate that the storage device is in place. The expected life of the storage device may be displayed in percentage. The capacity of the storage device may be displayed in GB. The storage device throughput may be represented by the amount of data transmitted per unit time by the storage device, and the unit of quantity may be GBps (Giga Byte per second). The storage device utilization rate may be displayed in percentage.
[0057] In this embodiment, the administrator or user of the server host can determine the storage capacity awareness option collection index based on the type of storage device, the number of storage devices and business needs, obtain the storage capacity awareness option configuration based on the storage capacity awareness option collection index, and send the storage capacity awareness option configuration to the baseboard management controller, so that the baseboard management controller receives the storage capacity awareness option configuration sent by the server host, and obtains storage capacity data from the server storage capacity information based on the storage capacity awareness option configuration, thereby reducing the occupancy of computing resources and ensuring the effectiveness of the server storage capacity determined based on the storage capacity data and preset storage capacity standards.
[0058] Furthermore, in this embodiment, the storage capacity awareness option collection index is set based on the number of storage devices, so that the storage capacity of the storage devices that the administrator or user of the server host is interested in can be fully determined.
[0059] Based on any of the above embodiments, before determining that the storage device does not meet the preset storage capacity standard based on the storage capacity perception option in the storage capacity data, the method also includes: receiving the preset storage capacity standard sent by the server host; wherein the preset storage capacity standard includes multiple sub-standards, and the sub-standards are determined based on the storage device type, the number of the storage devices and business needs, and the sub-standards correspond to the storage capacity perception option.
[0060] The working principles and technical effects of the sub-standards are determined based on the type of storage devices, the number of storage devices and business needs. They are basically the same as the working principles and technical effects of the storage capacity awareness option collection indicators determined based on the type of storage devices, the number of storage devices and business needs, and will not be repeated here.
[0061] Receiving the preset storage capacity standard and the storage capacity sensing option configuration sent by the server host; In this embodiment, by making the preset storage capacity standard include multiple sub-standards and corresponding the sub-standards to the storage capacity perception options, each storage capacity perception option can be evaluated more accurately and more accurate alarm information can be generated for each storage capacity perception option.
[0062] Figure 3 This is the second schematic diagram of the framework of the method for determining the server storage capacity provided by this application. Figure 3 As shown, based on any of the above embodiments, the baseboard management controller includes a timer. The timer may include a hardware timer and a software timer. The hardware timer is a timer implemented using a hardware circuit, which can provide a high-precision mechanism for measuring and controlling time. The software timer is a timer implemented using a clock signal of an operating system, and the accuracy of the mechanism for measuring and controlling time provided is relatively low.
[0063] The baseboard management controller has a storage device log file pre-generated. The log name of the storage device log file may include a server host serial number and a log number. The log numbering sequence is incremental, for example, the first storage device log file is numbered 1, and the second storage device log file is numbered 2. In this way, the server host corresponding to the storage device log file and the order between multiple storage device log files of the same server host can be intuitively determined.
[0064] Sending a request to the server host specifically includes: sending a request to the server host after a set time of the timer is reached.
[0065] In this way, requests can be continuously sent to the server host to continuously execute the above steps, obtain the server storage capacity information of the storage device responded by the server host, and obtain storage capacity data from the server storage capacity information based on the storage capacity perception option configuration.
[0066] After obtaining storage capacity data from the server storage capacity information based on the storage capacity awareness option configuration, in one embodiment, the method further includes: if it is determined that the volume of the storage capacity data is less than the remaining capacity of the storage device log file, adding the storage capacity data to the end of the storage device log file. In another embodiment, the method further includes: if it is determined that the volume of the storage capacity data is greater than the remaining capacity of the storage device log file, creating a new storage device log file and adding the storage capacity data to the new storage device log file.
[0067] Exemplarily, after the baseboard management controller is powered on, a storage device log file with a file name of the host serial number and a log number of 1 is automatically generated. The storage device log file may have a specified capacity, and the capacity of each storage device log file may be the same. The specific value of the specified capacity can be determined based on actual needs and is not further limited here.
[0068] When it is determined that the storage capacity data volume is less than the remaining capacity of the storage device log file, the storage device log file is opened, the storage capacity data is added to the end of the storage device log file, and the storage device log file is closed after recording is completed to enter the next recording cycle.
[0069] In this embodiment, before adding the storage capacity data volume to the storage device log file, it is first determined whether the storage capacity data volume is smaller than the remaining capacity of the storage device log file. If it is determined that the storage capacity data volume is smaller than the remaining capacity of the storage device log file, the storage capacity data volume is added to the storage device log file. If it is determined that the storage capacity data volume is larger than the remaining capacity of the storage device log file, the storage capacity data is added to the newly created storage device log file. This can avoid adding errors when adding the storage capacity data to the storage device log file, thereby reducing the risk of storage capacity data loss due to addition errors.
[0070] In addition, compared to the prior art in which the monitoring system receives a hard disk monitoring request sent by the server host before determining the server storage capacity, in the embodiment of the present application, the baseboard management controller can continuously execute the aforementioned steps after power-on, and can also facilitate real-time determination of the server storage capacity, thereby issuing a timely alarm when the storage device does not meet the preset storage capacity standard.
[0071] In one embodiment, after obtaining storage capacity data from the server storage capacity information based on the storage capacity awareness option configuration, the latest storage device log file is obtained based on the log number in the file name of the storage device log file, and the relationship between the storage capacity data volume and the remaining capacity of the latest storage device log file is determined. If it is determined that the storage capacity data volume is less than the remaining capacity of the latest storage device log file, the storage capacity data volume is added to the latest storage device log file.
[0072] For example, the file name of the latest storage device log file is ABCD-1234-EFGH-5678-11. The first four groups of numbers are the host serial number, and the last group of numbers is the log number. The storage capacity data volume is 80KB, and the remaining capacity of ABCD-1234-EFGH-5678-10 is 100KB. After obtaining the storage capacity data, the relationship between the storage capacity data volume and the remaining capacity of ABCD-1234-EFGH-5678-11 is determined, and the relationship between the storage capacity data volume and the remaining capacity of ABCD-1234-EFGH-5678-10 is no longer determined.
[0073] Exemplarily, the contents stored in the storage device log file are shown in the following table:
[0074] In order to specifically illustrate the function of the server storage capacity determination method provided by this embodiment, a specific example is provided below.
[0075] Figure 41 is a schematic diagram of the structure of the server storage capacity determination system of the application server storage capacity determination method provided in the present application. The server storage capacity determination system runs on the baseboard management controller. Figure 4 As shown, the server storage capacity determination system includes a storage capacity information acquisition module, a storage capacity information recording module and a storage capacity information alarm processing module.
[0076] A storage capacity information acquisition module, which can be used to send a request to the server host after the set time of the timer is reached, and obtain the server storage capacity information of the storage device responded by the server host; wherein the server host includes the storage device; Receiving a storage power awareness option configuration sent by a server host, wherein the storage power awareness option configuration includes a plurality of storage power awareness option collection indicators, and the storage power awareness option collection indicators are determined based on the type of the storage device, the number of the storage devices, and the business demand; Storage capacity data is obtained from the server storage capacity information based on the storage capacity awareness option configuration; wherein the storage capacity data includes a plurality of the storage capacity awareness options.
[0077] Receive a preset storage capacity standard sent by a server host; wherein the preset storage capacity standard includes multiple sub-standards, the sub-standards are determined based on the storage device type, the number of the storage devices and business requirements, and the sub-standards correspond to the storage capacity perception options.
[0078] The storage capacity information alarm processing module is configured to generate alarm information when it is determined that the storage device does not meet the preset storage capacity standard based on the storage capacity perception option in the storage capacity data, including: When determining that the storage device is not in place based on the storage device in place state, generating storage device not in place alarm information; Determining that a storage device is in place based on the in-place status of the storage device, and generating storage device high-usage alarm information when the usage rate of the storage device exceeds an upper threshold of the storage device; The presence of the storage device is determined based on the storage device presence status, and when the storage device usage rate is lower than a storage device threshold lower limit, storage device low usage rate alarm information is generated.
[0079] And the storage device not in place alarm information, the storage device high usage alarm information or the storage device low usage alarm information is sent to the designated location to determine the storage capacity of the server.
[0080] A storage capacity information recording module, which can be used to add the storage capacity data to the end of the storage device log file when it is determined that the storage capacity data volume is less than the remaining capacity of the storage device log file; or
[0081] When it is determined that the volume of the storage capacity data is greater than the remaining capacity of the storage device log file, a new storage device log file is created, and the storage capacity data is added to the new storage device log file.
[0082] The server storage capacity determination device provided in the present application is described below. The server storage capacity determination device described below and the server storage capacity determination method described above can be referenced to each other.
[0083] Figure 5 Schematic diagram of the structure of the server storage capacity determination device provided by the present application, which is applied to the baseboard management controller, such as Figure 5 As shown, the device comprises: The information transceiver module 201 is used to send a request to the server host and obtain the server storage capacity information responded by the server host; A storage capacity data acquisition module 202, configured to acquire storage capacity data from the server storage capacity information based on the storage capacity awareness option configuration; wherein the storage capacity data includes a plurality of the storage capacity awareness options; The storage capacity determination module 202 is used to determine the server storage capacity based on the storage capacity data and a preset storage capacity standard; wherein the preset storage capacity standard is used to determine the server storage capacity based on the storage capacity perception option in the storage capacity data.
[0084] Based on any of the above embodiments, the server host includes a storage device; a storage capacity determination module 202, specifically configured to: When it is determined based on the storage capacity perception option in the storage capacity data that the storage device does not meet the preset storage capacity standard, an alarm message is generated and the alarm message is sent to a designated location to determine the storage capacity of the server; wherein the alarm message includes multiple types, and the type of the alarm message corresponds to the storage capacity perception option.
[0085] Based on any of the above embodiments, the server storage capacity determination device also includes a storage capacity awareness option configuration receiving module, which is used to receive the storage capacity awareness option configuration sent by the server host; wherein the storage capacity awareness option configuration includes multiple storage capacity awareness option collection indicators, and the storage capacity awareness option collection indicators are determined based on the type of the storage device, the number of the storage devices and the business needs.
[0086] Based on any of the above embodiments, the storage capacity perception options specifically include storage device in-place status and storage device usage rate; The storage capacity determination module 202 is specifically used for: When determining that the storage device is not in place based on the storage device in place state, generating storage device not in place alarm information; Determining that a storage device is in place based on the in-place status of the storage device, and generating storage device high-usage alarm information when the usage rate of the storage device exceeds an upper threshold of the storage device; The presence of the storage device is determined based on the storage device presence status, and when the storage device usage rate is lower than a storage device threshold lower limit, storage device low usage rate alarm information is generated.
[0087] Based on any of the above embodiments, the server storage capacity determination device also includes a preset storage capacity standard receiving module, which is used to receive the preset storage capacity standard sent by the host; wherein the preset storage capacity standard includes multiple sub-standards, and the sub-standards are determined based on the storage device type, the number of storage devices and business requirements, and the sub-standards correspond to the storage capacity perception options.
[0088] Based on any of the above embodiments, the baseboard management controller includes a timer, and a storage device log file is pre-generated in the baseboard management controller; The information transceiver module 201 is specifically used to send a request to the server host after the set time of the timer is reached; The server storage capacity determination device also includes a storage device log file acquisition module, which is used to obtain storage capacity data from the server storage capacity information based on the storage capacity perception option configuration, and if it is determined that the storage capacity data volume is smaller than the remaining capacity of the storage device log file, add the storage capacity data to the end of the storage device log file.
[0089] Based on any of the above embodiments, the storage device log file acquisition module is also used to obtain storage capacity data from the server storage capacity information based on the storage capacity perception option configuration, and when it is determined that the storage capacity data volume is greater than the remaining capacity of the storage device log file, create a new storage device log file and add the storage capacity data to the new storage device log file.
[0090] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the server storage capacity determination method, which is applied to the baseboard management controller and includes: sending a request to the server host to obtain the server storage capacity information of the storage device responded by the server host; wherein the server host includes the storage device; obtaining storage capacity data from the server storage capacity information based on the storage capacity perception option configuration; wherein the storage capacity data includes a plurality of the storage capacity perception options; determining the server storage capacity based on the storage capacity data and a preset storage capacity standard; wherein the preset storage capacity standard is used to determine the server storage capacity based on the storage capacity perception option in the storage capacity data.
[0091] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0092] On the other hand, the present application also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the server storage capacity determination method provided by the above-mentioned methods. The method is applied to a baseboard management controller, and includes: sending a request to a server host to obtain server storage capacity information of a storage device responded by the server host; wherein the server host includes the storage device; obtaining storage capacity data from the server storage capacity information based on a storage capacity perception option configuration; wherein the storage capacity data includes a plurality of the storage capacity perception options; determining the server storage capacity based on the storage capacity data and a preset storage capacity standard; wherein the preset storage capacity standard is used to determine the server storage capacity based on the storage capacity perception option in the storage capacity data.
[0093] On the other hand, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the server storage capacity determination method provided by the above-mentioned methods, the method being applied to a baseboard management controller, comprising: sending a request to a server host to obtain server storage capacity information of a storage device responded by the server host; wherein the server host includes the storage device; obtaining storage capacity data from the server storage capacity information based on a storage capacity perception option configuration; wherein the storage capacity data includes a plurality of the storage capacity perception options; determining the server storage capacity based on the storage capacity data and a preset storage capacity standard; wherein the preset storage capacity standard is used to determine the server storage capacity based on the storage capacity perception option in the storage capacity data.
[0094] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0095] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0096] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for determining server storage capacity, characterized in that: Applied to a baseboard management controller, the method comprises: Send a request to the server host to obtain the server storage capacity information responded by the server host; Acquiring storage capacity data from the server storage capacity information based on the storage capacity awareness option configuration; wherein the storage capacity data includes a plurality of the storage capacity awareness options; The server storage capacity is determined based on the storage capacity data and a preset storage capacity standard; wherein the preset storage capacity standard is used to determine the server storage capacity based on the storage capacity awareness option in the storage capacity data.
2. The method for determining server storage capacity according to claim 1, characterized in that: The server host includes a storage device; Determining the storage capacity of the server based on the storage capacity data and a preset storage capacity standard specifically includes: When it is determined based on the storage capacity perception option in the storage capacity data that the storage device does not meet the preset storage capacity standard, an alarm message is generated and the alarm message is sent to a designated location to determine the storage capacity of the server; wherein the alarm message includes multiple types, and the type of the alarm message corresponds to the storage capacity perception option.
3. The method for determining server storage capacity according to claim 2, characterized in that: Before acquiring storage capacity data from the server storage capacity information based on the storage capacity awareness option configuration, the method further includes: Receive a storage power awareness option configuration sent by a server host; wherein the storage power awareness option configuration includes a plurality of storage power awareness option collection indicators, and the storage power awareness option collection indicators are determined based on the type of the storage device, the number of the storage devices, and business requirements.
4. The method for determining server storage capacity according to claim 2 or 3, characterized in that: The storage capacity perception options specifically include storage device in-place status and storage device usage rate; When it is determined based on the storage capacity awareness option in the storage capacity data that the storage device does not meet the preset storage capacity standard, generating alarm information includes: When determining that the storage device is not in place based on the storage device in place state, generating storage device not in place alarm information; Determining that a storage device is in place based on the in-place status of the storage device, and generating storage device high-usage alarm information when the usage rate of the storage device exceeds an upper threshold of the storage device; The presence of the storage device is determined based on the storage device presence status, and when the storage device usage rate is lower than a storage device threshold lower limit, storage device low usage rate alarm information is generated.
5. The method for determining server storage capacity according to claim 4, characterized in that: Before determining, based on the storage capacity awareness option in the storage capacity data, that the storage device does not meet the preset storage capacity standard, the method further includes: Receive a preset storage capacity standard sent by a server host; wherein the preset storage capacity standard includes multiple sub-standards, the sub-standards are determined based on the storage device type, the number of the storage devices and business requirements, and the sub-standards correspond to the storage capacity perception options.
6. The method for determining server storage capacity according to claim 1, characterized in that: The baseboard management controller includes a timer, and a storage device log file is pre-generated in the baseboard management controller; Send a request to the server host, including: After reaching the set time of the timer, sending a request to the server host; After acquiring storage capacity data from the server storage capacity information based on the storage capacity awareness option configuration, the method further includes: When it is determined that the volume of the storage capacity data is smaller than the remaining capacity of the storage device log file, the storage capacity data is added to the end of the storage device log file.
7. The method for determining server storage capacity according to claim 6, characterized in that: After acquiring storage capacity data from the server storage capacity information based on the storage capacity awareness option configuration, the method further includes: When it is determined that the volume of the storage capacity data is greater than the remaining capacity of the storage device log file, a new storage device log file is created, and the storage capacity data is added to the new storage device log file.
8. A device for determining server storage capacity, characterized in that: Applied to a baseboard management controller, the device comprises: An information transceiver module is used to send a request to a server host and obtain server storage capacity information responded by the server host; A storage capacity data acquisition module, configured to acquire storage capacity data from the server storage capacity information based on the storage capacity awareness option configuration; wherein the storage capacity data includes a plurality of the storage capacity awareness options; A storage capacity determination module is used to determine the server storage capacity based on the storage capacity data and a preset storage capacity standard; wherein the preset storage capacity standard is used to determine the server storage capacity based on the storage capacity perception option in the storage capacity data.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for determining the server storage capacity according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for determining the server storage capacity according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Intelligent management method and system oriented to domestic automatic controllable server
CN108322336A
File deployment method, cloud server, system and storage medium
CN109634915A
Dynamic control method and device for determining service capability of server
CN111338917A
Equipment information detection method and device, computer equipment and storage medium
CN114036008A
Server monitoring method and related equipment
CN115114118A