CN107729197A - A kind of abnormality detection method and device - Google Patents

A kind of abnormality detection method and device Download PDF

Info

Publication number
CN107729197A
CN107729197A CN201710948721.9A CN201710948721A CN107729197A CN 107729197 A CN107729197 A CN 107729197A CN 201710948721 A CN201710948721 A CN 201710948721A CN 107729197 A CN107729197 A CN 107729197A
Authority
CN
China
Prior art keywords
main frame
configuration file
parameter
kernel
configuration
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
CN201710948721.9A
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 CN201710948721.9A priority Critical patent/CN107729197A/en
Publication of CN107729197A publication Critical patent/CN107729197A/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/2247Verification or detection of system hardware configuration

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of abnormality detection method and device, including:For the main frame in cluster file system, the configuration file of the main frame is obtained in the path pre-set of the main frame respectively;Determine that the content of the configuration file in the presence of two or more main frames differs, export the prompting message abnormal for representing configuration file.The embodiment of the present invention, by exporting prompting message, when cluster file system creates shared storage failure, facilitate user and the reason for creating shared storage failure is understood according to the prompting message, or change the configuration file of main frame in time when user sees the prompting message, so that the content of the configuration file in each main frame of cluster file system is identical, it ensure that cluster file system can be successfully created shared storage.

Description

A kind of abnormality detection method and device
Technical field
The present invention relates to cloud computing technology, espespecially a kind of abnormality detection method and device.
Background technology
In the related art, for each main frame in cluster file system, when the configuration file of the main frame includes cluster During the configuration information of the parameter of each main frame of file system, cluster file system can successfully create shared storage.For example, cluster There are three host A, host B, host C main frames in file system, the configuration file of each main frame includes the configuration of the parameter of host A The configuration information of the parameter of information, the configuration information of the parameter of host B and host C.But going out due to cluster file system Mistake, for example, adding main frame into cluster file system, add the configuration information of the parameter of the main frame of the new addition is written to When in the configuration file of each main frame of the cluster file system before adding, if addition before cluster file system in have a main frame Power off or restart, then and the configuration information of the parameter of the main frame newly added is written to the configuration file of the main frame not successfully In, the inconsistent situation of the content of the configuration file of two or more main frames in cluster file system is result in, and then Result in can not successfully create shared storage using cluster file system.When creating shared storage failure, it is necessary to which user is manual Check which position error of cluster file system result in the shared storage failure of establishment.But when user checks collection one by one manually When whether the various pieces of group's file system are problematic, the workload that user checks is very big, and operating efficiency is than relatively low.
The content of the invention
In order to solve the above-mentioned technical problem, the invention provides a kind of abnormality detection method and device, can be automatically into Work(creates shared storage and provided safeguard.
In order to reach the object of the invention, the invention provides a kind of abnormality detection method, including:
For the main frame in cluster file system, matching somebody with somebody for the main frame is obtained in the path pre-set of the main frame Put file;
Determine that the content of the configuration file in the presence of two or more main frames differs, export for representing configuration text The abnormal prompting message of part.
Further, the content for determining the configuration file in the presence of two or more main frames differs, including:
For the main frame in the cluster file system, divide from the configuration file of each main frame of the cluster file system The configuration information of the parameter of the main frame is not read;
Whether the configuration information for comparing the parameter of the main frame read respectively from the configuration file of each main frame is identical;
If match somebody with somebody confidence in the presence of the parameter of the main frame read from the configuration file of two or more main frames Breath differs, it is determined that the content for going out the configuration file of two or more main frames differs.
Further, the prompting message includes:The abnormal prompting of configuration file and/or described two or two or more master The different prompting of the configuration information of parameter described in the configuration file of machine.
The present invention provides another abnormality detection method, including:
For the main frame in cluster file system, the mesh of the main frame in the kernel of each main frame of cluster file system Configuration file corresponding to the parameter of the main frame is obtained under record respectively;
Determine that the content of configuration file corresponding to the parameter differs in the kernel in the presence of two or more main frames, Export the prompting message abnormal for representing configuration file.
Further, it is described to determine configuration file corresponding to the parameter in the kernel in the presence of two or more main frames Content differ, including:
The configuration information of the parameter is read in the configuration file obtained in the kernel of each main frame respectively;
Compare the parameter read respectively from the configuration file in the kernel of each main frame configuration information whether It is identical;
If differed in the presence of the configuration information of the parameter in the kernel of two or more main frames, it is determined that go out this The content of configuration file differs corresponding to the parameter in the kernel of two or more main frames.
Further, the prompting message includes:The abnormal prompting of configuration file and/or described two or two or more master The different prompting of the content of configuration file corresponding to parameter described in the kernel of machine.
The present invention provides a kind of abnormality detection device, including:
First acquisition module, for for the main frame in cluster file system, in the path pre-set of the main frame The middle configuration file for obtaining the main frame;
First output module, for determining that the content of the configuration file in the presence of two or more main frames differs, Export the prompting message abnormal for representing configuration file.
Further, first output module includes:
First reading unit, for for the main frame in the cluster file system, from each of the cluster file system The configuration information of the parameter of the main frame is read in the configuration file of main frame respectively;
First comparing unit, for comparing the parameter of the main frame that is read respectively from the configuration file of each main frame Whether configuration information is identical;
First determining unit, if in the presence of the main frame read from the configuration file of two or more main frames The configuration information of the parameter differ, it is determined that the content for going out the configuration file of two or more main frames differs.
The present invention provides another abnormality detection device, including:
Second acquisition module, for for the main frame in cluster file system, in each main frame of cluster file system Configuration file corresponding to the parameter of the main frame is obtained respectively under the catalogue of the main frame in core;
Second output module, for determining configuration corresponding to the parameter in the kernel in the presence of two or more main frames The content of file differs, and exports the prompting message abnormal for representing configuration file.
Further, second output module includes:
Second reading unit, for reading the parameter respectively in the configuration file that is obtained in the kernel of each main frame Configuration information;
Second comparing unit, for comparing the ginseng read respectively from the configuration file in the kernel of each main frame Whether several configuration informations is identical;
Second determining unit, if the configuration information for the parameter in the kernel in the presence of two or more main frames Differ, it is determined that the content for going out configuration file corresponding to the parameter in the kernel of two or more main frames differs.
The present invention comprises at least:For the main frame in cluster file system, in the path pre-set of the main frame Obtain the configuration file of the main frame;Determine that the content of the configuration file in the presence of two or more main frames differs, it is defeated Go out the prompting message abnormal for representing configuration file.From the embodiment of the present invention, at two of cluster file system or two The content of the configuration file of individual above main frame exports prompting message when differing, so, when cluster file system creates shared deposit During storage failure, facilitate user and the reason for creating shared storage failure is understood according to the prompting message, or see this in user The configuration file of main frame is changed during prompting message in time, so that the content of the configuration file in each main frame of cluster file system It is identical, so as to ensure that cluster file system can be successfully created shared storage.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by specification, rights Specifically noted structure is realized and obtained in claim and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used for providing further understanding technical solution of the present invention, and a part for constitution instruction, with this The embodiment of application is used to explain technical scheme together, does not form the limitation to technical solution of the present invention.
Fig. 1 is a kind of schematic flow sheet of abnormality detection method provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another abnormality detection method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of abnormality detection device provided in an embodiment of the present invention;
Fig. 4 is the structural representation of another abnormality detection device provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another abnormality detection device provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another abnormality detection device provided in an embodiment of the present invention.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with accompanying drawing to the present invention Embodiment be described in detail.It should be noted that in the case where not conflicting, in the embodiment and embodiment in the application Feature can mutually be combined.
Can be in the computer system of such as one group computer executable instructions the flow of accompanying drawing illustrates the step of Perform.Also, although logical order is shown in flow charts, in some cases, can be with suitable different from herein Sequence performs shown or described step.
The embodiment of the present invention provides a kind of abnormality detection method, as shown in figure 1, the abnormality detection method includes:
Step 101, for the main frame in cluster file system, obtained in the path pre-set of the main frame described in The configuration file of main frame.
Wherein, the configuration file of main frame includes the configuration information of the parameter of each main frame of cluster file system.Parameter includes But it is not limited to one below or a variety of combinations:Interconnected between Hostname, network agreement (Internet Protocol, IP) address, host side slogan.The configuration information of the parameter of main frame is illustrated by an example, if for example, parameter is host name Claim, then the configuration information of the parameter is the title of the main frame;If parameter is IP address, the configuration information of the parameter is the main frame IP address 36.35.231.100;If parameter is host side slogan, the configuration information of the parameter is the port numbers of the main frame 49157。
Step 102, determine that the content of the configuration file in the presence of two or more main frames differs, export for table Show the abnormal prompting message of configuration file.
Because if the content of the configuration file of each main frame of cluster file system is identical, the cluster file system is creating Success can be created during shared storage, if the content of the configuration file of each main frame of cluster file system differs, the cluster File system will create failure when creating shared storage, therefore the interior of the configuration file of two or more main frames be present When appearance differs, the prompting message abnormal for representing configuration file is exported.Thus it is possible, on the one hand, see that the prompting is believed in user The configuration file of main frame is changed during breath in time, so that the content of the configuration file in each main frame of cluster file system is identical, It ensure that cluster file system can be successfully created shared storage;On the other hand, when cluster file system creates shared storage During failure, facilitate user and the reason for creating shared storage failure is understood according to the prompting message.
Further, it is described to determine matching somebody with somebody in the presence of two or more main frames on the basis of Fig. 1 corresponds to embodiment The content for putting file differs, including:
For the main frame in the cluster file system, divide from the configuration file of each main frame of the cluster file system The configuration information of the parameter of the main frame is not read;That compares the main frame that is read respectively from the configuration file of each main frame should Whether the configuration information of parameter is identical;If in the presence of the main frame read from the configuration file of two or more main frames The configuration information of the parameter differs, it is determined that the content for going out the configuration file of two or more main frames differs.
For each main frame in cluster file system, the configuration file of the main frame includes each master of cluster file system The configuration information of the parameter of machine.For example, cluster file system includes three host A, host B and host C main frames, each main frame Configuration file includes host A, Hostname, IP address, the host side slogan of three main frames of host B and host C, will be respectively from master Machine A, three main frames of host B and host C configuration file in the configuration information of the Hostname of host A that reads be compared, If the configuration information of the Hostname of the host A read from the configuration file of host A from the configuration file of host C with reading The configuration information of the Hostname of the host A taken differs, you can determines the configuration file of host A and the configuration text of host C The content of part differs.
Further, on the basis of Fig. 1 corresponds to embodiment, the prompting message includes:The abnormal prompting of configuration file And/or the different prompting of configuration information of parameter described in described two or two or more main frame configuration file.
Specifically, a window is ejected on display interface, the abnormal prompting of configuration file is shown in the window, in the window It can also show that the configuration information of which of the configuration file of which main frame of cluster file system parameter is different in mouthful to carry Wake up, for example, being shown in the configuration file of host A the configuration information of the Hostname of host A in the window and in host C The different prompting of the configuration information of the Hostname of host A in configuration file, such user directly directly change according to the instruction Hostname this configuration information in the configuration file of host A and host C, it is not necessary to user one by one comparison check in master Machine A and the configuration information difference in the configuration file of host C being which parameter, improve the efficiency of modification configuration file.
Abnormality detection method according to embodiments of the present invention, for the main frame in cluster file system, in the main frame The configuration file of the main frame is obtained in the path pre-set;Determine the configuration file in the presence of two or more main frames Content differ, export the prompting message abnormal for representing configuration file.From the embodiment of the present invention, in group document The content of the configuration file of two or more main frames of system exports prompting message when differing, so, work as group document When the shared storage of system creation fails, facilitate user and the reason for shared storage of establishment fails is understood according to the prompting message, or Person changes the configuration file of main frame when user sees the prompting message in time, so that in each main frame of cluster file system The content of configuration file is identical, so as to ensure that cluster file system can be successfully created shared storage.
The embodiment of the present invention provides another abnormality detection method, as shown in Fig. 2 the abnormality detection method includes:
Step 201, for the main frame in cluster file system, described in the kernel of each main frame of cluster file system Configuration file corresponding to the parameter of the main frame is obtained under the catalogue of main frame respectively.
Due to before the service for being used to create shared storage of cluster file system is started, for cluster file system Main frame, the configuration file of the main frame include the configuration information of the parameter of each main frame of cluster file system.Starting cluster text After the service for being used to create shared storage of part system, each main frame of cluster file system is generated in the kernel of each main frame Parameter corresponding to configuration file, the configuration file includes the configuration information of the parameter.For example, cluster file system includes main frame A, three main frames of host B and host C, generate following configuration file in the kernel of host A:The Hostname of host A is corresponding Configuration file, host A IP address corresponding to configuration file, host A port numbers corresponding to configuration file, the master of host B Configuration file corresponding to the port numbers of configuration file, host B corresponding to the IP address of configuration file, host B corresponding to machine title, Corresponding to the port numbers of configuration file, host C corresponding to the IP address of configuration file, host C corresponding to the Hostname of host C Configuration file, the configuration file generated in the kernel of host B and the configuration file that is generated in the kernel of host C with master The configuration file generated in machine A kernel is identical, is not repeating to repeat herein.Have in the kernel of host A host A, host B, The catalogue of three main frames of host C, includes configuration file corresponding to the parameter of host A under the catalogue of host A, under the catalogue of host B Including configuration file corresponding to the parameter of host B, include configuration file corresponding to the parameter of host C under the catalogue of host C, in master Configuration file in machine B kernel and the configuration file in the kernel of host C and the configuration file in the kernel of host A Identical, it is no longer repeated herein.
Step 202, determine the interior of configuration file corresponding to the parameter in kernel in the presence of two or more main frames Appearance differs, and exports the prompting message abnormal for representing configuration file.
The content of configuration file should corresponding to the parameter of each main frame in the kernel of each main frame of cluster file system It is identical, but because during configuration file, the kernel error of main frame causes to collect corresponding to the generation parameter in the kernel of main frame The content of configuration file is different corresponding to parameter in the kernel of each main frame of group's file system.For example, the master in host A kernel The configuration file corresponding with the Hostname of the host A in host B kernel of configuration file corresponding to machine A Hostname should be Identical, but configuration file corresponding to the Hostname of the host A in host A kernel is result in due to the error of host A kernel Configuration file corresponding with the Hostname of the host A in host B kernel differs, and will be created when now creating shared storage Failure.
By exporting the prompting message for being used for representing that configuration file is abnormal, thus it is possible, on the one hand, seeing that the prompting is believed in user The configuration file in the kernel of main frame is corrected during breath in time, so that the parameter pair in the kernel of each main frame of cluster file system The content for the configuration file answered is identical, ensure that cluster file system can be successfully created shared storage;On the other hand, collection is worked as When group's file system creates shared storage failure, facilitate user and the original for creating shared storage failure is understood according to the prompting message Cause.
Further, it is described to determine in the presence of the interior of two or more main frames on the basis of Fig. 2 corresponds to embodiment The content of configuration file differs corresponding to the parameter in core, including:
The configuration information of the parameter is read in the configuration file obtained in the kernel of each main frame respectively;Compare from Whether the configuration information of the parameter read respectively in the configuration file in the kernel of each main frame is identical;If in the presence of two Or the configuration information of the parameter in the kernel of two or more main frame differs, it is determined that goes out two or more main frames Kernel in the content of configuration file corresponding to the parameter differ.
Wherein, configuration file includes the configuration information of the parameter corresponding to the parameter of main frame.For example, wrapped in host A kernel Configuration file corresponding to the port numbers of host B is included, the configuration file includes the configuration information of the port numbers of host B.
Further, on the basis of Fig. 2 corresponds to embodiment, the prompting message includes:The abnormal prompting of configuration file And/or the different prompting of content of configuration file corresponding to parameter described in described two or two or more main frame kernel.
Specifically, a window is ejected on display interface, the abnormal prompting of configuration file is shown in the window, in the window The content of configuration file corresponding to which of the kernel of which main frame of cluster file system parameter can also be shown in mouthful not Same prompting, for example, being shown in the content of configuration file corresponding to the port numbers of host B in the kernel of host A in the window From the port numbers of host B in the kernel of host B corresponding to configuration file the different prompting of content, so direct basis of user The service for being used to create shared storage of instruction restarting cluster file system, with again in host A kernel and host B Configuration file corresponding to parameter is generated in core, ensure that can successfully create shared storage.
Abnormality detection method according to embodiments of the present invention, for the main frame in cluster file system, in group document system Configuration file corresponding to the parameter of the main frame is obtained respectively under the catalogue of the main frame in the kernel of each main frame of system;It is determined that Go out the content of configuration file corresponding to the parameter in the kernel in the presence of two or more main frames to differ, export for representing The abnormal prompting message of configuration file.From the embodiment of the present invention, in two or more main frames of cluster file system Kernel in a parameter corresponding to the content of configuration file export prompting message when differing, so, work as cluster file system When creating shared storage failure, facilitate user and the reason for creating shared storage failure, Huo Zhe are understood according to the prompting message User carries out abnormality processing in time when seeing the prompting message, so that the configuration in the kernel of each main frame of cluster file system The content of file is identical, so as to ensure that cluster file system can be successfully created shared storage.
The embodiment of the present invention provides a kind of abnormality detection device, as shown in figure 3, the abnormality detection device 3 includes:
First acquisition module 31, for for the main frame in cluster file system, on the road pre-set of the main frame The configuration file of the main frame is obtained in footpath.
First output module 32, for determining the content not phase in the presence of the configuration file of two or more main frames Together, the prompting message abnormal for representing configuration file is exported.
Further, on the basis of Fig. 3 corresponds to embodiment, the present invention provides another abnormality detection device, such as Fig. 4 institutes Show, the first output module 32 in the abnormality detection device 3 includes:
First reading unit 321, for for the main frame in the cluster file system, from the cluster file system The configuration information of the parameter of the main frame is read in the configuration file of each main frame respectively.
First comparing unit 322, for comparing the ginseng of the main frame read respectively from the configuration file of each main frame Whether several configuration informations is identical.
First determining unit 323, if in the presence of described in being read from the configuration file of two or more main frames The configuration information of the parameter of main frame differs, it is determined that goes out the content of the configuration file of two or more main frames not phase Together.
Further, on the basis of Fig. 4 corresponds to embodiment, the prompting message includes:The abnormal prompting of configuration file And/or the different prompting of configuration information of parameter described in described two or two or more main frame configuration file.
In actual applications, the first acquisition module 31 and the first output module 32 can be by abnormality detection devices 3 CPU, microprocessor (Micro Processor Unit, MPU), digital signal processor (Digital Signal Processor, DSP) or field programmable gate array (Field Programmable Gate Array, FPGA) etc. realize.
Abnormality detection device according to embodiments of the present invention, for the main frame in cluster file system, in the main frame The configuration file of the main frame is obtained in the path pre-set;Determine the configuration file in the presence of two or more main frames Content differ, export the prompting message abnormal for representing configuration file.From the embodiment of the present invention, in group document The content of the configuration file of two or more main frames of system exports prompting message when differing, so, work as group document When the shared storage of system creation fails, facilitate user and the reason for shared storage of establishment fails is understood according to the prompting message, or Person changes the configuration file of main frame when user sees the prompting message in time, so that in each main frame of cluster file system The content of configuration file is identical, so as to ensure that cluster file system can be successfully created shared storage.
The embodiment of the present invention provides another abnormality detection device, as shown in figure 5, the abnormality detection device 4 includes:
Second acquisition module 41, for for the main frame in cluster file system, in each main frame of cluster file system Configuration file corresponding to the parameter of the main frame is obtained respectively under the catalogue of the main frame in kernel.
Second output module 42, for determining corresponding to the parameter to match somebody with somebody in the kernel in the presence of two or more main frames The content for putting file differs, and exports the prompting message abnormal for representing configuration file.
Further, on the basis of Fig. 5 corresponds to embodiment, the present invention provides another abnormality detection device, such as Fig. 6 institutes Show, the second output module 42 in the abnormality detection device 4 includes:
Second reading unit 421, described in being read respectively in the configuration file that is obtained in the kernel of each main frame The configuration information of parameter.
Second comparing unit 422, for comparing the institute read respectively from the configuration file in the kernel of each main frame Whether the configuration information for stating parameter is identical.
Second determining unit 423, if the configuration for the parameter in the kernel in the presence of two or more main frames Information differs, it is determined that goes out the content of configuration file corresponding to the parameter in the kernel in the presence of two or more main frames not It is identical.
Further, on the basis of Fig. 6 corresponds to embodiment, the prompting message includes:The abnormal prompting of configuration file And/or the different prompting of content of configuration file corresponding to parameter described in described two or two or more main frame kernel.
In actual applications, the second acquisition module 41 and the second output module 42 can be by abnormality detection devices 4 CPU, microprocessor, digital signal processor or field programmable gate array etc. are realized.
Abnormality detection device according to embodiments of the present invention, for the main frame in cluster file system, in group document system Configuration file corresponding to the parameter of the main frame is obtained respectively under the catalogue of the main frame in the kernel of each main frame of system;It is determined that Go out the content of configuration file corresponding to the parameter in the kernel in the presence of two or more main frames to differ, export for representing The abnormal prompting message of configuration file.From the embodiment of the present invention, in two or more main frames of cluster file system Kernel in a parameter corresponding to the content of configuration file export prompting message when differing, so, work as cluster file system When creating shared storage failure, facilitate user and the reason for creating shared storage failure, Huo Zhe are understood according to the prompting message User carries out abnormality processing in time when seeing the prompting message, so that the configuration in the kernel of each main frame of cluster file system The content of file is identical, so as to ensure that cluster file system can be successfully created shared storage.
The embodiment of the present invention provides another abnormality detection device, the abnormality detection device include memory, processor with The step realized and storage is on a memory and the computer program that can run on a processor, during computing device computer program Suddenly include:
For the main frame in cluster file system, matching somebody with somebody for the main frame is obtained in the path pre-set of the main frame Put file;
Determine that the content of the configuration file in the presence of two or more main frames differs, export for representing configuration text The abnormal prompting message of part.
Further, the step of being realized during above-mentioned computing device computer program specifically includes:
For the main frame in the cluster file system, divide from the configuration file of each main frame of the cluster file system The configuration information of the parameter of the main frame is not read;
Whether the configuration information for comparing the parameter of the main frame read respectively from the configuration file of each main frame is identical;
If match somebody with somebody confidence in the presence of the parameter of the main frame read from the configuration file of two or more main frames Breath differs, it is determined that the content for going out the configuration file of two or more main frames differs.
The embodiment of the present invention provides another abnormality detection device, the abnormality detection device include memory, processor with The step realized and storage is on a memory and the computer program that can run on a processor, during computing device computer program Suddenly include:
For the main frame in cluster file system, the mesh of the main frame in the kernel of each main frame of cluster file system Configuration file corresponding to the parameter of the main frame is obtained under record respectively;
Determine that the content of configuration file corresponding to the parameter differs in the kernel in the presence of two or more main frames, Export the prompting message abnormal for representing configuration file.
Further, the step of being realized during above-mentioned computing device computer program specifically includes:
The configuration information of the parameter is read in the configuration file obtained in the kernel of each main frame respectively;
Compare the parameter read respectively from the configuration file in the kernel of each main frame configuration information whether It is identical;
If differed in the presence of the configuration information of the parameter in the kernel of two or more main frames, it is determined that go out this The content of configuration file differs corresponding to the parameter in the kernel of two or more main frames.
Although disclosed herein embodiment as above, described content be only readily appreciate the present invention and use Embodiment, it is not limited to the present invention.Technical staff in any art of the present invention, taken off not departing from the present invention On the premise of the spirit and scope of dew, any modification and change, but the present invention can be carried out in the form and details of implementation Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.

Claims (10)

  1. A kind of 1. abnormality detection method, it is characterised in that including:
    For the main frame in cluster file system, the configuration that the main frame is obtained in the path pre-set of the main frame is literary Part;
    Determine that the content of the configuration file in the presence of two or more main frames differs, export for representing that configuration file is different Normal prompting message.
  2. 2. abnormality detection method according to claim 1, it is characterised in that described to determine two or more be present The content of the configuration file of main frame differs, including:
    For the main frame in the cluster file system, read respectively from the configuration file of each main frame of the cluster file system Take the configuration information of the parameter of the main frame;
    Whether the configuration information for comparing the parameter of the main frame read respectively from the configuration file of each main frame is identical;
    If in the presence of the main frame read from the configuration file of two or more main frames the parameter configuration information not It is identical, it is determined that the content for going out the configuration file of two or more main frames differs.
  3. 3. abnormality detection method according to claim 1 or 2, it is characterised in that the prompting message includes:Configuration file The configuration information of parameter is different described in abnormal prompting and/or described two or two or more main frame configuration file carries Wake up.
  4. A kind of 4. abnormality detection method, it is characterised in that including:
    For the main frame in cluster file system, under the catalogue of the main frame in the kernel of each main frame of cluster file system Configuration file corresponding to the parameter of the main frame is obtained respectively;
    Determine that the content of configuration file corresponding to the parameter differs in the kernel in the presence of two or more main frames, exports The prompting message abnormal for representing configuration file.
  5. 5. abnormality detection method according to claim 4, it is characterised in that described to determine two or more be present The content of configuration file differs corresponding to the parameter in the kernel of main frame, including:
    The configuration information of the parameter is read in the configuration file obtained in the kernel of each main frame respectively;
    Whether the configuration information for comparing the parameter read respectively from the configuration file in the kernel of each main frame is identical;
    If differed in the presence of the configuration information of the parameter in the kernel of two or more main frames, it is determined that go out this two Or the content of configuration file differs corresponding to the parameter in the kernel of two or more main frame.
  6. 6. the abnormality detection method according to claim 4 or 5, it is characterised in that
    The prompting message includes:Institute in the abnormal prompting of configuration file and/or described two or two or more main frame kernel State the different prompting of the content of configuration file corresponding to parameter.
  7. A kind of 7. abnormality detection device, it is characterised in that including:
    First acquisition module, for for the main frame in cluster file system, being obtained in the path pre-set of the main frame Take the configuration file of the main frame;
    First output module, for determining that the content of the configuration file in the presence of two or more main frames differs, export The prompting message abnormal for representing configuration file.
  8. 8. abnormality detection device according to claim 7, it is characterised in that first output module includes:
    First reading unit, for for the main frame in the cluster file system, from each main frame of the cluster file system Configuration file in read respectively the main frame parameter configuration information;
    First comparing unit, the configuration of the parameter for comparing the main frame read respectively from the configuration file of each main frame Whether information is identical;
    First determining unit, if for being somebody's turn to do in the presence of the main frame read from the configuration file of two or more main frames The configuration information of parameter differs, it is determined that the content for going out the configuration file of two or more main frames differs.
  9. A kind of 9. abnormality detection device, it is characterised in that including:
    Second acquisition module, for for the main frame in cluster file system, in the kernel of each main frame of cluster file system The main frame catalogue under obtain configuration file corresponding to the parameter of the main frame respectively;
    Second output module, for determining configuration file corresponding to the parameter in the kernel in the presence of two or more main frames Content differ, export the prompting message abnormal for representing configuration file.
  10. 10. abnormality detection device according to claim 9, it is characterised in that second output module includes:
    Second reading unit, for reading matching somebody with somebody for the parameter respectively in the configuration file that is obtained in the kernel of each main frame Confidence ceases;
    Second comparing unit, for comparing the parameter read respectively from the configuration file in the kernel of each main frame Whether configuration information is identical;
    Second determining unit, if configuration information for the parameter in the kernel in the presence of two or more main frames not phase Together, it is determined that the content for going out configuration file corresponding to the parameter in the kernel of two or more main frames differs.
CN201710948721.9A 2017-10-12 2017-10-12 A kind of abnormality detection method and device Pending CN107729197A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710948721.9A CN107729197A (en) 2017-10-12 2017-10-12 A kind of abnormality detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710948721.9A CN107729197A (en) 2017-10-12 2017-10-12 A kind of abnormality detection method and device

Publications (1)

Publication Number Publication Date
CN107729197A true CN107729197A (en) 2018-02-23

Family

ID=61211202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710948721.9A Pending CN107729197A (en) 2017-10-12 2017-10-12 A kind of abnormality detection method and device

Country Status (1)

Country Link
CN (1) CN107729197A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363983A (en) * 2020-11-10 2021-02-12 北京思特奇信息技术股份有限公司 File checking method and system for cluster host

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096678A (en) * 2009-12-09 2011-06-15 中国工商银行股份有限公司 Method for establishing large-capacity network file system memory
CN102591679A (en) * 2011-11-30 2012-07-18 中国科学院计算机网络信息中心 Quick application software arrangement method for cluster system
CN105117496A (en) * 2015-09-28 2015-12-02 上海斐讯数据通信技术有限公司 Method and system for sharing data in external storage device in router
CN105847446A (en) * 2016-05-31 2016-08-10 腾讯科技(深圳)有限公司 Network data obtaining method, device and system
CN107231254A (en) * 2017-05-27 2017-10-03 郑州云海信息技术有限公司 A kind of method and system synchronous to the configuration file based on OCFS file system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096678A (en) * 2009-12-09 2011-06-15 中国工商银行股份有限公司 Method for establishing large-capacity network file system memory
CN102591679A (en) * 2011-11-30 2012-07-18 中国科学院计算机网络信息中心 Quick application software arrangement method for cluster system
CN105117496A (en) * 2015-09-28 2015-12-02 上海斐讯数据通信技术有限公司 Method and system for sharing data in external storage device in router
CN105847446A (en) * 2016-05-31 2016-08-10 腾讯科技(深圳)有限公司 Network data obtaining method, device and system
CN107231254A (en) * 2017-05-27 2017-10-03 郑州云海信息技术有限公司 A kind of method and system synchronous to the configuration file based on OCFS file system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363983A (en) * 2020-11-10 2021-02-12 北京思特奇信息技术股份有限公司 File checking method and system for cluster host

Similar Documents

Publication Publication Date Title
CN102662727B (en) The creation method of virtual machine and device
WO2017219678A1 (en) Data recovery method and device, and cloud storage system
CN107153571A (en) A kind of dispositions method and device of virtual management node
CN111737137B (en) Interface test data generation method and device, host and storage medium
US11030384B2 (en) Identification of sequential browsing operations
CN102023977A (en) Data filtering method and data filtering system and application thereof
CN103970655A (en) Server automatic cluster testing method based on expect
WO2014040488A1 (en) Method and device for guaranteeing consistency of planning data
CN106982140B (en) Information flow simulation method and system
CN104050003A (en) Method for starting Nutch collecting system with shell script
CN109299116B (en) Data synchronization method, device, equipment and readable storage medium
CN107729197A (en) A kind of abnormality detection method and device
CN109871205B (en) Interface code adjustment method, device, computer device and storage medium
CN105391566B (en) A kind of method and device that dynamic network equipments configuration compares
CN112433812A (en) Method, system, equipment and computer medium for virtual machine cross-cluster migration
US10956659B1 (en) System for generating templates from webpages
CN102789388B (en) In MIPS IA frame serverPC, the method and system of network interface card function are increased based on BMC
CN107085550A (en) A kind of method and system for being used to collect application crashes information in iOS system
CN109670296A (en) A kind of method and apparatus removing iOS backup password
CN111209196B (en) Blue screen strategy testing method and device of system and storage medium
CN104991520B (en) A kind of mirror configuration method and device
CN111090853B (en) Account management method, system, electronic equipment and storage medium
CN113590217A (en) Function management method and device based on engine, electronic equipment and storage medium
CN116136801A (en) Cloud platform data processing method and device, electronic equipment and storage medium
CN113515425A (en) Method and device for dynamically reporting data

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

RJ01 Rejection of invention patent application after publication