Fault reporting method and device, electronic equipment and storage medium
By partitioning storage space within the server and generating fault information, the problem of data loss caused by hard disk randomness in the storage system is solved, improving data protection and performance.
Patent Information
- Application Number
- CN202410891176.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-11-01
AI Technical Summary
In existing technologies, data loss errors caused by the randomness within hard drives in storage systems, especially the distribution of bad blocks on bare wafers, are detrimental to performance improvement.
By dividing the server into different storage spaces and creating an allocation table for logical addresses and physical block addresses for each storage space, the bare wafer and allocation table are processed according to the working status and abnormal status threshold of the storage blocks, generating fault information and sending it to the substrate management controller for fault reporting.
It enables data interaction within the die, reduces latency in inter-die interactions, and provides better protection against data problems caused by hard drive failures.
Smart Images

Figure CN118885337A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of server performance optimization, and in particular to a method, device, electronic device and storage medium for reporting a fault. Background Art
[0002] With the development of cloud computing and big data, the requirements for storage capacity and performance at the IO level will increase accordingly. In response to the improvement of performance, the needs for security and protection have begun to receive attention from many parties.
[0003] The development of storage systems has greatly improved the speed of storage, and correspondingly, electromagnetic charging and discharging have caused data loss errors and other problems. Based on this, a variety of protection and redundancy solutions have also been derived. Although the existing bad block isolation solutions can make good use of space and protect data, due to the randomness inside the hard disk, it is easy to be distributed under multiple dies (bare chips), which is not conducive to performance improvement. Summary of the invention
[0004] In view of this, the purpose of the present application is to provide a method, device, electronic device and storage medium for fault reporting to overcome the problems in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a method for reporting a fault, which acts on a server, and the method includes:
[0006] For the bare chips contained in the disk in the server, each bare chip is divided into different storage spaces, and an allocation table corresponding to a logical address and a physical block address is created for each storage space; wherein the allocation table is used to point to the storage block contained in the storage space;
[0007] According to the working status of each storage block in the storage space and a preset abnormal status threshold, the bare wafer and the allocation table are processed respectively to obtain an isolation status result and a disk bad block result;
[0008] The first fault information generated according to the isolation status result and the disk bad block result is sent to a baseboard management controller, so that the baseboard management controller reports the fault based on the first fault information.
[0009] In some technical solutions of the present application, the bare wafer is processed according to the working status of each storage block in the storage space and a preset abnormal status threshold to obtain an isolation status result, including:
[0010] If the number of the storage blocks in the abnormal state in the storage space is greater than the abnormal state threshold, the bare wafer corresponding to the storage space is isolated to obtain the bare wafer in the isolated state.
[0011] In some technical solutions of the present application, the above method further includes:
[0012] If the number of the storage blocks in the abnormal state in the storage space is less than or equal to the abnormal state threshold, the bare wafer corresponding to the storage space is not isolated, and the bare wafer in the normal state is obtained.
[0013] In some technical solutions of the present application, the allocation table is processed according to the working status of each storage block in the storage space and the preset abnormal status threshold to obtain the disk bad block result, including:
[0014] If the number of the storage blocks in the abnormal state in the storage space is greater than the abnormal state threshold, the capacity of the storage space is directed to a preset space by modifying the allocation table;
[0015] The disk bad block result is determined according to the modified content of the allocation table.
[0016] In some technical solutions of the present application, the above method further includes:
[0017] If the number of the storage blocks in the storage space that are in an abnormal state is less than or equal to the abnormal state threshold, the allocation table is not modified;
[0018] The result is that there is no bad block on the disk.
[0019] In a second aspect, an embodiment of the present application provides a method for reporting a fault, which acts on a baseboard management controller, and the method includes:
[0020] Receive first fault information sent by a server; wherein the first fault information is obtained in the following manner: for bare chips contained in a disk in the server, divide each bare chip into different storage spaces, and create an allocation table corresponding to a logical address and a physical block address for each storage space; wherein the allocation table is used to point to a storage block contained in the storage space; according to the working state of each storage block in the storage space and a preset abnormal state threshold, process the bare chip and the allocation table respectively to obtain an isolation state result and a disk bad block result; and generate the first fault information according to the isolation state result and the disk bad block result;
[0021] Generate second fault information according to the acquired disk specification information;
[0022] Fault reporting is performed based on the first fault information and the second fault information.
[0023] In a third aspect, an embodiment of the present application provides a fault reporting device, which acts on a server, and the device includes:
[0024] A partitioning module, for partitioning each bare wafer contained in the disk in the server into different storage spaces, and creating an allocation table of corresponding logical addresses and physical block addresses for each storage space; wherein the allocation table is used to point to the storage blocks contained in the storage space;
[0025] A processing module, configured to process the bare wafer and the allocation table respectively according to the working status of each storage block in the storage space and a preset abnormal status threshold, to obtain an isolation status result and a disk bad block result;
[0026] The first generating module is used to send first fault information generated according to the isolation status result and the disk bad block result to a baseboard management controller, so that the baseboard management controller reports the fault based on the first fault information.
[0027] In a fourth aspect, an embodiment of the present application provides a fault reporting device, which acts on a baseboard management controller, and the device includes:
[0028] A receiving module, used for receiving first fault information sent by a server; wherein the first fault information is obtained in the following manner: for bare chips contained in a disk in the server, each bare chip is divided into different storage spaces, and a corresponding allocation table of logical addresses and physical block addresses is created for each storage space; wherein the allocation table is used to point to the storage blocks contained in the storage space; according to the working state of each storage block in the storage space and a preset abnormal state threshold, the bare chip and the allocation table are processed respectively to obtain an isolation state result and a disk bad block result; and the first fault information is generated according to the isolation state result and the disk bad block result;
[0029] A second generating module, used to generate second fault information according to the acquired disk specification information;
[0030] A reporting module is used to report a fault based on the first fault information and the second fault information.
[0031] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned fault reporting method when executing the computer program.
[0032] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned fault reporting method are executed.
[0033] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0034] A fault reporting method includes dividing each bare chip contained in a disk in a server into different storage spaces, and creating an allocation table corresponding to a logical address and a physical block address for each storage space; wherein the allocation table is used to point to the storage blocks contained in the storage space; processing the bare chip and the allocation table respectively according to the working status of each storage block in the storage space and a preset abnormal status threshold to obtain an isolation status result and a disk bad block result; and sending first fault information generated according to the isolation status result and the disk bad block result to a baseboard management controller, so that the baseboard management controller reports the fault based on the first fault information.
[0035] This application uses a combination of a server and a baseboard management controller to isolate the isolated blocks to isolate the die in a unified manner. On the one hand, it allows data to interact better within the die and reduces the interaction delay between dies. On the other hand, it also provides better protection against data problems caused by hard disk failures.
[0036] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A schematic diagram of a process of a fault reporting method provided in an embodiment of the present application is shown;
[0039] Figure 2 A schematic diagram showing a flow chart of another fault reporting method provided in an embodiment of the present application;
[0040] Figure 3 A schematic diagram of a fault reporting device provided in an embodiment of the present application is shown;
[0041] Figure 4A schematic diagram of another fault reporting device provided in an embodiment of the present application is shown;
[0042] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0044] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0045] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0046] With the development of cloud computing and big data, the requirements for storage capacity and performance at the IO level will increase accordingly. In response to the improvement of performance, the needs for security and protection have begun to receive attention from many parties.
[0047] The development of storage systems has greatly improved the speed of storage, and correspondingly, problems such as data loss errors caused by electromagnetic charging and discharging have arisen. Based on this, a variety of protection and redundancy schemes have also been derived. Although the existing bad block isolation schemes can make good use of space and protect data, due to the randomness inside the hard disk, it is easy to be distributed under multiple dies, which is not conducive to performance improvement. Based on this, the present application proposes a method, device, electronic device and storage medium for fault reporting, and strives to isolate the isolated blocks from the die in a unified manner through the combination of hard disk firmware and BMC (baseboard management controller) and OS (operating system). On the one hand, it allows data to interact better within the die and reduce the interaction delay between dies. On the other hand, it also plays a better role in protecting data problems caused by hard disk failures. The following is a description through embodiments.
[0048] Figure 1 A flow chart of a method for reporting a fault provided in an embodiment of the present application is shown, which acts on a server, wherein the method includes steps S101-S103; specifically:
[0049] S101, for the bare chips included in the disk in the server, divide each bare chip into different storage spaces, and create an allocation table corresponding to a logical address and a physical block address for each storage space; wherein the allocation table is used to point to a storage block included in the storage space;
[0050] S102, processing the bare wafer and the allocation table respectively according to the working status of each storage block in the storage space and a preset abnormal status threshold, to obtain an isolation status result and a disk bad block result;
[0051] S103: Send first fault information generated according to the isolation status result and the disk bad block result to a baseboard management controller, so that the baseboard management controller reports a fault based on the first fault information.
[0052] Some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0053] First, the application scenarios to which this application is applicable are introduced. This application can be applied to the single die isolation and fault reporting solution based on Fei Haiguang 7000 series SATA SSD.
[0054] Research has found that with the development of storage performance, the requirements for storage security and protection are gradually increasing. Based on this, the current protection scheme for SATA SSD can perform replacement, recycling and other operations very well, but the storage blocks marked as bad blocks are scattered in the flash memory space, resulting in a lack of dispersion. In order to better play the role of data concentration and protection without affecting performance, the die isolation method is used to try to transmit data within the chip and reduce the loss of performance caused by inter-chip transmission. At the same time, the blocks that exceed the bad block ratio are isolated to the OP space to better utilize the good data blocks and increase the recovery rate.
[0055] The embodiments of the present application include process configurations at the storage device level (server), operating system level (server), and BMC level (Baseboard Management Controller), mainly adjusting the block size space division and isolation, as well as the interaction between BMC and OS (Operating System) and BMC.
[0056] The server divides each bare chip contained in the disk in the server into different storage spaces, and creates an allocation table corresponding to the logical address and the physical block address for each storage space; wherein the allocation table is used to point to the storage blocks contained in the storage space; according to the working status of each storage block in the storage space and the preset abnormal status threshold, the bare chip and the allocation table are processed respectively to obtain the isolation status result and the disk bad block result; and the first fault information generated according to the isolation status result and the disk bad block result is sent to the baseboard management controller, so that the baseboard management controller reports the fault based on the first fault information.
[0057] Furthermore, the processing process in the server can be divided into different levels: storage device level and operating system level. Storage device level SATA SSD: by dividing the internal die of the SSD into space and creating an allocation table corresponding to the LBA, the number of bad blocks detected and replaced is judged to exceed a certain threshold, and then the allocation table information is modified to isolate the die. Operating system level: The hard disk status and space allocation are detected through system parameters, and the change in capacity and the comparison of bad blocks are used to determine whether the die isolation is currently being performed, adjust the disk partition, and pass it to the BMC through the custom ipmi. The operating system level obtains information through raid tools or smartctl.
[0058] Specifically, the die information under the SATA hard disk is retrieved, and each die is divided into equal space sizes (no more than 20) from the firmware level. An LBA table is created for each space to point from the logical space to the physical space. In order to better isolate and distinguish the spaces, only sequential writing is allowed. The number of bad blocks under the LBA table is automatically retrieved. When the ratio under a die exceeds a certain abnormal state threshold, the LBA space is modified to point to the OP space for garbage collection, not for actual use. The abnormal state threshold is set according to the actual application scenario, and the bad block ratio is isolated and corrected.
[0059] Different from the isolation threshold under SSD, it does not use LBA retrieval, but performs double comparison detection based on the number of dies and isolation threshold set by the hard disk.
[0060] The storage device includes: Raid array group, that is, using RAID card as medium, multiple independent disks are combined into a disk group, and hard disk information can be retrieved through raid. By dividing the internal die of SSD into n identical spaces, setting the method of only allowing sequential writing, each space creates an LBA (Logical Block Address) allocation table to point to the storage block of this space.
[0061] When partitioning the hard disk, if the die capacity of the hard disk used is large or the number of dies is small, the size of the partition space n can be appropriately increased to no more than 20, reducing the space occupied by the LBA table and increasing the difficulty of indexing. Optionally, if the die capacity of the weak hard disk is small, the size of n can be appropriately reduced, but it should not be less than 15, otherwise the judgment of the subsequent isolation threshold will be inaccurate, which may easily cause multiple dies to be isolated. At the operating system level, after detecting and replacing the number of bad blocks and determining the number of bad blocks exceeding a certain threshold, the LBA allocation table information is modified to guide the capacity under this space to the OP space (preset space).
[0062] According to the working status of each storage block in the storage space and the preset abnormal state threshold, the bare wafer is processed to obtain an isolation state result, including if the number of the storage blocks in the abnormal state in the storage space is greater than the abnormal state threshold, the bare wafer corresponding to the storage space is isolated to obtain the bare wafer in the isolated state. If the number of the storage blocks in the abnormal state in the storage space is less than or equal to the abnormal state threshold, the bare wafer corresponding to the storage space is not isolated to obtain the bare wafer in the normal state.
[0063] The allocation table is processed according to the working state of each storage block in the storage space and the preset abnormal state threshold to obtain the disk bad block result, including: if the number of storage blocks in the abnormal state in the storage space is greater than the abnormal state threshold, the allocation table is modified to guide the capacity of the storage space to the preset space; according to the modified content of the allocation table, the disk bad block result is determined. If the number of storage blocks in the abnormal state in the storage space is less than or equal to the abnormal state threshold, the allocation table is not modified; and the result that there is no bad block on the disk is obtained.
[0064] In an optional embodiment, if Figure 2 As shown, a fault reporting method is applied to a baseboard management controller, and the method includes:
[0065] S201, receiving first fault information sent by a server; wherein the first fault information is obtained in the following manner: for bare chips contained in a disk in the server, each bare chip is divided into different storage spaces, and a corresponding allocation table of logical addresses and physical block addresses is created for each storage space; wherein the allocation table is used to point to storage blocks contained in the storage space; according to the working status of each storage block in the storage space and a preset abnormal status threshold, the bare chip and the allocation table are processed respectively to obtain an isolation status result and a disk bad block result; and the first fault information is generated according to the isolation status result and the disk bad block result;
[0066] S202, generating second fault information according to the acquired disk specification information;
[0067] S203: Report a fault based on the first fault information and the second fault information.
[0068] The baseboard management controller sends a request to the BIOS through the LPC bus. At the same time, the BIOS returns the disk status to obtain the disk presence information. At the same time, it retrieves the disk health status through the raid module, obtains the disk bad block and isolation status information transmitted by the OS, and reports it to the log module.
[0069] The present invention uses the traditional detection tool smartctl to simulate the hard disk failure detection, and uses the general disk performance test tool fio to compare whether the running process has an impact on the performance. It strives to isolate the isolated blocks from the die uniformly by combining the hard disk firmware with the BMC and OS. On the one hand, it allows data to interact better within the die and reduce the interaction delay between dies. On the other hand, it also plays a better role in protecting data problems caused by hard disk failures.
[0070] In an optional implementation, a fault reporting method, the server divides each bare chip contained in a disk in the server into different storage spaces, and creates an allocation table corresponding to a logical address and a physical block address for each storage space; wherein the allocation table is used to point to a storage block contained in the storage space;
[0071] According to the working status of each storage block in the storage space and a preset abnormal status threshold, the bare wafer and the allocation table are processed respectively to obtain an isolation status result and a disk bad block result;
[0072] The first fault information generated according to the isolation status result and the disk bad block result is sent to a baseboard management controller.
[0073] A baseboard management controller receives first fault information sent by a server; wherein the first fault information is obtained in the following manner: for bare chips contained in a disk in the server, each bare chip is divided into different storage spaces, and a corresponding allocation table of logical addresses and physical block addresses is created for each storage space; wherein the allocation table is used to point to storage blocks contained in the storage space; according to the working state of each storage block in the storage space and a preset abnormal state threshold, the bare chip and the allocation table are processed respectively to obtain an isolation state result and a disk bad block result; and the first fault information is generated according to the isolation state result and the disk bad block result;
[0074] Generate second fault information according to the acquired disk specification information;
[0075] Fault reporting is performed based on the first fault information and the second fault information.
[0076] For example, assume that there are 4 dies under the hard disk; at the SSD level: the SSD internal die is divided into 20 identical spaces, and only sequential writing is allowed. An allocation table is created for each space to point to the storage blocks in this space. When the single die failure rate of the hard disk exceeds 70%, the hard disk master controller detects and replaces the bad blocks and determines that the number of bad blocks exceeds 70%, and then modifies the allocation table information, and modifies the capacity address under this space to the address of the OP space. At this time, this die is isolated, and the overall capacity is reduced by 1 / 4.
[0077] Operating system: Detect hard disk status and space allocation through system parameters:
[0078] 1. Comparing the detected hard disk specifications with the current capacity, it is found that it is reduced by 1 / 4;
[0079] 2. Use system smartctl to obtain bad block information and find that the number of bad blocks reaches more than 1 / 4*70%;
[0080] 3. Determine whether the current SSD is die-isolated, and use the vg command to adjust the disk partition to reduce capacity. This operation prevents confusion in the system and is passed to the BMC through the custom ipmi.
[0081] BMC: 1. On the one hand, it obtains the hard disk specifications (whether it is in place, capacity, error, etc.) transmitted by BIOS during the boot process; 2. It reports the disk information through the IPMI information transmitted by the system.
[0082] Figure 3 A schematic diagram of the structure of a fault reporting device provided in an embodiment of the present application is shown, which acts on a server, and the device includes:
[0083] A partitioning module, for partitioning each bare wafer contained in the disk in the server into different storage spaces, and creating an allocation table corresponding to a logical address and a physical block address for each storage space; wherein the allocation table is used to point to a storage block contained in the storage space;
[0084] A processing module, configured to process the bare wafer and the allocation table respectively according to the working status of each storage block in the storage space and a preset abnormal status threshold, to obtain an isolation status result and a disk bad block result;
[0085] The first generating module is used to send first fault information generated according to the isolation status result and the disk bad block result to a baseboard management controller, so that the baseboard management controller reports the fault based on the first fault information.
[0086] The processing of the bare wafer according to the working state of each of the storage blocks in the storage space and a preset abnormal state threshold to obtain an isolation state result includes:
[0087] If the number of the storage blocks in the abnormal state in the storage space is greater than the abnormal state threshold, the bare wafer corresponding to the storage space is isolated to obtain the bare wafer in the isolated state.
[0088] If the number of the storage blocks in the abnormal state in the storage space is less than or equal to the abnormal state threshold, the bare wafer corresponding to the storage space is not isolated, and the bare wafer in the normal state is obtained.
[0089] The step of processing the allocation table according to the working status of each storage block in the storage space and a preset abnormal status threshold to obtain a disk bad block result includes:
[0090] If the number of the storage blocks in the abnormal state in the storage space is greater than the abnormal state threshold, the capacity of the storage space is directed to a preset space by modifying the allocation table;
[0091] The disk bad block result is determined according to the modified content of the allocation table.
[0092] If the number of the storage blocks in the storage space that are in an abnormal state is less than or equal to the abnormal state threshold, the allocation table is not modified;
[0093] The result is that there is no bad block on the disk.
[0094] Figure 4 A schematic diagram of the structure of a fault reporting device provided in an embodiment of the present application is shown, which acts on a baseboard management controller, and the device includes:
[0095] A receiving module, used for receiving first fault information sent by a server; wherein the first fault information is obtained in the following manner: for bare chips contained in a disk in the server, each bare chip is divided into different storage spaces, and a corresponding allocation table of logical addresses and physical block addresses is created for each storage space; wherein the allocation table is used to point to the storage blocks contained in the storage space; according to the working state of each storage block in the storage space and a preset abnormal state threshold, the bare chip and the allocation table are processed respectively to obtain an isolation state result and a disk bad block result; and the first fault information is generated according to the isolation state result and the disk bad block result;
[0096] A second generating module, used to generate second fault information according to the acquired disk specification information;
[0097] A reporting module is used to report a fault based on the first fault information and the second fault information.
[0098] like Figure 5 As shown, an embodiment of the present application provides an electronic device for executing the fault reporting method in the present application, the device includes a memory, a processor, a bus, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the fault reporting method when executing the computer program.
[0099] Specifically, the above-mentioned memory and processor may be general-purpose memory and processor, which are not specifically limited here. When the processor runs the computer program stored in the memory, the above-mentioned fault reporting method can be executed.
[0100] Corresponding to the fault reporting method in the present application, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned fault reporting method are executed.
[0101] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is executed, the above-mentioned fault reporting method can be executed.
[0102] In the embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. The system embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.
[0103] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0104] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0105] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. 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 and includes several instructions for 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 methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0106] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0107] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for reporting a fault, characterized in that: Acting on a server, the method comprises: For the bare chips contained in the disk in the server, each bare chip is divided into different storage spaces, and an allocation table corresponding to a logical address and a physical block address is created for each storage space; wherein the allocation table is used to point to the storage block contained in the storage space; According to the working status of each storage block in the storage space and a preset abnormal status threshold, the bare wafer and the allocation table are processed respectively to obtain an isolation status result and a disk bad block result; The first fault information generated according to the isolation status result and the disk bad block result is sent to a baseboard management controller, so that the baseboard management controller reports the fault based on the first fault information.
2. The method according to claim 1, characterized in that: The processing of the bare wafer according to the working state of each of the storage blocks in the storage space and a preset abnormal state threshold to obtain an isolation state result includes: If the number of the storage blocks in the abnormal state in the storage space is greater than the abnormal state threshold, the bare wafer corresponding to the storage space is isolated to obtain the bare wafer in the isolated state.
3. The method according to claim 2, characterized in that The method further comprises: If the number of the storage blocks in the abnormal state in the storage space is less than or equal to the abnormal state threshold, the bare wafer corresponding to the storage space is not isolated, and the bare wafer in the normal state is obtained.
4. The method according to claim 1, characterized in that: The step of processing the allocation table according to the working status of each storage block in the storage space and a preset abnormal status threshold to obtain a disk bad block result includes: If the number of the storage blocks in the abnormal state in the storage space is greater than the abnormal state threshold, the capacity of the storage space is directed to a preset space by modifying the allocation table; The disk bad block result is determined according to the modified content of the allocation table.
5. The method according to claim 4, characterized in that The method further comprises: If the number of the storage blocks in the storage space that are in an abnormal state is less than or equal to the abnormal state threshold, the allocation table is not modified; The result is that there is no bad block on the disk.
6. A method for reporting a fault, characterized in that: Acting on a baseboard management controller, the method includes: Receive first fault information sent by a server; wherein the first fault information is obtained in the following manner: for bare chips contained in a disk in the server, divide each bare chip into different storage spaces, and create an allocation table corresponding to a logical address and a physical block address for each storage space; wherein the allocation table is used to point to a storage block contained in the storage space; according to the working state of each storage block in the storage space and a preset abnormal state threshold, process the bare chip and the allocation table respectively to obtain an isolation state result and a disk bad block result; and generate the first fault information according to the isolation state result and the disk bad block result; Generate second fault information according to the acquired disk specification information; Fault reporting is performed based on the first fault information and the second fault information.
7. A fault reporting device, characterized in that: Acting on a server, the device comprises: A partitioning module, for partitioning each bare wafer contained in the disk in the server into different storage spaces, and creating an allocation table corresponding to a logical address and a physical block address for each storage space; wherein the allocation table is used to point to a storage block contained in the storage space; A processing module, configured to process the bare wafer and the allocation table respectively according to the working status of each storage block in the storage space and a preset abnormal status threshold, to obtain an isolation status result and a disk bad block result; The first generating module is used to send first fault information generated according to the isolation status result and the disk bad block result to a baseboard management controller, so that the baseboard management controller reports the fault based on the first fault information.
8. A fault reporting device, characterized in that: Acting on a baseboard management controller, the device comprises: A receiving module, used for receiving first fault information sent by a server; wherein the first fault information is obtained in the following manner: for bare chips contained in a disk in the server, each bare chip is divided into different storage spaces, and a corresponding allocation table of logical addresses and physical block addresses is created for each storage space; wherein the allocation table is used to point to the storage blocks contained in the storage space; according to the working state of each storage block in the storage space and a preset abnormal state threshold, the bare chip and the allocation table are processed respectively to obtain an isolation state result and a disk bad block result; and the first fault information is generated according to the isolation state result and the disk bad block result; A second generating module, used to generate second fault information according to the acquired disk specification information; A reporting module is used to report a fault based on the first fault information and the second fault information.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the fault reporting method as described in any one of claims 1 to 7 are performed.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the fault reporting method according to any one of claims 1 to 7 are executed.
