CN118152187A - File system detection and repair method and device, electronic equipment and storage medium - Google Patents

File system detection and repair method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN118152187A
CN118152187A CN202410382057.6A CN202410382057A CN118152187A CN 118152187 A CN118152187 A CN 118152187A CN 202410382057 A CN202410382057 A CN 202410382057A CN 118152187 A CN118152187 A CN 118152187A
Authority
CN
China
Prior art keywords
data
file system
data set
repair
dataset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410382057.6A
Other languages
Chinese (zh)
Inventor
许峰
李君�
王金宝
王圭
承建兴
孟超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zero Beam Technology Co ltd
Original Assignee
Zero Beam Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zero Beam Technology Co ltd filed Critical Zero Beam Technology Co ltd
Priority to CN202410382057.6A priority Critical patent/CN118152187A/en
Publication of CN118152187A publication Critical patent/CN118152187A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a file system detection and repair method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring data of the file system in operation to form an initial data set, and storing the initial data set in a data warehouse; extracting features from the initial dataset and format converting the extracted features to form a feature dataset that enables data model processing; inputting the feature data set into a data model to form an anomaly database based on the feature data set through the data model; comparing the initial data set in the data warehouse with the data in the abnormal database to form a comparison result data set of the abnormal data; storing the repair data set of the file system into a plurality of nodes in a distributed storage mode; according to the file system detection and repair method provided by the embodiment of the application, the abnormal behavior of the file system is timely found and repaired, and the repair operation is automatically executed.

Description

File system detection and repair method and device, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a file system monitoring and repairing method, a device, electronic equipment and a computer storage medium.
Background
Currently, in Linux operating systems, file system failure detection and repair is typically performed by tools such as fsck (Fi l eSystem Check). However, using fsck to repair file systems has some drawbacks:
First it requires traversing all file nodes and data blocks, resulting in a long repair time. Secondly, it cannot monitor the problem in time, and only repair can be performed when the system fails to start.
And is therefore time consuming and prone to thus affecting proper operation.
Disclosure of Invention
In view of this, the embodiments of the present application provide a method, an apparatus, an electronic device, and a computer storage medium for monitoring and repairing a file system, so as to discover and repair abnormal behaviors of the file system in time and automatically execute repair operations.
The file system detection and repair method according to the first aspect of the embodiment of the application comprises the following steps: acquiring data of a file system in operation to form an initial data set, and storing the initial data set in a data warehouse; extracting features from the initial dataset and format converting the extracted features to form a feature dataset that enables data model processing; inputting the feature data set into the data model to form an anomaly database based on the feature data set by the data model; comparing the initial data set in the data warehouse with data in the abnormal database to form a comparison result data set of abnormal data; storing the repair data set of the file system into a plurality of nodes in a distributed storage mode; and repairing the file system based on the comparison result data set and the repairing data set.
According to a second aspect of the embodiment of the present application, a file system detection and repair device includes: the file system comprises an acquisition module, a data storage module and a data storage module, wherein the acquisition module is used for acquiring data of a file system in operation to form an initial data set and storing the initial data set in a data warehouse; an extraction module for extracting features from the initial dataset and format converting the extracted features to form a feature dataset that enables data model processing; a transformation module for inputting the feature dataset into the data model to form, by the data model, a database of anomalies formed based on the feature dataset; the comparison module is used for comparing the initial data set in the data warehouse with the data in the abnormal database to form a comparison result data set of abnormal data; the storage module is used for storing the repair data set of the file system into a plurality of nodes in a distributed storage mode; and the repair module is used for performing repair operation on the file system based on the comparison result data set and the repair data set.
An electronic device according to a third aspect of an embodiment of the present application includes: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus; the memory is configured to store at least one executable instruction, where the executable instruction causes the processor to perform an operation corresponding to the file system detection and repair method according to the first aspect.
A computer storage medium according to a fourth aspect of an embodiment of the present application has stored thereon a computer program which, when executed by a processor, implements the file system monitoring repair method according to the first aspect.
According to the file system monitoring and repairing method provided by the embodiment of the application, the real-time detection of the initial data set generated by the running of the file system is realized by utilizing the data model, and the abnormal data in the initial data set can be known by comparing the characteristic values of the initial data set and the abnormal database. The method and the system realize real-time monitoring and abnormality detection of the running state of the file system, and avoid the time-consuming problem that all file nodes and data blocks need to be traversed in the traditional method. And after detecting that the data in the initial data set is abnormal, the corresponding repair operation can be automatically executed, so that the efficiency and timeliness of file system fault repair are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present application, and other drawings may be obtained according to these drawings for a person having ordinary skill in the art.
FIG. 1 is a flowchart of a file system detection and repair method according to a first embodiment of the present application;
FIG. 2 is a step-by-step flowchart of step S3 of a file system detection and repair method according to a first embodiment of the present application;
FIG. 3 is a step-by-step flowchart of step S6 of a file system detection repair method according to a first embodiment of the present application;
FIG. 4 is a schematic diagram of a file system detection and repair device according to a second embodiment of the present application;
Fig. 5 is a schematic structural diagram of an electronic device according to a third embodiment of the present application.
Detailed Description
In order to better understand the technical solutions in the embodiments of the present application, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which are derived by a person skilled in the art based on the embodiments of the present application, shall fall within the scope of protection of the embodiments of the present application.
The following describes in detail a file system detection and repair method, a device, an electronic apparatus and a computer storage medium according to an embodiment of the present application with reference to fig. 1 to 5 of the accompanying drawings.
According to an embodiment of the invention, as shown in fig. 1, a file system detection and repair method includes:
step S1: acquiring data of the file system in operation to form an initial data set, and storing the initial data set in a data warehouse;
Specifically, in this step, files of operation data are formed during the operation of the file system, so that an initial data set can be formed, where the initial data set is a data set formed by detecting operation data generated by the operation of the file system in real time, so that a state of the file system during operation, such as a mounting state of the file system, an available space of the file system, rights and attributes of the file, a timestamp of the file, a read-write speed of the file, and a memory use condition, can be known.
Further, the file system mount status is to check whether the file system is successfully mounted, including the type of mount and mount options (such as read-write permission and mount point). The file system available space is the available space of the checking file system, including the remaining space and the total capacity, to ensure that sufficient space is available for file writing. The rights and attributes of the file are the rights settings (e.g., read, write, execute rights) of the file, the file owner and the belonging group, to ensure that the access rights of the file are properly configured. The timestamp of a file is a time of creation, modification, and access of the file that is checked to monitor the activity of the file and to maintain consistency of the file system. The read-write speed of a file is the time required for the file to be saved to disk. The memory usage is to check the memory usage of the file system, including the total memory, the used memory and the free memory, so as to ensure the sufficiency and stability of the memory resources of the system. By storing the initial file data set with the running state of the file system in the data warehouse, the file data can be conveniently fetched and applied later.
In some embodiments of the present invention, acquiring data at the time of file system operation enables real-time collection of data based on the manner in which the hook function is invoked by the system.
Specifically, for real-time acquisition of operating data of file system operation, real-time collection of the data of file system operation can be realized by using a monitoring tool. For example, by adding a data acquisition module in a system call interface, the real-time collection of the data in the running process of the file system is realized. The added data acquisition module can also capture various operations of system call, such as opening, reading, writing, closing and the like of the file, and store relevant information for subsequent analysis.
Step S2: extracting features from the initial dataset and format converting the extracted features to form a feature dataset that enables data model processing;
In this step, the feature value of the data in the initial data set is extracted, whereby the feature of the data can be obtained. The format of the initial data set is converted so that the data model can identify, and the specific format converted by the initial data set can be adjusted according to actual use requirements. And then, extracting the characteristic values in the initial data set through the data model to form a characteristic data set.
As can be seen from the foregoing, the initial dataset includes states of the file system during operation, such as file system mount state, available space of the file system, rights and attributes of the file, time stamp of the file, read-write speed of the file, and memory usage.
Specifically, the file system mount status indicates whether the file system has been successfully mounted, which may be represented by a boolean value (0 or 1). The available space ratio is the ratio of the available space to the total space of the file system, and represents the space utilization of the file system. The file rights are distributed as file rights (read, write, execute), such as a ratio of the number of files of various rights. The file time stamp distribution is the distribution of the creation time, modification time and access time of the file, such as the statistics of the average value, standard deviation and the like of the time stamps. The file reading and writing speed is the reading and writing speed of the file system, and comprises the average speed of reading the file, the maximum speed, the average speed of writing the file and the maximum speed. The memory usage is the memory occupied by the file system, the total memory, the used memory, the idle memory and the memory usage rate.
Step S3: inputting the feature data set into a data model to form an anomaly database based on the feature data set through the data model;
In the step, the data model is trained through the characteristic data set, so that the data model can be continuously perfected, more data characteristic values can be recognized by the data model, and whether data are abnormal or not can be recognized more accurately according to the data characteristic values. The abnormal database comprises characteristic values of various abnormal data, and can facilitate the comparison of the data file generated in the running process of the file system with the abnormal database by the subsequent data model, namely, the characteristic values of the data file are compared with the characteristic values of the abnormal data recorded in the abnormal database, so that the abnormal characteristics of the data file can be conveniently found, and the abnormality in the running process of the file system can be found in time.
Step S4: comparing the initial data set in the data warehouse with the data in the abnormal database to form a comparison result data set of the abnormal data;
In the step, the data model identifies whether the data is abnormal or not in the running process of the file system through the data characteristic value of the initial data set and the data comparison of the abnormal database, namely through the characteristic value of the data. If the abnormal characteristic value of the data exists in the running process of the file system, the problem can be found out in time through comparison.
Specifically, the abnormal database can monitor data generated by the running of the file system according to implementation, and the abnormal data of the file system can be found in time by comparing the characteristic value of the file data generated by the running of the file system with the characteristic value of the abnormal data in the abnormal database. And the system is convenient to repair the abnormality of the system in time.
An exception to data may be a time of a file system related startup, mount, or shutdown. For example, the characteristic value of the writing speed of a file is that the time required for writing a certain file is typically 10ms (milliseconds), and the characteristic value may be an offset value: plus or minus 50%. If the write time is 20ms (milliseconds), the normal write time is significantly exceeded, and therefore, it can be recognized that there is an abnormality in the write time of the file. The specific file is abnormal and needs to be judged. In addition, the abnormal characteristic value can also be occupied memory or the like, and whether the occupied memory exceeds the size of the occupied memory or not. For example, memory usage anomalies may be caused by files, which may be problematic in the address of the data read by the file.
Therefore, the comparison result data can be obtained by comparing the initial data set with the abnormal database, so that the abnormal condition of partial file data can be obtained, and the abnormal file can be repaired before the abnormal condition of the file system is exposed.
Step S5: storing the repair data set of the file system into a plurality of nodes in a distributed storage mode;
in this step, the repair data set of the file system includes important data of the file system, so that the repair data set is saved to a plurality of nodes in a distributed storage manner, and redundant backup is added. The method can prevent the damage of the repairing data set caused by the damage of a single node, and the repairing capability of the file system can be improved by adopting distributed energy storage.
In addition, the data stored in the nodes can be important data in the running process of the file system, so that the file can be stored in the nodes through the important file data, and the file is convenient to use in the subsequent repairing process.
Step S6: and repairing the file system based on the comparison result data set and the repairing data set.
In this step, file data having an abnormality is obtained by comparing the result data. And repairing by adopting a timely means. The specific repairing mode can be selected according to actual use requirements, and the file system can be repaired through the data model, so that the repairing efficiency can be improved.
According to the file system detection and repair method provided by the embodiment of the application, the real-time detection of the initial data set generated by the running of the file system is realized by utilizing the data model, and the abnormal data in the initial data set can be known by comparing the characteristic values of the initial data set and the abnormal database. The method and the system realize real-time monitoring and abnormality detection of the running state of the file system, and avoid the time-consuming problem that all file nodes and data blocks need to be traversed in the traditional method. And after detecting that the data in the initial data set is abnormal, the corresponding repair operation can be automatically executed, so that the efficiency and timeliness of file system fault repair are improved.
In some embodiments of the invention, the extracted features are formatted to form feature data sets that enable data model processing, and corresponding feature extraction algorithms are designed based on the characteristics and requirements of the file system.
In particular, the data model can be configured according to actual usage requirements to be able to identify multiple data formats and to process the data. And meanwhile, the judgment can be carried out according to the characteristics and the requirements of the file system.
In some embodiments of the present invention, as shown in fig. 2, step S3 includes:
Step S301: inputting the characteristic data set into a data model to train the data model and update the data model;
As shown in fig. 2, in this step, specifically, inputting the feature data set into the data model can train the data model, so as to update the model, and continuously enable the model to more accurately detect whether the data is abnormal or not in the running of the file system, so that the problem is found more timely.
Step S302: and identifying the characteristics of the abnormal data in the characteristic data set through the updated data model to form an abnormal database.
Specifically, in this step, the abnormal features of the data included in the feature data set can be identified and saved by the updated data model, thereby forming an abnormal database including the features of various data abnormalities. The data generated by the operation of the follow-up file system can be compared and quickly identified.
In some embodiments of the invention, the comparison result dataset includes the feature type and severity of the anomaly data in the initial dataset.
Specifically, the comparison data set is generated by comparing the characteristic value of the data in the initial data set with the abnormal data base, which includes the abnormal characteristic value of the data in the initial data set, and the abnormal problem existing in the file data and the possible cause of the abnormal problem can be obtained from the abnormal characteristic value based on the data model. For example, the memory usage abnormality may be a problem with the address of the data read by the file.
In some embodiments of the invention, the repair dataset includes metadata for the file system, verification data, and a file system log.
Specifically, important data of the file system is stored in a distributed manner. The repair data of the file system includes file system importance data. The metadata and the check data are important data in the file system, so that when the file system is damaged, the file system can be repaired in a mode of copying and replacing the metadata and the check data on a plurality of nodes. The metadata is i node bitmap of the file, distribution and size of the data blocks.
In some embodiments of the present invention, as shown in fig. 3, step S6 includes:
step S601: acquiring data to be repaired and a target node in which the data to be repaired exist based on the comparison result data set;
In this step, the comparison result data set includes information of the abnormal data in the initial data set, so that the abnormal data to be repaired, that is, the data to be repaired, is obtained through the comparison result data set. And can understand in which of the plurality of nodes it is stored, i.e., the target node.
Step S602: and comparing the data to be repaired with the repair data set stored in the target node, and re-linking the repair data set in the target node with the data to be repaired to repair the file system.
In the step, the data to be repaired is compared with the corresponding repair data set on the target node, so that the damage degree and the damage type of the data to be repaired can be known, and the data in the repair data set is updated again to repair the file system.
The data to be repaired is compared with the repair data set stored in the target node, so as to compare the verification information of the metadata and verify the integrity of the data verification information. Therefore, the damage degree and the type of the data to be repaired can be known. And restoring the file system to a normal state as far as possible for restoring the file system. I.e. the state of operation can be perfected.
In some embodiments of the invention, for the repair process of the file system, at least one of a system repair operation or a manual operation may be notified to an administrator by automatic execution.
After the file of the file system is abnormal, the file can be replaced in a data model automatic repair mode, so that repair is realized, and an administrator can be reminded of repairing the system file in a configuration alarm mode.
According to the file system detection and repair method, the abnormal behavior of the file system during operation can be identified through real-time monitoring and a data model, so that the fault of the file system can be found in time and the repair operation can be automatically executed, and the time and cost for repairing the fault are reduced. In addition, the abnormal behavior of the file system can be found and repaired in time, the influence of the failure of the file system on the normal operation of the system can be reduced, and the stability and reliability of the file system are improved. The automatic file system fault detection and repair process reduces the manual intervention and management cost and improves the automation degree and operation and maintenance efficiency of the system. Through anomaly detection and repair, the damage of malicious attack or misoperation to the file system can be effectively prevented, and the safety of the system is improved. The method can reduce the influence of file system faults on the user, and improves the satisfaction degree and experience of the user on the system.
A file system failure detection and repair apparatus 400 according to an embodiment of the second aspect of the present invention, as shown in fig. 4, includes:
the acquisition module 401 is configured to acquire data during running of the file system to form an initial data set, and store the initial data set in the data repository;
An extraction module 402, the extraction module 402 being configured to extract features from the initial dataset and format-convert the extracted features to form a feature dataset that enables data model processing;
A transformation module 403, wherein the transformation module 403 is configured to input the feature data set into a data model, so as to form an anomaly database based on the feature data set through the data model;
The comparison module 404 is configured to compare the initial data set in the data warehouse with data in the abnormal database to form a comparison result data set of the abnormal data;
The storage module 405, the storage module 405 is configured to store a repair data set of a file system in a distributed storage manner to a plurality of nodes;
and the repair module 406 is configured to repair the file system based on the comparison result data set and the repair data set.
According to the file system fault detection and repair device 400 provided in the embodiment of the present application, the file system detection and repair method according to the embodiment of the first aspect is used to operate, so that the same beneficial effects as those of the file system detection and repair method according to the embodiment of the first aspect are provided. The real-time detection of the initial data set generated by the running of the file system is realized by utilizing the data model, and the abnormal data in the initial data set can be known by comparing the characteristic values of the initial data set with the abnormal database. The method and the system realize real-time monitoring and abnormality detection of the running state of the file system, and avoid the time-consuming problem that all file nodes and data blocks need to be traversed in the traditional method. And after detecting that the data in the initial data set is abnormal, the corresponding repair operation can be automatically executed, so that the efficiency and timeliness of file system fault repair are improved.
In some embodiments of the present invention, the transformation module 403 is further configured to input the feature data set into the data model to train the data model and update the data model;
in some embodiments of the present invention, the transformation module 403 is further configured to identify, through the updated data model, the features of the anomaly data in the feature dataset to form an anomaly database.
In some embodiments of the present invention, the repair module 406 is further configured to obtain data to be repaired and a target node where the data to be repaired exists based on the comparison result data set;
In some embodiments of the present invention, the repair module 406 is further configured to compare the data to be repaired with the repair data set stored in the target node, and repair the file system by re-linking the repair data set in the target node with the data to be repaired.
Referring to fig. 5, there is shown a schematic structural diagram of an electronic device according to an embodiment of the third aspect of the present application, and the embodiment of the present application is not limited to the specific implementation of the electronic device.
As shown in fig. 5, the electronic device may include: a processor (processor) 502, a communication interface (communication I NTERFACE) 504, a memory (memory) 506, and a communication bus 508.
Wherein:
Processor 502, communication interface 504, and memory 506 communicate with each other via communication bus 508.
A communication interface 504 for communicating with other electronic devices or servers.
The processor 502 is configured to execute the program 510, and may specifically perform relevant steps in the above-described embodiments of the file system detection repair method.
In particular, program 510 may include program code including computer-operating instructions.
The processor 502 may be a central processing unit CPU, or a specific integrated circuit AS ic (application specific ion SPEC I F IC I NTEGRATED CI rcu it), or one or more integrated circuits configured to implement embodiments of the present application. The one or more processors comprised by the smart device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such AS one or more CPUs and one or more AS ics.
A memory 506 for storing a program 510. Memory 506 may comprise high-speed RAM memory or may also include non-volatile memory (non-vo l at i l e memory), such as at least one disk memory.
The program 510 may be specifically operable to cause the processor 502 to:
The specific implementation of each step in the program 510 may refer to corresponding steps and corresponding descriptions in units in the above embodiment of the file system detection and repair method, which are not described herein. It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus and modules described above may refer to corresponding procedure descriptions in the foregoing method embodiments, which are not repeated herein.
Through the electronic equipment of the embodiment, the file system detection and repair method can be effectively realized. The real-time detection of the initial data set generated by the running of the file system is realized by utilizing the data model, and the abnormal data in the initial data set can be known by comparing the characteristic values of the initial data set with the abnormal database. The method and the system realize real-time monitoring and abnormality detection of the running state of the file system, and avoid the time-consuming problem that all file nodes and data blocks need to be traversed in the traditional method. And after detecting that the data in the initial data set is abnormal, the corresponding repair operation can be automatically executed, so that the efficiency and timeliness of file system fault repair are improved.
A computer storage medium according to an embodiment of a fourth aspect of the present application has stored thereon a computer program which, when executed by a processor, implements the file system detection repair method of the embodiment of the first aspect of the present application.
It should be noted that, according to implementation requirements, each component/step described in the embodiments of the present application may be split into more components/steps, or two or more components/steps or part of operations of the components/steps may be combined into new components/steps, so as to achieve the objects of the embodiments of the present application.
The above-described methods according to embodiments of the present application may be implemented in hardware, firmware, or AS software or computer code storable in a recording medium such AS a CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk, or AS computer code originally stored in a remote recording medium or a non-transitory machine-readable medium and to be stored in a local recording medium downloaded through a network, so that the methods described herein may be processed by such software on a recording medium using a general purpose computer, a special purpose processor, or programmable or dedicated hardware such AS an AS ic or FPGA. It is understood that a computer, processor, microprocessor controller, or programmable hardware includes a memory component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code that, when accessed and executed by the computer, processor, or hardware, implements the alert methods described herein. Further, when the general-purpose computer accesses code for implementing the file system detection repair method shown herein, execution of the code converts the general-purpose computer into a special-purpose computer for executing the file system detection repair method shown herein.
Those of ordinary skill in the art will appreciate that the elements and method steps of the examples described in connection with the embodiments disclosed herein can be implemented as electronic hardware, or as a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present application.
The above embodiments are only for illustrating the embodiments of the present application, but not for limiting the embodiments of the present application, and various changes and modifications may be made by one skilled in the relevant art without departing from the spirit and scope of the embodiments of the present application, so that all equivalent technical solutions also fall within the scope of the embodiments of the present application, and the scope of the embodiments of the present application should be defined by the claims.

Claims (10)

1. A method for detecting and repairing a file system, comprising:
acquiring data of a file system in operation to form an initial data set, and storing the initial data set in a data warehouse;
extracting features from the initial dataset and format converting the extracted features to form a feature dataset that enables data model processing;
Inputting the feature data set into the data model to form an anomaly database based on the feature data set by the data model;
comparing the initial data set in the data warehouse with data in the abnormal database to form a comparison result data set of abnormal data;
storing the repair data set of the file system into a plurality of nodes in a distributed storage mode;
And repairing the file system based on the comparison result data set and the repairing data set.
2. The method of claim 1, wherein obtaining the data at the file system runtime is based on a system call hooking function to effect real-time collection of the data.
3. The method of claim 1, wherein the extracted features are formatted to form feature data sets that enable data model processing, and wherein corresponding feature extraction algorithms are designed based on characteristics and requirements of the file system.
4. The method of claim 1, wherein said inputting the feature dataset into the data model to form, by the data model, a database of anomalies formed based on the feature dataset, comprises:
Inputting the feature data set into the data model to train the data model and update the data model;
And identifying the characteristics of the abnormal data in the characteristic data set through the updated data model to form an abnormal database.
5. The method of claim 1, wherein the comparison dataset includes a feature type and severity of anomaly data in the initial dataset.
6. The method of claim 1, wherein the repair dataset comprises metadata, verification data, and a file system log for the file system.
7. The method of claim 6, wherein performing a repair operation on the file system based on the comparison dataset and the repair dataset comprises:
Acquiring the data to be repaired and a target node in which the data to be repaired exist based on the comparison result data set;
Comparing the data to be repaired with the repair data set stored in the target node, and repairing the file system by re-linking the repair data set in the target node with the data to be repaired.
8. A file system detection and repair device, comprising:
the file system comprises an acquisition module, a data storage module and a data storage module, wherein the acquisition module is used for acquiring data of a file system in operation to form an initial data set and storing the initial data set in a data warehouse;
An extraction module for extracting features from the initial dataset and format converting the extracted features to form a feature dataset that enables data model processing;
a transformation module for inputting the feature dataset into the data model to form, by the data model, a database of anomalies formed based on the feature dataset;
the comparison module is used for comparing the initial data set in the data warehouse with the data in the abnormal database to form a comparison result data set of abnormal data;
The storage module is used for storing the repair data set of the file system into a plurality of nodes in a distributed storage mode;
and the repair module is used for performing repair operation on the file system based on the comparison result data set and the repair data set.
9. An electronic device, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
The memory is configured to store at least one executable instruction, where the executable instruction causes the processor to perform an operation corresponding to the file system detection repair method according to any one of claims 1 to 7.
10. A computer storage medium having stored thereon a computer program which when executed by a processor implements a file system detection repair method as claimed in any one of claims 1 to 7.
CN202410382057.6A 2024-03-29 2024-03-29 File system detection and repair method and device, electronic equipment and storage medium Pending CN118152187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410382057.6A CN118152187A (en) 2024-03-29 2024-03-29 File system detection and repair method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410382057.6A CN118152187A (en) 2024-03-29 2024-03-29 File system detection and repair method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118152187A true CN118152187A (en) 2024-06-07

Family

ID=91290681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410382057.6A Pending CN118152187A (en) 2024-03-29 2024-03-29 File system detection and repair method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118152187A (en)

Similar Documents

Publication Publication Date Title
US9569325B2 (en) Method and system for automated test and result comparison
CN106789306B (en) Method and system for detecting, collecting and recovering software fault of communication equipment
CN112286709B (en) Diagnosis method, diagnosis device and diagnosis equipment for server hardware faults
EP3591485B1 (en) Method and device for monitoring for equipment failure
CN111258850B (en) Method and device for updating software information based on Linux system
CN112100048B (en) Self-adaptive inspection method and device for server
CN112529223A (en) Equipment fault repair method and device, server and storage medium
US20140215279A1 (en) Scalable structured data store operations
CN115033419B (en) Method and system for realizing hardware fault self-healing
CN114816022B (en) Method, system and storage medium for monitoring server power supply abnormality
CN115373997A (en) Board card firmware abnormity monitoring and core data exporting method of multi-core SoC
CN115525557A (en) Method and system for recovering CPLD (complex programmable logic device) capability under PFR (pulse frequency response) abnormal condition, electronic equipment and storage medium
CN113708986B (en) Server monitoring apparatus, method and computer-readable storage medium
CN114020432A (en) Task exception handling method and device and task exception handling system
CN114020509A (en) Method, device and equipment for repairing work load cluster and readable storage medium
CN113672306A (en) Server component self-checking abnormity recovery method, device, system and medium
CN112256532A (en) Test interface generation method and device, computer equipment and readable storage medium
CN110069382B (en) Software monitoring method, server, terminal device, computer device and medium
CN118152187A (en) File system detection and repair method and device, electronic equipment and storage medium
CN111611138A (en) Log data capturing method and device, computer equipment and storage medium
CN111125990A (en) Method for judging result correctness of parasitic parameters
CN116501705A (en) RAS-based memory information collecting and analyzing method, system, equipment and medium
CN112737120B (en) Regional power grid control report generation method and device and computer equipment
CN111865719A (en) Automatic testing method and device for fault injection of switch
CN114629786A (en) Log real-time analysis method, device, storage medium and system

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination