Testing method, device and equipment for frame drop fault detection function of hard disk and medium

The chassis management service system injects hard disk frame drop fault information and collects link status, which solves the problem of low efficiency in hard disk frame drop fault testing in the existing technology, and realizes efficient fault detection and alarm.

CN119127628APending Publication Date: 2024-12-13INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411132400.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The test methods for hard disk frame drop failure in the prior art rely on manual unplugging, resulting in low test efficiency and low hit rate.

Method used

The chassis management service system obtains the identification of the hard disk in bit state, determines the target link, and injects the hard disk frame-drop fault information within the preset time period, simulates disconnection and reset changes, and collects link status information in real time to generate alarms.

Benefits of technology

It improves the hit rate and efficiency of hard disk frame drop fault tests, realizes automatic fault detection and alarms, and simplifies the testing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127628A_ABST
    Figure CN119127628A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computer testing, and mainly relates to a hard disk frame drop fault detection function testing method and device, equipment and a medium, and the method comprises the steps: obtaining an identifier of a hard disk drive slot in a hard disk in-place state in a case through a case management service system; determining an identifier of a target link corresponding to the identifier according to the identifier and a first mapping relationship; the target link is a link formed by the slot position of the hard disk drive and a rack; adding hard disk frame dropping fault information to the target link within a preset time period; acquiring real-time link state information of the target link, and transmitting the real-time link state information to a chassis management module in a control system; and the case management module determines that the hard disk frame drop fault detection function is normal according to hard disk frame drop fault alarm information generated by the real-time link state information. By applying the embodiment of the invention, the case management service system automatically simulates the hard disk frame dropping fault, and the hit rate and efficiency of the hard disk frame dropping fault test are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer testing technology, and mainly to a test method, device, equipment and medium for a hard disk frame drop fault detection function. Background Art

[0002] Hard drive frame drop refers to a scenario in which the connection between the chassis and the hard drive is intermittent due to poor contact between the hard drive and the backplane or problems with the hard drive itself.

[0003] In the related art, when testing hard disk frame drop faults, the fault injection method of disconnecting the hard disk drive slot from the rack is manual intervention simulation, and the frame drop fault injection is achieved by quickly and repeatedly plugging and unplugging the hard disk from the expansion cabinet. Since the polling time of the system is very short, it is difficult to manually disconnect the hard disk drive slot from the rack to trigger the hard disk frame drop fault scenario. It is necessary to perform several operations to capture an effective test, so the hit rate of the test point is not high and the test efficiency is low. Summary of the invention

[0004] One of the purposes of this application is to propose a test method for a hard disk frame drop fault detection function to solve or at least partially solve the problems in the related art. The second purpose of this application is to provide a test device for a hard disk frame drop fault detection function. The third purpose of this application is to provide an electronic device. The fourth purpose of this application is to provide a medium.

[0005] In order to achieve the above purpose, the technical solution of this application is as follows:

[0006] A method for testing a hard disk frame drop fault detection function, comprising:

[0007] Obtaining, through the chassis management service system, an identifier of a hard disk drive slot in the chassis that is in a hard disk in-position state;

[0008] Determining, by the chassis management service system, an identifier of a target link corresponding to the identifier according to the identifier and a first mapping relationship; the first mapping relationship is used to characterize a correspondence between a hard disk drive slot and a link; the target link is a link formed by the hard disk drive slot and a rack;

[0009] By means of the chassis management service system, when the target link is currently in a connected state, hard disk frame drop fault information is added to the target link within a preset time period; the hard disk frame drop fault information is used to indicate that the target link has a change of disconnection and resetting;

[0010] The real-time link status information of the target link is obtained through the chassis management service system, and the real-time link status information is transmitted to the chassis management module in the control system; so that the control system can determine that the hard disk frame drop fault detection function is normal when it receives the hard disk frame drop fault alarm information generated by the chassis management module according to the real-time link status information.

[0011] Optionally, the adding, by the chassis management service system, the hard disk frame drop fault information to the target link within a preset time period when the target link is currently in a connected state, includes:

[0012] Detecting whether the target link is in a connected state;

[0013] When the target link is in a connected state, a disabling operation and a resetting operation are sequentially written into the target link within the preset time period; the disabling operation is used to disconnect the hard disk drive slot from the rack; and the resetting operation is used to establish a connection between the hard disk drive slot and the rack.

[0014] Optionally, obtaining, through the chassis management service system, an identifier of a hard disk drive slot in the chassis that is in a hard disk in-place state includes:

[0015] Obtaining hard disk status information of each hard disk drive slot in the chassis through a connection link between the chassis management service system and the chassis hardware;

[0016] When the hard disk status of the hard disk drive slot is in-place status, an identifier of the hard disk drive slot is obtained.

[0017] Optionally, acquiring the real-time link status information of the target link through the chassis management service system, and transmitting the real-time link status information to a chassis management module in the control system includes:

[0018] Acquiring, through the chassis management service system, real-time link status information of the target link according to the identifier of the target link;

[0019] The real-time link status information is transmitted to the chassis management module via a connection link between the chassis management service system and the chassis management module.

[0020] Optionally, when the control system receives the hard disk frame drop fault alarm information generated by the chassis management module according to the real-time link status information, determining that the hard disk frame drop fault detection function is normal includes:

[0021] Determining, by the chassis management module, whether the target link has been disconnected and reset in sequence within the preset time period according to the real-time link status information of the target link;

[0022] In the case that the target link is disconnected and reset in sequence within the preset time period, the chassis management module generates hard disk frame drop fault alarm information;

[0023] Reporting the hard disk frame drop fault alarm information to the control system through the chassis management module;

[0024] The control system determines that the hard disk frame drop fault detection function of the control system is normal when receiving the hard disk frame drop fault alarm information;

[0025] The real-time link status information includes attribute values ​​corresponding to the enablement item, the connection item and the change item, respectively, and the attribute values ​​are used to determine the changes occurring in the target link.

[0026] Optionally, before determining, by the chassis management service system, an identifier of a target link corresponding to the identifier according to the identifier and the first mapping relationship, the method further includes:

[0027] Traversing the hard disk drive slots in the chassis;

[0028] Determine the links between each hard disk drive slot and the rack;

[0029] The first mapping relationship is established according to the link formed by each hard disk drive slot and the rack.

[0030] Optionally, when the target link is in a connected state, writing a disabling operation and a resetting operation into the target link in sequence within the preset time period includes:

[0031] In the case that the hard disk connected to the target link is dual-ported, a disable operation and a reset operation are simultaneously written to the dual-ports of the hard disk in the target link.

[0032] A test device for hard disk frame drop fault detection function, comprising:

[0033] A first acquisition module is used to acquire, through the chassis management service system, an identifier of a hard disk drive slot in the chassis that is in a hard disk in-place state;

[0034] A first determination module is used to determine, through the chassis management service system, an identifier of a target link corresponding to the identifier according to the identifier and a first mapping relationship; the first mapping relationship is used to characterize a correspondence between a hard disk drive slot and a link; the target link is a link formed by the hard disk drive slot and a rack;

[0035] A fault information injection module is used to add hard disk frame drop fault information to the target link within a preset time period through the chassis management service system when the target link is currently in a connected state; the hard disk frame drop fault information is used to indicate that the target link has a change of disconnection and reset;

[0036] The second acquisition module is used to obtain the real-time link status information of the target link through the chassis management service system, and transmit the real-time link status information to the chassis management module in the control system; so that the control system can determine that the hard disk frame drop fault detection function is normal when it receives the hard disk frame drop fault alarm information generated by the chassis management module according to the real-time link status information.

[0037] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned test method for hard disk frame drop fault detection function when executing the computer program.

[0038] A non-volatile storage medium stores a computer program, which, when executed by a processor, implements the test method for the hard disk frame drop fault detection function as described above.

[0039] Beneficial effects of this application:

[0040] In the present application, the identification of the hard disk drive slot in the chassis with the hard disk in place is obtained through the chassis management service system; the identification of the target link corresponding to the identification is determined through the chassis management service system according to the identification and the first mapping relationship; the first mapping relationship is used to characterize the correspondence between the hard disk drive slot and the link; the target link is the link composed of the hard disk drive slot and the rack; through the chassis management service system, when the target link is currently in a connected state, hard disk frame drop fault information is added to the target link within a preset time period; the hard disk frame drop fault information is used to indicate that the target link has undergone a disconnection and reset change; through the chassis management service system, the real-time link status information of the target link is obtained, and the real-time link status information is transmitted to the chassis management module in the control system; so that the control system can determine that the hard disk frame drop fault detection function is normal when receiving the hard disk frame drop fault alarm information generated by the chassis management module according to the real-time link status information. For the application scenario of hard disk frame drop failure, by injecting hard disk frame drop failure information, the target link where the hard disk is located is controlled to conveniently simulate the hard disk frame drop failure; using the communication link connected to the chassis management service system, the corresponding operation is written to the target link, and the link status information of the target link is collected and transmitted to the EN (Enclosure Management, chassis management) layer to determine the hard disk failure frame drop failure and issue an alarm. In this way, the hard disk frame drop failure detection function can be automatically tested, effectively improving the hit rate and efficiency of the hard disk frame drop failure test. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0042] Figure 1 is a connection diagram of the chassis management service system described in one embodiment of the present application;

[0043] Figure 2 is a schematic diagram of the internal structure and functions of the chassis described in one embodiment of the present application;

[0044] Figure 3 is an interactive schematic diagram of a chassis management service system described in an embodiment of the present application;

[0045] Figure 4 is an application schematic diagram of the chassis management service system described in one embodiment of the present application;

[0046] Figure 5 It is a partial logic diagram of a hard disk frame drop failure test in the related art described in an embodiment of the present application;

[0047] Figure 6 is a flow chart of a method for testing a hard disk frame drop fault detection function in an embodiment of the present application;

[0048] Figure 7 It is a partial logic diagram of a method for testing a hard disk frame drop fault detection function in an embodiment of the present application;

[0049] Figure 8 It is a schematic diagram of the framework of a test device for a hard disk frame drop fault detection function described in an embodiment of the present application.

[0050] Among them, 800 is a test device for hard disk frame drop fault detection function, 801 is a first acquisition module, 802 is a first determination module, 803 is a fault injection module, and 804 is a second acquisition module. DETAILED DESCRIPTION

[0051] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.

[0052] Reference Figure 1 , Figure 1 It is a connection diagram of the chassis management service system described in one embodiment of the present application.

[0053] The chassis management service system is the OSES (Organic SCSI Enclosure service, “organic” SCSI (Small Computer System Interface) chassis management service program) system. OSES is a firmware and is closely related to the EN (Enclosure Management) and EC (Engineering Change) modules of the MCS (Multiple Controller System, referred to as the control system in this article). OSES is strongly related to hardware, software, and testing, and is the link between "chassis hardware" and "MCS's EN software processing." OSES runs on the SAS Expander, and as part of chassis management, it collects, processes, and issues alarm notifications for hardware data. OSES is a protocol service program. The information exchange between EN and OSES is through the SES (SCSI Enclosure service, standard for chassis management) protocol of the SAS (Serial Attached SCSI) link. EC and OSES interact through the out-of-band I2C (Inter-Integrated Circuit) protocol. EN and EC interact with OSES to obtain specific information and make alarm and processing strategies to monitor the components of the expansion cabinet and chassis. These components are connected to the OSES system through a certain bus. OSES monitors the components through the bus. These components include hard disk drives, etc. Figure 1 As shown, the control system is provided with EN and EC modules for obtaining information of the hardware inside the chassis to manage the chassis. The MCS system communicates with the OSES system through the EN module.

[0054] Reference Figure 2 , Figure 2 Schematic diagram of the internal structure and function of the chassis in one embodiment of the present application. Figure 2 As shown in the figure, the internal hardware of the chassis includes temperature, voltage, fan, light emitting diode (LED), power supply unit (PSU), complex programmable logic device (CPLD), virtual processor description (VPD), PHY (Physical Layer) link, dual-control interaction and other units, which can support the following functions:

[0055] Temperature collection and over-temperature judgment; voltage collection and reporting; fan speed control strategy, fan control; light-emitting diode LED light on, off, flashing; voltage and current collection, power support unit PSU, virtual processor description VPD, FW (Firmware) upgrade; in-place, power on and off; configuration, reading, writing, and production of motherboard and backplane VPD; link state machine detection, providing PHY link enable operation; dual-control information synchronization, compatible information setting; chassis management service system (OSES system) upgrade; log generation and storage, etc.

[0056] Reference Figure 3 , Figure 3 Schematic diagram of the interaction of the chassis management service system described in one embodiment of the present application. Figure 3 As shown, the chassis management service system OSES can exchange data with EN / EC / CentOS and diag diagnostic services respectively, thereby supporting multiple application modes.

[0057] application Figure 3 For data interaction in the process, the hardware provides access paths between Expander and chassis hardware; OSES obtains chassis information and determines the status through the access path; the status is reported to EN and EC for alarm processing; in the production diagnosis link, CentOS (Community Enterprise Operating System) and diag diagnostic services are used to communicate with OSES. It should be mentioned here that Expander provides hard-core logic support for SAS links, but it belongs to link layer transmission. Although OSES runs on Expander, it does not participate in the interaction and processing strategies of hard disks and IOs, but only reads the PHY registers to confirm whether there are link failures.

[0058] Reference Figure 4 , Figure 4 This is an application diagram of the chassis management service described in an embodiment of the present application. When OSES obtains an abnormal state, it reports it to the upper layer and an alarm occurs; therefore, for chassis alarms, EN, OSES and hardware need to cooperate in positioning. The reasons for the alarm reported by OSES are: first, software problems, which refers to problems with OSES itself, such as upgrade abnormalities; second, hardware problems, such as hard disk frame drop failures.

[0059] When a hard disk frame drop failure occurs, the hard disk drive status monitored by OSES is that the hard disk is in place. The hard disk drive status is unstable and repeatedly logs in and out. OSES sends this status of the hard disk drive during operation as interaction content to EN and reports an EN alarm in the MCS system.

[0060] Reference Figure 5 , Figure 5 This is a partial logic diagram of the hard disk frame drop failure test in the related art described in an embodiment of the present application. Figure 5 As shown, in the related art, for the application scenario of hard disk frame drop failure, the basic test scheme is:

[0061] The first step is to query the status of each hard disk slot in the MCS system and select the SLOT_ID of the hard disk slot to be fault injected. You can query the hard disk slot number through Lsdrive and then perform manual fault injection.

[0062] The second step is to confirm that the hard disk's working link is normal through the hard disk LED indicator. Usually, the green indicator light flashes or is always on as a normal state.

[0063] In the third step, plugging and unplugging the hard disk triggers the drive slot to be disconnected from the rack, resulting in a slot frame drop failure.

[0064] The fourth step is to trigger an alarm event in the MCS system. If an EN alarm is generated, the triggering is successful. If no EN alarm is generated, continue to execute the third step until the EN alarm is triggered successfully.

[0065] Since the test method for hard disk frame drop failure in the related art relies on manual plugging and unplugging, the hit rate and efficiency are relatively low. In order to solve the above problem, the present application proposes an optimized technical solution.

[0066] Specifically, refer to Figure 6 , Figure 6 1 is a flow chart of a method for testing a hard disk frame drop fault detection function in an embodiment of the present application. Figure 6 As shown, the method can be performed according to the following steps:

[0067] Step S101, obtaining, through the chassis management service system, an identifier of a hard disk drive slot in a chassis that is in a hard disk in-place state.

[0068] Specifically, the chassis management service system is connected to the chassis hardware, and the identification of the hard disk drive slots in the chassis that are in the hard disk in-place state can be queried through the chassis management service system. It can be understood that before performing a fault simulation for a hard disk frame drop fault, it is necessary to determine which test points support the fault simulation. Therefore, first determine which hard disk drive slots in the chassis show that the hard disk is in-place, obtain the identification of the hard disk drive slots in the chassis that are in the hard disk in-place state, and then test these hard disk drive slots.

[0069] Step S102: determining, by the chassis management service system, an identifier of a target link corresponding to the identifier according to the identifier and the first mapping relationship.

[0070] The first mapping relationship is used to characterize the corresponding relationship between the hard disk drive slot and the link;

[0071] The target link is a link formed by the hard disk drive slot and the rack.

[0072] Specifically, the chassis management service system pre-stores the correspondence between the hard disk drive slot and the PHY link where the hard disk drive slot is located, and the PHY link where the hard disk drive slot is located is the link formed by the hard disk drive slot and the rack. After selecting a hard disk drive slot that supports hard disk frame drop fault simulation, the target link corresponding to the hard disk drive slot is further determined based on the first mapping relationship, so as to determine the link to be injected with faults, so as to accurately inject hard disk frame drop faults at the measurement point.

[0073] Step S103: by means of the chassis management service system, when the target link is currently in a connected state, hard disk frame drop fault information is added to the target link within a preset time period.

[0074] The hard disk frame drop fault information is used to indicate that the target link has been disconnected and then reset.

[0075] Specifically, after determining the target link, the chassis management service system obtains the link status information of the target link in real time, and before injecting the hard disk frame drop fault, further determines that the target link is currently in a connected state to ensure that the target link can complete the hard disk frame drop fault simulation. When the target link is currently in a connected state, the hard disk frame drop fault information is added to the target link within a preset time period. The hard disk frame drop fault information indicates changes in the target link that are disconnected and reset. The preset time period is a time indicator for determining the hard disk frame drop fault, and the preset time period is in milliseconds, so that the target link is quickly disconnected and reset within the preset time period, thereby simulating a hard disk frame drop fault.

[0076] Step S104: Acquire the real-time link status information of the target link through the chassis management service system, and transmit the real-time link status information to the chassis management module in the control system; so that the control system can determine that the hard disk frame drop fault detection function is normal when receiving the hard disk frame drop fault alarm information generated by the chassis management module according to the real-time link status information.

[0077] Specifically, the chassis management service system continuously obtains the real-time link status information of the target link during the test process before and after writing the hard disk frame drop fault information to monitor the state change of the target link. The real-time link status information of the target link is transmitted to the chassis management module in the control system so that the chassis management module can determine whether a hard disk frame drop fault occurs at the test point based on the real-time link status information. If a fault is determined to occur, a hard disk frame drop fault alarm information is generated and reported to the control system. In this way, after simulating a hard disk frame drop fault through the chassis management service system, the control system detects the hard disk frame drop fault and determines that the hard disk frame drop fault detection function is normal.

[0078] In this embodiment, the identification of the hard disk drive slot in the chassis in the hard disk in-place state is obtained through the chassis management service system; the identification of the target link corresponding to the identification is determined through the chassis management service system according to the identification and the first mapping relationship; the first mapping relationship is used to characterize the correspondence between the hard disk drive slot and the link; the target link is the link composed of the hard disk drive slot and the rack; through the chassis management service system, when the target link is currently in a connected state, hard disk frame drop fault information is added to the target link within a preset time period; the hard disk frame drop fault information is used to indicate that the target link has undergone a disconnection and reset change; through the chassis management service system, real-time link status information of the target link is obtained, and the real-time link status information is transmitted to the chassis management module in the control system; so that the control system can determine that the hard disk frame drop fault detection function is normal when receiving the hard disk frame drop fault alarm information generated by the chassis management module according to the real-time link status information. For the application scenario of hard disk frame drop failure, by injecting hard disk frame drop failure information, the target link where the hard disk is located is controlled, and the hard disk frame drop failure is conveniently simulated. The communication link connected to the chassis management service system is used to write corresponding operations to the target link, and the link status information of the target link is collected and transmitted to the EN layer to determine the hard disk failure frame drop failure and issue an alarm. In this way, the hard disk frame drop failure detection function can be automatically tested, effectively improving the hit rate and efficiency of the hard disk frame drop failure test.

[0079] By applying the technical solution of the present application, the stability of equipment performance can be further guaranteed during the production diagnosis process.

[0080] In a feasible implementation manner, the above step S103, through the chassis management service system, when the target link is currently in a connected state, adding the hard disk frame drop fault information to the target link within a preset time period, may specifically include:

[0081] Detecting whether the target link is in a connected state;

[0082] When the target link is in a connected state, a disabling operation and a resetting operation are sequentially written into the target link within the preset time period; the disabling operation is used to disconnect the hard disk drive slot from the rack; and the resetting operation is used to establish a connection between the hard disk drive slot and the rack.

[0083] Specifically, the OSES system queries the collected real-time link status information to determine whether the current target link is in a connected state. For example, using the OSES read template, read the collected link status information:

[0084] Read monitor ENABLE / / Read operation, read link status changes (status corresponding to the enable item)

[0085] Read monitor CONNECT / / Read operation, read link status changes (status corresponding to the connection item)

[0086] Read monitor CHANGE / / Read operation, read link status changes (status corresponding to the changed item)

[0087] If the target link is confirmed to be in a connected state based on the queried information, the disable operation and the reset operation are sequentially written to the target link within a preset time period; when the disable operation is executed, the hard disk drive slot is disconnected from the rack; and then the reset operation is executed, at which time the hard disk drive slot is reconnected to the rack. After the target link changes its link state to disconnected in sequence within the preset time period, it is quickly reset (reestablished).

[0088] The target link identifier is named after the interface resource of the target link, or a different number is used as the identifier of the target link.

[0089] For example, writing the agreed value A means PHY_DISABLE (PHY link disabled), that is, disconnecting the logout, and writing the agreed value B means PHY_HARD_RESET (PHY link reset), that is, reconnecting and logging in after resetting. Assume that the interface resource in the target link is named RN_PHYx_PHY_OP, and x represents decimal data. Taking the 25th disk slot as an example, the identification sequence is PHY0-PHY24. The number of other disks is analogous to 25 disks. Write the following operation instructions to the target link RN_PHYx_PHY_OP:

[0090] Write RN_PHYx_PHY_OP A / / Write operation, disconnect the link write

[0091] Write RN_PHYx_PHY_OP B / / Write operation, reset the link write

[0092] At this time, when the write operation is executed normally, the login in the hard disk drive slot before the write operation is executed is changed to the hard disk drive logout caused by the disable state after the execution and the reset caused by the reset operation, that is, the hard disk drive logs in again, that is, the logout and login switching is performed within the preset time period, so that the upper layer can identify the hard disk frame drop failure in the hard disk drive slot in the target link based on the PHY link disable state change, hard disk drive logout and reset operation, so that the control system can receive the hard disk frame drop failure alarm information, and then select the corresponding processing strategy.

[0093] Following the above implementation, in a feasible implementation, when the target link is in a connected state, writing the disabling operation and the resetting operation into the target link in sequence within the preset time period includes:

[0094] In the case that the hard disk connected to the target link is dual-ported, a disable operation and a reset operation are simultaneously written to the dual-ports of the hard disk in the target link.

[0095] Specifically, the interface resource of the target link is named RN_PHYx_PHY_OP, and the dual-port hard disk needs to confirm the x of SLOT1_ID and 24-x of SLOT2_ID (that is, the hard disk drive slot on one side is identified as SLOT1_(0~24), and the hard disk drive slot on the other side is identified as SLOT2_(24~0)). At this time, the disconnect and reset operations need to be written to both ports in the PHY link at the same time to ensure that the link is completely disconnected. When adding the hard disk frame drop fault information to the target link, execute:

[0096] Write RN_PHYx_PHY_OP A / / Write operation, disconnect the link write

[0097] Write RN_PHYx_PHY_OP B / / Write operation, reset the link write

[0098] Write RN_PHY(24-x)_PHY_OP A / / Write operation, write disconnect to the dual ports in the link

[0099] Write RN_PHY(24-x)_PHY_OP B / / Write operation, write reset to the dual ports in the link In this implementation, by writing disable operation (disable) and reset operation (reset) to the target link, the hard disk frame drop fault is injected into the target link, simulating the scenario where the hard disk drive slot in the target link has poor contact with the rack, thereby improving the convenience of hard disk frame drop fault testing for each test point (hard disk drive slot). At the same time, after the reset operation is executed, the link returns to normal state, avoiding adverse effects on subsequent functional tests.

[0100] In a feasible implementation manner, step S101, obtaining, through the chassis management service system, an identifier of a hard disk drive slot in the chassis that is in a hard disk in-place state, may specifically include:

[0101] Obtaining hard disk status information of each hard disk drive slot in the chassis through a connection link between the chassis management service system and the chassis hardware;

[0102] When the hard disk status of the hard disk drive slot is in-place status, an identifier of the hard disk drive slot is obtained.

[0103] Specifically, the chassis management service system is connected to the chassis hardware, and the hard disk status information of each hard disk drive slot in the chassis is collected through the connection link between the chassis management service system and the chassis hardware; if there is a hard disk inserted in the hard disk drive slot, it is in the hard disk in place state; if there is no hard disk inserted in the hard disk drive slot, it is not in the hard disk in place state.

[0104] In this way, when it is determined that the hard disk state of the hard disk drive slot is in the in-place state, the identifier of the hard disk drive slot is obtained to facilitate locating a test point that can support the hard disk frame drop fault test.

[0105] In a feasible implementation manner, obtaining the real-time link status information of the target link through the chassis management service system and transmitting the real-time link status information to the chassis management module in the control system may specifically include:

[0106] Acquiring, through the chassis management service system, real-time link status information of the target link according to the identifier of the target link;

[0107] The real-time link status information is transmitted to the chassis management module via a connection link between the chassis management service system and the chassis management module.

[0108] Specifically, refer to Figure 1The chassis management service system is connected to the chassis hardware, and after collecting the real-time link status information of the target link in a targeted manner according to the identifier of the target link, the real-time link status information is transmitted to the chassis management module based on the connection link between the chassis management service system and the chassis management module. In the chassis management module, based on the real-time status information of the target link, it is determined whether the hard disk drive slot in the target link has a hard disk frame drop fault.

[0109] In this embodiment, based on the data interaction between OSES and EN, data is transmitted to EN, and EN makes fault determination and reports an alarm after obtaining the data. In this way, after automatically simulating the hard disk frame drop fault, the fault information is quickly identified, and an alarm is issued, thereby improving the test efficiency.

[0110] In a feasible implementation manner, the control system determines that the hard disk frame drop fault detection function is normal when receiving the hard disk frame drop fault alarm information generated by the chassis management module according to the real-time link status information, including:

[0111] Determining, by the chassis management module, whether the target link has been disconnected and reset in sequence within the preset time period according to the real-time link status information of the target link;

[0112] In the case that the target link is disconnected and reset in sequence within the preset time period, the chassis management module generates hard disk frame drop fault alarm information;

[0113] Reporting the hard disk frame drop fault alarm information to the control system through the chassis management module;

[0114] The control system determines that the hard disk frame drop fault detection function of the control system is normal when receiving the hard disk frame drop fault alarm information;

[0115] The real-time link status information includes attribute values ​​corresponding to the enablement item, the connection item and the change item, respectively, and the attribute values ​​are used to determine the changes occurring in the target link.

[0116] Specifically, after the chassis management module receives the real-time link status information of the target link transmitted by the chassis management service system, it determines the state change of the target link. The real-time link status information includes attribute values ​​corresponding to the enable item, the connection item, and the change item, respectively, and the attribute values ​​are used to determine the changes that occur in the target link. For example, the attribute value of the enable item is 0 or 1, corresponding to the disable and enable states, respectively. Based on the attribute value, the changes that occur in the target link at a certain time are determined. In the case where the target link has changes of disconnection and reset in sequence within the preset time period, it is determined that a hard disk frame drop fault has occurred in the hard disk drive slot in the target link, and the corresponding hard disk frame drop fault alarm information is generated, and the hard disk frame drop fault alarm information is reported to the control system, thereby, the control system receives the hard disk frame drop fault alarm information. In this way, after simulating the hard disk frame drop fault at the measuring point, the control system can receive the hard disk frame drop fault alarm information, then the hard disk frame drop fault detection function is normal, and the performance of the device is determined to be stable.

[0117] In this embodiment, based on the interaction between the chassis management service system and the chassis hardware and chassis management module in the control system, the chassis management service system injects hard disk frame drop faults, performs automated testing on hard disk frame drop faults, and receives alarms in the control system, thereby improving the hit rate and efficiency of the test and reducing the cost of the test.

[0118] In a feasible implementation manner, before determining, by the chassis management service system, the identifier of the target link corresponding to the identifier according to the identifier and the first mapping relationship, the method further includes:

[0119] Traversing the hard disk drive slots in the chassis;

[0120] Determine the links between each hard disk drive slot and the rack;

[0121] The first mapping relationship is established according to the link formed by each hard disk drive slot and the rack.

[0122] Specifically, before determining the identifier of the target link corresponding to the identifier based on the identifier and the first mapping relationship, the first mapping relationship needs to be established and stored. For example, the hard disk drive slots in the chassis are traversed through the chassis management service system; the links formed by each hard disk drive slot and the rack are determined; based on the links formed by each hard disk drive slot and the rack, the identifiers of each hard disk drive slot are associated and stored with the identifiers of the links formed by the hard disk drive slot and the rack, and the first mapping relationship is established.

[0123] In this embodiment, the chassis management service system goes through the hard disk drive slots in the chassis connected to it one by one; determines the link composed of each hard disk drive slot and the rack; and establishes a first mapping relationship based on the link composed of each hard disk drive slot and the rack. In this way, after determining the measurement point that can support the hard disk frame drop failure, based on the first mapping relationship, the link for injecting the hard disk frame drop failure is quickly determined, thereby performing accurate testing.

[0124] In one embodiment of the present application, referring to Figure 7 , Figure 7 This is a partial logic diagram of a method for testing a hard disk frame drop fault detection function in an embodiment of the present application. Figure 7 As shown, in this embodiment, the chassis management service system confirms the identifier SLOT_ID of the hard disk drive slot into which the hard disk that can be used for hard disk frame drop fault injection is inserted, queries the mapping relationship between SLOT_ID and PHY_ID (the identifier corresponding to the link composed of the hard disk drive slot and the rack), combines the disable / enable instructions for the PHY_ID of the link, and then executes the instructions to trigger fault injection, thereby generating an alarm message on the MCS end.

[0125] Specifically, enter the chassis management service system through the serial port, use the read template of the chassis management service system, query the hard disk in-place status of each hard disk drive slot, and determine the identifier SLOT_ID of the hard disk drive slot that supports hard disk fault injection; and determine the identifier of the corresponding PHY link based on SLOT_ID, and determine the target link for fault injection, so as to control the interface resources corresponding to the target link; use the write template to complete the write operation on the target link, and write the agreed value A (corresponding to the target link disconnection, interface unavailable, logout) and agreed value B (corresponding to the target link reset, interface available, login) in sequence, at this time, the hard disk frame drop fault simulation is completed, and the hard disk frame drop fault injection is realized. The link status information of the PHY link monitored in real time (PHY link ENABLE (enablement item), CONNECT (connection item), CHANGE (change item)) is transmitted to EN through the data interaction between OSES and EN. EN reports an alarm after obtaining the data. Therefore, the hard disk frame drop fault alarm information reported by EN can be queried on the MCS side, that is, the test process of the hard disk frame drop fault detection function is completed.

[0126] In a feasible implementation, the link status information of the PHY link is analyzed in the OSES system, that is, the OSES system determines whether a hard disk frame drop fault occurs at the measurement point based on the link status information of the PHY link. When it is determined that a hard disk frame drop fault occurs at the measurement point, the hard disk frame drop fault alarm information of the measurement point is directly generated, and the alarm information is transmitted to the EN through data interaction between OSES and EN. The EN reports the hard disk frame drop fault alarm information to the control system, so that the MCS end queries the hard disk frame drop fault alarm information reported by the EN, that is, the test process of the hard disk frame drop fault detection function is completed. Through this implementation, the OSES system can be used to perform data analysis and fault determination functions, thereby reducing the data processing amount of the chassis management module in the control system, thereby reducing the performance burden of the control system end.

[0127] In a feasible implementation, the preset time period is determined according to the polling strategy of the MCS layer and the EN layer. The length of the preset time period should be less than the polling time of the MCS and EN. If the polling time of the MCS and EN is 5 milliseconds, the time for the hard disk frame drop fault information to be written into the target link is within 5 milliseconds. In this way, the hard disk frame drop fault injection can be simulated sensitively and conveniently, and at the same time, it can avoid the problem that the state change time in the link is not enough, which is identified as other alarm events and the hard disk frame drop fault cannot be accurately identified, thereby improving the hit rate of the test.

[0128] In one embodiment of the present application, based on the same or similar technical concept as the above embodiment, a test device for hard disk frame drop fault detection function is also provided. Figure 8 , Figure 8 Schematic diagram of the framework of a test device for hard disk frame drop fault detection function in one embodiment of the present application. Figure 8 As shown, the test device 800 for hard disk frame drop fault detection function includes:

[0129] The first acquisition module 801 is used to acquire the identifier of the hard disk drive slot in the chassis that is in the hard disk in-position state through the chassis management service system;

[0130] The first determination module 802 is used to determine the identifier of the target link corresponding to the identifier through the chassis management service system according to the identifier and the first mapping relationship; the first mapping relationship is used to characterize the correspondence between the hard disk drive slot and the link; the target link is the link composed of the hard disk drive slot and the rack;

[0131] The fault information injection module 803 is used to add hard disk frame drop fault information to the target link within a preset time period through the chassis management service system when the target link is currently in a connected state; the hard disk frame drop fault information is used to indicate that the target link has a change of disconnection and reset;

[0132] The second acquisition module 804 is used to obtain the real-time link status information of the target link through the chassis management service system, and transmit the real-time link status information to the chassis management module in the control system; so that the control system can determine that the hard disk frame drop fault detection function is normal when receiving the hard disk frame drop fault alarm information generated by the chassis management module according to the real-time link status information.

[0133] In this embodiment, the identification of the hard disk drive slot in the chassis in the hard disk in-place state is obtained through the chassis management service system; the identification of the target link corresponding to the identification is determined through the chassis management service system according to the identification and the first mapping relationship; the first mapping relationship is used to characterize the correspondence between the hard disk drive slot and the link; the target link is the link composed of the hard disk drive slot and the rack; through the chassis management service system, when the target link is currently in a connected state, hard disk frame drop fault information is added to the target link within a preset time period; the hard disk frame drop fault information is used to indicate that the target link has undergone a disconnection and reset change; through the chassis management service system, real-time link status information of the target link is obtained, and the real-time link status information is transmitted to the chassis management module in the control system; so that the control system can determine that the hard disk frame drop fault detection function is normal when receiving the hard disk frame drop fault alarm information generated by the chassis management module according to the real-time link status information. For the application scenario of hard disk frame drop failure, by injecting hard disk frame drop failure information, the target link where the hard disk is located is controlled, and the hard disk frame drop failure is conveniently simulated. The communication link connected to the chassis management service system is used to write corresponding operations to the target link, and the link status information of the target link is collected and transmitted to the EN layer to determine the hard disk failure frame drop failure and issue an alarm. In this way, the hard disk frame drop failure detection function can be automatically tested, effectively improving the hit rate and efficiency of the hard disk frame drop failure test.

[0134] In the present application, the description of the device embodiment is relatively short, and specific details can be referred to the above method embodiment, which will not be repeated here.

[0135] In one embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned test method for hard disk frame drop fault detection function when executing the computer program.

[0136] In one embodiment of the present application, a non-volatile storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the test method for the hard disk frame drop fault detection function as described in the above embodiment is implemented.

[0137] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0138] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0139] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0140] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0141] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0142] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0143] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0144] The above provides a detailed introduction to the test method, device, equipment and medium for the hard disk frame drop fault detection function. This article uses specific examples to illustrate the principles and embodiments of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific embodiments and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for testing a hard disk frame drop fault detection function, characterized in that: The method comprises: Obtaining, through the chassis management service system, an identifier of a hard disk drive slot in the chassis that is in a hard disk in-position state; Determining, by the chassis management service system, an identifier of a target link corresponding to the identifier according to the identifier and a first mapping relationship; the first mapping relationship is used to characterize a corresponding relationship between a hard disk drive slot and a link; the target link is a link formed by the hard disk drive slot and a rack; By means of the chassis management service system, when the target link is currently in a connected state, hard disk frame drop fault information is added to the target link within a preset time period; the hard disk frame drop fault information is used to indicate that the target link has a change of disconnection and resetting; The real-time link status information of the target link is obtained through the chassis management service system, and the real-time link status information is transmitted to the chassis management module in the control system; so that the control system can determine that the hard disk frame drop fault detection function is normal when it receives the hard disk frame drop fault alarm information generated by the chassis management module according to the real-time link status information.

2. The method according to claim 1, characterized in that The adding hard disk frame drop fault information to the target link within a preset time period by the chassis management service system when the target link is currently in a connected state includes: Detecting whether the target link is in a connected state; When the target link is in a connected state, a disabling operation and a resetting operation are sequentially written into the target link within the preset time period; the disabling operation is used to disconnect the hard disk drive slot from the rack; and the resetting operation is used to establish a connection between the hard disk drive slot and the rack.

3. The method according to claim 1, characterized in that The step of obtaining, through the chassis management service system, an identifier of a hard disk drive slot in the chassis that is in a hard disk in-place state includes: Obtaining hard disk status information of each hard disk drive slot in the chassis through a connection link between the chassis management service system and the chassis hardware; When the hard disk status of the hard disk drive slot is in-place status, an identifier of the hard disk drive slot is obtained.

4. The method according to claim 1, characterized in that: The step of acquiring the real-time link status information of the target link through the chassis management service system and transmitting the real-time link status information to the chassis management module in the control system includes: Acquiring, through the chassis management service system, real-time link status information of the target link according to the identifier of the target link; The real-time link status information is transmitted to the chassis management module via a connection link between the chassis management service system and the chassis management module.

5. The method according to claim 1, characterized in that The control system determines that the hard disk frame drop fault detection function is normal when receiving the hard disk frame drop fault alarm information generated by the chassis management module according to the real-time link status information, including: Determining, by the chassis management module, whether the target link has been disconnected and reset in sequence within the preset time period according to the real-time link status information of the target link; In the case that the target link is disconnected and reset in sequence within the preset time period, the chassis management module generates hard disk frame drop fault alarm information; Reporting the hard disk frame drop fault alarm information to the control system through the chassis management module; The control system determines that the hard disk frame drop fault detection function of the control system is normal when receiving the hard disk frame drop fault alarm information; The real-time link status information includes attribute values ​​corresponding to the enablement item, the connection item and the change item, respectively, and the attribute values ​​are used to determine the changes occurring in the target link.

6. The method according to claim 1, characterized in that Before determining, by the chassis management service system, the identifier of the target link corresponding to the identifier according to the identifier and the first mapping relationship, the method further includes: Traversing the hard disk drive slots in the chassis; Determine the links between each hard disk drive slot and the rack; The first mapping relationship is established according to the link formed by each hard disk drive slot and the rack.

7. The method according to claim 2, characterized in that When the target link is in a connected state, writing a disabling operation and a resetting operation into the target link in sequence within the preset time period includes: In the case that the hard disk connected to the target link is dual-ported, a disable operation and a reset operation are simultaneously written to the dual-ports of the hard disk in the target link.

8. A test device for hard disk frame drop fault detection function, characterized in that: The device comprises: A first acquisition module is used to acquire, through the chassis management service system, an identifier of a hard disk drive slot in the chassis that is in a hard disk in-place state; A first determination module is used to determine, through the chassis management service system, an identifier of a target link corresponding to the identifier according to the identifier and a first mapping relationship; the first mapping relationship is used to characterize a correspondence between a hard disk drive slot and a link; the target link is a link formed by the hard disk drive slot and a rack; A fault information injection module is used to add hard disk frame drop fault information to the target link within a preset time period through the chassis management service system when the target link is currently in a connected state; the hard disk frame drop fault information is used to indicate that the target link has a change of disconnection and reset; The second acquisition module is used to obtain the real-time link status information of the target link through the chassis management service system, and transmit the real-time link status information to the chassis management module in the control system; so that the control system can determine that the hard disk frame drop fault detection function is normal when it receives the hard disk frame drop fault alarm information generated by the chassis management module according to the real-time link status information.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the test method for the hard disk frame drop fault detection function as described in any one of claims 1-7 is implemented.

10. A non-volatile storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, a test method for a hard disk frame drop fault detection function as described in any one of claims 1-7 is implemented.