File system repairing method and device based on Linux system

By implementing automatic detection and repair functions in Linux systems, the data unavailability problem caused by file system corruption in large-scale supercomputing clusters is solved, the operation and maintenance efficiency and automation capabilities are improved, and maintenance time and labor costs are reduced.

CN119201546APending Publication Date: 2024-12-27SHANGHAI SILANG WANWEI COMPUTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411236383.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The file system in a large-scale supercomputing cluster is damaged due to unexpected power outage or system crashes, resulting in data being unable to be read and written normally, and manual judgment and repair work is large, which affects the computing efficiency.

Method used

Provide a file system repair method and device based on Linux system. It automatically detects the operating status of the file system through the management platform. If an exception is found, a repair instruction is generated and sent to the supercomputer management node for repair, realizing automatic detection and repair of the file system. .

Benefits of technology

There is no need for manual inspection by operation and maintenance personnel, which improves automated operation and maintenance capabilities, reduces maintenance time, saves manpower, and promptly solves the operation and maintenance problems of large-scale supercomputing clusters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201546A_ABST
    Figure CN119201546A_ABST
Patent Text Reader

Abstract

The invention discloses a file system repairing method based on a Linux system, the method is used for health check and repairing of a management node file system of a large-scale super-computing cluster system, whether the file system is damaged or not is checked through a technical means, if it is detected that the file system is damaged or unavailable, repairing is carried out, the automatic operation and maintenance capability is improved, and the efficiency is improved. Maintenance time is reduced, and manpower is saved. It can be seen that automatic detection and automatic repair of the file system of the Linux system can be achieved, manual detection of operation and maintenance personnel is not needed, the automatic operation and maintenance capacity is improved, the maintenance time is shortened, manpower is saved, the automatic operation and maintenance capacity is improved, and the large-scale super-computing cluster operation and maintenance problem is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a file system repair method and device based on a Linux system. Background Art

[0002] With the continuous evolution of supercomputing technology, the scale of supercomputing clusters is getting larger and larger. The increase in computing speed has put forward higher requirements for equipment performance, stability, and operation and maintenance management. The same is true for the system. When the system is unexpectedly powered off or crashed, the file system may be damaged, resulting in the inability to read and write data in the file system. Therefore, the file system needs to be repaired. For the management of large-scale clusters, if only manual judgment and repair of the file system are relied on, the workload will be very large, and timely repairs will not be possible. Waiting until cluster computing errors occur before checking and repairing will greatly affect computing efficiency. Summary of the invention

[0003] The present application provides a file system repair method and device based on the Linux system to realize automatic detection and automatic repair of the file system of the Linux system, without the need for manual detection by operation and maintenance personnel, thereby improving the automated operation and maintenance capabilities, reducing maintenance time, saving manpower, improving the automated operation and maintenance capabilities, and solving the problem of large-scale supercomputing cluster operation and maintenance.

[0004] In a first aspect, the present application provides a file system repair method based on a Linux system, the method comprising:

[0005] The management platform responds to the system check instruction and obtains the operating status information of the file system of the Linux system through the supercomputing management node;

[0006] The management platform determines the health status of the file system according to the operation status information of the file system;

[0007] If the health status of the file system is abnormal, the management platform determines the problem to be repaired of the file system according to the operation status information of the file system;

[0008] The management platform determines the mount point to be repaired and the repair program instruction according to the problem to be repaired of the file system and the system type of the file system;

[0009] The management platform generates a repair instruction according to the mount point to be repaired and the repair program instruction, and sends the repair instruction to the supercomputing management node so that the supercomputing management node repairs the problem to be repaired of the file system using the repair instruction.

[0010] In a second aspect, the present application provides a file system repair device based on a Linux system, the device comprising:

[0011] The first unit is used for the management platform to respond to the system check instruction and obtain the operating status information of the file system of the Linux system through the supercomputing management node;

[0012] A second unit is used for the management platform to determine the health status of the file system according to the operation status information of the file system;

[0013] A third unit is used for, if the health status of the file system is an abnormal status, the management platform determining the problem to be repaired of the file system according to the operation status information of the file system;

[0014] The fourth unit is used for the management platform to determine the mount point to be repaired and the repair program instruction according to the problem to be repaired of the file system and the system type of the file system;

[0015] The fifth unit is used for the management platform to generate a repair instruction according to the mount point to be repaired and the repair program instruction, and to send the repair instruction to the supercomputing management node so that the supercomputing management node can use the repair instruction to repair the problem to be repaired of the file system.

[0016] In a third aspect, the present application provides a readable medium comprising execution instructions. When a processor of an electronic device executes the execution instructions, the electronic device executes any method described in the first aspect.

[0017] In a fourth aspect, the present application provides an electronic device, comprising a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor executes any method described in the first aspect.

[0018] It can be seen from the above technical scheme that the method provided by the present application includes: the management platform responds to the system check instruction and obtains the operating status information of the file system of the Linux system through the supercomputing management node; the management platform determines the health status of the file system according to the operating status information of the file system; if the health status of the file system is abnormal, the management platform determines the problem to be repaired of the file system according to the operating status information of the file system; the management platform determines the mount point to be repaired and the repair program instruction according to the problem to be repaired of the file system and the system type of the file system; the management platform generates a repair instruction according to the mount point to be repaired and the repair program instruction, and sends the repair instruction to the supercomputing management node so that the supercomputing management node uses the repair instruction to repair the problem to be repaired of the file system. The method is used for the health check and repair of the file system of the management node of a large-scale supercomputing cluster system. The method first monitors the health status of the file system and determines the file system format, checks whether the file system is damaged by technical means, and repairs it if the file system is damaged or unavailable, thereby improving the automated operation and maintenance capabilities, reducing maintenance time, and saving manpower. It can be seen that this application can realize automatic detection and automatic repair of the file system of the Linux system, without the need for manual detection by operation and maintenance personnel, thereby improving the automated operation and maintenance capabilities, reducing maintenance time, saving manpower, improving the automated operation and maintenance capabilities, and solving the operation and maintenance problems of large-scale supercomputing clusters.

[0019] The further effects of the above-mentioned non-conventional preferred manner will be described below in conjunction with specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present application or the existing technical solutions, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0021] Figure 1 A flowchart of a file system repair method based on Linux system is provided for this application;

[0022] Figure 2 This is a flowchart of another file system repair method based on Linux system in this application;

[0023] Figure 3 A schematic diagram of the structure of a file system repair device based on a Linux system provided in one embodiment of the present application;

[0024] Figure 4A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0026] The inventors found that with the continuous evolution of supercomputing technology, the scale of supercomputing clusters is getting larger and larger. The increase in computing speed has put forward higher requirements for equipment performance, stability, and operation and maintenance management. The same is true for the system. When the system is accidentally powered off or crashed, the file system may be damaged, resulting in the inability to read and write data in the file system normally. Therefore, the file system needs to be repaired. If the management of large-scale clusters relies solely on manual judgment of the quality of the file system and repair, the workload will be very large, and timely repairs will not be possible. Waiting until errors occur in cluster computing to check and repair will greatly affect computing efficiency.

[0027] Therefore, the present application provides a file system repair method based on the Linux system. Specifically, the method provided by the present application can realize automatic detection and automatic repair of the file system of the Linux system, without the need for manual detection by operation and maintenance personnel, thereby improving the automated operation and maintenance capabilities, reducing maintenance time, saving manpower, improving the automated operation and maintenance capabilities, and solving the operation and maintenance problems of large-scale supercomputing clusters.

[0028] Various non-limiting implementations of the present application are described in detail below in conjunction with the accompanying drawings.

[0029] See also Figure 1 , shows a file system repair method based on a Linux system in an embodiment of the present application. In this embodiment, the method may include the following steps:

[0030] S101: The management platform responds to the system check instruction and obtains the operating status information of the file system of the Linux system through the supercomputing management node.

[0031] In this embodiment, the management platform can be used to manage and control the running status of devices in the cluster in batches during the large-scale deployment and daily operation and maintenance phase of the supercomputing cluster. If the management platform receives a system check instruction, the management platform can respond to the system check instruction to check the file system of the Linux system. Specifically, the management platform can respond to the system check instruction to obtain the running status information of the file system of the Linux system through the supercomputing management node. In one implementation, the running status information of the file system may include at least one of the following: file system status, input / output status, file size change status in the file system, and log information. The file system status can be understood as status information that can reflect the running process of the file system, for example, the file system status can be a file system error, a file system exception, a file system damage, a file system unavailable, etc. The input / output status can be understood as the situation during the input and output process of data in the file system, for example, whether there is an error in the input / output situation. The file size change status in the file system can include whether the file size change in the file system is abnormal. The log information can be understood as the log generated during the running process of the file system.

[0032] In this embodiment, there are two ways for the management platform to obtain the operating status information of the file system of the Linux system through the supercomputing management node.

[0033] The first method: the supercomputing management node is provided with a monitoring client; in this case, Figure 2 As shown, the management platform can send an information collection instruction to the monitoring client in the supercomputing management node in response to the system check instruction; the monitoring client collects the operating status information of the file system of the Linux system corresponding to the monitoring client in response to the information collection instruction, and sends the collected operating status information to the management platform. In other words, the operating status information of the file system of the Linux system (such as file system status, related input and output errors, file system check failure and other error information) can be automatically collected by the monitoring client and pushed to the monitoring management platform.

[0034] The second method: the management platform can respond to the system check instruction and periodically send a detection instruction to the supercomputing management node. The supercomputing management node can respond to the detection instruction to obtain the operating status information of the file system of the Linux system corresponding to the supercomputing management node, and return the operating status information to the management platform. In other words, the monitoring platform can automatically and periodically send program instructions to detect the operating status information of the file system of the Linux system, that is, the management platform can also automatically and periodically send detection instructions to the supercomputing management node to detect the health of the file system, obtain the operating status information of the file system and return the operating status information of the file system to the management platform. In addition, the monitoring client can also periodically collect the operating status information of the file system of the Linux system corresponding to the monitoring client, and send the collected operating status information to the management platform, that is, the monitoring client can also periodically collect the operating status information of the file system of the Linux system corresponding to the monitoring client, and actively send the collected operating status information to the management platform.

[0035] S102: The management platform determines the health status of the file system according to the operation status information of the file system.

[0036] In this embodiment, the management platform can determine the health status of the file system based on the running status information of the file system. The health status of the file system can reflect whether the operation of the file system is in an abnormal state or a normal state. If the management platform detects that the file system has an abnormality based on the running status information of the file system, it determines that the health status of the file system is an abnormal state; if the management platform detects that the file system has no abnormality based on the running status information of the file system, it determines that the health status of the file system is a normal state. It should be noted that the abnormal situation may include at least one of the following: file system abnormality, file system damage, file system unavailable, file system input / output error, file system check failure, file system error, and abnormal file size change.

[0037] It is understandable that the management platform can determine whether there is at least one of the following situations based on the running status information of the file system: file system abnormality, file system damage, file system unavailable, file system input / output errors, file system check failure, file system error, abnormal file size change; if at least one of the situations exists, it is determined that the health status of the file system is abnormal; if none of the situations exists, it is determined that the health status of the file system is normal.

[0038] In one implementation, the method further includes: if the health status of the file system is abnormal, generating an alarm prompt information, so as to use the alarm prompt information to remind the user that the health status of the file system is abnormal.

[0039] That is, in this embodiment, if the file system is detected to be abnormal, damaged or unavailable, an alarm will be prompted, for example, an alarm sound is sounded, an alarm message is displayed, or a message reminder is sent to a preset user terminal. It should be noted that in one implementation, if the management platform initially determines that the health status of the file system is abnormal, such as a file system error or abnormality, the operation and maintenance personnel can confirm whether the problem exists, thereby eliminating the possibility of misjudgment.

[0040] S103: If the health status of the file system is abnormal, the management platform determines the problem to be repaired of the file system according to the operation status information of the file system.

[0041] If the health status of the file system is detected to be abnormal, it means that the file system is detected to be damaged or unavailable. The management platform can analyze the file system based on the running status information of the file system, determine the problem that causes the abnormality of the file system (for example, file system abnormality, file system damage, file system unavailability, file system input / output errors, file system check failure, file system error, abnormal file size change), and treat the problem as a problem to be repaired of the file system.

[0042] S104: The management platform determines a mount point to be repaired and a repair program instruction according to the problem to be repaired of the file system and the system type of the file system.

[0043] After determining the problem to be repaired of the file system, the management platform can determine the mount point that causes the problem to be repaired and the repair program instruction for processing the problem to be repaired according to the problem to be repaired of the file system and the system type of the file system. In this embodiment, the mount point that causes the problem to be repaired can be called the mount point to be repaired.

[0044] In one implementation, a repair database may be pre-set, and the repair database may set the correspondence between the problem to be repaired, the mount point to be repaired, and the repair program instruction corresponding to the system type of the file system. In this way, after determining the problem to be repaired of the file system and the system type of the file system, the mount point to be repaired and the repair program instruction may be determined according to the problem to be repaired of the file system and the system type of the file system.

[0045] S105: The management platform generates a repair instruction according to the mount point to be repaired and the repair program instruction, and sends the repair instruction to the supercomputing management node so that the supercomputing management node repairs the problem to be repaired of the file system using the repair instruction.

[0046] After the management platform determines the mount point to be repaired and the repair program, the management platform can generate a repair instruction according to the mount point to be repaired and the repair program instruction. The management platform can send the repair instruction to the supercomputing management node, so that the supercomputing management node can use the repair instruction to repair the problem to be repaired of the file system, that is, the supercomputing management node can use the repair program instruction to repair the mount point to be repaired, thereby repairing the problem to be repaired of the file system.

[0047] In one implementation, after the management platform generates a repair instruction according to the mount point to be repaired and the repair program instruction, and sends the repair instruction to the supercomputing management node so that the supercomputing management node repairs the problem to be repaired of the file system using the repair instruction, the method further includes:

[0048] If the problem to be repaired of the file system is repaired, the management platform obtains the operating status information of the file system of the Linux system through the supercomputing management node;

[0049] The management platform determines the health status of the file system according to the operation status information of the file system;

[0050] If the health status of the file system is normal, the generation of the alarm prompt information to remind the user is cancelled.

[0051] That is to say, Figure 2 As shown, after the problem to be repaired of the file system is repaired, the monitoring client can be used to collect the operating status information of the file system of the Linux system again, and the health status of the file system can be determined based on the operating status information of the file system. If the health status of the file system is normal, it means that the repair has been completed, and it can also be manually verified whether it has been repaired. At this time, the use of the generated alarm prompt information to remind the user can be cancelled.

[0052] In one implementation, the method further includes:

[0053] Backing up the file data in the file system to a preset storage device;

[0054] Correspondingly, after the step of the management platform generating a repair instruction based on the mount point to be repaired and the repair program instruction, and sending the repair instruction to the supercomputing management node so that the supercomputing management node uses the repair instruction to repair the problem to be repaired of the file system, the method also includes: restoring the file data in the preset storage device to the file system.

[0055] That is to say, the supercomputing management node can regularly back up the file data in the file system to a preset storage device, and restore the backup data after the file system is repaired. In this way, if there is a problem with the file system, it can be repaired in time and restored from the backup data to ensure data integrity.

[0056] It can be seen from the above technical scheme that the method provided by the present application includes: the management platform responds to the system check instruction and obtains the operating status information of the file system of the Linux system through the supercomputing management node; the management platform determines the health status of the file system according to the operating status information of the file system; if the health status of the file system is abnormal, the management platform determines the problem to be repaired of the file system according to the operating status information of the file system; the management platform determines the mount point to be repaired and the repair program instruction according to the problem to be repaired of the file system and the system type of the file system; the management platform generates a repair instruction according to the mount point to be repaired and the repair program instruction, and sends the repair instruction to the supercomputing management node so that the supercomputing management node uses the repair instruction to repair the problem to be repaired of the file system. The method is used for the health check and repair of the file system of the management node of a large-scale supercomputing cluster system. It uses technical means to check whether the file system is damaged. If the file system is detected to be damaged or unavailable, it will be repaired, thereby improving the automated operation and maintenance capabilities, reducing maintenance time, and saving manpower. It can be seen that this application can realize automatic detection and automatic repair of the file system of the Linux system, without the need for manual detection by operation and maintenance personnel, thereby improving the automated operation and maintenance capabilities, reducing maintenance time, saving manpower, improving the automated operation and maintenance capabilities, and solving the operation and maintenance problems of large-scale supercomputing clusters.

[0057] In other words, this application can realize real-time automatic monitoring of the health status of the file system and push the relevant status to the management platform. If there is an abnormality in the file system, an alarm will be issued to prompt the operation and maintenance personnel to handle it. This solution is suitable for monitoring large-scale clusters and can be discovered and handled in a timely manner. Because it can realize automatic detection and automatic repair functions, it improves the efficiency of automated operation and maintenance, reduces maintenance time, realizes automatic detection and alarm, and the monitoring management platform automatically sends relevant repair instructions after obtaining the file system type and the required repair mount point information, completes automatic repair, improves automated operation and maintenance capabilities, solves the problem of large-scale supercomputing cluster operation and maintenance, and saves manpower.

[0058] like Figure 3 As shown, a specific embodiment of a file system repair device based on a Linux system described in this application is shown. The device described in this embodiment is a physical device for executing the method described in the above embodiment. Its technical solution is essentially consistent with the above embodiment, and the corresponding description in the above embodiment is also applicable to this embodiment. The device described in this embodiment includes:

[0059] The first unit 301 is used for the management platform to obtain the operating status information of the file system of the Linux system through the supercomputing management node in response to the system check instruction;

[0060] The second unit 302 is used for the management platform to determine the health status of the file system according to the operation status information of the file system;

[0061] The third unit 303 is used for, if the health status of the file system is abnormal, the management platform to determine the problem to be repaired of the file system according to the operation status information of the file system;

[0062] The fourth unit 304 is used for the management platform to determine the mount point to be repaired and the repair program instruction according to the problem to be repaired of the file system and the system type of the file system;

[0063] The fifth unit 305 is used for the management platform to generate a repair instruction according to the mount point to be repaired and the repair program instruction, and to send the repair instruction to the supercomputing management node so that the supercomputing management node can use the repair instruction to repair the problem to be repaired of the file system.

[0064] Optionally, a monitoring client is provided in the supercomputing management node; the first unit 301 is specifically used to:

[0065] The management platform sends an information collection instruction to the monitoring client in the supercomputing management node in response to the system inspection instruction;

[0066] The monitoring client collects the operating status information of the file system of the Linux system corresponding to the monitoring client in response to the information collection instruction, and sends the collected operating status information to the management platform.

[0067] Optionally, the first unit 301 is specifically configured to:

[0068] The management platform responds to the system inspection instruction and sends a detection instruction to the supercomputing management node at a regular interval;

[0069] The supercomputing management node responds to the detection instruction, obtains the operation status information of the file system of the Linux system corresponding to the supercomputing management node, and returns the operation status information to the management platform.

[0070] Optionally, the second unit 302 is specifically used for:

[0071] If the management platform detects an abnormality in the file system based on the running status information of the file system, it determines that the health status of the file system is an abnormal status;

[0072] If the management platform detects that there is no abnormality in the file system based on the running status information of the file system, it determines that the health status of the file system is an abnormal status.

[0073] Optionally, the abnormal situation includes at least one of the following: file system abnormality, file system damage, file system unavailable, file system input / output error, file system check failure, file system error, and abnormal file size change.

[0074] Optionally, the device further includes a sixth unit, configured to:

[0075] If the health status of the file system is in an abnormal state, an alarm prompt message is generated, so as to use the alarm prompt message to remind the user that the health status of the file system is in an abnormal state.

[0076] Optionally, the running status information of the file system includes at least one of the following: file system status, input / output status, file size change status in the file system, and log information.

[0077] Optionally, the device further includes a seventh unit, configured to:

[0078] If the problem to be repaired of the file system is repaired, the management platform obtains the operating status information of the file system of the Linux system through the supercomputing management node;

[0079] The management platform determines the health status of the file system according to the operation status information of the file system;

[0080] If the health status of the file system is normal, the generation of the alarm prompt information to remind the user is cancelled.

[0081] Optionally, the device further includes an eighth unit, configured to:

[0082] Backing up the file data in the file system to a preset storage device;

[0083] Accordingly, after the step of the management platform generating a repair instruction according to the mount point to be repaired and the repair program instruction, and sending the repair instruction to the supercomputing management node so that the supercomputing management node repairs the problem to be repaired of the file system using the repair instruction, the eighth unit is further used to:

[0084] The file data in the preset storage device is restored to the file system.

[0085] It can be seen from the above technical solutions that the device provided in this application can realize automatic detection and automatic repair of the file system of the Linux system, without the need for manual detection by operation and maintenance personnel, thereby improving the automated operation and maintenance capabilities, reducing maintenance time, saving manpower, improving automated operation and maintenance capabilities, and solving the operation and maintenance problems of large-scale supercomputing clusters.

[0086] Figure 4 It is a structural diagram of an electronic device provided in an embodiment of the present application. At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. Among them, the memory may include a memory, such as a high-speed random access memory (Random-Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage, etc. Of course, the electronic device may also include hardware required for other services.

[0087] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0088] The memory is used to store execution instructions. Specifically, the execution instructions are computer programs that can be executed. The memory may include internal memory and non-volatile memory, and provides execution instructions and data to the processor.

[0089] In a possible implementation, the processor reads the corresponding execution instruction from the non-volatile memory into the memory and then runs it, and can also obtain the corresponding execution instruction from other devices to form a file system repair device based on the Linux system at the logical level. The processor executes the execution instruction stored in the memory to implement the file system repair method based on the Linux system provided in any embodiment of the present application through the executed execution instruction.

[0090] The above application Figure 1 The method performed by the file system repair device based on the Linux system provided in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The various methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0091] The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0092] An embodiment of the present application also proposes a readable medium, which stores execution instructions. When the stored execution instructions are executed by a processor of an electronic device, the electronic device can execute the file system repair method based on the Linux system provided in any embodiment of the present application, and is specifically used to execute the above-mentioned file system repair method based on the Linux system.

[0093] The electronic device described in the above embodiments may be a computer.

[0094] Those skilled in the art should understand that the embodiments of the present application can be provided as methods or computer program products. Therefore, the present application can adopt a complete hardware embodiment, a complete software embodiment, or a combination of software and hardware.

[0095] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0096] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0097] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A file system repair method based on Linux system, characterized in that: The method comprises: The management platform responds to the system check instruction and obtains the operating status information of the file system of the Linux system through the supercomputing management node; The management platform determines the health status of the file system according to the operation status information of the file system; If the health status of the file system is abnormal, the management platform determines the problem to be repaired of the file system according to the operation status information of the file system; The management platform determines the mount point to be repaired and the repair program instruction according to the problem to be repaired of the file system and the system type of the file system; The management platform generates a repair instruction according to the mount point to be repaired and the repair program instruction, and sends the repair instruction to the supercomputing management node so that the supercomputing management node repairs the problem to be repaired of the file system using the repair instruction.

2. The method according to claim 1, characterized in that The supercomputer management node is provided with a monitoring client; the management platform obtains the operating status information of the file system of the Linux system through the supercomputer management node in response to the system check instruction, including: The management platform sends an information collection instruction to the monitoring client in the supercomputing management node in response to the system inspection instruction; The monitoring client collects the operating status information of the file system of the Linux system corresponding to the monitoring client in response to the information collection instruction, and sends the collected operating status information to the management platform; The method further comprises: The monitoring client periodically collects the operating status information of the file system of the Linux system corresponding to the monitoring client, and sends the collected operating status information to the management platform.

3. The method according to claim 1, characterized in that The management platform obtains the operating status information of the file system of the Linux system through the supercomputing management node in response to the system check instruction, including: The management platform responds to the system inspection instruction and sends a detection instruction to the supercomputing management node at a regular interval; The supercomputing management node responds to the detection instruction, obtains the operation status information of the file system of the Linux system corresponding to the supercomputing management node, and returns the operation status information to the management platform.

4. The method according to claim 1, characterized in that: The management platform determines the health status of the file system according to the operation status information of the file system, including: If the management platform detects an abnormality in the file system based on the running status information of the file system, it determines that the health status of the file system is an abnormal status; If the management platform detects that there is no abnormality in the file system based on the running status information of the file system, it determines that the health status of the file system is normal.

5. The method according to claim 4, characterized in that The abnormal situation includes at least one of the following: file system abnormality, file system damage, file system unavailable, file system input / output error, file system check failure, file system error, and abnormal file size change.

6. The method according to claim 1, characterized in that The method further comprises: If the health status of the file system is in an abnormal state, an alarm prompt message is generated, so as to use the alarm prompt message to remind the user that the health status of the file system is in an abnormal state.

7. The method according to any one of claims 1 to 6, characterized in that: The operation status information of the file system includes at least one of the following: file system status, input / output status, file size change status in the file system, and log information.

8. The method according to claim 6, characterized in that After the steps of the management platform generating a repair instruction according to the mount point to be repaired and the repair program instruction, and sending the repair instruction to the supercomputing management node so that the supercomputing management node repairs the problem to be repaired of the file system by using the repair instruction, the method further includes: If the problem to be repaired of the file system is repaired, the management platform obtains the operating status information of the file system of the Linux system through the supercomputing management node; The management platform determines the health status of the file system according to the operation status information of the file system; If the health status of the file system is normal, the generation of the alarm prompt information to remind the user is cancelled.

9. The method according to claim 1, characterized in that: The method further comprises: Backing up the file data in the file system to a preset storage device; Accordingly, after the step of the management platform generating a repair instruction according to the mount point to be repaired and the repair program instruction, and sending the repair instruction to the supercomputing management node so that the supercomputing management node repairs the problem to be repaired of the file system using the repair instruction, the method further includes: The file data in the preset storage device is restored to the file system.

10. A file system repair device based on Linux system, characterized in that: The device comprises: The first unit is used for the management platform to respond to the system check instruction and obtain the operating status information of the file system of the Linux system through the supercomputing management node; A second unit is used for the management platform to determine the health status of the file system according to the operation status information of the file system; A third unit is used for, if the health status of the file system is an abnormal status, the management platform determining the problem to be repaired of the file system according to the operation status information of the file system; The fourth unit is used for the management platform to determine the mount point to be repaired and the repair program instruction according to the problem to be repaired of the file system and the system type of the file system; The fifth unit is used for the management platform to generate a repair instruction according to the mount point to be repaired and the repair program instruction, and to send the repair instruction to the supercomputing management node so that the supercomputing management node can use the repair instruction to repair the problem to be repaired of the file system.