Fault warning method and device for system disk, electronic equipment and storage medium
By acquiring the system disk status and positioning the fault locations in each node in the server cluster, automatic detection and alarming of system disk failures is realized, and the problems of difficulty in monitoring and alarming in the existing technology are solved, and fault positioning efficiency and data security are improved.
Patent Information
- Application Number
- CN202411170497.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-15
AI Technical Summary
The prior art is difficult to monitor and alert the failure of the system disk in the server in real time, resulting in server paralysis and data loss.
By obtaining the identification and working status of the system disk in each node in the server cluster, determining whether it is a configuration node, receiving the system disk status of other nodes, locating the fault location and performing alarm operations, automatic fault detection and alarming are achieved.
It realizes automatic detection and alarm of system disk failures in the server cluster, avoids data loss, improves fault location efficiency, does not require user participation, and provides specific fault locations to facilitate the resolution of hard disk problems.
Smart Images

Figure CN118964147A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of status monitoring, and in particular to a fault alarm method, device, electronic equipment and storage medium for a system disk. Background Art
[0002] With the continuous development of the computer field, users have higher and higher requirements for the reliability and performance of computer working processes. Therefore, computers are usually clustered to form a computer service system to provide services to users. The cluster includes several independent servers, which can provide users with more flexible and reliable computer services. Among them, the operation of the server depends on the normal operation of the system disk. Once the system disk fails, it may cause server paralysis and data loss, so it is very important to monitor and display the health status of the system disk in real time.
[0003] It can be seen that how to determine whether a system disk in a server fails is a problem that needs to be solved by those skilled in the art. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a method, device, electronic device and storage medium for fault alarm of a system disk, which can solve the problem of fault detection of a system disk in a server.
[0005] In order to solve the above technical problems, an embodiment of the present invention provides a system disk fault alarm method. For any node in a server cluster, the system disk fault alarm method includes:
[0006] Obtaining the identifier of the system disk corresponding to itself and the working status of the system disk; the working status of the system disk includes a fault state and a normal state;
[0007] Determine whether it is the current configuration node of the server cluster;
[0008] If the node itself is the current configuration node of the server cluster, then the node receives the working status of the system disks of all other nodes except itself;
[0009] Determine whether there is a fault state in the working status of its own system disk and the working status of the system disks of other nodes received;
[0010] If there is a fault state, determining an identifier corresponding to the system disk in the fault state, and locating a position of the system disk in the fault state in the server cluster based on the identifier;
[0011] A corresponding alarm operation is performed based on the location of the system disk in the server cluster in a fault state.
[0012] In some embodiments, obtaining the working status of the system disk includes:
[0013] For any system disk of the system, obtain a node file generated by the kernel of the operating system installed in the system disk;
[0014] Scan all file paths of the node file to read the status value in the node file;
[0015] If the state value is the first state value, determining that the working state of the system disk is a fault state;
[0016] If the status value is the second status value, it is determined that the working status of the system disk is a normal status.
[0017] In some embodiments, any node in the server cluster is provided with a preset storage location, and the system disk fault alarm method further includes:
[0018] If the node itself is not the current configuration node of the server cluster, the working status of its own system disk and the identifier corresponding to the system disk are stored in its own preset storage location;
[0019] The receiving the working status of the system disks of each node other than the node itself includes:
[0020] Copying the working status and corresponding identification of the system disk of each node other than the own node from the preset storage location of each node other than the own node to the preset storage location of the own node;
[0021] The determining whether there is a fault state in the working state of the own system disk and the working state of the received system disks of other nodes includes:
[0022] Scan the working status of all system disks stored in its own preset storage location, and determine whether there is a fault status among them;
[0023] If there is no fault state, the process jumps again to the step of obtaining the identifier of the system disk corresponding to itself and the working state of the system disk.
[0024] In some embodiments, if all nodes in the server cluster are in dual system disk mode, the identification of the system disk includes the node to which the system disk belongs and the disk insertion interface number of the system disk;
[0025] The method of locating the position of the system disk in the server cluster in a fault state based on the identifier includes:
[0026] If there is a system disk in a faulty working state in the server cluster, determining the node position to which the system disk in the faulty state belongs based on the belonging node in the identifier corresponding to the system disk in the faulty state;
[0027] Determine the interface position of the system disk in the faulty state in the node to which the system disk belongs based on the disk interface number in the identifier corresponding to the system disk in the faulty state;
[0028] The system disk based on the fault status performs corresponding alarm operations at the location of the server cluster, including:
[0029] Output alarm information, where the alarm information includes the node location to which the system disk in the faulty state belongs and the interface location of the system disk in the faulty state in the node to which it belongs.
[0030] In some embodiments, it also includes:
[0031] Determine whether it has received a simulated fault instruction;
[0032] If the simulated fault instruction is received, the corresponding system disk is controlled to enter a fault state based on the simulated fault instruction;
[0033] Obtaining the alarm operation performed by the current configuration node of the server cluster;
[0034] Determine whether the alarm operation performed by the configuration node is consistent with the simulated fault position corresponding to the simulated fault instruction received by the configuration node;
[0035] If they are consistent, it is determined that the fault alarm function of the system disk in the server cluster is valid.
[0036] In some embodiments, the simulated fault instruction includes location information of the faulty system disk to be constructed and a state modification instruction;
[0037] The controlling the corresponding system disk to enter a fault state based on the simulated fault instruction includes:
[0038] Determine the target location of the system disk requiring a simulated fault indicated by the simulated fault instruction based on the location information of the faulty system disk requiring a simulated fault in the simulated fault instruction;
[0039] Control the execution state modification instruction in the simulated fault instruction of the system disk itself at the target position;
[0040] The state modification instruction is used to modify the working state corresponding to the system disk that needs to simulate a failure into a failure state, so as to control the system disk at the target location to enter a failure state.
[0041] In some embodiments, it also includes:
[0042] Obtaining the result of the configuration node determining each time whether there is a fault state in the working state of its own system disk and the working state of the system disks of other nodes received;
[0043] Determine whether a current determination result of whether a fault state exists in the working state of the system disk of the system disk of the system disk of the system disk of each other node received is that no fault state exists;
[0044] If the current judgment result is that there is no fault state, then judging whether the judgment result of the last judgment of whether there is a fault state in the working state of its own system disk and the working state of the system disks of other nodes received is that there is a fault state;
[0045] If the last judgment result is that there is a fault state, the alarm elimination command is executed.
[0046] In order to solve the above technical problems, an embodiment of the present invention further provides a system disk fault alarm device. For any node in a server cluster, the system disk fault alarm device includes:
[0047] A status acquisition unit, used to acquire an identifier of a system disk corresponding to itself and a working status of the system disk; the working status of the system disk includes a fault state and a normal state;
[0048] An authority determination unit, used to determine whether it is the current configuration node of the server cluster; if so, triggering the receiving unit;
[0049] The receiving unit is used to receive the working status of the system disks of each node other than itself;
[0050] A fault judgment unit is used to judge whether there is a fault state in the working state of its own system disk and the working state of the system disks of other nodes received; if so, trigger the positioning unit;
[0051] The positioning unit is used to determine an identifier corresponding to the system disk in the fault state, and locate the position of the system disk in the fault state in the server cluster based on the identifier;
[0052] The alarm unit is used to perform corresponding alarm operations based on the location of the system disk in the fault state in the server cluster.
[0053] To solve the above technical problems, an embodiment of the present invention further provides an electronic device, including:
[0054] Memory for storing computer programs;
[0055] The processor is used to execute the computer program to implement the steps of the system disk fault alarm method as described above.
[0056] To solve the above technical problem, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the system disk fault alarm method as described above are implemented.
[0057] It can be seen from the above technical solution that each node in the server cluster will obtain the identification and working status of the system disk set by itself. The configuration nodes in the server cluster determine whether there is a fault according to the working status of the system disk in each node, and when there is a system disk in a faulty state in the server cluster, the system in the faulty state is located and the corresponding alarm operation is performed according to the location, so as to inform the user whether there is a fault in the server cluster and the location of the specific system disk corresponding to the fault, thereby realizing the process of determining the state of the system disk and issuing an alarm for the abnormal state; the beneficial effect of the present invention is that the whole process is automatically completed by the server without the participation of the user, and the alarm operation finally executed can give the specific location of the fault, which is convenient for locating and solving the hard disk failure problem. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0059] Figure 1 A schematic diagram of a flow chart of a method for providing a fault alarm of a system disk according to an embodiment of the present invention;
[0060] Figure 2 A flowchart of another method for providing a fault alarm for a system disk according to an embodiment of the present invention;
[0061] Figure 3 A schematic diagram of a process flow of detecting the status of a system disk provided by an embodiment of the present invention;
[0062] Figure 4 A structural diagram of a system disk fault alarm device provided by an embodiment of the present invention;
[0063] Figure 5 A structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0065] The terms "including" and "having" in the specification of the present invention and the above-mentioned drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.
[0066] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0067] Next, a method for providing a system disk fault alarm provided by an embodiment of the present invention is described in detail. Figure 1 As shown, Figure 1 A flowchart of a method for providing a fault alarm of a system disk according to an embodiment of the present invention is provided. For any node in a server cluster, the method for providing a fault alarm of the system disk includes:
[0068] S11: obtaining the identifier of the system disk corresponding to itself and the working status of the system disk; the working status of the system disk includes a fault state and a normal state;
[0069] It is not difficult to understand that the working status of the system disk needs to be monitored first, so that timely alarms can be issued when the system disk fails. Specifically, the status monitoring of the system disk can be achieved by obtaining the working status of the system disk in real time. At the same time, in order to facilitate the location of the faulty system disk during subsequent alarms, the identification of the system disk is also obtained while obtaining the working status of the system disk. The specific type and implementation method of the identification of the system disk are not particularly limited in this application. The identification of the system disk is information that can reflect the location of the system disk in the server cluster, and the identification of each system disk is unique. The identification can be used to distinguish the system disks in different locations. There are many options for the specific acquisition method of the identification and working status, and this application does not make special restrictions here. Specifically, it can be achieved by adding an alarm detection script for detecting the working status of the system disk in the operating system. At the same time, considering that there is a set system disk in each node in the server cluster, this step can be required for each node, and each node is completed independently.
[0070] It should be noted that a plurality of nodes are set in the server cluster, and the operation of each node needs to be realized by installing an operating system in the system disk set in the node. Therefore, the process of monitoring the working status of the system disk can be realized by adding an alarm detection script in the operating system. The alarm detection script includes an automatic detection script for detecting the status of the system disk and an automatic alarm script for alarming according to the failure of the system disk. After the operating system is installed in the system disk, the automatic detection script can be run in each node to detect the failure of the system disk in real time. The automatic alarm script is used to perform the alarm operation, that is, the automatic detection script executes steps S11 to S15, and the automatic alarm script executes step S16. In order to improve the real-time performance of the detection process, this alarm detection script can be executed periodically in the form of crond. The crond service is a service or software used to periodically execute commands or specify program tasks. The crond service can set scheduled tasks through the crontab command. These scheduled tasks can be tasks that the operating system needs to execute periodically. Therefore, by setting scheduled tasks, the operating system can execute the alarm detection script regularly, thereby improving the real-time performance of the process of monitoring the working status of the system disk and avoiding the failure to discover the failure of the system disk in time.
[0071] S12: Determine whether the node is the current configuration node of the server cluster;
[0072] It is not difficult to understand that while detecting the working status of the system disk, the server also needs to report the alarm. A cluster is usually composed of several nodes, and each node may have two system disks. Therefore, no matter which node's system disk has a problem, it needs to be monitored and reported in a timely manner. However, due to the large number of nodes, users cannot observe each one in a timely manner. Therefore, the system disk alarms of the nodes can be concentrated and uploaded to the configuration node of the cluster. In this way, users can directly see the alarms during the use of the cluster, determine which system disk of which node has a fault and the specific location, which greatly improves efficiency.
[0073] It is understandable that once a system disk set in a node in the server cluster fails, that is, the working state of the system disk is in a faulty state, an alarm operation needs to be performed to inform the user or operator of this faulty state. Considering that only the configuration node can directly interact with the user when the server cluster is applied, only the configuration node can perform the alarm operation. Therefore, each node needs to determine whether it is the current configuration node of the server cluster and confirm whether it can perform the alarm operation. A configuration node refers to a single node that manages the system configuration activities. There are multiple options for determining whether it is a configuration node, and this application does not make any special restrictions here.
[0074] It should be noted that the configuration node in the server can be determined specifically by the configuration node identifier in the server cluster. Each node in the server cluster has a node configuration process and corresponding node configuration information during the application process. The server cluster can select one of all nodes as the configuration node of the current application process according to user needs or application needs, and configure the configuration node identifier to the node configuration information of the node during the configuration of the node. Therefore, each node can determine whether it is the current configuration node of the server according to whether the configuration node identifier exists in the node configuration information of its own server.
[0075] S13: If the node is the current configuration node of the server cluster, then the node receives the working status of the system disks of all nodes except the node itself;
[0076] It is not difficult to understand that if a node is a configuration node, it needs to determine whether the system disks of all nodes in the server cluster, including itself, are faulty, so that it can perform corresponding alarm operations according to the fault conditions of the system disks. For its own system disk, the configuration node can directly determine it according to the identification of its corresponding system disk obtained in step S11 and the working status of the system disk, but since step S11 is completed independently by each node, the configuration node does not have the working status information of other nodes. Therefore, for the system disks of other nodes, the configuration node needs to exchange information with other nodes to obtain the working status of the system disks of other nodes except itself.
[0077] S14: Determine whether there is a fault state in the working status of the own system disk and the working status of the system disks of other nodes received;
[0078] It is understandable that after obtaining the working status of the system disks of all nodes including itself, the configuration node can scan the working status of the system disks of all nodes to determine whether there is a fault state, so as to find out the faulty system disks in the server cluster. This judgment process can be completed by the configuration node after the configuration node obtains the working status of the system disks of all nodes including itself, or it can be completed independently by each node, that is, each node directly judges whether there is a fault state in the working status of its own system disk after step S11, and directly marks the system disk in the fault state. When the configuration node receives the working status of the system disks of other nodes except itself, it directly transmits this mark to the configuration node synchronously, and the configuration node directly implements the judgment process of whether there is a fault state in the working status of its own system disk and the working status of the system disks of other nodes received according to this mark.
[0079] S15: If there is a fault state, determine an identifier corresponding to the system disk in the fault state, and locate the position of the system disk in the fault state in the server cluster based on the identifier;
[0080] Furthermore, since there are multiple nodes in the server cluster, each node will be equipped with a system disk. The configuration node not only needs to determine whether each system disk has a fault, but also needs to determine which system disk has a fault. Therefore, if the configuration node determines that the working state of a system disk is a faulty state, it is necessary to further determine the specific location of the system disk in the faulty state. At this time, the location of the system disk in the server cluster can be located according to the identifier of the system disk obtained at the same time as the working state. That is, after determining that the system disk in the working state is a faulty state, find the identifier of the system disk in the faulty state, and then locate it according to the identifier.
[0081] S16: Execute corresponding alarm operations based on the location of the system disk in the server cluster in the fault state.
[0082] It is not difficult to understand that after determining the specific location of the system disk in the fault state, the alarm operation can be performed according to the location of the system disk. For system disks in different locations, the present invention sets different types of alarm operations, that is, the user can know whether there is a faulty system disk in the server by whether the alarm operation is executed or not, and determine which system disk in the server is faulty according to the specific operation or specific content of the alarm operation. The present application does not make any special restrictions on the specific setting methods of different types of alarm operations. For example, when the server uses a prompt tone to sound an alarm, different types of alarm operations can be implemented by setting different prompt tones; the configuration node can also directly implement the alarm operation by outputting alarm information, and the alarm information includes the location of the faulty system disk.
[0083] It should be noted that the application does not make any special restrictions on the specific type and number of system disks in each node. It can be implemented by non-volatile storage devices, etc. The number is usually one, and it can also be set to two to implement a dual system disk mode. The application does not make any special restrictions on the specific type and implementation method of the server cluster and each node therein. The node can be a controller or processor, etc. The number of nodes set in the server can also be selected and adjusted according to the actual application. The operating system of the application can be an MCS operating system (Multiple Controller System), etc.
[0084] As a specific embodiment, take each node in the server as an example using dual system disks, see Figure 2 As shown, Figure 2A flow chart of another method for fault alarm of a system disk provided in an embodiment of the present invention; the present invention can add an automatic alarm detection script for the system disk in the operating system, and set this script to be executed every five minutes in the form of a cron timer. When executing this script, the bus numbers of the two system disks on each controller are first obtained, and the bus numbers are used as the identification of the system disk. Then the status of the two system disks is detected. If the status is abnormal, it is recorded. The configuration node of the server cluster will alarm the user, informing the user which node corresponds to the problematic system disk. At the same time, the specific location of the problematic system disk is obtained according to the recorded bus number, and reported to the user together, so that the problem can be quickly solved or the system disk can be replaced.
[0085] It is not difficult to understand that, through the automatic alarm method for the system disk provided by the present invention, the system disk of each node in the server can be effectively detected and automatically alarmed, and the process of automatically identifying the faulty system disk and reporting it is realized. In particular, when each node in the server adopts the mode of dual system disks, the number of system disks in the server cluster is large. This method can determine the status of each system disk in the server and alarm for abnormal status. The whole process is automatically completed by the server without user participation. The alarm information will give the faulty node and the corresponding identification of the faulty system disk. The specific location of the faulty system disk can be obtained through the identification, which provides convenience for locating and solving hard disk problems. The real-time performance of the whole process is good, and the command can be executed all the time to obtain the status of the system disk, and the abnormality of the system disk can be discovered in time, and the dual system disk problem can be effectively located and solved to avoid data loss or other losses. The fault alarm method provided by the present invention can also be applied to other similar hardware alarm processes, and the faulty node and fault location can also be discovered in time with the help of automatic detection scripts to solve the problem of untimely system fault alarms, improve the efficiency of locating faults, and avoid affecting system use and causing large losses.
[0086] The present invention provides a method for alarming a system disk fault. Each node in a server cluster obtains an identifier and a working status of a system disk set by itself. The configuration nodes in the server cluster determine whether a fault exists according to the working status of the system disks in each node. When a system disk in a fault state exists in the server cluster, the system in the fault state is located and a corresponding alarm operation is performed according to the location, thereby informing a user of whether a fault exists in the server cluster and the location of a specific system disk corresponding to the fault, thereby realizing the process of determining the state of the system disk and alarming for an abnormal state. The entire process is automatically completed by the server without user participation. The alarm operation finally performed can give the specific location of the fault, thereby providing convenience for locating and solving hard disk fault problems.
[0087] See also Figure 3 As shown, Figure 3 A schematic diagram of a process flow of detecting the status of a system disk provided in an embodiment of the present invention; in some embodiments, obtaining the working status of the system disk includes:
[0088] For any system disk of the system, obtain the node file generated by the kernel of the operating system installed in the system disk;
[0089] Scan all file paths of node files to read the status values in the node files;
[0090] If the status value is the first status value, it is determined that the working status of the system disk is a fault status;
[0091] If the status value is the second status value, it is determined that the working status of the system disk is a normal status.
[0092] It is not difficult to understand that the working status of the system disk can be realized directly by reading the status value in the node file corresponding to the system disk. For nodes in dual system disk mode, in the process of obtaining the status of the dual system disks, the status of the two member disks that make up the array can be obtained by reading the node file provided by the kernel. This application does not make any special restrictions on the path of the specific node file and the specific location of the status value. The status value in the node file will characterize the working status of the system disk through two different values, namely the first status value and the second status value. A specific detection process is as follows: Figure 3 As shown in the figure, the file path where the status value in the node file is located is similar to / sys / block / md0 / md / dev-xxx / state. Therefore, in the process of obtaining the working status of the system disk, the automatic detection script will first traverse the file path of the node file / sys / block / md0 / md / dev-xxx, and then read the value of / sys / block / md0 / md / dev-xxx / state through the Linux command. If the value obtained is "faulty", it means that the member disk being detected has a fault, and then the fault will be reported to the MCS system and an alarm will be issued through the configuration node.
[0093] Specifically, the working status of the system disk can be realized by reading the status value in the node file. Each node can directly run the automatic detection script to obtain the status value in the node file in real time, thereby obtaining the working status of the system disk in real time, effectively ensuring the real-time nature of the detection results. It is simple, effective and easy to implement.
[0094] In some embodiments, any node in the server cluster is provided with a preset storage location, and the method for alarming a failure of a system disk further includes:
[0095] If it is not the current configuration node of the server cluster, it stores the working status of its own system disk and the identifier corresponding to the system disk to its own preset storage location;
[0096] Receive the working status of the system disks of all nodes except itself, including:
[0097] Copying the working status and corresponding identification of the system disk of each node other than the own node from the preset storage location of each node other than the own node to the preset storage location of the own node;
[0098] Determine whether the working status of the system disk of the system disk itself and the working status of the system disks of other nodes received have any fault status, including:
[0099] Scan the working status of all system disks stored in its own preset storage location, and determine whether there is a fault status among them;
[0100] If there is no fault state, the process jumps again to the step of obtaining the identifier of the corresponding system disk and the working state of the system disk.
[0101] It is understandable that, considering that only the configuration node can perform the alarm operation in the event of a fault, other nodes except the configuration node need to inform the configuration node of the working status and identification of the system disk determined by their own scans, so in order to facilitate the configuration node to obtain the working status and corresponding identification of the system disk of each node other than itself, each node is set to store the working status of its own system disk and a specific preset storage location corresponding to the identification of the system disk. Each node performs the detection process of the working status of the system disk in real time and updates the working status stored in the preset storage location in real time; the configuration node can directly copy and obtain the latest working status of the system disk from the preset storage location of each node. At the same time, if the configuration node scans the working status of all system disks and finds that there is no faulty system disk, it can return to step S11. If a node is not a configuration node, the automatic detection script therein will repeat steps S11 and S12 until it becomes a configuration node. The specific setting method of the preset storage location, etc. is not particularly limited in this application, and can be selected according to the actual application of each node. The setting method and setting location of the preset storage location of each node can be different. The present application does not impose any particular limitation on the specific implementation method of copying, and it can be implemented through various types of copy instructions.
[0102] As a specific embodiment, taking the server using the MCS system and each node in the server using two system disks as an example, first, the automatic detection script will perform a detection process of the working status of the system disk in each node, and store the bus number of the obtained system disk and the status of the dual system disks in each node in a specific file, and use this file as the preset storage location. Then the automatic detection script will determine which is the configuration node, and only the configuration node will proceed to S13 and subsequent steps. First, the configuration node will copy the files of all other nodes that access the system disk status. The copying method can specifically use the copy command cpfiles unique to the MCS system. This command is used in the MCS system to copy files of other nodes, and can retrieve the specified node directory, as well as perform file filtering and freely select files; therefore, the automatic detection script can use the cpfiles command to copy files of other nodes that access the system disk status. The next step is alarm judgment. The configuration node of the cluster will use an automatic detection script to determine whether the status of the system disk of each node is abnormal. If there is an abnormality, an alarm will be reported through the alarm command of the MCS system, and specific alarm information will be uploaded or specific alarm operations will be performed based on the bus number corresponding to the faulty system disk. At this time, the specific content of the alarm information or alarm operation can determine the specific location of the faulty system disk in the hardware, which is convenient for users to locate the problem or replace it.
[0103] Specifically, in order to facilitate the configuration node to obtain information such as the working status of each system disk, and also to ensure the real-time working status of the system disk during the detection process, a preset storage location can be set to specifically store the working status of the system disk detected in real time, which is also convenient for subsequent configuration nodes to copy.
[0104] In some embodiments, if all nodes in the server cluster are in dual system disk mode, the identification of the system disk includes the node to which the system disk belongs and the disk insertion interface number of the system disk;
[0105] Locate the location of the faulty system disk in the server cluster based on the identifier, including:
[0106] If there is a system disk in a faulty working state in the server cluster, the node position to which the system disk in the faulty state belongs is determined based on the belonging node in the identifier corresponding to the system disk in the faulty state;
[0107] Determine the interface position of the system disk in the faulty state in the node to which the system disk belongs based on the disk interface number in the identifier corresponding to the system disk in the faulty state;
[0108] Perform corresponding alarm operations based on the location of the faulty system disk in the server cluster, including:
[0109] Output alarm information, including the node location to which the system disk in the faulty state belongs and the interface location of the system disk in the faulty state in the node to which it belongs.
[0110] It should be noted that the dual system disk mode refers to the situation that during the installation of the operating system, if two NVMe disks with the same capacity that meet the conditions are detected in a certain node or a certain control system, then the node or control system is considered to meet the conditions for installation in the dual system disk mode. In this case, the two NVMe disks will be combined into an MD (Multi-Disk) device in RAID1 (also known as Mirror). Assuming that the node name of the device is / dev / md0, the / dev / md0 node can be partitioned and formatted; the partition node of the MD device is mounted to the specified file path, and the executable programs, scripts, libraries and other files involved in the MCS system are copied to the specified location; then the operating system of the node or control system is installed and restarted to take effect. At this time, during the operation of the MCS system, it is necessary to monitor the operating status of the MD device composed of two NVMe disks in RAID1, that is, the dual system disk. When any member disk in the array fails, it is necessary to report an alarm to the user and replace the system disk in time to avoid losses.
[0111] It is not difficult to understand that when locating the system disk in the faulty state in each node, it is not only necessary to determine the location of the node where the faulty system disk is located, but also to determine which system disk in the node the faulty system disk is. Although the two system disks in the same node belong to the same node, there must be differences in the setting positions of the motherboard; therefore, the identifier obtained at this time not only needs to include the node to which the system disk belongs, but also needs to include the plug-in interface number of the system disk that can characterize the specific location of the system disk on the node, usually the bus number of the system disk, which is the bus number and can be used to uniquely identify each function in the bus. The bus number refers to the bus number in the server system, which can be used as the unique identifier of the dual system disks. The bus number is usually bound to the hardware position and will not change. Therefore, when the system disk fails, the bus number can be used to determine which system disk has a problem, which helps to locate the problem. When the system disk needs to be replaced, it also knows which position of the system disk on the motherboard needs to be replaced, avoiding wasting time to troubleshoot which system disk has a problem, or even replacing it incorrectly and causing greater impact.
[0112] It is understandable that there are multiple options for the specific type and implementation of the alarm operation performed by the configuration node, and the present application does not make any special restrictions here, and it can be directly implemented by outputting the alarm information; the present application does not make any special restrictions here for the specific expression of the system disk's belonging node and the system disk's plug-in interface number in the identification, and for the system disk's belonging node, all nodes in the server can be numbered in advance, and the node's serial number can be used to directly characterize the system disk's belonging node; for the system disk's plug-in interface number, it can be directly distinguished by the bus number, or it can be distinguished according to its specific settings in the node. As a specific embodiment, the alarm detection script will first obtain the bus number of the dual system disk on each control node in advance. During the detection process, the automatic detection script will obtain the bus number corresponding to each system disk through the Linux command ls –l / sys / block | grep nvme |cut –d' / ' –f5 | cut –d':'–f2. If the system disk is detected to be faulty in the subsequent steps, the user will be informed of the specific location of the faulty system disk according to the obtained bus number.
[0113] Specifically, this solution can effectively solve the problem that the existing technology cannot automatically detect and alarm dual system disks. The status of the system disk can be determined through the alarm detection script and an alarm can be issued for abnormal status. The entire process is automatically completed by the server without user participation. It can promptly discover which system disk of which controller has a fault and obtain the fault location, providing convenience for locating and solving hard disk problems.
[0114] In some embodiments, it also includes:
[0115] Determine whether it has received a simulated fault instruction;
[0116] If a simulated fault instruction is received, the corresponding system disk is controlled to enter a fault state based on the simulated fault instruction;
[0117] Get the alarm operation performed by the current configuration node of the server cluster;
[0118] Determine whether the alarm operation performed by the configuration node is consistent with the simulated fault location corresponding to the simulated fault instruction received by the configuration node;
[0119] If they are consistent, it is determined that the fault alarm function of the system disk in the server cluster is valid.
[0120] It is not difficult to understand that before actual application, it is generally necessary to test and verify the fault detection and alarm method of this system disk. At this time, a system disk with a fault in the server cluster is required to realize an effective test and verification process. However, in actual application, the system disk cannot be directly damaged for testing, which will greatly increase the cost of the entire test process. Therefore, it is necessary to simulate the fault of the system disk in the server by setting a simulated fault instruction. The simulated fault instruction will be sent to the node where the specific system disk that needs to simulate the fault is located. After the node receives this instruction, it will control the target system disk to enter a simulated fault state according to the information in the simulated fault instruction. After the server completes the entire fault detection and alarm process, the alarm operation performed by the configuration node in the server for this simulated fault state is obtained. According to whether the location of the simulated fault indicated by the simulated fault instruction is consistent with the fault location alarmed by the alarm operation, it is judged whether the fault detection and alarm process of this system disk can effectively and accurately alarm the location of the faulty system disk. The specific implementation method of the simulated fault instruction is not particularly limited in this application.
[0121] Specifically, this embodiment provides a simulation test method for the automatic detection and alarm function of dual system disks, which can effectively test and verify the fault detection and alarm process of the system disk, so as to maintain the normal use of the alarm function of the server.
[0122] In some embodiments, the simulated fault instruction includes location information and status modification instructions of the faulty system disk to be constructed;
[0123] Based on the simulated fault instruction, the corresponding system disk is controlled to enter the fault state, including:
[0124] Determine the target position of the system disk requiring a simulated fault indicated by the simulated fault instruction based on the position information of the faulty system disk requiring a simulated fault in the simulated fault instruction;
[0125] Control the execution state modification instruction in the system disk simulation fault instruction at the target location;
[0126] The state modification instruction is used to modify the working state corresponding to the system disk that needs to simulate a fault into a fault state, so as to control the system disk at the target position to enter the fault state.
[0127] It is understandable that the simulated fault instruction can be modified by controlling the working state of the system disk to simulate the fault state of the system disk. After the test is completed, the recovery instruction corresponding to the simulated fault instruction needs to be executed to restore the simulated fault state to a normal state. As a specific embodiment, in view of the situation that the system disk cannot be really damaged during the test of the dual system disk alarm function, this embodiment provides a test method. The tester can use the Linux command: mdadm / dev / md0 –f / dev / nvmexxx to simulate the failure of the system disk, so as to verify whether the dual system disk alarm function is effective. The system disk failure of the node needs to be constructed and the command is executed on the node. When the tester is finished with the test, the Linux command needs to be executed to restore. First, mdadm / dev / md0–f / dev / nvmexxx needs to be executed on the node where the fault is injected to remove the fault disk from the MD group, and then the mdadm / dev / md0 –a / dev / nvme1n1 command needs to be executed to re-add the disk to the MD group. It is also possible to test whether the alarm elimination function of the detection script is effective after the fault is eliminated.
[0128] Specifically, in order to facilitate users to test and verify whether the fault alarm method of the system disk provided by the present invention is effective and accurate, a simulated fault process can also be set up to test and verify it, so as to avoid actually damaging the system disk for testing and verification. This embodiment provides a method for testing the fault function of dual system disks, so that testers can better test and maintain the alarm function to ensure the normal use of the entire system.
[0129] In some embodiments, it also includes:
[0130] Obtaining the result of each configuration node judging whether there is a fault state in the working status of its own system disk and the working status of the system disks of other nodes received;
[0131] Determine whether there is a fault state in the working state of its own system disk and the working state of the system disks of other nodes received, and whether the current determination result is that there is no fault state;
[0132] If the current judgment result is that there is no fault state, then judging whether there is a fault state in the working state of the system disk of the system disk of the system disk of the system disk of the other nodes received in the last judgment result is that there is a fault state;
[0133] If the last judgment result is that there is a fault state, the alarm elimination command is executed.
[0134] It is not difficult to understand that when the user repairs the faulty system disk or replaces a new system disk according to the alarm, the alarm detection script will detect that the system disk that was originally in a faulty state has disappeared. At this time, it is also necessary to execute the alarm elimination command to eliminate the previously reported alarm information or the executed alarm operation to avoid affecting the user's operation. The application does not make any special restrictions on the specific type and implementation method of the alarm elimination command. The alarm elimination function can also be consistent with the alarm detection script, and is also set to be detected once every five minutes so that the latest system disk status information can be updated in time.
[0135] Specifically, in order to facilitate user use, it is also necessary to add a function of setting alarm cancellation to avoid the situation where the alarm information or alarm operation is still output after the user eliminates the fault, so as to ensure normal use of the user after the fault is eliminated.
[0136] See also Figure 4 As shown, Figure 4 A schematic diagram of the structure of a system disk fault alarm device provided by an embodiment of the present invention; To solve the above technical problem, an embodiment of the present invention further provides a system disk fault alarm device. For any node in a server cluster, the system disk fault alarm device includes:
[0137] The status acquisition unit 11 is used to acquire the identification of the system disk corresponding to itself and the working status of the system disk; the working status of the system disk includes a fault state and a normal state;
[0138] The authority determination unit 12 is used to determine whether it is the current configuration node of the server cluster; if so, trigger the receiving unit;
[0139] The receiving unit 13 is used to receive the working status of the system disks of each node other than itself;
[0140] The fault judgment unit 14 is used to judge whether there is a fault state in the working state of its own system disk and the working state of the system disks of other nodes received; if so, trigger the positioning unit;
[0141] The positioning unit 15 is used to determine an identifier corresponding to the system disk in the fault state, and locate the position of the system disk in the fault state in the server cluster based on the identifier;
[0142] The alarm unit 16 is used to perform corresponding alarm operations based on the location of the system disk in the fault state in the server cluster.
[0143] In some embodiments, the state acquisition unit 11 includes:
[0144] A node file acquisition unit, used for acquiring, for any system disk of the system, a node file generated by a kernel of an operating system installed in the system disk;
[0145] A file scanning unit, used for scanning all file paths of the node file to read the status value in the node file;
[0146] a first determination unit, configured to determine that the working state of the system disk is a fault state if the state value is a first state value;
[0147] The second determination unit is configured to determine that the working state of the system disk is a normal state if the state value is a second state value.
[0148] In some embodiments, it also includes:
[0149] A storage unit, configured to store the working status of its own system disk and an identifier corresponding to the system disk to its own preset storage location if the storage unit itself is not the current configuration node of the server cluster;
[0150] The receiving unit 13 comprises:
[0151] A copy unit, used to copy the working status and corresponding identification of the system disk of each node other than the own node from the preset storage location of each node other than the own node to the preset storage location of the own node;
[0152] The fault judgment unit 14 includes:
[0153] A status scanning unit scans the working status of all system disks stored in its own preset storage location and determines whether there is a fault state therein;
[0154] If there is no fault state, the state acquisition unit 11 is triggered again.
[0155] In some embodiments, if all nodes in the server cluster are in dual system disk mode, the identification of the system disk includes the node to which the system disk belongs and the disk insertion interface number of the system disk; the positioning unit 15 includes:
[0156] a node position determining unit, configured to determine the node position to which the system disk in the faulty state belongs based on the belonging node in the identifier corresponding to the system disk in the faulty state if there is a system disk in the server cluster in the faulty state;
[0157] An installation position determination unit, configured to determine the interface position of the system disk in the faulty state in the node to which it belongs based on the disk insertion interface number in the identifier corresponding to the system disk in the faulty state;
[0158] The alarm unit 16 comprises:
[0159] The alarm subunit is used to output alarm information, wherein the alarm information includes the node location to which the system disk in the faulty state belongs and the interface location of the system disk in the faulty state in the node to which it belongs.
[0160] In some embodiments, it also includes:
[0161] A test judgment unit, used to judge whether it has received a simulated fault instruction;
[0162] A fault simulation unit, configured to control a system disk corresponding to itself to enter a fault state based on the simulated fault instruction if the simulated fault instruction is received;
[0163] An alarm acquisition unit, used to acquire the alarm operation executed by the current configuration node of the server cluster;
[0164] A verification unit, used to determine whether the alarm operation performed by the configuration node is consistent with the simulated fault position corresponding to the simulated fault instruction received by the configuration node; if consistent, triggering the test result unit;
[0165] The test result unit is used to determine whether the fault alarm function of the system disk in the server cluster is effective.
[0166] In some embodiments, the fault simulation unit includes:
[0167] A fault simulation position determination unit, configured to determine a target position of a system disk requiring a simulated fault indicated by the simulated fault instruction based on position information of the faulty system disk requiring a simulated fault in the simulated fault instruction;
[0168] An instruction execution unit, used for controlling the execution state modification instruction in the simulated fault instruction of the system disk located at the target location;
[0169] The state modification unit is used to modify the working state corresponding to the system disk that needs to simulate a failure into a failure state by using the state modification instruction, so as to control the system disk at the target position to enter the failure state.
[0170] In some embodiments, it also includes:
[0171] A fault judgment result acquisition unit, used for acquiring a judgment result of the configuration node judging whether there is a fault state in the working state of its own system disk and the working state of the system disks of other nodes received each time;
[0172] A current fault result determination unit, configured to determine whether a current determination result of whether a fault state exists in the working state of its own system disk and the working state of the received system disks of each other node is that no fault state exists;
[0173] The last fault result determining unit is used to determine whether the last determination result of whether there is a fault state in the working state of its own system disk and the working state of the system disks of other nodes received is that there is a fault state if the current determination result is that there is no fault state;
[0174] The alarm elimination unit is used to execute the alarm elimination command if the last judgment result is that there is a fault state.
[0175] For the description of the features of the system disk fault alarm device provided in the embodiment of the present invention, reference may be made to the relevant description of the embodiment of the system disk fault alarm method, which will not be described in detail here.
[0176] See also Figure 5 As shown, Figure 5 A structural diagram of an electronic device provided by an embodiment of the present invention, such as Figure 5 As shown, the electronic device includes: a memory 60 for storing a computer program;
[0177] The processor 61 is used to implement the steps of the method for alarming a system disk failure in the above embodiment when executing a computer program.
[0178] The electronic device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.
[0179] Among them, the processor 61 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 61 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 61 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 61 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 61 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0180] The memory 60 may include one or more computer-readable storage media, which may be non-transitory. The memory 60 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 60 is at least used to store the following computer program 601, wherein, after the computer program is loaded and executed by the processor 61, it can implement the relevant steps of the fault alarm method of the system disk disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 60 may also include an operating system 602 and data 603, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 602 may include Windows, Unix, Linux, etc. The data 603 may include but is not limited to the data required in the fault alarm method of the system disk, etc.
[0181] In some embodiments, the electronic device may further include a display screen 62 , an input / output interface 63 , a communication interface 64 , a power supply 65 , and a communication bus 66 .
[0182] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure.
[0183] For the description of the features in the electronic device provided by the embodiment of the present invention, reference may be made to the relevant description of the embodiment of the method for alarming a fault of a system disk, which will not be described in detail here.
[0184] It is understandable that if the fault alarm method of the system disk in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the current technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk and other media that can store program codes.
[0185] Based on this, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned system disk fault alarm method are implemented.
[0186] For the description of the features in the computer-readable storage medium provided in the embodiment of the present invention, reference may be made to the relevant description of the embodiment of the method for providing a fault alarm for a system disk, which will not be described in detail here.
[0187] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the system disk fault alarm method described in the above embodiment when executed by a processor.
[0188] For descriptions of features in the computer program product provided by the embodiments of the present invention, reference may be made to the relevant descriptions of the embodiments of the method for providing a fault alarm for a system disk, which will not be described in detail here.
[0189] The above is a detailed introduction to a method, device, electronic device and storage medium for fault alarm of a system disk provided by an embodiment of the present invention. Each embodiment in the specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0190] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0191] The above is a detailed introduction to a method, device, electronic device and storage medium for fault alarm of a system disk provided by the present invention. This article uses specific examples to illustrate the principle and implementation method of the present invention. The description of the above embodiment is only used to help understand the method and core idea of the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A method for warning a system disk fault, characterized in that: For any node in the server cluster, the system disk fault alarm method includes: Obtaining the identifier of the system disk corresponding to itself and the working status of the system disk; the working status of the system disk includes a fault state and a normal state; Determine whether it is the current configuration node of the server cluster; If the node itself is the current configuration node of the server cluster, then the node receives the working status of the system disks of all other nodes except itself; Determine whether there is a fault state in the working status of its own system disk and the working status of the system disks of other nodes received; If there is a fault state, determining an identifier corresponding to the system disk in the fault state, and locating a position of the system disk in the fault state in the server cluster based on the identifier; A corresponding alarm operation is performed based on the location of the system disk in the server cluster in a fault state.
2. The method for warning a system disk failure according to claim 1, characterized in that: Obtaining the working status of the system disk includes: For any system disk of the system, obtain a node file generated by the kernel of the operating system installed in the system disk; Scan all file paths of the node file to read the status value in the node file; If the state value is the first state value, determining that the working state of the system disk is a fault state; If the status value is the second status value, it is determined that the working status of the system disk is a normal status.
3. The method for warning a system disk failure according to claim 1, characterized in that: Any node in the server cluster is provided with a preset storage location, and the system disk fault alarm method further includes: If the node itself is not the current configuration node of the server cluster, the working status of its own system disk and the identifier corresponding to the system disk are stored in its own preset storage location; The receiving the working status of the system disks of each node other than the node itself includes: Copying the working status and corresponding identification of the system disk of each node other than the own node from the preset storage location of each node other than the own node to the preset storage location of the own node; The determining whether there is a fault state in the working state of the own system disk and the working state of the received system disks of other nodes includes: Scan the working status of all system disks stored in its own preset storage location, and determine whether there is a fault status among them; If there is no fault state, the process jumps again to the step of obtaining the identifier of the system disk corresponding to itself and the working state of the system disk.
4. The method for warning a system disk failure according to claim 1, characterized in that: If all nodes in the server cluster are in dual system disk mode, the identification of the system disk includes the node to which the system disk belongs and the disk insertion interface number of the system disk; The method of locating the position of the system disk in the server cluster in a fault state based on the identifier includes: If there is a system disk in a faulty working state in the server cluster, determining the node position to which the system disk in the faulty state belongs based on the belonging node in the identifier corresponding to the system disk in the faulty state; Determine the interface position of the system disk in the faulty state in the node to which the system disk belongs based on the disk interface number in the identifier corresponding to the system disk in the faulty state; The system disk based on the fault status performs corresponding alarm operations at the location of the server cluster, including: Output alarm information, where the alarm information includes the node location to which the system disk in the faulty state belongs and the interface location of the system disk in the faulty state in the node to which it belongs.
5. The method for warning a system disk failure according to claim 1, characterized in that: Also includes: Determine whether it has received a simulated fault instruction; If the simulated fault instruction is received, the corresponding system disk is controlled to enter a fault state based on the simulated fault instruction; Obtaining the alarm operation performed by the current configuration node of the server cluster; Determine whether the alarm operation performed by the configuration node is consistent with the simulated fault position corresponding to the simulated fault instruction received by the configuration node; If they are consistent, it is determined that the fault alarm function of the system disk in the server cluster is valid.
6. The method for warning a system disk failure as claimed in claim 5, characterized in that: The simulated fault instruction includes the location information of the faulty system disk to be constructed and a status modification instruction; The controlling the corresponding system disk to enter a fault state based on the simulated fault instruction includes: Determine the target location of the system disk requiring a simulated fault indicated by the simulated fault instruction based on the location information of the faulty system disk requiring a simulated fault in the simulated fault instruction; Control the execution state modification instruction in the simulated fault instruction of the system disk itself at the target position; The state modification instruction is used to modify the working state corresponding to the system disk that needs to simulate a failure into a failure state, so as to control the system disk at the target location to enter a failure state.
7. The method for warning a system disk failure according to any one of claims 1 to 6, characterized in that: Also includes: Obtaining the result of the configuration node determining each time whether there is a fault state in the working state of its own system disk and the working state of the system disks of other nodes received; Determine whether a current determination result of whether a fault state exists in the working state of the system disk of the system disk of the system disk of the system disk of each other node received is that no fault state exists; If the current judgment result is that there is no fault state, then judging whether the judgment result of the last judgment of whether there is a fault state in the working state of its own system disk and the working state of the system disks of other nodes received is that there is a fault state; If the last judgment result is that there is a fault state, the alarm elimination command is executed.
8. A system disk fault alarm device, characterized in that: For any node in the server cluster, the system disk fault alarm device includes: A status acquisition unit, used to acquire an identifier of a system disk corresponding to itself and a working status of the system disk; the working status of the system disk includes a fault state and a normal state; An authority determination unit, used to determine whether it is the current configuration node of the server cluster; if so, triggering the receiving unit; The receiving unit is used to receive the working status of the system disks of each node other than itself; A fault judgment unit is used to judge whether there is a fault state in the working state of its own system disk and the working state of the system disks of other nodes received; if so, trigger the positioning unit; The positioning unit is used to determine an identifier corresponding to the system disk in the fault state, and locate the position of the system disk in the fault state in the server cluster based on the identifier; The alarm unit is used to perform corresponding alarm operations based on the location of the system disk in the fault state in the server cluster.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program to implement the steps of the system disk fault alarm method according to any one of claims 1 to 7.
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 system disk fault alarm method according to any one of claims 1 to 7 are implemented.
