CN112466383A - Test method, test device and test equipment for arbitration reliability of storage system - Google Patents

Test method, test device and test equipment for arbitration reliability of storage system Download PDF

Info

Publication number
CN112466383A
CN112466383A CN202011231219.4A CN202011231219A CN112466383A CN 112466383 A CN112466383 A CN 112466383A CN 202011231219 A CN202011231219 A CN 202011231219A CN 112466383 A CN112466383 A CN 112466383A
Authority
CN
China
Prior art keywords
arbitration
disk
simulated
tested
disks
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.)
Granted
Application number
CN202011231219.4A
Other languages
Chinese (zh)
Other versions
CN112466383B (en
Inventor
孟祥坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011231219.4A priority Critical patent/CN112466383B/en
Publication of CN112466383A publication Critical patent/CN112466383A/en
Application granted granted Critical
Publication of CN112466383B publication Critical patent/CN112466383B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor

Abstract

The invention discloses a test method, a test device, test equipment and a computer readable storage medium for arbitration reliability of a storage system, wherein the position of each arbitration disk in the system to be tested is determined through an arbitration disk list of the system to be tested, part of arbitration disks are randomly selected to execute simulated pulling operation, and then a pre-packaged detection tool is called to judge the state of the system to be tested; if the system to be tested is in a normal state, recovering the connection state of the arbitration disk which is subjected to simulated removal, and then continuing to randomly select part of arbitration disks to execute simulated removal operation until the test end condition is met; and if the system to be tested is in an abnormal state, determining that the system to be tested does not pass the arbitration reliability test. Based on all arbitration disks in the system to be tested, simulation removal operation is repeatedly carried out on part of arbitration disks until the test ending condition is met, the scene of combination faults of different arbitration disks can be quickly simulated, manpower is saved, and the accuracy of the arbitration reliability test result of the storage system is improved.

Description

Test method, test device and test equipment for arbitration reliability of storage system
Technical Field
The present invention relates to the field of storage system testing technologies, and in particular, to a method, a device, and a computer readable storage medium for testing arbitration reliability of a storage system.
Background
With the rapid development of various industries and the increasing demand for storage, more and more customers adopt multi-node storage as core application. Higher requirements are also placed on the stability and reliability of the storage. Whether the storage can keep normal and stable operation becomes the premise of whether the client service can stably operate. In order to prevent data damage caused by the contention of control right to services, programs and resources among a plurality of nodes of a storage system in an abnormal condition, a third party arbitration mechanism is introduced. A commonly used arbitration mechanism is to select a disk that can be accessed by multiple nodes in a storage system as an arbitration disk, and when multiple nodes compete for the control right of the system, the arbitration disk performs arbitration based on an arbitration algorithm to select the node that can obtain the control right. When the arbitration disk fails, such as the arbitration disk fails or is removed, and the storage system lacks third-party arbitration, cluster downtime can be caused when the inter-cluster node communication is abnormal, and user data damage can occur in a serious case. For this reason, a plurality of arbitration disks are generally provided in the storage system to ensure the normal execution of the arbitration operation. How to check the reliability of the arbitration function of the storage system is a key point for performing a reliability test of the storage system.
In the existing scheme, when a tester conducts arbitration reliability test on a storage system, one or more arbitration disks are selected to be removed, and then a test tool is manually executed to check whether the storage system can keep normal operation under the work of the rest arbitration disks. This approach is not only time and labor consuming, but also difficult to cover all failure scenarios where the storage system arbitrates disk failures.
Disclosure of Invention
The invention aims to provide a testing method, a testing device, testing equipment and a computer readable storage medium for the arbitration reliability of a storage system, which are used for improving the arbitration reliability testing efficiency of the storage system, are beneficial to covering more fault scenes of an arbitration disk of the storage system and further improve the accuracy of the arbitration reliability testing result of the storage system.
In order to solve the above technical problem, the present invention provides a method for testing arbitration reliability of a storage system, including:
calling an arbitration disk list of a system to be tested, and determining the position of each arbitration disk in the system to be tested according to the arbitration disk list;
randomly selecting part of the arbitration disk to execute simulated unplugging operation;
calling a pre-packaged detection tool to judge the state of the system to be detected;
if the system to be tested is in a normal state, judging whether a test ending condition is met; if the test ending condition is met, determining that the system to be tested passes the arbitration reliability test; if the test ending condition is not met, returning the arbitration disk which is subjected to simulated unplugging to the step of randomly selecting part of the arbitration disk to execute simulated unplugging operation after the arbitration disk is recovered to the connection state;
and if the system to be tested is in an abnormal state, determining that the system to be tested does not pass the arbitration reliability test.
Optionally, the test end condition specifically covers all test cases generated according to the arbitration disk list;
the test cases are used for executing simulation pull-out operation on part of the arbitration disks, and the combinations of the arbitration disks which are subjected to simulation pull-out in each test case are different.
Optionally, before the randomly selecting part of the arbitration disk performs the simulated unpiling operation, the method further includes:
checking the position of each arbitration disk, and if the arbitration disks meet set standards, entering a step of randomly selecting a part of arbitration disks to execute simulated unplugging operation;
if the arbitration disks do not meet the set standard, after a distribution scheme for enabling the arbitration disks to be evenly distributed in the disk arrays is determined, carrying out arbitration disk adjustment according to the distribution scheme;
the set standard is that each arbitration disk is evenly distributed in each disk array of the system to be tested, and arbitration disks in working states exist in the disk arrays distributed with the arbitration disks.
Optionally, before the calling the pre-packaged detection tool to determine the state of the system under test, the method further includes:
and performing simulated unplugging operation on part of the non-arbitration disks in the system to be tested.
Optionally, the performing a simulated unplugging operation on part of the non-arbitration disks in the system under test specifically includes:
and performing simulated unplugging operation on the non-arbitrated disk of the disk array where the arbitrated disk is positioned and subjected to simulated unplugging.
Optionally, the performing a simulated unpinning operation on the non-arbitrated disk of the disk array where the arbitrated disk is located by the simulated unpinning specifically includes:
and simultaneously executing simulated pulling operation on part of the arbitration disks, and executing simulated pulling operation on the non-arbitration disks of the disk array where the arbitration disks which are subjected to simulated pulling are located.
Optionally, the performing a simulated unpinning operation on the non-arbitrated disk of the disk array where the arbitrated disk is located by the simulated unpinning specifically includes:
and when the preset time is set after the simulated pulling-out operation is executed on part of the arbitration disks, the simulated pulling-out operation is executed on the non-arbitration disk of the disk array where the arbitration disk which is subjected to the simulated pulling-out is located.
In order to solve the above technical problem, the present invention further provides a testing apparatus for arbitration reliability of a storage system, including:
the inquiry unit is used for calling an arbitration disk list of a system to be tested and determining the position of each arbitration disk in the system to be tested according to the arbitration disk list;
the first simulation unplugging unit is used for randomly selecting part of the arbitration disk to execute simulation unplugging operation;
the detection unit is used for calling a pre-packaged detection tool to judge the state of the system to be tested, and if the system to be tested is in a normal state, judging whether a test ending condition is met; if the test ending condition is met, determining that the system to be tested passes the arbitration reliability test; if the test end condition is not met, returning the arbitration disk which is subjected to simulated removal to the first simulated removal unit to execute the step of executing simulated removal operation on the randomly selected part of the arbitration disk after the arbitration disk which is subjected to simulated removal is restored to the connection state; and if the system to be tested is in an abnormal state, determining that the system to be tested does not pass the arbitration reliability test.
In order to solve the above technical problem, the present invention further provides a testing apparatus for arbitration reliability of a storage system, including:
a memory for storing instructions, wherein the instructions comprise the steps of any one of the above methods for testing arbitration reliability of a storage system;
a processor to execute the instructions.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the method for testing arbitration reliability of a storage system according to any one of the above.
The testing method of the arbitration reliability of the storage system provided by the invention comprises the steps of firstly determining the position of each arbitration disk in the system to be tested through an arbitration disk list of the system to be tested, randomly selecting part of arbitration disks to execute simulated pulling operation, and then calling a pre-packaged detection tool to judge the state of the system to be tested; if the system to be tested is in a normal state, judging whether a test ending condition is met; if the test ending condition is met, determining that the system to be tested passes the arbitration reliability test; if the test end condition is not met, returning to the step of randomly selecting part of the arbitration disks to execute the simulated unplugging operation after the simulated unplugged arbitration disks are restored to the connection state; and if the system to be tested is in an abnormal state, determining that the system to be tested does not pass the arbitration reliability test. The testing method for the arbitration reliability of the storage system provided by the invention does not need manual participation in the whole process, and can be used for repeatedly carrying out simulation removal operation on part of arbitration disks based on all arbitration disks in the system to be tested until the test finishing condition is met, so that the combined fault scene of different arbitration disks can be quickly simulated, the manpower is saved, the testing efficiency is improved, and the accuracy of the arbitration reliability testing result of the storage system is also improved.
The invention also provides a testing device, a testing device and a computer readable storage medium for the arbitration reliability of the storage system, which have the beneficial effects and are not repeated herein.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for testing arbitration reliability of a memory system according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a testing apparatus for arbitration reliability of a storage system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a test apparatus for arbitrating reliability of a storage system according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a test method, a test device, test equipment and a computer readable storage medium for the arbitration reliability of a storage system, which are used for improving the arbitration reliability test efficiency of the storage system, are beneficial to covering more fault scenes of an arbitration disk of the storage system and further improve the accuracy of the arbitration reliability test result of the storage system.
Fig. 1 is a flowchart of a method for testing arbitration reliability of a memory system according to an embodiment of the present invention.
As shown in fig. 1, a method for testing arbitration reliability of a storage system according to an embodiment of the present invention includes:
s101: and calling an arbitration disk list of the system to be tested, and determining the position of each arbitration disk in the system to be tested according to the arbitration disk list.
S102: the randomly selected part of the arbitration disk executes the simulated unplugging operation.
S103: calling a pre-packaged detection tool to judge the state of the system to be detected, and if the system to be detected is in a normal state, entering the step S104; if the system under test is in a normal state, step S107 is performed.
S104: judging whether a test ending condition is met; if yes, go to step S105; if not, the process proceeds to step S106.
S105: and determining that the system to be tested passes the arbitration reliability test.
S106: after the arbitration disk to be simulated to be unplugged is restored to the connection state, the process returns to step S102.
S107: and determining that the system to be tested does not pass the arbitration reliability test.
In practical applications, the system under test includes a plurality of arbitration disks, and each arbitration disk may be distributed in the same disk array or may be distributed in different disk arrays. One of the arbitration disks is used as a main arbitration disk, and the other arbitration disks are used as standby arbitration disks. For a memory system with normal arbitration function, as long as one of the arbitration disks is in an operating state, the normal arbitration function should be provided. When the test is carried out, a part of arbitration disks are randomly selected to execute simulation removal operation, the fault scene of the part of arbitration disks is simulated, and then a pre-packaged detection tool is called to detect whether the system to be tested is in a normal state, specifically, whether each disk array is in a normal state is circularly detected. The packaging of the detection tool can refer to the prior art, and is not described herein in detail.
In order to ensure the coverage rate of the storage system arbitration disk fault scene, the test end condition may specifically be to cover all test cases generated according to the arbitration disk list. The test cases are used for executing simulation removal operation on part of the arbitration disks, and the combinations of the simulated removal arbitration disks corresponding to the test cases are different. That is, the test end condition is satisfied only when all arbitration disk combinations except the entire arbitration disks are traversed. The method can fully cover all scenes of the faults of the arbitration disk. On the basis, the system to be tested is determined to pass the arbitration reliability test. If the system to be tested is in an abnormal state at any stage, the system to be tested is determined not to pass the arbitration reliability test, and the corresponding combination of the arbitration disks which are simulated to be pulled out can be output at the moment, so that testers can conveniently position the vulnerability of the arbitration function of the system to be tested.
In order to ensure the normal operation of the system under test, after the connection state of the arbitration disk that is being simulated and removed in step S106 is restored, step S102 is executed at certain time intervals.
The method for testing the arbitration reliability of the storage system comprises the steps of determining the position of each arbitration disk in the system to be tested through an arbitration disk list of the system to be tested, randomly selecting part of arbitration disks to execute simulated pulling operation, and calling a pre-packaged detection tool to judge the state of the system to be tested; if the system to be tested is in a normal state, judging whether a test ending condition is met; if the test ending condition is met, determining that the system to be tested passes the arbitration reliability test; if the test end condition is not met, returning to the step of randomly selecting part of the arbitration disks to execute the simulated unplugging operation after the simulated unplugged arbitration disks are restored to the connection state; and if the system to be tested is in an abnormal state, determining that the system to be tested does not pass the arbitration reliability test. The testing method for the arbitration reliability of the storage system provided by the invention does not need manual participation in the whole process, and can be used for repeatedly carrying out simulation removal operation on part of arbitration disks based on all arbitration disks in the system to be tested until the test finishing condition is met, so that the combined fault scene of different arbitration disks can be quickly simulated, the manpower is saved, the testing efficiency is improved, and the accuracy of the arbitration reliability testing result of the storage system is also improved.
To further improve the coverage rate of the arbitration disk fault scenario, on the basis of the above embodiment, in step S102: before randomly selecting part of arbitration disks to execute simulated unpicking operation, the method for testing arbitration reliability of a storage system provided by the embodiment of the invention further comprises the following steps:
checking the position of each arbitration disk, if the arbitration disks meet the set standard, entering a step of calling a pre-packaged detection tool to judge the state of the system to be tested after randomly selecting part of arbitration disks to execute simulated removal operation;
if the arbitration disks do not meet the set standard, after a distribution scheme for evenly distributing the arbitration disks in the disk arrays is determined, the arbitration disks are adjusted according to the distribution scheme;
the setting standard is that all arbitration disks are evenly distributed in all disk arrays of the system to be tested, and arbitration disks in working states exist in the disk arrays distributed with the arbitration disks.
It should be noted that, the arbitration disks are evenly distributed in the disk arrays of the system to be tested, and the arbitration disks with the same number are not necessarily present in the disk arrays, but when the number of the arbitration disks in the system to be tested is less than the number of the disk arrays, the number of the arbitration disks in each disk array is ensured not to exceed one; when the number of the arbitration disks is M (M is a positive integer) times of the number of the disk arrays, each disk array needs to be ensured to have M arbitration disks; when the number of the arbitration disks is between M times and M +1 times of the number of the disk arrays, more than M arbitration disks can be arranged in one disk array on the basis of ensuring that each disk array has M arbitration disks.
When the distribution of the arbitration disks in the system to be tested does not meet the principle, a distribution scheme meeting a set standard is generated, for example, the second disk in each disk array is set as the arbitration disk, and then the activation and deactivation operation of the arbitration disks is carried out corresponding to the distribution scheme, so that the system to be tested achieves the effect that the arbitration disks are evenly distributed in each disk array.
To further improve the coverage rate of the arbitration disk failure scenario, on the basis of the above embodiment, in step S103: before calling a pre-packaged detection tool to judge the state of the system to be tested, the method for testing the arbitration reliability of the storage system provided by the embodiment of the invention further comprises the following steps:
and performing simulated unplugging operation on part of the non-arbitration disks in the system to be tested.
In a specific implementation, to simplify the test, a part of the non-arbitration disks (also called member disks) may be randomly selected to perform the simulated unpinning operation, for example, one or more random numbers may be generated, each random number and the total number of the disks of the system under test are respectively subjected to the remainder operation to obtain a plurality of slot numbers, and the corresponding non-arbitration disk is subjected to the simulated unpinning operation. In order to ensure the test coverage, on the basis of the test cases of the simulated unplugging part arbitration disk in the above embodiment, test cases covering all combinations of the simulated unplugging part non-arbitration disk may be further designed.
In the storage system, when the arbitration disk fails, another non-arbitration disk of the disk array where the failure arbitration disk is located can be selected to take over the work of the failure arbitration disk under the control of other non-failure arbitration disks. Therefore, the simulation unplugging operation performed on part of the non-arbitration disks in the system under test may specifically be:
and performing simulated unplugging operation on the non-arbitrated disk of the disk array where the arbitrated disk subjected to simulated unplugging is located.
In a specific implementation, the simulated unplugging operation is performed on the non-arbitration disk of the disk array where the arbitration disk which is simulated to be unplugged is located, and specifically, the simulated unplugging operation may be performed on one or more non-arbitration disks in the disk array where the arbitration disk which is simulated to be unplugged is located.
The method for performing simulated unpicking operation on the non-arbitration disk of the disk array where the arbitration disk subjected to simulated unpicking is located specifically includes: and simultaneously executing simulated pulling operation on part of the arbitration disks, and executing simulated pulling operation on the non-arbitration disk of the disk array where the arbitration disk which is subjected to simulated pulling is located. By simultaneously unplugging the arbitration disk and the non-arbitration disk in the same disk array, the scene of simultaneous failure of the arbitration disk and the non-arbitration disk is simulated.
The simulation unplugging operation is executed on the non-arbitration disk of the disk array where the arbitration disk which is simulated to be unplugged is located, and the simulation unplugging operation may also be: and when the preset time interval is set after the simulated pulling operation is executed on part of the arbitration disks, the simulated pulling operation is executed on the non-arbitration disk of the disk array where the arbitration disk which is subjected to the simulated pulling operation is located. After the arbitration disk is removed, if the arbitration function of the system to be tested is normal, the arbitration work of the removed arbitration disk is transferred to a non-arbitration disk of the same disk array. Therefore, the arbitration disk is pulled out first, then the non-arbitration disk is pulled out, and the arbitration disk is probably pulled out again. Or after the arbitration disk is pulled out, checking whether a new arbitration disk is elected in the same disk array, and pulling out the newly generated arbitration disk after a preset time interval. Furthermore, the other non-arbitration disks can be pulled out after the preset time interval. In this way, the failover function of the arbitration function of the system under test can be verified.
The preset time can be preset time set by a received tester.
In practical applications, the listed test cases can be superimposed and combined on the basis of the above embodiments to form a new embodiment, and all the embodiments belong to the protection scope of the present invention.
On the basis of the above detailed description of the embodiments corresponding to the testing method for the arbitration reliability of the storage system, the invention also discloses a testing device, a testing device and a computer readable storage medium for the arbitration reliability of the storage system corresponding to the above method.
Fig. 2 is a schematic structural diagram of a testing apparatus for arbitration reliability of a storage system according to an embodiment of the present invention.
As shown in fig. 2, the testing apparatus for arbitration reliability of a storage system according to an embodiment of the present invention includes:
the query unit 201 is configured to retrieve an arbitration disk list of the system to be tested, and determine the position of each arbitration disk in the system to be tested according to the arbitration disk list;
the first simulation unplugging unit 202 is used for randomly selecting a part of arbitration disks to execute simulation unplugging operation, and calling a pre-packaged detection tool to judge the state of the system to be tested;
the detection unit 203 is configured to call a pre-packaged detection tool to determine a state of the system to be tested, and if the system to be tested is in a normal state, determine whether a test end condition is met; if the test ending condition is met, determining that the system to be tested passes the arbitration reliability test; if the test end condition is not met, returning the arbitration disk which is subjected to simulated pulling back to the first simulated pulling unit to execute the step of executing the simulated pulling operation by the randomly selected part of the arbitration disk after the connection state of the arbitration disk is recovered; and if the system to be tested is in an abnormal state, determining that the system to be tested does not pass the arbitration reliability test.
Further, the testing apparatus for arbitration reliability of a storage system provided in the embodiment of the present invention may further include:
a regulating unit for checking the position of each arbitration disk, and entering if the arbitration disk meets the set standard
The first analog unplugging unit 202 executes a step of randomly selecting a part of the arbitration disk to execute an analog unplugging operation; if the arbitration disks do not meet the set standard, after a distribution scheme for evenly distributing the arbitration disks in the disk arrays is determined, the arbitration disks are adjusted according to the distribution scheme;
the setting standard is that all arbitration disks are evenly distributed in all disk arrays of the system to be tested, and arbitration disks in working states exist in the disk arrays distributed with the arbitration disks.
Further, the testing apparatus for arbitration reliability of a storage system provided in the embodiment of the present invention may further include:
and the second simulated unplugging unit is used for executing simulated unplugging operation on part of the non-arbitration disk in the system to be tested before the detection unit 203 calls the pre-packaged detection tool to judge the state of the system to be tested.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
Fig. 3 is a schematic structural diagram of a test apparatus for arbitrating reliability of a storage system according to an embodiment of the present invention.
As shown in fig. 3, the testing apparatus for arbitration reliability of a storage system according to an embodiment of the present invention includes:
a memory 310 for storing instructions, the instructions comprising the steps of the method for testing arbitration reliability of a storage system according to any of the above embodiments;
a processor 320 for executing the instructions.
Processor 320 may include one or more processing cores, such as a 3-core processor, an 8-core processor, and so forth. The processor 320 may be implemented in at least one hardware form of a digital Signal processing (dsp), a Field-Programmable Gate Array (FPGA), a Programmable Logic Array (pla), or a digital Signal processing (dsp). The processor 320 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a central Processing unit (cpu); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 320 may be integrated with an image processor GPU (graphics Processing unit), which is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, processor 320 may also include an Artificial Intelligence (AI) (artificial intelligence) processor for processing computational operations related to machine learning.
Memory 310 may include one or more computer-readable storage media, which may be non-transitory. Memory 310 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 310 is at least used for storing a computer program 311, wherein after the computer program 311 is loaded and executed by the processor 320, the relevant steps in the testing method for arbitration reliability of a storage system disclosed in any of the foregoing embodiments can be implemented. In addition, the resources stored by the memory 310 may also include an operating system 312, data 313, and the like, and the storage may be transient storage or persistent storage. The operating system 312 may be Windows, among others. Data 313 may include, but is not limited to, data involved in the above-described methods.
In some embodiments, the test equipment for storage system arbitration reliability may further include a display 330, a power supply 340, a communication interface 350, an input output interface 360, a sensor 370, and a communication bus 380.
Those skilled in the art will appreciate that the architecture shown in FIG. 3 does not constitute a limitation of the test equipment for arbitrating reliability for storage systems, and may include more or fewer components than those shown.
The testing device for the arbitration reliability of the storage system provided by the embodiment of the application comprises the storage and the processor, and the processor can realize the testing method for the arbitration reliability of the storage system when executing the program stored in the storage, and the effect is the same as that of the testing method.
It should be noted that the above-described embodiments of the apparatus and device are merely illustrative, for example, the division of modules is only one division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form. Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and performs all or part of the steps of the methods according to the embodiments of the present invention, or all or part of the technical solution.
To this end, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the test method, such as the storage system arbitration reliability.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory ROM (Read-Only Memory), a random Access Memory ram (random Access Memory), a magnetic disk, or an optical disk.
The computer program contained in the computer-readable storage medium provided in this embodiment can implement the steps of the method for testing arbitration reliability of a storage system as described above when being executed by a processor, and the effect is the same as above.
The above description details the testing method, testing apparatus, testing device and computer readable storage medium for arbitration reliability of a storage system provided by the present invention. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device, the apparatus and the computer-readable storage medium disclosed in the embodiments correspond to the method disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for testing arbitration reliability of a storage system is characterized by comprising the following steps:
calling an arbitration disk list of a system to be tested, and determining the position of each arbitration disk in the system to be tested according to the arbitration disk list;
randomly selecting part of the arbitration disk to execute simulated unplugging operation;
calling a pre-packaged detection tool to judge the state of the system to be detected;
if the system to be tested is in a normal state, judging whether a test ending condition is met; if the test ending condition is met, determining that the system to be tested passes the arbitration reliability test; if the test ending condition is not met, returning the arbitration disk which is subjected to simulated unplugging to the step of randomly selecting part of the arbitration disk to execute simulated unplugging operation after the arbitration disk is recovered to the connection state;
and if the system to be tested is in an abnormal state, determining that the system to be tested does not pass the arbitration reliability test.
2. The testing method according to claim 1, wherein the test end condition is specifically to cover all test cases generated according to the arbitration disk list;
the test cases are used for executing simulation pull-out operation on part of the arbitration disks, and the combinations of the arbitration disks which are subjected to simulation pull-out in each test case are different.
3. The method according to claim 1, before said randomly selecting a portion of said arbitration disk to perform a simulated unpin operation, further comprising:
checking the position of each arbitration disk, and if the arbitration disks meet set standards, entering a step of randomly selecting a part of arbitration disks to execute simulated unplugging operation;
if the arbitration disks do not meet the set standard, after a distribution scheme for enabling the arbitration disks to be evenly distributed in the disk arrays is determined, carrying out arbitration disk adjustment according to the distribution scheme;
the set standard is that each arbitration disk is evenly distributed in each disk array of the system to be tested, and arbitration disks in working states exist in the disk arrays distributed with the arbitration disks.
4. The method according to claim 1, further comprising, before the invoking the pre-packaged inspection tool to determine the state of the system under test:
and performing simulated unplugging operation on part of the non-arbitration disks in the system to be tested.
5. The method according to claim 4, wherein the performing the simulated unplugging operation on the part of the non-arbitrated disk in the system under test specifically comprises:
and performing simulated unplugging operation on the non-arbitrated disk of the disk array where the arbitrated disk is positioned and subjected to simulated unplugging.
6. The testing method according to claim 5, wherein the performing of the simulated unplugging operation on the non-arbitrated disk of the disk array where the arbitrated disk is located by the simulated unplugging specifically comprises:
and simultaneously executing simulated pulling operation on part of the arbitration disks, and executing simulated pulling operation on the non-arbitration disks of the disk array where the arbitration disks which are subjected to simulated pulling are located.
7. The testing method according to claim 5, wherein the performing of the simulated unplugging operation on the non-arbitrated disk of the disk array where the arbitrated disk is located by the simulated unplugging specifically comprises:
and when the preset time is set after the simulated pulling-out operation is executed on part of the arbitration disks, the simulated pulling-out operation is executed on the non-arbitration disk of the disk array where the arbitration disk which is subjected to the simulated pulling-out is located.
8. A testing apparatus for arbitration reliability of a storage system, comprising:
the inquiry unit is used for calling an arbitration disk list of a system to be tested and determining the position of each arbitration disk in the system to be tested according to the arbitration disk list;
the first simulation unplugging unit is used for randomly selecting part of the arbitration disk to execute simulation unplugging operation;
the detection unit is used for calling a pre-packaged detection tool to judge the state of the system to be tested, and if the system to be tested is in a normal state, judging whether a test ending condition is met; if the test ending condition is met, determining that the system to be tested passes the arbitration reliability test; if the test end condition is not met, returning the arbitration disk which is subjected to simulated removal to the first simulated removal unit to execute the step of executing simulated removal operation on the randomly selected part of the arbitration disk after the arbitration disk which is subjected to simulated removal is restored to the connection state; and if the system to be tested is in an abnormal state, determining that the system to be tested does not pass the arbitration reliability test.
9. A test apparatus for arbitration reliability of a storage system, comprising:
a memory for storing instructions, said instructions comprising the steps of the method for testing arbitration reliability of a storage system according to any of claims 1 to 7;
a processor to execute the instructions.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for testing the arbitration reliability of a storage system according to any one of claims 1 to 7.
CN202011231219.4A 2020-11-06 2020-11-06 Test method, test device and test equipment for arbitration reliability of storage system Active CN112466383B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011231219.4A CN112466383B (en) 2020-11-06 2020-11-06 Test method, test device and test equipment for arbitration reliability of storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011231219.4A CN112466383B (en) 2020-11-06 2020-11-06 Test method, test device and test equipment for arbitration reliability of storage system

Publications (2)

Publication Number Publication Date
CN112466383A true CN112466383A (en) 2021-03-09
CN112466383B CN112466383B (en) 2023-01-10

Family

ID=74825886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011231219.4A Active CN112466383B (en) 2020-11-06 2020-11-06 Test method, test device and test equipment for arbitration reliability of storage system

Country Status (1)

Country Link
CN (1) CN112466383B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480023A (en) * 2017-08-23 2017-12-15 郑州云海信息技术有限公司 A kind of method and system of disk failure injection
CN111176918A (en) * 2019-12-28 2020-05-19 苏州浪潮智能科技有限公司 Server testing method, system, equipment and computer readable storage medium
CN111274077A (en) * 2020-02-16 2020-06-12 苏州浪潮智能科技有限公司 Disk array reliability testing method, system, terminal and storage medium
CN111309535A (en) * 2020-02-14 2020-06-19 苏州浪潮智能科技有限公司 Method and system for testing hard disk in server, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480023A (en) * 2017-08-23 2017-12-15 郑州云海信息技术有限公司 A kind of method and system of disk failure injection
CN111176918A (en) * 2019-12-28 2020-05-19 苏州浪潮智能科技有限公司 Server testing method, system, equipment and computer readable storage medium
CN111309535A (en) * 2020-02-14 2020-06-19 苏州浪潮智能科技有限公司 Method and system for testing hard disk in server, electronic equipment and storage medium
CN111274077A (en) * 2020-02-16 2020-06-12 苏州浪潮智能科技有限公司 Disk array reliability testing method, system, terminal and storage medium

Also Published As

Publication number Publication date
CN112466383B (en) 2023-01-10

Similar Documents

Publication Publication Date Title
JP2017201470A (en) Setting support program, setting support method, and setting support device
CN114064208A (en) Method and device for detecting application service state, electronic equipment and storage medium
CN113625945A (en) Distributed storage slow disk processing method, system, terminal and storage medium
CN106155826B (en) For the method and system of mistake to be detected and handled in bus structures
CN107621963B (en) Software deployment method, software deployment system and electronic equipment
CN111176918A (en) Server testing method, system, equipment and computer readable storage medium
CN113434396A (en) Interface test method, device, equipment, storage medium and program product
CN111147331A (en) Server network card interaction test method, system, terminal and storage medium
CN112466383B (en) Test method, test device and test equipment for arbitration reliability of storage system
CN111159029B (en) Automated testing method, apparatus, electronic device and computer readable storage medium
CN112732556A (en) Automatic testing method, device, equipment and storage medium for distributed system
CN109857615B (en) Method and device for detecting memory leakage
CN110209548B (en) Service control method, system, electronic device and computer readable storage medium
CN115202670A (en) Application batch release method and device, electronic equipment and storage medium
CN110399258B (en) Stability testing method, system and device for server system
US10255172B1 (en) Controlled testing using code error injection
CN114003497A (en) Method, device and equipment for testing service system and storage medium
CN110703988B (en) Storage pool creating method, system, terminal and storage medium for distributed storage
CN113360389A (en) Performance test method, device, equipment and storage medium
CN108845932B (en) Unit testing method and device of network library, storage medium and terminal
CN112799896A (en) Distributed storage hard disk fault processing method and device
CN112446714A (en) Server upgrading method, device and equipment for express after-sale work order processing system
CN112699648A (en) Data processing method and device
CN109885402B (en) Method for testing function output data overflow, terminal equipment and storage medium
CN116483641B (en) Method, system and medium for abnormal power failure detection of hard disk

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
GR01 Patent grant
GR01 Patent grant