CN110008189A - A kind of automatic reporting method of file system error, device and equipment - Google Patents

A kind of automatic reporting method of file system error, device and equipment Download PDF

Info

Publication number
CN110008189A
CN110008189A CN201910290062.3A CN201910290062A CN110008189A CN 110008189 A CN110008189 A CN 110008189A CN 201910290062 A CN201910290062 A CN 201910290062A CN 110008189 A CN110008189 A CN 110008189A
Authority
CN
China
Prior art keywords
file
file system
error message
operating system
journal
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
CN201910290062.3A
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.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent 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 Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910290062.3A priority Critical patent/CN110008189A/en
Publication of CN110008189A publication Critical patent/CN110008189A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of automatic reporting method of file system error, device, equipment and computer readable storage mediums, this method comprises: in the start process of operating system, file system in real-time detection operating system, and when detecting that file system has mistake, the corresponding error message of mistake that will test is stored to the journal file of file system;After the completion of the booting of operating system, the journal file of file system is checked, and show the error message of file system there are when the error message of file system in viewing journal file.The application detects automatically during starting operating system and collects the error message of the mistake of file system appearance into corresponding journal file, journal file is searched after the completion of starting operating system to obtain error message and show, so that staff is capable of the mistake of timely learning file system appearance after starting operating system, it is repaired early, to ensure that the storage security of data.

Description

A kind of automatic reporting method of file system error, device and equipment
Technical field
The present invention relates to file system technology fields, more specifically to a kind of reporting automatically for file system error Method, apparatus, equipment and computer readable storage medium.
Background technique
The file system of health is the guarantee accurate guarantee being stored in storage server of data, once file system There is mistake in system, and the IO performance of storage server is gently then caused to decline, heavy then lead to loss of data, for some significant datas, The consequence of loss is extremely serious, so needing the problem of finding file system itself early, reports early, avoids important number According to the serious consequence of loss.
Summary of the invention
The object of the present invention is to provide a kind of automatic reporting method of file system error, device, equipment and computers can Storage medium is read, can find to report the problem of file system and early early, to avoid the serious of loss of vital data is caused Consequence.
To achieve the goals above, the invention provides the following technical scheme:
A kind of automatic reporting method of file system error, comprising:
In the start process of operating system, file system in operating system described in real-time detection, and detecting When stating file system in the presence of mistake, the corresponding error message of mistake that will test is stored to the log text of the file system Part;
After the completion of the booting of the operating system, the journal file of the file system is checked, and described viewing There are when the error message of the file system in journal file, the error message of the file system is shown.
Preferably, further includes:
After the completion of the booting of the operating system, the file system is periodically detected, and detecting the file system When system has mistake, the corresponding error message of the mistake that will test is stored into the journal file;And timing is checked described The journal file of file system will be described there are when the error message of the operating system in viewing the journal file The error message of operating system is shown.
Preferably, it checks before the journal file of the file system, further includes:
Whether the setting option for judging the operating system is the journal file for checking the file system automatically, if so, The step of checking the journal file of the file system described in then executing, if it is not, then in the mistake letter for receiving extraneous input When breath request, the step of checking the journal file of the file system described in execution.
Preferably, the error message of the operating system is shown, comprising:
The error message of the operating system is corresponded to the principle of different colours background according to different types of error message It is shown.
A kind of automatic reporting device of file system error, comprising:
Detection module is used for: the file system in the start process of operating system, in operating system described in real-time detection System, and when detecting that the file system has mistake, the corresponding error message of mistake that will test is stored to the text The journal file of part system;
Display module is used for: after the completion of the booting of the operating system, check the journal file of the file system, And there are when the error message of the file system in viewing the journal file, by the error message of the file system It is shown.
Preferably, further includes:
Timing reporting module, is used for: after the completion of the booting of the operating system, the file system is periodically detected, and When detecting that the file system has mistake, the corresponding error message of the mistake that will test is stored to the journal file In;And the journal file of the file system is checked in timing, and there are the operating systems in viewing the journal file Error message when, the error message of the operating system is shown.
Preferably, further includes:
Judgment module is used for: checking the log of the file system in the display module and the timing reporting module Before file, judge whether the setting option of the operating system is the journal file for checking the file system automatically, if so, The step of checking the journal file of the file system described in then executing, if it is not, then in the mistake letter for receiving extraneous input When breath request, the step of checking the journal file of the file system described in execution.
Preferably, the display module and the timing reporting module include:
Display unit is used for: the error message of the operating system is corresponding different according to different types of error message The principle of color background is shown.
A kind of automatic reporting equipment of file system error, comprising:
Memory, for storing computer program;
Processor realizes the automatic of the file system error any one of as above when for executing the computer program The step of reporting method.
A kind of computer readable storage medium is stored with computer program on the computer readable storage medium, described The step of as above automatic reporting method of any one file system error is realized when computer program is executed by processor.
The present invention provides a kind of automatic reporting method of file system error, device, equipment and computer-readable storages Medium, wherein this method comprises: in the start process of operating system, file system in operating system described in real-time detection, And when detecting that the file system has mistake, the corresponding error message of mistake that will test is stored to the file system The journal file of system;After the completion of the booting of the operating system, the journal file of the file system is checked, and viewing There are when the error message of the file system in the journal file, the error message of the file system is shown. Technical solution disclosed in the present application detects automatically during starting operating system and collects the mistake of the mistake of file system appearance False information searches journal file after the completion of starting operating system and obtains error message and show into corresponding journal file, with So that staff after starting operating system be capable of timely learning file system occur mistake, and then can early to its into Row is repaired, to ensure that the storage security of data.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the automatic reporting method of file system error provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of the automatic reporting device of file system error provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, it illustrates a kind of automatic reporting methods of file system error provided in an embodiment of the present invention Flow chart may include:
S11: in the start process of operating system, file system in real-time detection operating system, and detecting text When part system has mistake, the corresponding error message of mistake that will test is stored to the journal file of file system.
A kind of execution subject of the automatic reporting method of file system error provided in an embodiment of the present invention can be correspondence Automatic reporting device.In the start process of operating system, automatic reporting device can be with the text in real-time detection operating system Part system whether there is mistake, if detecting file system, there are mistakes, by the corresponding mistake of mistake existing for file system Information is stored into the corresponding journal file of file system;If file system is not detected in the start process of operating system There are any mistakes, then can store the normal information of file system into the corresponding journal file of file system.Therefore, exist After the booting for realizing operating system, there may be the mistakes that file system occurs for the journal file of file system in operating system Corresponding error message, it is also possible to which there is only the normal information of file system, and then by checking journal file you can learn that file The case where system.
S12: after the completion of the booting of operating system, the journal file of file system is checked, and viewing journal file It is middle there are when the error message of file system, the error message of file system is shown.
After the completion of starting operating system, the journal file of file system can be checked automatically, if deposited in journal file Then error message is shown in error message;If there is only the normal information of file system to incite somebody to action in journal file Indicate that the normal information of file system is shown, so that staff is by the content of display you can learn that journal file Itself the case where, and then realize and use of journal file etc. is operated.
It is further to note that the operating system in the application can be linux system, and in the booting of operating system It checks that the journal file of file system can be after the completion and utilizes dmesg order realization;Specifically, dmesg order is The log information (information in journal file) generated during os starting is checked under linux system.Utilizing dmesg After information of the command lookup into journal file, the information viewed can be stored to the dmesg_result text being pre-created Part, and then after the completion of booting, by obtaining information in the dmesg_result file and showing.
Technical solution disclosed in the present application detects automatically during starting operating system and collects file system appearance The error message of mistake searches journal file after the completion of starting operating system and obtains error message simultaneously into corresponding journal file It has been shown that so that staff after starting operating system be capable of timely learning file system occur mistake, and then can and It is early that it is repaired, to ensure that the storage security of data.
A kind of automatic reporting method of file system error provided in an embodiment of the present invention can also include:
After the completion of the booting of operating system, timing detects file system, and when detecting that file system has mistake, The corresponding error message of the mistake that will test is stored into journal file;And the journal file of file system is checked in timing, It views in journal file there are when the error message of operating system, the error message of operating system is shown.
It should be noted that after the completion of the booting of operating system, file system or it is possible that mistake, because This, needs timing to detect file system, and is stored in corresponding error message when finding that file system has mistake In journal file;Simultaneously for the timely output of error message, journal file can be periodically checked and by error message therein It is shown;To further ensure the timely output of the error message of file system, the storage security of data ensure that. In addition, timing detection file system and timing check that the time interval of timing in journal file can carry out really according to actual needs It is fixed, it is generally located on the short as far as possible of the adjacent time interval setting operated twice under the premise of not influencing operating system performance, To realize the timely output of error message.
A kind of automatic reporting method of file system error provided in an embodiment of the present invention checks the log text of file system Before part, can also include:
Whether the setting option for judging operating system is the journal file for checking file system automatically, is looked into if it is, executing The step of seeing the journal file of file system, if it is not, then execution is checked in the error message request for receiving extraneous input The step of journal file of file system.
It should be noted that setting option can be set according to actual needs by staff, if setting option is corresponding Automatically it checks the journal file of file system, is then needing to realize that time that journal file is checked checks journal file and defeated automatically Malfunction false information;Otherwise, then pass through Web platform or other modes to automatic reporting device input error information in staff When request, then checks journal file and export corresponding error message.To by setting option make journal file check and The output of error message can be set according to actual needs, increase the flexibility of scheme realization.
The automatic reporting method of a kind of file system error provided in an embodiment of the present invention, by the error message of operating system It is shown, may include:
The error message of operating system is carried out according to the principle that different types of error message corresponds to different colours background Display.
It should be noted that the error message of operating system there are a variety of, such as includes shared library mistake, file system member number According to mistake, file system bad block etc.;Therefore in order to enable staff can more intuitively get different error messages, side Error message can be corresponded to the original of different colours background by just checking for error message according to different types of error message It is then shown namely every kind of error message corresponds to same color background in display, and different types of error message exists Different color backgrounds is corresponded to when display.It is, of course, also possible to be configured according to actual needs, such as mistake is divided into different tight Weight grade, so that the mistake of different menace levels corresponds to different color backgrounds, etc. when showing to error message Within protection scope of the present invention.
The embodiment of the invention also provides a kind of automatic reporting devices of file system error, as shown in Fig. 2, can wrap It includes:
Detection module 11, is used for: in the start process of operating system, file system in real-time detection operating system, And when detecting that file system has mistake, the corresponding error message of mistake that will test is stored to the log of file system File;
Display module 12, is used for: after the completion of the booting of operating system, checking the journal file of file system, and looking into See in journal file there are when the error message of file system, the error message of file system is shown.
A kind of automatic reporting device of file system error provided in an embodiment of the present invention can also include:
Timing reporting module, is used for: after the completion of the booting of operating system, timing detects file system, and is detecting When file system has mistake, the corresponding error message of the mistake that will test is stored into journal file;And text is checked in timing The journal file of part system, there are when the error message of operating system in viewing journal file, by the mistake of operating system Information is shown.
A kind of automatic reporting device of file system error provided in an embodiment of the present invention can also include:
Judgment module is used for: before display module and timing reporting module check the journal file of file system, judgement Whether the setting option of operating system is the journal file for checking file system automatically, checks file system if it is, executing The step of journal file, if it is not, then executing the day for checking file system in the error message request for receiving extraneous input The step of will file.
A kind of automatic reporting device of file system error provided in an embodiment of the present invention, display module and timing report mould Block may include:
Display unit is used for: the error message of operating system is corresponded to different colours according to different types of error message The principle of background is shown.
The embodiment of the invention also provides a kind of automatic reporting equipments of file system error, may include:
Memory, for storing computer program;
Processor realizes the automatic reporting method as weighed any one of upper file system error when for executing computer program The step of.
The embodiment of the invention also provides a kind of computer readable storage medium, it is stored on computer readable storage medium The automatic side of reporting of as above any one file system error may be implemented in computer program when computer program is executed by processor The step of method.
It should be noted that a kind of automatic reporting device of file system error provided in an embodiment of the present invention, equipment and The explanation of relevant portion refers to a kind of file system error provided in an embodiment of the present invention in computer readable storage medium The detailed description of corresponding part in automatic reporting method, details are not described herein.In addition above-mentioned technology provided in an embodiment of the present invention In scheme with correspond to the consistent part of technical solution realization principle and unspecified in the prior art, in order to avoid excessively repeat.
The foregoing description of the disclosed embodiments can be realized those skilled in the art or using the present invention.To this A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited It is formed on the embodiments shown herein, and is to fit to consistent with the principles and novel features disclosed in this article widest Range.

Claims (10)

1. a kind of automatic reporting method of file system error characterized by comprising
In the start process of operating system, file system in operating system described in real-time detection, and detecting the text When part system has mistake, the corresponding error message of mistake that will test is stored to the journal file of the file system;
After the completion of the booting of the operating system, the journal file of the file system is checked, and viewing the log There are when the error message of the file system in file, the error message of the file system is shown.
2. the method according to claim 1, wherein further include:
After the completion of the booting of the operating system, the file system is periodically detected, and detecting that the file system deposits In mistake, the corresponding error message of the mistake that will test is stored into the journal file;And the file is checked in timing The journal file of system, there are when the error message of the operating system in viewing the journal file, by the operation The error message of system is shown.
3. according to the method described in claim 2, also wrapping it is characterized in that, check before the journal file of the file system It includes:
Whether the setting option for judging the operating system is the journal file for checking the file system automatically, if it is, holding The step of journal file of the file system is checked described in row, if it is not, then being asked in the error message for receiving extraneous input The step of journal file of the file system is checked when asking, described in execution.
4. according to the method described in claim 3, it is characterized in that, the error message of the operating system is shown, packet It includes:
The error message of the operating system is carried out according to the principle that different types of error message corresponds to different colours background Display.
5. a kind of automatic reporting device of file system error characterized by comprising
Detection module is used for: in the start process of operating system, file system in operating system described in real-time detection, and When detecting that the file system has mistake, the corresponding error message of mistake that will test is stored to the file system Journal file;
Display module is used for: after the completion of the booting of the operating system, check the journal file of the file system, and It views in the journal file there are when the error message of the file system, the error message of the file system is carried out Display.
6. device according to claim 5, which is characterized in that further include:
Timing reporting module, is used for: after the completion of the booting of the operating system, periodically detecting the file system, and examining When measuring the file system in the presence of mistake, the corresponding error message of the mistake that will test is stored into the journal file;And And the journal file of the file system is checked in timing, there are the mistakes of the operating system in viewing the journal file When information, the error message of the operating system is shown.
7. device according to claim 6, which is characterized in that further include:
Judgment module is used for: checking the journal file of the file system in the display module and the timing reporting module Before, whether the setting option for judging the operating system is the journal file for checking the file system automatically, if it is, holding The step of journal file of the file system is checked described in row, if it is not, then being asked in the error message for receiving extraneous input The step of journal file of the file system is checked when asking, described in execution.
8. device according to claim 7, which is characterized in that the display module and the timing reporting module include:
Display unit is used for: the error message of the operating system is corresponded to different colours according to different types of error message The principle of background is shown.
9. a kind of automatic reporting equipment of file system error characterized by comprising
Memory, for storing computer program;
Processor, realizing the file system error as described in any one of Claims 1-4 when for executing the computer program The step of automatic reporting method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, when the computer program is executed by processor realize as described in any one of Claims 1-4 file system error oneself The step of dynamic report method.
CN201910290062.3A 2019-04-11 2019-04-11 A kind of automatic reporting method of file system error, device and equipment Pending CN110008189A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910290062.3A CN110008189A (en) 2019-04-11 2019-04-11 A kind of automatic reporting method of file system error, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910290062.3A CN110008189A (en) 2019-04-11 2019-04-11 A kind of automatic reporting method of file system error, device and equipment

Publications (1)

Publication Number Publication Date
CN110008189A true CN110008189A (en) 2019-07-12

Family

ID=67171172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910290062.3A Pending CN110008189A (en) 2019-04-11 2019-04-11 A kind of automatic reporting method of file system error, device and equipment

Country Status (1)

Country Link
CN (1) CN110008189A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908885A (en) * 2019-11-21 2020-03-24 苏州浪潮智能科技有限公司 Log collection method and device and related components
CN115114111A (en) * 2022-06-21 2022-09-27 苏州浪潮智能科技有限公司 Method, device, equipment and storage medium for detecting and collecting error files

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279775A (en) * 2011-08-19 2011-12-14 西安交通大学 Method for processing failure of hard disk under Linux system
CN106708675A (en) * 2016-11-18 2017-05-24 广西大学 Method for detecting faults before starting of computers
KR20170135483A (en) * 2016-05-31 2017-12-08 삼성에스디에스 주식회사 Apparatus and method for detecting abnormality of system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279775A (en) * 2011-08-19 2011-12-14 西安交通大学 Method for processing failure of hard disk under Linux system
KR20170135483A (en) * 2016-05-31 2017-12-08 삼성에스디에스 주식회사 Apparatus and method for detecting abnormality of system
CN106708675A (en) * 2016-11-18 2017-05-24 广西大学 Method for detecting faults before starting of computers

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908885A (en) * 2019-11-21 2020-03-24 苏州浪潮智能科技有限公司 Log collection method and device and related components
CN110908885B (en) * 2019-11-21 2022-08-05 苏州浪潮智能科技有限公司 Log collection method and device and related components
CN115114111A (en) * 2022-06-21 2022-09-27 苏州浪潮智能科技有限公司 Method, device, equipment and storage medium for detecting and collecting error files

Similar Documents

Publication Publication Date Title
CN105511944B (en) A kind of method for detecting abnormality of cloud system internal virtual machine
CN109783262A (en) Fault data processing method, device, server and computer readable storage medium
US20140136896A1 (en) Diagnosing distributed applications using application logs and request processing paths
CN108287775A (en) A kind of method, apparatus, equipment and the storage medium of server failure detection
CN108614742B (en) Report data verification method, system and device
US7971110B2 (en) System and method for testing a serial attached small computer system interface
CN109800160A (en) Cluster server fault testing method and relevant apparatus in machine learning system
CN110008189A (en) A kind of automatic reporting method of file system error, device and equipment
CN103345439B (en) A kind of full link monitoring method of health state of information system and device
CN106649020A (en) Detecting method and device for storage case burn information
CN107992399A (en) A kind of memory bar condition detection method, apparatus and system
CN106815137A (en) Ui testing method and apparatus
CN112463432A (en) Inspection method, device and system based on index data
CN102959521B (en) The management method of computer system is with administrating system
CN113407374A (en) Fault processing method and device, fault processing equipment and storage medium
CN102959526A (en) Address translation inspection device, central processing device, and address translation inspection method
CN106982141A (en) Weblogic examples monitoring method and device
CN110362435A (en) PCIE Fault Locating Method, device, equipment and the medium of Purley Platform Server
CN113868058A (en) Peripheral component high-speed interconnection equipment fault detection method and device and server
CN109522184A (en) A kind of server system method for safety monitoring, device and terminal
CN103297480A (en) System and method for automatically detecting application service
CN109871301A (en) A kind of remote test device, system and method
CN112131195B (en) Cluster type management method for aging test
CN113127345B (en) Application testing method and device, electronic equipment and storage medium
CN105573874B (en) A kind of real-time Data Transmission bus test method based on multithreading

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190712

RJ01 Rejection of invention patent application after publication