CN109344031A - A kind of condition detection method of storage system, device, equipment and storage medium - Google Patents

A kind of condition detection method of storage system, device, equipment and storage medium Download PDF

Info

Publication number
CN109344031A
CN109344031A CN201811114613.2A CN201811114613A CN109344031A CN 109344031 A CN109344031 A CN 109344031A CN 201811114613 A CN201811114613 A CN 201811114613A CN 109344031 A CN109344031 A CN 109344031A
Authority
CN
China
Prior art keywords
storage system
detection
thread
program
state
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
CN201811114613.2A
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 CN201811114613.2A priority Critical patent/CN109344031A/en
Publication of CN109344031A publication Critical patent/CN109344031A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3034Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

This application discloses a kind of condition detection methods of storage system, run preset detection program including the use of the client being connected with storage system;Then the status information by detecting the storage system that program obtains is obtained, and utilizes the status file of state information updating storage system.It can be seen that, this method passes through the client operation detection program using being connected with storage system to obtain the status information of storage system, therefore it avoids the need for carrying out input-output operation one by one to each storage equipment in storage system to realize state-detection, to improve the convenience for the state for detecting storage system, and improve detection efficiency.Disclosed herein as well is a kind of condition checkout gear of storage system, equipment and computer readable storage mediums, all have above-mentioned beneficial effect.

Description

A kind of condition detection method of storage system, device, equipment and storage medium
Technical field
The present invention relates to storage system field, in particular to a kind of condition detection method of storage system, device, equipment and Computer readable storage medium.
Background technique
With the fast development of computer technology and big data business, data information to be treated is more and more, because This storage system using more and more extensive, various upper-layer services such as video monitoring, broadcasting and TV media resource etc. by being with storage System is connected, to realize each corresponding function.
Storage system (memory system) refers in computer by the various storage equipment of storage program and data, control System composed by the equipment and algorithm of component processed and management information scheduling.It, will be so that upper layer when storage system occurs abnormal The business process of business is affected, and even results in business process and goes wrong or cannot achieve.Therefore, it is necessary to be to storage System carries out state-detection.The method for carrying out state-detection to storage system in the prior art is by respectively depositing in storage system Storage equipment carries out input-output operation one by one to realize state-detection, it is clear that not only operating process is cumbersome for this mode, Er Qiexiao Rate is low.
Therefore, how it is convenient and efficiently to storage system carry out state-detection, be that those skilled in the art need at present The technical issues of solution.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of condition detection method of storage system, it can be convenient and high Effect ground carries out state-detection to storage system;It is a further object of the present invention to provide a kind of condition checkout gear of storage system, Equipment and computer readable storage medium all have above-mentioned beneficial effect.
In order to solve the above technical problems, the present invention provides a kind of condition detection method of storage system, comprising:
Preset detection program is run using the client being connected with storage system;
The status information of the storage system obtained by the detection program is obtained, and more using the status information The status file of the new storage system.
Preferably, the detection program includes detecting to whether there is tie point between the client and the storage system The third that whether can read and write of first thread, whether normal second thread of the detection tie point and the detection tie point Thread.
Preferably, further comprise:
When not receiving the first thread and/or second thread and/or the third in preset time threshold When the status information that thread returns, exception information is set by the status information of corresponding thread.
Preferably, further comprise:
The detection program is run according to preset period of time.
Preferably, further comprise:
Upper-layer service is by obtaining the status file to obtain the state status of the storage system.
Preferably, further comprise:
When the status information is the exception information, prompt information is issued.
Preferably, described to be specifically included using the preset detection program of the client being connected with storage system operation:
Preset multiple detection programs are run simultaneously using the client being connected with storage system.
In order to solve the above technical problems, the present invention also provides a kind of condition checkout gears of storage system, comprising:
It detects program and runs module, for running preset detection program using the client being connected with storage system;
Status file obtains module, for obtaining the state letter of the storage system obtained by the detection program Breath, and utilize the status file of storage system described in the state information updating.
In order to solve the above technical problems, the present invention also provides a kind of condition detecting devices of storage system, comprising:
Memory, for storing computer program;
Processor realizes the condition detection method of any of the above-described kind of storage system when for executing the computer program Step.
In order to solve the above technical problems, the present invention also provides a kind of computer readable storage medium, it is described computer-readable Computer program is stored on storage medium, the computer program realizes any of the above-described kind of storage system when being executed by processor Condition detection method the step of.
The condition detection method of storage system provided by the invention is run including the use of the client being connected with storage system Preset detection program;Then the status information by detecting the storage system that program obtains is obtained, and more using status information The status file of new storage system.As it can be seen that this method pass through using be connected with storage system client operation detect program with The status information of storage system is obtained, therefore avoids the need for carrying out input and output one by one to each storage equipment in storage system Operation to improve the convenience of the state of detection storage system, and improves detection efficiency to realize state-detection.
In order to solve the above technical problems, the present invention also provides a kind of condition checkout gear of storage system, equipment and meters Calculation machine readable storage medium storing program for executing, all has above-mentioned beneficial effect.
Detailed description of the invention
It in order to illustrate the embodiments of the present invention more clearly or the technical solution of the prior art, below will be to embodiment or existing Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to the attached drawing of offer.
Fig. 1 is a kind of flow chart of the condition detection method of storage system provided in an embodiment of the present invention;
Fig. 2 is a kind of structure chart of the condition checkout gear of storage system provided in an embodiment of the present invention;
Fig. 3 is a kind of structure chart of the condition detecting device of storage system 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.
The core of the embodiment of the present invention is to provide a kind of condition detection method of storage system, can be convenient and efficiently right Storage system carries out state-detection;Another core of the invention be to provide the condition checkout gear of storage system a kind of, equipment and Computer readable storage medium all has above-mentioned beneficial effect.
It is right with reference to the accompanying drawings and detailed description in order to make those skilled in the art more fully understand the present invention program The present invention is described in further detail.
Fig. 1 is a kind of flow chart of the condition detection method of storage system provided in an embodiment of the present invention.As shown in Figure 1, The condition detection method of storage system includes:
S10: preset detection program is run using the client being connected with storage system.
In this step, it by presetting the client being connected with storage system cluster, is then transported using the client The preset detection program of row, to be detected to storage system.Specifically, client can be server, it is also possible to user Terminal, the present embodiment do not do specific restriction to this;Storage system can be single system, be also possible to storage system collection Group, the present embodiment do not do specific restriction to this yet.Detection program is the program generation for obtaining the status information of storage system Code, in specific implementation, the corresponding detection program of curriculum offering that can need to be actually detected according to storage system.Detect program Content is more specific, can be to the detection that storage system carries out more comprehensively.In addition, writing mode and operation due to detection program It is well-known to those skilled in the art for detecting the specific operation process of program, therefore details are not described herein again.
S20: the status information by detecting the storage system that program obtains is obtained, and utilizes state information updating storage system The status file of system.
Specifically, by operation detection program to obtain the status information of storage system, therefore can be using getting State information updating is used to indicate the status file of storage system status situation.In the present embodiment, status file can be set It in client, also can be set in the other storage mediums being connected with client, the present embodiment does not do this specifically yet It limits.
The condition detection method of storage system provided in an embodiment of the present invention, including the use of the client being connected with storage system End runs preset detection program;Then the status information by detecting the storage system that program obtains is obtained, and utilizes state The status file of information update storage system.As it can be seen that this method, which passes through, utilizes the client operation detection being connected with storage system Program avoids the need for carrying out each storage equipment in storage system one by one defeated to obtain the status information of storage system Enter output operation to realize state-detection, to improve the convenience of the state of detection storage system, and improves detection effect Rate.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically, In the present embodiment, detection program includes detecting between client and storage system with the presence or absence of the first thread of tie point, inspection It surveys whether normal second thread of tie point and detects the third thread whether tie point can be read and write.
Specifically, in the present embodiment, program can be will test and be divided into main thread and by-pass journey, wherein main thread is used for The whole progress of detection is controlled, by-pass journey includes that whether there is the first of tie point between client and storage system for detecting Thread, the third thread that whether can be read and write for detecting whether normal second thread of tie point and for detecting tie point. By-pass journey is after getting corresponding status information, by status information feedback to main thread, so that main thread utilizes status information Update storage the status file of system.
In addition, three threads in the present embodiment can be and be run with serial manner, namely successively run first thread, Second thread and third thread, and add up to obtain one group of status information;It is also possible to be run with parallel form, namely same respectively Shi Yunhang first thread, the second thread and third thread, and each corresponding status information is obtained respectively;Then main thread utilizes State information updating status file out.
As it can be seen that being detected by three threads to storage system, to ensure that client and the effective of storage system connect It connects, and makes the status information got more comprehensive.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically, In the present embodiment, further comprise:
When the shape for not receiving first thread and/or the second thread and/or the return of third thread in preset time threshold When state information, exception information is set by the status information of corresponding thread.
Specifically, in the present embodiment, being further arranged in first thread and/or the second thread and/or third thread Timer when each thread brings into operation, while triggering corresponding timer in each thread and starting timing, when the timing of timer When duration reaches preset time threshold, whether judgement currently receives the status information that corresponding thread returns, will if receiving The status information feedback of the thread is to main thread, so that main thread utilizes the state information updating status file;If not receiving It arrives, then using exception information as the status information of the thread, and by the status information feedback to main thread.
It is understood that when timing duration reaches preset time threshold and do not receive the status information of thread return yet, Then indicate that possible storage system cannot respond to the instruction of the thread or there are communication failures between storage system and client. Therefore in the present embodiment, by the status information for judging thread return whether can be received in preset time threshold, with true The particular content for determining status information can be avoided and fall into a long wait thread to return to detection efficiency caused by status information low Situation;Also, status information cannot be returned for a long time, can also be used as a kind of unusual condition.
As preferred embodiment, the present embodiment further comprises:
Detection program is run according to preset period of time.
Specifically, in the present embodiment, by presetting the time cycle, then controlling client according to the preset time Periodic duty detects program.In specific implementation, be also possible to only periodically run each thread, and run each thread when Between the period be also possible to it is different.It is further to note that when running detection program according to preset period of time, if simultaneously When time threshold provided with receiving status information, time threshold should be less than the time cycle.
The condition detection method of storage system provided in this embodiment is got compared to according to operation one-time detection program Storage system status information mode, the present embodiment by according to preset period of time run detection program, so as to It periodically obtains the status information of storage system and updates status file, so that the status information of the storage system got is more Add the one-sidedness avoided comprehensively by the status file of primary state information updating as the state status of the storage system And contingency.
On the basis of the above embodiments, the present embodiment has made further instruction and optimization to technical solution, specifically, In the present embodiment, further comprise:
Upper-layer service is by obtaining status file to obtain the state status of storage system.
Specifically, upper-layer service obtains storage system by obtaining the status information in status file and reading state file The state status of system.It is understood that being obtained from client if status file is stored in client by upper-layer service Take status file;If status file is stored in other positions, by upper-layer service from corresponding position acquisition status file, with Obtain the status information of storage system.
As preferred embodiment, further comprise:
When status information is exception information, prompt information is issued.
Specifically, the status information that can be some thread is the state of the exception information either thread of preset quantity When information is exception information, corresponding prompt information is issued.When the status information that detection program is got is exception information, then Prompt information is issued, so that operator knows that current storage system has exception in time.The present embodiment is to for issuing The suggestion device type of prompt information is without limitation.As preferred embodiment, suggestion device can be buzzer and/or refer to Show lamp.It is understood that buzzer and indicator light can not only reach to simple, intuitive prompt as common suggestion device Effect, and the different working condition that can will be prompted to device is correspondingly arranged as different prompt informations, for indicating not Same abnormal conditions, to achieve the effect that prompt a variety of exception informations.
Detailed retouch has been carried out for a kind of embodiment of the condition detection method of storage system provided by the invention above It states, the present invention also provides a kind of condition checkout gear of storage system corresponding with this method, equipment and computer-readable deposits Storage media, due to device, equipment and computer readable storage medium part embodiment and method part embodiment mutually according to It answers, therefore the embodiment of device, equipment and computer readable storage medium part refers to the description of the embodiment of method part, Here it wouldn't repeat.
Fig. 2 is a kind of structure chart of the condition checkout gear of storage system provided in an embodiment of the present invention, as shown in Fig. 2, A kind of condition checkout gear of storage system includes:
It detects program and runs module 21, for running preset detection program using the client being connected with storage system;
Status file obtains module 22, for obtaining the status information by detecting the storage system that program obtains, and benefit With the status file of state information updating storage system.
The condition checkout gear of storage system provided in an embodiment of the present invention, the state-detection side with above-mentioned storage system The beneficial effect of method.
Fig. 3 is a kind of structure chart of the condition detecting device of storage system provided in an embodiment of the present invention, as shown in figure 3, A kind of condition detecting device of storage system includes:
Memory 31, for storing computer program;
Processor 32, when for executing computer program the step of the realization such as condition detection method of above-mentioned storage system.
The condition detecting device of storage system provided in an embodiment of the present invention, the state-detection side with above-mentioned storage system The beneficial effect of method.
In order to solve the above technical problems, the present invention also provides a kind of computer readable storage medium, computer-readable storage It is stored with computer program on medium, the state-detection side such as above-mentioned storage system is realized when computer program is executed by processor The step of method.
Computer readable storage medium provided in an embodiment of the present invention, the condition detection method with above-mentioned storage system Beneficial effect.
Above to the condition detection method of storage system provided by the present invention, device, equipment and computer-readable storage Medium is described in detail.Principle and implementation of the present invention are described for specific embodiment used herein, The above description of the embodiment is only used to help understand the method for the present invention and its core ideas.It should be pointed out that for this technology For the those of ordinary skill in field, without departing from the principle of the present invention, several improvement can also be carried out to the present invention And modification, these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration ?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.

Claims (10)

1. a kind of condition detection method of storage system characterized by comprising
Preset detection program is run using the client being connected with storage system;
The status information of the storage system obtained by the detection program is obtained, and utilizes the state information updating institute State the status file of storage system.
2. the method according to claim 1, wherein the detection program include detect the client with it is described With the presence or absence of the first thread of tie point, whether normal second thread of the detection tie point and detection institute between storage system State the third thread whether tie point can be read and write.
3. according to the method described in claim 2, it is characterized in that, further comprising:
When not receiving the first thread and/or second thread and/or the third thread in preset time threshold When the status information returned, exception information is set by the status information of corresponding thread.
4. according to the method described in claim 3, it is characterized in that, further comprising:
The detection program is run according to preset period of time.
5. the method according to claim 1, wherein further comprising:
Upper-layer service is by obtaining the status file to obtain the state status of the storage system.
6. the method according to claim 1, wherein further comprising:
When the status information is the exception information, prompt information is issued.
7. method according to any one of claims 1 to 6, which is characterized in that described to utilize the visitor being connected with storage system Family end runs preset detection program and specifically includes:
Preset multiple detection programs are run simultaneously using the client being connected with storage system.
8. a kind of condition checkout gear of storage system characterized by comprising
It detects program and runs module, for running preset detection program using the client being connected with storage system;
Status file obtains module, for obtaining the status information of the storage system obtained by the detection program, and Utilize the status file of storage system described in the state information updating.
9. a kind of condition detecting device of storage system characterized by comprising
Memory, for storing computer program;
Processor realizes the shape of storage system as described in any one of claim 1 to 7 when for executing the computer program The step of state detection 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, the computer program realize the state of storage system as described in any one of claim 1 to 7 when being executed by processor The step of detection method.
CN201811114613.2A 2018-09-25 2018-09-25 A kind of condition detection method of storage system, device, equipment and storage medium Pending CN109344031A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811114613.2A CN109344031A (en) 2018-09-25 2018-09-25 A kind of condition detection method of storage system, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811114613.2A CN109344031A (en) 2018-09-25 2018-09-25 A kind of condition detection method of storage system, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109344031A true CN109344031A (en) 2019-02-15

Family

ID=65306658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811114613.2A Pending CN109344031A (en) 2018-09-25 2018-09-25 A kind of condition detection method of storage system, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109344031A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015744A1 (en) * 2002-07-22 2004-01-22 Finisar Corporation Scalable multithreaded network testing tool
CN101377957A (en) * 2007-08-27 2009-03-04 佛山市顺德区顺达电脑厂有限公司 Device and method for reading and writing memory chip
CN101377748A (en) * 2007-08-29 2009-03-04 英业达股份有限公司 Method for checking reading and writing functions of memory device
CN103631694A (en) * 2013-12-10 2014-03-12 山东中创软件工程股份有限公司 Server monitoring method and device in homemade environment
CN105573874A (en) * 2015-12-10 2016-05-11 湖北三江航天红峰控制有限公司 Multi-thread based real-time data transmission bus test method
CN105912451A (en) * 2016-04-01 2016-08-31 浪潮电子信息产业股份有限公司 Detection method and device of luster file system
CN107688540A (en) * 2017-09-11 2018-02-13 郑州云海信息技术有限公司 A kind of method that long-range Debug is carried out using BMC

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015744A1 (en) * 2002-07-22 2004-01-22 Finisar Corporation Scalable multithreaded network testing tool
CN101377957A (en) * 2007-08-27 2009-03-04 佛山市顺德区顺达电脑厂有限公司 Device and method for reading and writing memory chip
CN101377748A (en) * 2007-08-29 2009-03-04 英业达股份有限公司 Method for checking reading and writing functions of memory device
CN103631694A (en) * 2013-12-10 2014-03-12 山东中创软件工程股份有限公司 Server monitoring method and device in homemade environment
CN105573874A (en) * 2015-12-10 2016-05-11 湖北三江航天红峰控制有限公司 Multi-thread based real-time data transmission bus test method
CN105912451A (en) * 2016-04-01 2016-08-31 浪潮电子信息产业股份有限公司 Detection method and device of luster file system
CN107688540A (en) * 2017-09-11 2018-02-13 郑州云海信息技术有限公司 A kind of method that long-range Debug is carried out using BMC

Similar Documents

Publication Publication Date Title
CN106339222B (en) A kind of service implementing method and device
CN106301522A (en) The Visual method of fault diagnosis of Remote Sensing Ground Station data receiver task and system
CN107592238A (en) Automatic test approach and system, service terminal, the memory of interface
CN109298951A (en) The execution method and terminal device of Celery task
US20230087168A1 (en) Baseline monitoring method and apparatus, readable medium, and electronic device
CN109375151B (en) Monitoring channel scheduling method and device for electric energy meter metering error on-line monitoring technology
CN108628890A (en) A kind of data export method and system
CN104813307A (en) Data processing device, data processing method, and program
CN110147327B (en) Multi-granularity-based web automatic test management method
CN109656733A (en) The method and apparatus of the more OCR recognition engines of intelligent scheduling
CN105490864A (en) Business module monitoring method based on OSGI
CN105337783B (en) Monitor the method and device of communication equipment non-normal consumption flow
CN105808329A (en) Distributed overtime task scheduling method and device
CN107291621A (en) Processing method, processing unit, medium and the electronic equipment of test case
CN108287774A (en) A kind of method for diagnosing faults of server, device, equipment and storage medium
CN105450737B (en) A kind of data processing method, device and system
CN110517629A (en) A kind of panel LED control method, device, equipment and readable storage medium storing program for executing
CN109344031A (en) A kind of condition detection method of storage system, device, equipment and storage medium
CN110164541A (en) Working condition in the Medical Devices period determines method and system
CN109117295A (en) A kind of overtime monitoring method of transaction and device
CN109002381A (en) Process communication monitoring method, electronic device and computer readable storage medium
CN109241482A (en) Determine that altering event issues successful method and device thereof
CN107316494A (en) A kind of abnormal treating method and apparatus in parking lot
CN104462116A (en) Data selecting method and device
CN110457133A (en) A kind of processing method and system of operating-system resources exception

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

RJ01 Rejection of invention patent application after publication