A disk link abnormality handling test method and device
A link abnormality and testing method technology, which is applied in the field of abnormality handling test method and device, and disk link error injection method, can solve the problems of increased recovery difficulty, high execution risk, and high difficulty in command execution, so as to reduce error recovery steps , simplify the error injection method, and avoid the effect of data loss risk
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] Such as figure 1 As shown, this embodiment provides a method for simulating a disk link transmission error, including the following steps:
[0044] S101, both the disk to be tested and the test terminal are connected to the SCSI bus;
[0045] S102, the test terminal sends a command to read the information of the disk to be tested to the disk to be tested through the SCSI bus;
[0046] S103, the test terminal receives the relevant information read according to the command to read the information of the disk to be tested returned by the disk to be tested through the SCSI bus;
[0047] S104, the test terminal judges whether the actual value of the parameter of the returned relevant information is different from the theoretical value of the preset parameter;
[0048] S105, if different, the disk link error injection is successful; wherein, the theoretical value of the preset parameter is different from the actual value of the relevant information parameter returned under ...
Embodiment 2
[0058] On the basis of the error injection in the first embodiment, this embodiment provides a disk link abnormality handling test method to detect whether the test end can normally handle the abnormality when the link is abnormal.
[0059] The disk to be tested is generally a dual-control system, that is, the master controller and the disk to be tested communicate normally. When the link between the master controller and the disk to be tested is abnormal, it is switched to the backup control to ensure the normal operation of the business.
[0060] In this embodiment, the disk to be tested is specifically connected to the first test terminal and the second test terminal, wherein the first test terminal is used as a master control, and the second test terminal is used as a backup control.
[0061] like figure 2 As shown, the method includes the following steps:
[0062] S201. The first test terminal executes the method described in Embodiment 1 multiple times to inject disk l...
Embodiment 3
[0073] On the basis of the second embodiment, in the case that the first test end and the second test end can normally handle the link abnormality, it is further possible to test whether the slot of the disk to be tested can normally handle the link abnormality.
[0074] like image 3 As shown, the disk link abnormality handling test method provided in this embodiment includes the following steps:
[0075] S301, the second test terminal executes the method described in Embodiment 1 to perform disk link error injection;
[0076] S302. When the error injection is successful, detect whether the second test terminal issues a reminder that the disk slot is unavailable;
[0077] S303, if a warning that the disk slot is unavailable is issued, the test passes, and the disk slot to be tested can normally handle link exceptions;
[0078] S304, if the disk slot unavailable reminder is not issued, continue to execute the method described in Embodiment 1 to perform disk link error inject...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


