Disk state conversion test method, device, equipment, medium and program product

By obtaining the configuration information of the disk array and selecting the shortest conversion path set, the disk array status conversion test is automatically performed, which solves the problems of cumbersome testing process and low accuracy, and achieves efficient and comprehensive disk array status conversion testing.

CN118394583BActive Publication Date: 2024-09-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410843248.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-27
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

Disk array state transition testing has problems such as cumbersome testing process, long time consumption, and low accuracy. It is difficult for existing technology to fully cover all testing scenarios.

Method used

By obtaining the configuration information of the disk array, selecting the shortest conversion path set, and automatically conducting state conversion tests to ensure that all test paths are covered and improve test accuracy.

Benefits of technology

It simplifies the disk array state transition test process, significantly reduces test time, improves test accuracy, and can automatically test all state transition paths of the disk array.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118394583B
    Figure CN118394583B
Patent Text Reader

Abstract

The present invention relates to the field of disk array technology, and discloses a test method, device, equipment, medium and program product for disk state conversion. The present invention obtains configuration information of a target disk array in response to a test signal of state conversion; the configuration information is used to characterize the state conversion requirement of the target disk array from a first state to a second state; based on the configuration information, a path set is selected to obtain a path to be tested; the path set is a set of shortest conversion paths; based on the path to be tested, a state conversion test is performed on the target disk array to obtain a test result of the target disk array. In this way, the state conversion of the disk array can be automatically tested by only configuring the state conversion requirement using the configuration information, which simplifies the state conversion test of the disk array; at the same time, by selecting the path set to obtain the path to be tested, it can ensure that all test paths are covered, thereby improving the accuracy of the test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of disk array technology, and in particular to a disk state conversion testing method, device, equipment, medium and program product. Background Art

[0002] Redundant Arrays of Independent Disks (RAID) exist in multiple states, and there are many conversion paths between the states. Therefore, testers cannot fully grasp the conversion paths between the states, and the state conversion process takes a long time. This results in manual testing of the state conversion of disk arrays not only being very time-consuming, but also the testing process being cumbersome. At the same time, manual testing cannot guarantee coverage of all test scenarios, resulting in low test accuracy. Summary of the invention

[0003] In view of this, the present invention provides a disk state conversion test method, device, equipment, medium and program product to solve the problems of cumbersome test process, long time consumption and low accuracy in disk array state conversion test.

[0004] In a first aspect, the present invention provides a method for testing disk state conversion, the method comprising:

[0005] In response to the state conversion test signal, obtaining configuration information of the target disk array; the configuration information is used to characterize the state conversion requirement of the target disk array from the first state to the second state;

[0006] Based on the configuration information, path selection is performed on the path set to obtain a path to be tested; the path set is a set of the shortest conversion paths;

[0007] Based on the path to be tested, a state conversion test is performed on the target disk array to obtain a test result of the target disk array.

[0008] In this way, the state conversion of the disk array can be automatically tested by only configuring the state conversion requirements using configuration information, which simplifies the state conversion test of the disk array; at the same time, by selecting the path set to obtain the path to be tested, it can ensure that all test paths are covered, thereby improving the accuracy of the test.

[0009] In an optional implementation, the path set includes multiple shortest conversion paths; each shortest conversion path includes a start node and an end node, and the start node and the end node correspond to a conversion state respectively;

[0010] Based on the configuration information, the path set is selected to obtain the path to be tested, including:

[0011] If the configuration information includes configurations of the first state and the second state, the first state is used as the conversion state corresponding to the target start node, and the second state is used as the conversion state corresponding to the target end node;

[0012] The shortest conversion path in the path set is combined with nodes to obtain a conversion path from the target start node to the target end node, and the conversion path is determined as the path to be tested.

[0013] In an optional implementation, the configuration information further includes configuration of an intermediate state, where the intermediate state is a transformation state experienced during the process of transformation from the first state to the second state;

[0014] If there are multiple conversion paths from the target start node to the target end node, then based on the configuration information, the path set is pathed to obtain the path to be tested, which also includes:

[0015] The first state is used as the transformation state corresponding to the target start node, the intermediate state is used as the transformation state corresponding to the target intermediate node, and the second state is used as the transformation state corresponding to the target end node;

[0016] The shortest conversion path is node-combined to obtain a conversion path from the target start node through the target intermediate node to the target end node, and the conversion path is determined as the path to be tested.

[0017] In this way, when there are multiple conversion paths from the target start node to the target end node, the multiple conversion paths are screened by adding target intermediate nodes to obtain the path to be tested that meets the user's needs.

[0018] In an optional implementation, based on the configuration information, path selection is performed on the path set to obtain the path to be tested, further comprising:

[0019] If the configuration information does not include configurations for the first state and the second state, all shortest conversion paths in the path set are used as paths to be tested.

[0020] In this way, when the configuration information does not include configurations for the first state and the second state, all shortest conversion paths in the path set are tested.

[0021] In an optional implementation, based on the configuration information, path selection is performed on the path set to obtain the path to be tested, further comprising:

[0022] If there is no conversion path from the target start node to the target end node, the configuration information is determined to be in an unconvertible state and a prompt message is issued.

[0023] In an optional implementation, the path to be tested includes at least one sub-path, each sub-path corresponds to a shortest conversion path; each sub-path includes a start node and an end node, and the start node and the end node correspond to a conversion state respectively;

[0024] Based on the path to be tested, the state conversion test is performed on the target disk array to obtain the test results of the target disk array, including:

[0025] Based on the order of the sub-paths in the path to be tested, the trigger events corresponding to the sub-paths are determined and executed in sequence, and the state of the target disk array is converted into the conversion state corresponding to the end node of the sub-path; the trigger event is used to trigger the target disk array to convert from the conversion state corresponding to the start node to the conversion state corresponding to the end node;

[0026] The test result is determined based on the state of the target disk array after the state conversion.

[0027] In this way, the trigger events corresponding to the sub-paths in the path to be tested are executed in sequence, and the state of the target disk array is converted into the conversion state corresponding to the end node of the sub-path, so that the state of the target disk array is gradually converted according to the order of the sub-paths to finally convert the state of the target disk array into the second state, thereby determining the test result according to the final state of the target disk array.

[0028] In an optional implementation, based on the path to be tested, a state conversion test is performed on the target disk array to obtain a test result of the target disk array, and further includes:

[0029] If the state of the target disk array has not been converted to the conversion state corresponding to the end node of the sub-path, the execution of the trigger event corresponding to the sub-path is stopped.

[0030] In an optional implementation, each subpath corresponds to a trigger event set, and the trigger event set includes multiple trigger events;

[0031] Determine and execute the trigger event corresponding to the sub-path, and convert the state of the target disk array into the conversion state corresponding to the end node of the sub-path, including:

[0032] Obtaining a trigger event set corresponding to the sub-path, and determining a trigger event corresponding to the sub-path from the trigger event set corresponding to the sub-path;

[0033] The trigger event corresponding to the sub-path is executed to convert the state of the target disk array into the conversion state corresponding to the end node of the sub-path.

[0034] In this way, by selecting a trigger event from the trigger event set corresponding to the sub-path and executing it, the state of the target disk array is triggered, and the state of the target disk array is converted into the conversion state corresponding to the end node of the sub-path.

[0035] In an optional implementation, the subpath includes a starting path and an intermediate path; the starting path is a subpath in which the conversion state corresponding to the starting node is the first state, and the intermediate path is a subpath in which the conversion state corresponding to the starting node is not the first state;

[0036] From the trigger event set corresponding to the sub-path, determine the trigger event corresponding to the sub-path, including:

[0037] If the sub-path is the starting path, then based on the configuration information, a trigger event corresponding to the sub-path is determined from a trigger event set corresponding to the sub-path; in the trigger event set, multiple trigger events correspond to different disk array configurations respectively; the configuration information also includes a configuration of the target disk array;

[0038] If the sub-path is an intermediate path, the trigger event corresponding to the sub-path is determined from the trigger event set corresponding to the sub-path based on the configuration information and historical conversion information; the historical conversion information is used to characterize the configuration changes of the target disk array after executing the trigger event corresponding to the previous sub-path.

[0039] Thus, trigger events corresponding to different disk array configurations are set in the trigger event set. When the state conversion corresponding to the trigger subpath is triggered, a suitable trigger event can be selected according to the specific configuration of the target disk array, thereby completing the state conversion of the target disk array.

[0040] In an optional implementation, determining the test result based on the state of the target disk array after the state conversion includes:

[0041] If the state of the target disk array is converted to the second state within the preset time, the test result is determined to be a test success;

[0042] If the state of the target disk array is not converted to the second state within the preset time, the test result is determined to be a test failure.

[0043] In this way, whether the state conversion test of the target disk array is successfully completed is determined according to the final state of the target disk array, thereby obtaining a test result.

[0044] In an optional implementation, before performing a state conversion test on a target disk array based on the path to be tested and obtaining a test result of the target disk array, the method further includes:

[0045] Get the current status of the target disk array;

[0046] If the current state is inconsistent with the first state, the current state is converted into the first state.

[0047] In this way, when the current state of the target disk array is inconsistent with the first state, the current state is first converted to the first state, so that the target disk array can start the state conversion test.

[0048] In a second aspect, the present invention provides a test device for disk state conversion, the device comprising:

[0049] A configuration information acquisition module, used to acquire configuration information of a target disk array in response to a state conversion test signal; the configuration information is used to characterize a state conversion requirement of the target disk array from a first state to a second state;

[0050] A path determination module to be tested is used to select a path from a path set based on configuration information to obtain a path to be tested; the path set is a set of shortest conversion paths;

[0051] The state conversion module is used to perform a state conversion test on the target disk array based on the path to be tested, and obtain a test result of the target disk array.

[0052] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the test method for disk state transformation of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0053] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the disk state transformation test method of the first aspect or any corresponding embodiment thereof.

[0054] In a fifth aspect, the present invention provides a computer program product, including computer instructions, which are used to enable a computer to execute the disk state conversion test method of the above-mentioned first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0056] Figure 1is a flow chart of a method for testing disk status conversion according to an embodiment of the present invention;

[0057] Figure 2 is a schematic diagram of the shortest conversion path in the test method for disk state conversion according to an embodiment of the present invention;

[0058] Figure 3 is a flow chart of another disk state conversion testing method according to an embodiment of the present invention;

[0059] Figure 4 is a flow chart of another method for testing disk status conversion according to an embodiment of the present invention;

[0060] Figure 5 is a flowchart of a specific embodiment of a method for testing disk state conversion according to an embodiment of the present invention;

[0061] Figure 6 is a structural block diagram of a test device for disk state conversion according to an embodiment of the present invention;

[0062] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0064] Redundant Arrays of Independent Disks (RAID) is a disk array composed of many independent disks, which are combined into a disk group with huge capacity. The performance of the entire disk system is improved by using the additive effect of individual disks providing data. Using disk arrays, data is divided into many segments and stored on each hard disk. When a member disk fails, data can still be read and written. When there is a hot spare disk, data reconstruction can be performed and the data can be rewritten to a new hard disk after calculation.

[0065] Disk arrays exist in multiple states, and there are many conversion paths between various states. Therefore, testers cannot fully grasp the conversion paths between various states, and the state conversion process takes a long time. This results in manual testing of disk array state conversion not only being very time-consuming, but also cumbersome. At the same time, manual testing cannot guarantee coverage of all test scenarios, resulting in low test accuracy. Even automated disk array state conversion testing can often only test a single small function, can only cover a single path, and fix the state conversion of an action. It has poor customizability, resulting in a lot of work to test all functions and paths.

[0066] Based on this, an embodiment of the present invention provides a method for testing disk state conversion, including: in response to a state conversion test signal, obtaining configuration information of a target disk array; the configuration information is used to characterize the state conversion requirement of the target disk array from a first state to a second state; based on the configuration information, path selection is performed on a path set to obtain a path to be tested; the path set is a set of shortest conversion paths; based on the path to be tested, a state conversion test is performed on the target disk array to obtain a test result of the target disk array. In this way, the state conversion of the disk array can be automatically tested by only configuring the state conversion requirement using the configuration information, which simplifies the state conversion test of the disk array; at the same time, by selecting the path set to obtain the path to be tested, it can ensure that all test paths are covered, thereby improving the accuracy of the test.

[0067] According to an embodiment of the present invention, an embodiment of a test method for disk state conversion is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0068] In this embodiment, a disk state conversion test method is provided, which can be used for the above-mentioned disk array. Figure 1 is a flow chart of a method for testing disk status conversion according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0069] Step S101 , in response to a test signal of state conversion, obtaining configuration information of a target disk array.

[0070] In the embodiment of the present invention, the configuration information is used to characterize the state conversion requirement of the target disk array from the first state to the second state. The target disk array refers to the disk array that needs to be tested for state conversion, which can be one or more disk arrays in the existing disk array list; in the configuration information, the first state is the initial state of the target disk array during state conversion, and the second state is the end state of the target disk array during state conversion.

[0071] In an optional implementation, before the state conversion test is performed on the target disk array, that is, before the configuration information of the target disk array is configured and obtained, the test environment of the disk array is also configured. Specifically, the basic information of all clusters and nodes in the current test environment, including user name, password, login port, IP, etc., is configured into a configuration file that can be read by the automation platform or automation script. When executing the automation case, the basic information of the clusters and nodes in the current test environment is read, so that the automation script can remotely log in to the cluster or node.

[0072] Step S102: Based on the configuration information, path selection is performed on the path set to obtain a path to be tested.

[0073] In the embodiment of the present invention, the path set is a set of shortest conversion paths, which may include multiple shortest conversion paths. The shortest conversion path refers to a path corresponding to a direct conversion from one conversion state to another conversion state. The path passed from one conversion state of the disk array to another conversion state must be a combination of the shortest conversion paths. For example, the path passed from the initialization state to the offline state is a combination of the two shortest conversion paths of initing->online and online->offline.

[0074] In the embodiment of the present invention, the conversion status of the disk array may include four states: online, initializing, degraded, offline, and syncing. Figure 2 FIG. 1 is a schematic diagram of the shortest conversion path in the test method for disk state conversion according to an embodiment of the present invention. Based on the above four states, all the shortest conversion paths can be obtained as follows: Figure 2 As shown, there are 15 shortest conversion paths from L1 to L15.

[0075] In an optional implementation, the shortest conversion path included in the path set is Figure 2Part or all of the 15 shortest conversion paths L1 to L15 shown. According to the actual test, the tester selects some of the shortest conversion paths that need to be tested from the 15 shortest conversion paths L1 to L15 and adds them to the path set. Correspondingly, the tester can also delete or modify a shortest conversion path from the path set, so that the shortest conversion paths included in the path set are all the shortest conversion paths that the tester needs to test.

[0076] Step S103: Based on the path to be tested, a state conversion test is performed on the target disk array to obtain a test result of the target disk array.

[0077] In the embodiment of the present invention, the state transformation of the target disk array is performed according to the state transformation process corresponding to the path to be tested, and the state of the target disk array is transformed from the first state to the second state, thereby completing the state transformation test of the target disk array and obtaining the test result of the target disk array.

[0078] In an optional implementation, since the current state of the target disk array is not necessarily the first state, before performing a state conversion test on the target disk array, it is necessary to first obtain the current state of the target disk array; if the current state is inconsistent with the first state, the current state is converted to the first state; thus, when the current state of the target disk array is inconsistent with the first state, the current state is first converted to the first state, so that the target disk array can start the state conversion test.

[0079] The disk state conversion test method provided in the embodiment of the present invention can automatically test the state conversion of the disk array only by configuring the state conversion requirements using configuration information, thereby simplifying the state conversion test of the disk array; at the same time, by performing path selection on the path set to obtain the path to be tested, it can ensure that all test paths are covered, thereby improving the accuracy of the test.

[0080] In this embodiment, a disk state conversion test method is provided, which can be used for the above-mentioned disk array. Figure 3 FIG. 4 is a flow chart of another test method for disk status conversion according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:

[0081] Step S301, in response to the test signal of the state conversion, obtain the configuration information of the target disk array. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0082] Step S302: Based on the configuration information, path selection is performed on the path set to obtain a path to be tested.

[0083] In the embodiment of the present invention, the path set includes multiple shortest conversion paths. Each shortest conversion path includes a starting node and an ending node, and the starting node and the ending node correspond to a conversion state respectively. Figure 2 Taking the L1 path as an example, the conversion state corresponding to its starting node is initialization, and the conversion state corresponding to its ending node is online. Based on this, the above step S302 may include the following steps:

[0084] Step S3021: If the configuration information includes configurations of the first state and the second state, the first state is used as the transformation state corresponding to the target start node, and the second state is used as the transformation state corresponding to the target end node.

[0085] In an embodiment of the present invention, if the configuration information includes configurations for the first state and the second state, it means that the tester has specified in the configuration information which transformation state the target disk array is to transform from, and therefore, at this time, the first state can be used as the transformation state corresponding to the target starting node, and the second state can be used as the transformation state corresponding to the target ending node, wherein the target starting node is the starting node corresponding to the path to be tested, and the target ending node is the ending node corresponding to the path to be tested.

[0086] Step S3022, combining nodes of the shortest conversion path in the path set to obtain a conversion path from the target start node to the target end node, and determining the conversion path as the path to be tested.

[0087] In an embodiment of the present invention, with the first state as the start and the second state as the end, the shortest conversion paths in the path set are node-combined, and the two shortest conversion paths with the same conversion state corresponding to the end node and the same conversion state corresponding to the start node are node-combined to obtain a path from the first state to the second state, that is, a conversion path from the target start node to the target end node, and the conversion path is determined as the path to be tested.

[0088] In an optional implementation, the configuration information also includes configuration of the intermediate state, wherein the intermediate state is a transformation state experienced during the process of transforming from the first state to the second state. If there are multiple transformation paths from the target start node to the target end node, the multiple transformation paths can be screened based on the intermediate state, and the transformation paths passing through the intermediate state can be screened out and used as the path to be tested. Specifically, the above step S302, based on the configuration information, performs path filtering on the path set to obtain the path to be tested, and also includes:

[0089] Step a1, taking the first state as the transformation state corresponding to the target start node, taking the intermediate state as the transformation state corresponding to the target intermediate node, and taking the second state as the transformation state corresponding to the target end node.

[0090] In step a1, the target intermediate node is a node passed through in the conversion path from the target start node to the target end node. By restricting the nodes passed through in the conversion path, some conversion paths that do not pass through the target intermediate node can be excluded, thereby further screening the conversion paths and obtaining the paths to be tested required by the testers.

[0091] Step a2, combining nodes of the shortest conversion path to obtain a conversion path from the target starting node through the target intermediate node to the target ending node, and determining the conversion path as the path to be tested.

[0092] In step a2, with the first state as the starting state and the second state as the ending state, and the intermediate state as the conversion state that the conversion path must pass through, the shortest conversion paths in the path set are combined, and the two shortest conversion paths with the same conversion state corresponding to the end node and the conversion state corresponding to the start node are combined to obtain a path from the first state to the second state through the intermediate state, that is, a conversion path from the target starting node to the target ending node through the intermediate node, and the conversion path is determined as the path to be tested.

[0093] Through the above method, when there are multiple conversion paths from the target start node to the target end node, the multiple conversion paths are screened by adding target intermediate nodes to obtain the path to be tested required by the user.

[0094] In an optional implementation, if there are multiple conversion paths from the target starting node to the target ending node, the configuration of the intermediate path can also be added in the configuration information. The intermediate path is a section of the conversion path from the target starting node to the target ending node. By adding restrictions on the intermediate path, multiple conversion paths are screened, and the conversion path passing through the intermediate path is screened out and used as the path to be tested.

[0095] In an optional implementation, if there is no conversion path from the target start node to the target end node, the configuration information is determined to be in an unconvertible state, and a prompt message is issued to remind the tester that the first state and the second state configured by the tester cannot complete the conversion, cannot be tested, and need to be reset.

[0096] In an optional implementation, the above steps S3021 to S3022 are specific methods for determining the path to be tested when the configuration information includes the configuration of the first state and the second state. Correspondingly, step S302 also includes a specific method for determining the path to be tested when the configuration information does not include the configuration of the first state and the second state; specifically, if the configuration information does not include the configuration of the first state and the second state, all the shortest conversion paths in the path set are used as the paths to be tested. That is to say, when the first state and the second state are not specified in the configuration information, the shortest conversion path in the path set is fully tested, and the test order can be the order of testing in the flow order or the path number order; wherein the flow order refers to the shortest state conversion order of traversing all the shortest conversion paths in the path set. Because the target disk array needs to be converted to the initial state corresponding to the state conversion test before the state conversion test is performed on the target disk array, the flow order is set so that after the state conversion test corresponding to the shortest conversion path is completed, its state is exactly the starting state of the shortest conversion path corresponding to the next state conversion test. Thus, the state conversion test is performed in the flow order, and there is no need to perform state conversion other than the state conversion test on the target disk array, or only a small number of state conversions other than the state conversion test are required, thereby improving the efficiency of the state conversion test.

[0097] In an optional implementation, when the shortest conversion path is added to the path set, the path number of the shortest conversion path, that is, L1, L2, etc., will also be added thereto accordingly. The path set will determine the flow order of the shortest conversion paths in the path set according to the shortest conversion paths currently contained therein and the path numbers corresponding to each shortest conversion path, and save it in the path set. For example, if the path set contains two shortest conversion paths, L1: initing->online and L4: online->offline, then the flow order of the shortest conversion paths in the path set is L1->L4, and the flow order is recorded in the path set for storage.

[0098] In an optional implementation, if traversal of all shortest conversion paths in a path set cannot be achieved through only one flow sequence, multiple flow sequences can be set, and the number of state conversions required between each flow sequence can be controlled within a preset range to avoid the need for too many state conversions other than state conversion tests.

[0099] Therefore, through the above method, when the configuration information does not include the configuration of the first state and the second state, all the shortest conversion paths in the path set are tested with the shortest test path, thereby improving the efficiency of the state transition test.

[0100] Step S303: Based on the path to be tested, a state conversion test is performed on the target disk array to obtain the test result of the target disk array. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.

[0101] The disk state transformation test method provided by the embodiment of the present invention limits the shortest transformation path to be tested through a path set, obtains a path to be tested that meets the requirements by combining the nodes of the shortest transformation path in the path set, and thus tests the state transformation of the target disk array, so that the paths through which the state transformation of the target disk array passes are all the paths that the tester needs to test.

[0102] In this embodiment, a disk state conversion test method is provided, which can be used for the above-mentioned disk array. Figure 4 FIG. 1 is a flow chart of another test method for disk state conversion according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:

[0103] Step S401, in response to the state conversion test signal, obtain the configuration information of the target disk array. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0104] Step S402: Based on the configuration information, select a path from the path set to obtain a path to be tested. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0105] Step S403: Based on the path to be tested, a state conversion test is performed on the target disk array to obtain a test result of the target disk array.

[0106] In the embodiment of the present invention, the path to be tested includes at least one sub-path, and each sub-path corresponds to a shortest conversion path. Each sub-path includes a starting node and an ending node, and the starting node and the ending node correspond to a conversion state. For example, for the sub-path of online->offline, the conversion state corresponding to its starting node is online, and the conversion state corresponding to its ending node is offline. Based on this, the above step S403 may include the following steps:

[0107] Step S4031, based on the order of the sub-paths in the path to be tested, trigger events corresponding to the sub-paths are determined and executed in sequence, and the state of the target disk array is converted into a conversion state corresponding to the end node of the sub-path.

[0108] In the embodiment of the present invention, the trigger event is used to trigger the target disk array to transform from the transformation state corresponding to the start node to the transformation state corresponding to the end node. According to the order of the sub-paths in the path to be tested, the trigger events corresponding to the sub-paths are determined and executed in sequence, and the state of the target disk array is transformed into the transformation state corresponding to the end node of the sub-path, thereby finally transforming the state of the target disk array into the second state.

[0109] In an optional implementation, if the state of the target disk array has not been converted to the conversion state corresponding to the end node of the sub-path, the execution of the trigger event corresponding to the sub-path is stopped.

[0110] In an optional implementation, each subpath corresponds to a trigger event set, the trigger event set includes multiple trigger events, the trigger event set is configured when the shortest conversion path is configured, and each trigger event in the trigger event set corresponds to a different disk array configuration, so that disk arrays with different configurations can have trigger events that meet their configurations to execute when performing the state conversion corresponding to the shortest conversion path or subpath, so that disk arrays with different configurations can complete the state conversion of the shortest conversion path or subpath; for example, for the path L11: online->degraded, in the absence of hot spare space, a disk array with a disk array type of RAID5 needs to perform an operation on a failed disk on its member disks, and a disk array with a disk array type of RAID6 needs to perform an operation on two failed disks on its member disks, then the trigger event set corresponding to the path L11: online->degraded includes at least an operation on a failed disk and an operation on two failed disks, wherein the configuration information corresponding to the operation on a failed disk is that the disk array type is RAID5 and there is no hot spare space, and the configuration information corresponding to the operation on two failed disks is that the disk array type is RAID6 and there is no hot spare space.

[0111] Based on this, the above step S4031 may include the following steps:

[0112] Step b1, obtaining a trigger event set corresponding to the sub-path, and determining a trigger event corresponding to the sub-path from the trigger event set corresponding to the sub-path.

[0113] In step b1, the method for determining the corresponding trigger event is different according to the different positions of the subpath in the path to be tested. Specifically, the subpath can be divided into a starting path and an intermediate path, wherein the starting path is a subpath whose conversion state corresponding to the starting node is the first state, and the intermediate path is a subpath whose conversion state corresponding to the starting node is not the first state. In other words, the starting path is the subpath that ranks first in the path to be tested, and the intermediate path is the other subpaths that are arranged after the starting path.

[0114] In step b1, if the sub-path is the starting path, the trigger event corresponding to the sub-path is determined from the trigger event set corresponding to the sub-path based on the configuration information. In the trigger event set, multiple trigger events correspond to different disk array configurations, and accordingly, the configuration information also includes the configuration of the target disk array.

[0115] In an optional implementation, the configuration of the target disk array in the configuration information includes the selection of a disk array list. The disk array list includes the IDs or names of all selectable disk arrays. When selecting the target disk array, one or more disks can be selected from the disk array list. If the configuration information does not include the configuration of the target disk array, all disk arrays included in the disk array list are used as the target disk array.

[0116] In an optional implementation, the configuration of the target disk array in the configuration information includes a newly created disk array and the configuration of the newly created disk array. The specific information may include the number of newly created disk arrays, the type of newly created disk arrays, the array width of the newly created disk arrays, the stripe width of the newly created disk arrays, and the number of hot spare spaces of the newly created disk arrays. Among them, the type of the newly created disk array defaults to RAID5, the array width of the newly created disk array defaults to 5, the stripe width of the newly created disk array defaults to 4, and the number of hot spare spaces of the newly created disk array defaults to 1.

[0117] In step b1, if the sub-path is an intermediate path, the trigger event corresponding to the sub-path is determined from the trigger event set corresponding to the sub-path based on the configuration information and the historical conversion information; wherein the historical conversion information is used to characterize the configuration change of the target disk array after the trigger event corresponding to the previous sub-path is executed. Since the sub-path is an intermediate path, the configuration of the target disk array may change after the trigger event corresponding to the previous sub-path is executed, so the configuration change of the target disk array is recorded through the historical conversion information, and when determining the trigger event, the trigger event corresponding to the sub-path is determined from the trigger event set corresponding to the sub-path based on the configuration information and the historical conversion information.

[0118] Through the above method, trigger events corresponding to different disk array configurations are set in the trigger event set. When the state conversion corresponding to the trigger subpath is triggered, a suitable trigger event can be selected according to the specific configuration of the target disk array, thereby completing the state conversion of the target disk array.

[0119] Step b2: executing the trigger event corresponding to the sub-path, and converting the state of the target disk array into the conversion state corresponding to the end node of the sub-path.

[0120] In step b2, the trigger event corresponding to the sub-path is executed to trigger the state transformation of the target disk array, and the state of the target disk array is transformed into the transformation state corresponding to the end node of the sub-path, so that after the trigger events corresponding to all sub-paths in the path to be tested are executed in sequence, the state of the target disk array is transformed into the second state. Therefore, by selecting a trigger event from the trigger event set corresponding to the sub-path and executing it, the state of the target disk array is triggered, and the state of the target disk array is transformed into the transformation state corresponding to the end node of the sub-path.

[0121] Step S4032: Determine the test result based on the state of the target disk array after the state conversion.

[0122] In the embodiment of the present invention, if the state of the target disk array is converted to the second state within the preset time, that is, the target disk array successfully completes the state conversion within the prescribed preset time, then the test result is determined to be a test success; if the state of the target disk array is not converted to the second state within the preset time, that is, the target disk array does not complete the entire path to be tested of the state conversion within the prescribed preset time, or a problem occurs in the state conversion of the target disk array at a certain sub-path during the test, then the test result is determined to be a test failure; in this way, whether the state conversion test of the target disk array is successfully completed is determined according to the final state of the target disk array, thereby obtaining the test result.

[0123] The disk state conversion test method provided by the embodiment of the present invention sequentially executes the trigger events corresponding to each sub-path in the path to be tested, converts the state of the target disk array into the conversion state corresponding to the end node of the sub-path, thereby gradually converting the state of the target disk array in the order of the sub-paths to finally convert the state of the target disk array into the second state, thereby determining the test result according to the final state of the target disk array.

[0124] Figure 5 1 is a flow chart of a specific embodiment of the test method for disk state conversion according to an embodiment of the present invention. Figure 5 The test method for disk state conversion provided by the embodiment of the present invention is further described. Figure 5 As shown in the figure, before the state conversion test of the target disk array is performed, the cluster nodes and the target disk array are configured by configuring the script parameters, including the configuration of cluster login information, the initial state of the target disk array, that is, the first state, the end state of the target disk array, that is, the second state, whether to use the existing disk array in the disk array list, whether to create a new disk array, and if a new disk array is created, the configuration information of the new disk array is configured. At the same time, the state of the disk array is defined, corresponding to Figure 2That is, the four transformation states are online, initialization, degraded, offline, and syncing. Then, the path set is obtained according to the shortest transformation path, and the event that triggers the state transformation is bound to each shortest transformation path. At this point, all configuration work is completed. Then, based on the path set, it is determined whether the configured initial state can be transformed to the final state. If not, it will prompt that the state path setting is wrong, and prompt you to reset the initial and final states, and then exit the program. If it can, the path to be tested of the target disk array can be obtained, and at the same time, it is determined whether the current state of the target disk array is the initial state; if it is not the initial state, first follow the normal state transformation path operation process, perform one or more state transformations, so that the target disk array reaches the initial state. If it is the initial state, directly execute the trigger event corresponding to the path to be tested to trigger the state transformation of the target disk array. Finally, it is determined whether the target disk array reaches the final state. If it reaches the final state, it indicates that the state transformation test has passed. If it does not reach the final state, it indicates that the state transformation test has failed, thereby completing the test of the entire disk array state transformation.

[0125] In the present embodiment, a test device for disk state conversion is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions thereof will not be repeated. As used below, the term "module" may be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and contemplated.

[0126] This embodiment provides a test device for disk state conversion, such as Figure 6 As shown, including:

[0127] The configuration information acquisition module 610 is used to acquire the configuration information of the target disk array in response to the state conversion test signal; the configuration information is used to represent the state conversion requirement of the target disk array from the first state to the second state;

[0128] The path determination module 620 to be tested is used to select a path from a path set based on the configuration information to obtain a path to be tested; the path set is a set of shortest conversion paths;

[0129] The state conversion module 630 is used to perform a state conversion test on the target disk array based on the path to be tested, and obtain a test result of the target disk array.

[0130] In an optional implementation, the path set includes multiple shortest conversion paths; each shortest conversion path includes a start node and an end node, and the start node and the end node correspond to a conversion state respectively;

[0131] The path to be tested determining module 620 includes:

[0132] a conversion state determining unit, configured to, if the configuration information includes configurations of a first state and a second state, use the first state as the conversion state corresponding to the target start node, and use the second state as the conversion state corresponding to the target end node;

[0133] The path-to-be-tested determining unit is used to perform node combination on the shortest conversion path in the path set to obtain a conversion path from a target start node to a target end node, and determine the conversion path as the path to be tested.

[0134] In an optional implementation, the configuration information further includes configuration of an intermediate state, where the intermediate state is a transformation state experienced during the process of transformation from the first state to the second state;

[0135] If there are multiple conversion paths from the target start node to the target end node, the to-be-tested path determination module 620 further includes:

[0136] The conversion state determination unit further has the function of taking the first state as the conversion state corresponding to the target start node, taking the intermediate state as the conversion state corresponding to the target intermediate node, and taking the second state as the conversion state corresponding to the target end node;

[0137] The path to be tested determining unit is further used to combine nodes of the shortest conversion path to obtain a conversion path from a target starting node through a target intermediate node to a target ending node, and determine the conversion path as the path to be tested.

[0138] In an optional implementation, the to-be-tested path determination module 620 further includes:

[0139] The to-be-tested path determining unit is configured to use all shortest conversion paths in the path set as to-be-tested paths if the configuration information does not include configurations for the first state and the second state.

[0140] In an optional implementation, the to-be-tested path determination module 620 further includes:

[0141] The prompt unit is used to determine that the configuration information is in an unconvertible state and issue a prompt message if there is no conversion path from the target start node to the target end node.

[0142] In an optional implementation, the path to be tested includes at least one sub-path, each sub-path corresponds to a shortest conversion path; each sub-path includes a start node and an end node, and the start node and the end node correspond to a conversion state respectively;

[0143] The state conversion module 630 includes:

[0144] A trigger event execution unit is used to determine and execute the trigger events corresponding to the sub-paths in sequence based on the order of the sub-paths in the path to be tested, and convert the state of the target disk array into the conversion state corresponding to the end node of the sub-path; the trigger event is used to trigger the target disk array to convert from the conversion state corresponding to the start node to the conversion state corresponding to the end node;

[0145] The test result determination unit is used to determine the test result based on the state of the target disk array after the state conversion.

[0146] In an optional implementation, the state conversion module 630 further includes:

[0147] The trigger event stopping unit is used to stop executing the trigger event corresponding to the sub-path if the state of the target disk array has not been converted to the conversion state corresponding to the end node of the sub-path.

[0148] In an optional implementation, each subpath corresponds to a trigger event set, and the trigger event set includes multiple trigger events;

[0149] The trigger event execution unit includes:

[0150] A trigger event determination subunit is used to obtain a trigger event set corresponding to a subpath, and determine a trigger event corresponding to the subpath from the trigger event set corresponding to the subpath;

[0151] The trigger event execution subunit is used to execute the trigger event corresponding to the subpath, and convert the state of the target disk array into the conversion state corresponding to the end node of the subpath.

[0152] In an optional implementation, the subpath includes a starting path and an intermediate path; the starting path is a subpath in which the conversion state corresponding to the starting node is the first state, and the intermediate path is a subpath in which the conversion state corresponding to the starting node is not the first state;

[0153] The trigger event determination subunit is used to:

[0154] If the sub-path is the starting path, then based on the configuration information, a trigger event corresponding to the sub-path is determined from a trigger event set corresponding to the sub-path; in the trigger event set, multiple trigger events correspond to different disk array configurations respectively; the configuration information also includes a configuration of the target disk array;

[0155] If the sub-path is an intermediate path, the trigger event corresponding to the sub-path is determined from the trigger event set corresponding to the sub-path based on the configuration information and historical conversion information; the historical conversion information is used to characterize the configuration changes of the target disk array after executing the trigger event corresponding to the previous sub-path.

[0156] In an optional implementation, the test result determination unit is used to:

[0157] If the state of the target disk array is converted to the second state within the preset time, the test result is determined to be a test success;

[0158] If the state of the target disk array is not converted to the second state within the preset time, the test result is determined to be a test failure.

[0159] In an optional embodiment, the device further includes:

[0160] A current status acquisition module is used to acquire the current status of the target disk array;

[0161] The current state conversion module is used to convert the current state into the first state if the current state is inconsistent with the first state.

[0162] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0163] The disk state conversion test device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0164] The embodiment of the present invention also provides a computer device having the above Figure 6 The disk status shown is transformed by the test device.

[0165] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0166] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0167] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0168] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0169] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0170] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0171] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0172] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0173] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for testing disk state conversion, characterized in that: The method comprises: In response to the state conversion test signal, obtaining configuration information of the target disk array; the configuration information is used to characterize the state conversion requirement of the target disk array from the first state to the second state; Based on the configuration information, path selection is performed on the path set to obtain a path to be tested; the path set is a set of shortest conversion paths; Based on the path to be tested, a state conversion test is performed on the target disk array to obtain a test result of the target disk array; the path to be tested includes at least one sub-path, each of the sub-paths corresponds to one of the shortest conversion paths; each of the sub-paths includes a starting node and an ending node, and the starting node and the ending node correspond to a conversion state respectively; based on the path to be tested, the state conversion test is performed on the target disk array to obtain a test result of the target disk array, including: based on the order of the sub-paths in the path to be tested, sequentially determining and executing trigger events corresponding to the sub-paths, and converting the state of the target disk array into a conversion state corresponding to the ending node of the sub-path; the trigger event is used to trigger the target disk array to convert from the conversion state corresponding to the starting node to the conversion state corresponding to the ending node; based on the state of the target disk array after the state conversion, the test result is determined.

2. The method according to claim 1, characterized in that The path set includes a plurality of the shortest conversion paths; each of the shortest conversion paths includes a starting node and an ending node, and the starting node and the ending node correspond to a conversion state respectively; The step of selecting a path from a path set based on the configuration information to obtain a path to be tested includes: If the configuration information includes configurations of the first state and the second state, the first state is used as the transformation state corresponding to the target start node, and the second state is used as the transformation state corresponding to the target end node; The shortest conversion path in the path set is combined with nodes to obtain a conversion path from the target start node to the target end node, and the conversion path is determined as the path to be tested.

3. The method according to claim 2, characterized in that The configuration information also includes configuration of an intermediate state, where the intermediate state is a transformation state experienced during the process of transforming from the first state to the second state; If there are multiple conversion paths from the target start node to the target end node, then based on the configuration information, the path set is pathed to obtain a path to be tested, and further includes: The first state is used as the transformation state corresponding to the target start node, the intermediate state is used as the transformation state corresponding to the target intermediate node, and the second state is used as the transformation state corresponding to the target end node; The shortest conversion path is subjected to node combination to obtain a conversion path from the target start node through the target intermediate node to the target end node, and the conversion path is determined as the path to be tested.

4. The method according to claim 2, characterized in that: The step of selecting a path from a path set based on the configuration information to obtain a path to be tested further includes: If the configuration information does not include configurations for the first state and the second state, all shortest conversion paths in the path set are used as the paths to be tested.

5. The method according to claim 2, characterized in that: The step of selecting a path from a path set based on the configuration information to obtain a path to be tested further includes: If there is no conversion path from the target start node to the target end node, it is determined that the configuration information is in an unconvertible state and a prompt message is issued.

6. The method according to claim 1, characterized in that The step of performing a state conversion test on the target disk array based on the path to be tested to obtain a test result of the target disk array further includes: If the state of the target disk array has not been converted to the conversion state corresponding to the end node of the sub-path, the execution of the trigger event corresponding to the sub-path is stopped.

7. The method according to claim 1, characterized in that Each of the sub-paths corresponds to a trigger event set, and the trigger event set includes multiple trigger events; The determining and executing the trigger event corresponding to the sub-path to convert the state of the target disk array into the conversion state corresponding to the end node of the sub-path includes: Acquire a trigger event set corresponding to the sub-path, and determine a trigger event corresponding to the sub-path from the trigger event set corresponding to the sub-path; The trigger event corresponding to the sub-path is executed to convert the state of the target disk array into a conversion state corresponding to the end node of the sub-path.

8. The method according to claim 7, characterized in that The sub-path includes a starting path and an intermediate path; the starting path is a sub-path whose conversion state corresponding to the starting node is the first state, and the intermediate path is a sub-path whose conversion state corresponding to the starting node is not the first state; The determining, from the trigger event set corresponding to the sub-path, the trigger event corresponding to the sub-path includes: If the sub-path is the starting path, then based on the configuration information, a trigger event corresponding to the sub-path is determined from a trigger event set corresponding to the sub-path; in the trigger event set, a plurality of the trigger events correspond to different disk array configurations respectively; and the configuration information also includes a configuration of the target disk array; If the sub-path is the intermediate path, determining the trigger event corresponding to the sub-path from the trigger event set corresponding to the sub-path based on the configuration information and the historical conversion information; The historical conversion information is used to represent the configuration change of the target disk array after the trigger event corresponding to the previous sub-path is executed.

9. The method according to claim 1, characterized in that: The step of determining the test result based on the state of the target disk array after the state conversion includes: If the state of the target disk array is converted to the second state within the preset time, determining that the test result is a test success; If the state of the target disk array is not converted to the second state within the preset time, the test result is determined to be a test failure.

10. The method according to any one of claims 1 to 9, characterized in that: Before performing a state conversion test on the target disk array based on the path to be tested and obtaining a test result of the target disk array, the method further includes: Obtaining the current status of the target disk array; If the current state is inconsistent with the first state, the current state is converted into the first state.

11. A disk state conversion test device, characterized in that: The device comprises: A configuration information acquisition module, used to acquire configuration information of a target disk array in response to a state conversion test signal; the configuration information is used to characterize a state conversion requirement of the target disk array from a first state to a second state; A path determination module to be tested, used to select a path from a path set based on the configuration information to obtain a path to be tested; the path set is a set of shortest conversion paths; A state conversion module is used to perform a state conversion test on the target disk array based on the path to be tested to obtain a test result of the target disk array; the path to be tested includes at least one sub-path, each of the sub-paths corresponds to one of the shortest conversion paths; each of the sub-paths includes a starting node and an ending node, and the starting node and the ending node correspond to a conversion state respectively; the state conversion test on the target disk array based on the path to be tested to obtain the test result of the target disk array includes: based on the order of the sub-paths in the path to be tested, sequentially determining and executing trigger events corresponding to the sub-paths, and converting the state of the target disk array into the conversion state corresponding to the ending node of the sub-path; the trigger event is used to trigger the target disk array to convert from the conversion state corresponding to the starting node to the conversion state corresponding to the ending node; based on the state of the target disk array after the state conversion, determining the test result.

12. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the disk state conversion test method described in any one of claims 1 to 10 by executing the computer instructions.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the disk state conversion test method according to any one of claims 1 to 10.

14. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to cause a computer to execute the disk state conversion test method according to any one of claims 1 to 10.