CN106776177A - A kind of fault filling method of xfs, system and Fault Management System - Google Patents

A kind of fault filling method of xfs, system and Fault Management System Download PDF

Info

Publication number
CN106776177A
CN106776177A CN201611170385.1A CN201611170385A CN106776177A CN 106776177 A CN106776177 A CN 106776177A CN 201611170385 A CN201611170385 A CN 201611170385A CN 106776177 A CN106776177 A CN 106776177A
Authority
CN
China
Prior art keywords
xfs
default
fault
direct fault
fault location
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
CN201611170385.1A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201611170385.1A priority Critical patent/CN106776177A/en
Publication of CN106776177A publication Critical patent/CN106776177A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Abstract

The invention discloses a kind of fault filling method of xfs, system and Fault Management System, including the direct fault location information for obtaining default xfs;In the xfs associations that the direct fault location information of default xfs is put into finj structures;Device descriptor in direct fault location information according to default xfs sets injection order;According to injection command calls drive control function and using the direct fault location for carrying out xfs in association.It can be seen that, the present invention can realize for the direct fault location information of default xfs injecting xfs, to obtain the failure response of xfs, know that the troubleshooting solution of influence and searching xfs of the xfs failures to computer provides the foundation for the convenience of the user.

Description

A kind of fault filling method of xfs, system and Fault Management System
Technical field
The present invention relates to xfs failover techniques field, more particularly to a kind of fault filling method of xfs, system and failure Management system.
Background technology
With the development of science and technology, computer has been introduced into huge numbers of families, people can calculate important data storage In the storage device of machine.Computer file system such as xfs can cause read-write either on or off of file etc. to operate in the event of failure Generation problem, has had a strong impact on the studying and living of user.Therefore, carrying out research for the failure that xfs is likely to occur has weight The meaning wanted.
The content of the invention
It is an object of the invention to provide a kind of fault filling method of xfs, know xfs failures to computer for the convenience of the user Influence and find xfs troubleshooting solution provide the foundation;It is a further object of the present invention to provide a kind of event of xfs Barrier injected system and Fault Management System.
In order to solve the above technical problems, the invention provides a kind of fault filling method of xfs, including:
Obtain the direct fault location information of default xfs;
In the xfs associations that the direct fault location information of the default xfs is put into finj structures;
Device descriptor in direct fault location information according to the default xfs sets injection order;
Noted according to the injection command calls drive control function and using the failure for carrying out xfs in the association Enter.
Preferably, the process of the direct fault location information for obtaining default xfs is:
Xfs fault types are selected according to command line interface;
It is determined that default xfs direct fault locations file corresponding with the xfs fault types;
The default xfs direct fault locations file is parsed, the direct fault location information of the default xfs is obtained.
Preferably, the drive control function is ioctl functions.
In order to solve the above technical problems, present invention also offers a kind of fault injection system of xfs, including:
Xfs direct fault location data obtaining modules, the direct fault location information for obtaining default xfs;Will be described default The direct fault location information of xfs is put into the xfs associations in finj structures;
Xfs injects order generation module, for the device descriptor in the direct fault location information according to the default xfs Injection order is set;
Xfs injection modules, for according to the injection command calls drive control function and using in the association Carry out the direct fault location of xfs.
Preferably, the process of the direct fault location information for obtaining default xfs is:
Xfs fault types are selected according to command line interface;
It is determined that default xfs direct fault locations file corresponding with the xfs fault types;
The default xfs direct fault locations file is parsed, the direct fault location information of the default xfs is obtained.
Preferably, the drive control function is ioctl functions.
In order to solve the above technical problems, present invention also offers a kind of Fault Management System, including xfs as described above Fault injection system.
Preferably, also include:
Detection module, the fault parameter information for detecting the xfs;
Diagnostic module, fault diagnosis is carried out for the fault parameter information according to the xfs, obtains diagnostic result.
Preferably, also include:
Performing module, for performing default failure strategy corresponding with the diagnostic result according to the diagnostic result, To eliminate xfs failures.
The invention provides a kind of fault filling method of xfs, system and Fault Management System, including obtain default The direct fault location information of xfs;In the xfs associations that the direct fault location information of default xfs is put into finj structures;According to Device descriptor in the direct fault location information of default xfs sets injection order;According to injection command calls drive control letter Count and using the direct fault location for carrying out xfs in association.It can be seen that, the present invention can be realized the direct fault location of default xfs Information injects xfs, to obtain the failure response of xfs, influence and searching of the xfs failures to computer is known for the convenience of the user The troubleshooting solution of xfs provides the foundation.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to institute in prior art and embodiment The accompanying drawing for needing to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the invention Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also obtain according to these accompanying drawings Obtain other accompanying drawings.
A kind of flow chart of the process of the fault filling method of xfs that Fig. 1 is provided for the present invention;
A kind of structural representation of the fault injection system of xfs that Fig. 2 is provided for the present invention;
A kind of structural representation of Fault Management System that Fig. 3 is provided for the present invention.
Specific embodiment
Core of the invention is to provide a kind of fault filling method of xfs, knows xfs failures to computer for the convenience of the user Influence and find xfs troubleshooting solution provide the foundation;Another core of the invention is to provide a kind of event of xfs Barrier injected system and Fault Management System.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Refer to Fig. 1, a kind of flow chart of the process of the fault filling method of xfs that Fig. 1 is provided for the present invention, the method Including:
Step S11:Obtain the direct fault location information of default xfs;
Specifically, in order to obtain each influence factor of xfs, setting some known direct fault locations letters that can be advance Breath, is injected into xfs, obtains the failure response of xfs, further according to the failure response of xfs, finds corresponding fault solution.
In the application, the direct fault location information of some xfs is preset in User space, can be gone first when direct fault location is carried out Obtain the direct fault location information of default xfs.
Preferably, the process of the direct fault location information of the default xfs of acquisition is:
Xfs fault types are selected according to command line interface;
It is determined that default xfs direct fault locations file corresponding with xfs fault types;
Default xfs direct fault locations file is parsed, the direct fault location information of default xfs is obtained.
In the User space stage, contrasted by injection parameter type xfs, specify the injection handling process of xfs.Specifically Ground, selects xfs fault types, each fault type correspondingly to correspond to a direct fault location file in command line interface, because This determines default xfs direct fault locations file corresponding with xfs fault types according to xfs fault types, and to default xfs events Barrier injection file is parsed, and extraction obtains the direct fault location information of default xfs.
Step S12:In the xfs associations that the direct fault location information of default xfs is put into finj structures;
Step S13:Device descriptor in direct fault location information according to default xfs sets injection order;
Step S14:Noted according to injection command calls drive control function and using the failure for carrying out xfs in association Enter.
Preferably, drive control function is ioctl functions.
Specifically, direct fault location information includes device descriptor, and be used to specify carries out direct fault location to which equipment, and Injection order XFS_IOC_ERROR_INJECTION is set according to the device descriptor, drive control function ioctl is finally called Function carries out direct fault location.
With reference to realizing that code skeleton of the invention is described:
Wherein, direct fault location data, finj structures are stored by finj structures:The type of type finger assemblies, according to Type types can be determined which component carries out injection information.Finj_parse structures:Carry out which is selected according to type types Individual component carries out direct fault location, then by parse analytical functions to injection document analysis, while being carried out using submit functions Direct fault location is performed.
In addition, it is necessary to explanation, the fault filling method of the xfs that the present invention is provided is based on Linux system.
The invention provides a kind of fault filling method of xfs, including the direct fault location information for obtaining default xfs;Will The direct fault location information of default xfs is put into the xfs associations in finj structures;According to the direct fault location of default xfs Device descriptor in information sets injection order;According to injection command calls drive control function and using entering in association The direct fault location of row xfs.It can be seen that, the present invention can realize for the direct fault location information of default xfs injecting xfs, to obtain The failure response of xfs, knows the troubleshooting solution of influence and searching xfs of the xfs failures to computer for the convenience of the user Provide the foundation.
With above method embodiment adaptably, present invention also offers a kind of fault injection system of xfs, refer to figure A kind of structural representation of the fault injection system of 2, Fig. 2 xfs provided for the present invention, the system includes:
Xfs direct fault locations data obtaining module 11, the direct fault location information for obtaining default xfs;By default xfs Direct fault location information be put into the xfs associations in finj structures;
Xfs injection orders generation module 12, sets for the device descriptor in the direct fault location information according to default xfs Put injection order;
Xfs injection modules 13, for carrying out xfs according to injection command calls drive control function and using in association Direct fault location.
Preferably, the process of the direct fault location information of the default xfs of acquisition is:
Xfs fault types are selected according to command line interface;
It is determined that default xfs direct fault locations file corresponding with xfs fault types;
Default xfs direct fault locations file is parsed, the direct fault location information of default xfs is obtained.
Preferably, drive control function is ioctl functions.
A kind of introduction of the fault injection system of the xfs provided for the present invention refer to above method embodiment, this hair It is bright to will not be repeated here.
The invention provides a kind of fault filling method of xfs, including the direct fault location information for obtaining default xfs;Will The direct fault location information of default xfs is put into the xfs associations in finj structures;According to the direct fault location of default xfs Device descriptor in information sets injection order;According to injection command calls drive control function and using entering in association The direct fault location of row xfs.It can be seen that, the present invention can realize for the direct fault location information of default xfs injecting xfs, to obtain The failure response of xfs, knows the troubleshooting solution of influence and searching xfs of the xfs failures to computer for the convenience of the user Provide the foundation.
With the above method and system embodiment adaptably, present invention also offers a kind of Fault Management System, refer to A kind of structural representation of Fault Management System that Fig. 3, Fig. 3 are provided for the present invention, the system includes the failure of xfs described above Injected system 1.
Preferably, also include:
Detection module 2, the fault parameter information for detecting xfs;
Diagnostic module 3, fault diagnosis is carried out for the fault parameter information according to xfs, obtains diagnostic result.
Preferably, also include:
Performing module 4, for performing default failure strategy corresponding with diagnostic result according to diagnostic result, to eliminate Xfs failures.
Specifically, after fault injection system 1 carries out direct fault location to xfs, detection module 2 detects the failure ginseng for obtaining xfs Number information, diagnostic module 3 is analyzed to these fault parameter information, and carries out fault diagnosis, obtains diagnostic result, if therefore Corresponding failure strategy is previously provided with barrier management system, then performing module 4 performs corresponding with diagnostic result default Failure strategy, to eliminate xfs failures, if it is not, user can be according to these fault parameter information or diagnostic result Look for the troubleshooting solution of corresponding xfs.
It should be noted that in this manual, term " including ", "comprising" or its any other variant be intended to Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there is other identical element in process, method, article or equipment including the key element.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or uses the present invention. Various modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, the present invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The scope most wide for causing.

Claims (9)

1. a kind of fault filling method of xfs, it is characterised in that including:
Obtain the direct fault location information of default xfs;
In the xfs associations that the direct fault location information of the default xfs is put into finj structures;
Device descriptor in direct fault location information according to the default xfs sets injection order;
According to the injection command calls drive control function and using the direct fault location for carrying out xfs in the association.
2. fault filling method as claimed in claim 1, it is characterised in that the direct fault location letter of the default xfs of acquisition The process of breath is:
Xfs fault types are selected according to command line interface;
It is determined that default xfs direct fault locations file corresponding with the xfs fault types;
The default xfs direct fault locations file is parsed, the direct fault location information of the default xfs is obtained.
3. fault filling method as claimed in claim 2, it is characterised in that the drive control function is ioctl functions.
4. a kind of fault injection system of xfs, it is characterised in that including:
Xfs direct fault location data obtaining modules, the direct fault location information for obtaining default xfs;By the default xfs's Direct fault location information is put into the xfs associations in finj structures;
Xfs injects order generation module, is set for the device descriptor in the direct fault location information according to the default xfs Injection order;
Xfs injection modules, for according to the injection command calls drive control function and using the carrying out in the association The direct fault location of xfs.
5. fault injection system as claimed in claim 4, it is characterised in that the direct fault location letter of the default xfs of acquisition The process of breath is:
Xfs fault types are selected according to command line interface;
It is determined that default xfs direct fault locations file corresponding with the xfs fault types;
The default xfs direct fault locations file is parsed, the direct fault location information of the default xfs is obtained.
6. fault filling method as claimed in claim 5, it is characterised in that the drive control function is ioctl functions.
7. a kind of Fault Management System, it is characterised in that the direct fault location including the xfs as described in claim any one of 4-6 System.
8. Fault Management System as claimed in claim 7, it is characterised in that also include:
Detection module, the fault parameter information for detecting the xfs;
Diagnostic module, fault diagnosis is carried out for the fault parameter information according to the xfs, obtains diagnostic result.
9. Fault Management System as claimed in claim 8, it is characterised in that also include:
Performing module, for performing default failure strategy corresponding with the diagnostic result according to the diagnostic result, to disappear Except xfs failures.
CN201611170385.1A 2016-12-16 2016-12-16 A kind of fault filling method of xfs, system and Fault Management System Pending CN106776177A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611170385.1A CN106776177A (en) 2016-12-16 2016-12-16 A kind of fault filling method of xfs, system and Fault Management System

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611170385.1A CN106776177A (en) 2016-12-16 2016-12-16 A kind of fault filling method of xfs, system and Fault Management System

Publications (1)

Publication Number Publication Date
CN106776177A true CN106776177A (en) 2017-05-31

Family

ID=58892366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611170385.1A Pending CN106776177A (en) 2016-12-16 2016-12-16 A kind of fault filling method of xfs, system and Fault Management System

Country Status (1)

Country Link
CN (1) CN106776177A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7620851B1 (en) * 2001-02-28 2009-11-17 Cenzic, Inc. Fault injection methods and apparatus
CN102270173A (en) * 2011-07-21 2011-12-07 哈尔滨工业大学 Fault injection tool based on SCSI (small computer system interface) driver layer
CN102768642A (en) * 2012-06-25 2012-11-07 浪潮电子信息产业股份有限公司 LINUX kernel reliability evaluating system and LINUX kernel reliability evaluating method based on source code analysis
CN103019921A (en) * 2011-09-20 2013-04-03 中国人民解放军63928部队 Operating system fault tolerance testing system and method based on fault injection
CN105550080A (en) * 2015-11-26 2016-05-04 广州华多网络科技有限公司 Method, apparatus and system for performing server program fault injection based on Linux
CN106124970A (en) * 2016-06-17 2016-11-16 工业和信息化部电子第五研究所 The fault filling method of SRAM type FPGA and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7620851B1 (en) * 2001-02-28 2009-11-17 Cenzic, Inc. Fault injection methods and apparatus
CN102270173A (en) * 2011-07-21 2011-12-07 哈尔滨工业大学 Fault injection tool based on SCSI (small computer system interface) driver layer
CN103019921A (en) * 2011-09-20 2013-04-03 中国人民解放军63928部队 Operating system fault tolerance testing system and method based on fault injection
CN102768642A (en) * 2012-06-25 2012-11-07 浪潮电子信息产业股份有限公司 LINUX kernel reliability evaluating system and LINUX kernel reliability evaluating method based on source code analysis
CN105550080A (en) * 2015-11-26 2016-05-04 广州华多网络科技有限公司 Method, apparatus and system for performing server program fault injection based on Linux
CN106124970A (en) * 2016-06-17 2016-11-16 工业和信息化部电子第五研究所 The fault filling method of SRAM type FPGA and device

Similar Documents

Publication Publication Date Title
US9058105B2 (en) Automated adjustment of input configuration
CN103118031B (en) Log in method and the electronic equipment of application account
CN105868171B (en) A kind of method of calibration and device of Excel file
CN106326735A (en) Anti-injection method and apparatus
CN103777858A (en) Textbox displaying method and device
CN103455640A (en) Method and device for displaying file management interfaces
CN106294317A (en) The form information method of calibration at a kind of cloud platform interface and system
CN105447072B (en) Configurable interface framework and searching method and system using same
CN103812679B (en) A kind of massive logs statistical analysis system and method
CN107147645A (en) The acquisition methods and device of network security data
CN104572999A (en) Heterogeneous data based detecting method and device for fault data
CN104571804B (en) A kind of method and system to being associated across the document interface of application program
US8341538B1 (en) Systems and methods for reducing redundancies in quality-assurance reviews of graphical user interfaces
CN103034442B (en) Electronic equipment and the unblock of screen thereof, unlocking information device and method is set
CN106598797A (en) Multi-path IO fault injection method and system, and fault management system
CN106301891A (en) A kind of configuring information of network appliance processing method and processing device
CN106776177A (en) A kind of fault filling method of xfs, system and Fault Management System
CN106776175A (en) A kind of failure management method of internal memory, system and Fault Management System
CN109241510A (en) A kind of autochart generation system and its implementation based on wechat small routine
CN104731935B (en) The method and system controlled are inputted with mouse
CN106598799A (en) Fault injection simulation system and fault management system
CN105302691B (en) A kind of metadata method for monitoring performance and system
CN106776176A (en) A kind of fault filling method of disk, system and Fault Management System
CN106776180A (en) A kind of PCIE fault filling methods and its device and Fault Management System
CN106302673A (en) A kind of interactive information processing method and processing device

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: 20170531

RJ01 Rejection of invention patent application after publication