[go: up one dir, main page]

CN109739716B - Method and system for testing HBA card in a storage system - Google Patents

Method and system for testing HBA card in a storage system Download PDF

Info

Publication number
CN109739716B
CN109739716B CN201811553781.1A CN201811553781A CN109739716B CN 109739716 B CN109739716 B CN 109739716B CN 201811553781 A CN201811553781 A CN 201811553781A CN 109739716 B CN109739716 B CN 109739716B
Authority
CN
China
Prior art keywords
hba card
configuration information
card
hba
standard configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811553781.1A
Other languages
Chinese (zh)
Other versions
CN109739716A (en
Inventor
徐铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811553781.1A priority Critical patent/CN109739716B/en
Publication of CN109739716A publication Critical patent/CN109739716A/en
Application granted granted Critical
Publication of CN109739716B publication Critical patent/CN109739716B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请公开了一种存储系统中HBA卡的测试方法和系统,该测试方法包括:读取HBA卡的实际配置信息;比对HBA卡的实际配置信息和标准配置信息,判断HBA卡是否配置正确,如果是,对HBA卡进行数据传输测试;数据传输完成后,根据所传输数据的MD5值,判断数据传输的完整性是否合格;如果所传输数据的MD5值正确,判定数据传输的完整性合格;如果数据传输完整性合格,显示测试结果并存储测试记录。HBA卡的测试系统包括HBA卡读取模块、配置校验模块、完整性判断模块以及输出模块。通过本申请,能够实现HBA卡的自动化测试,有利于提高测试效率和测试结果的准确性。

Figure 201811553781

The present application discloses a method and system for testing an HBA card in a storage system. The testing method includes: reading actual configuration information of the HBA card; comparing the actual configuration information and standard configuration information of the HBA card to determine whether the HBA card is configured correctly , if yes, carry out the data transmission test on the HBA card; after the data transmission is completed, according to the MD5 value of the transmitted data, determine whether the integrity of the data transmission is qualified; if the MD5 value of the transmitted data is correct, determine whether the integrity of the data transmission is qualified ; If the integrity of the data transmission is qualified, display the test result and store the test record. The test system of the HBA card includes an HBA card reading module, a configuration verification module, an integrity judgment module and an output module. Through the present application, the automatic test of the HBA card can be realized, which is beneficial to improve the test efficiency and the accuracy of the test result.

Figure 201811553781

Description

Method and system for testing HBA card in storage system
Technical Field
The present application relates to the technical field of server storage system testing, and in particular, to a method and a system for testing an HBA card in a storage system.
Background
With the increase of the demand of cloud storage products and big data applications, the demand of users on data transmission of a storage system is higher and higher, and a key device playing a role in data transmission and function management in the storage system is an HBA (Host Bus Adapter) card. Therefore, the stability of the HBA card is critical to the memory system, and performing stability testing on the HBA card in the memory system is an important issue.
The conventional method for testing the stability of the HBA card is as follows: and inserting the HBA card into a PCIE slot of the server mainboard, testing whether the server mainboard connected with the HBA card can normally transmit data or not, and manually recording a test result.
However, in the current testing method for the HBA card, because the testing is performed manually and the testing result is recorded manually, testing errors are easily generated and the recorded result is not easy to check. Therefore, the current test method for the HBA card causes that the test result is not accurate enough and the test efficiency is low.
Disclosure of Invention
The application provides a method and a system for testing an HBA card in a storage system, which aim to solve the problems of inaccurate test result and low test efficiency of the HBA card in the prior art.
In order to solve the technical problem, the embodiment of the application discloses the following technical scheme:
a testing method for an HBA card in a storage system comprises the following steps:
reading actual configuration information of the HBA card, wherein the configuration information comprises a manufacturer name, QN, PN, WWN number, transmission rate and PCIE bandwidth of the HBA card;
comparing the actual configuration information and the standard configuration information of the HBA card, and judging whether the HBA card is configured correctly;
if so, carrying out data transmission test on the HBA card;
after the data transmission is finished, judging whether the integrity of the data transmission is qualified or not according to the MD5 value of the transmitted data;
if the MD5 value of the transmitted data is correct, judging that the integrity of the data transmission is qualified;
and if the data transmission integrity is qualified, displaying the test result and storing the test record.
Optionally, the comparing the actual configuration information and the standard configuration information of the HBA card to determine whether the HBA card is configured correctly includes:
judging whether the manufacturer name of the HBA card in the actual configuration information is consistent with the manufacturer name of the HBA card in the standard configuration information, whether the QN of the HBA card in the actual configuration information is consistent with the QN of the HBA card in the standard configuration information, whether the PN of the HBA card in the actual configuration information is consistent with the PN of the HBA card in the standard configuration information, and whether the WWN number of the HBA card in the actual configuration information is consistent with the WWN number of the HBA card in the standard configuration information;
if so, judging whether the difference value between the actual transmission rate of the HBA card and the transmission rate in the standard configuration information is less than or equal to 10% of the transmission rate in the standard configuration information;
if so, judging whether the difference between the PCIE bandwidth of the HBA card in the actual configuration information and the PCIE bandwidth of the HBA card in the standard configuration information is less than or equal to 10% of the PCIE bandwidth of the HBA card in the standard configuration information;
if so, judging that the configuration of the HBA card is correct, otherwise, judging that the configuration of the HBA card is wrong.
Optionally, the method for data transmission to the HBA card includes:
calling a data packet in a main board system disk through a PCIE protocol, wherein the HBA card is connected with the main board through a PCIE slot arranged on the main board;
the data packet is transmitted to the HBA card through the PCIE slot;
the HBA card buffers the packet.
Optionally, the HBA card comprises: an Ethernet card, an FC network card and an iSCSI network card.
A test system for an HBA card in a storage system, the test system comprising:
the HBA card reading module is used for reading the actual configuration information of the HBA card, and the configuration information comprises the manufacturer name, QN, PN, WWN number, transmission rate and PCIE bandwidth of the HBA card;
the configuration checking module is used for comparing the actual configuration information and the standard configuration information of the HBA card and judging whether the HBA card is correctly configured;
the data transmission module is used for transmitting data to the HBA card when the HBA card is correctly configured;
the integrity judgment module is used for judging whether the integrity of data transmission is qualified or not according to the MD5 value of the transmitted data after the data transmission is finished;
and the output module is used for displaying the test result and storing the test record when the data transmission completeness is qualified.
Optionally, the configuration checking module includes:
the first checking unit is used for judging whether the manufacturer name of the HBA card in the actual configuration information is consistent with the manufacturer name of the HBA card in the standard configuration information;
the second checking unit is used for judging whether the QN of the HBA card in the actual configuration information is consistent with the QN of the HBA card in the standard configuration information;
a third checking unit, configured to determine whether a PN of the HBA card in the actual configuration information is consistent with a PN of the HBA card in the standard configuration information;
a fourth checking unit, configured to determine whether a WWN number of the HBA card in the actual configuration information is consistent with a WWN number of the HBA card in the standard configuration information;
a fifth checking unit, configured to determine whether a difference between the actual transmission rate of the HBA card and the transmission rate in the standard configuration information is less than or equal to 10% of the transmission rate in the standard configuration information;
the sixth verification unit is used for judging whether the difference between the PCIE bandwidth of the HBA card in the actual configuration information and the PCIE bandwidth of the HBA card in the standard configuration information is less than or equal to 10% of the PCIE bandwidth of the HBA card in the standard configuration information;
and the judging unit is used for judging that the configuration of the HBA card is correct when the manufacturer name, QN, PN and WWN of the HBA card in the actual configuration information and the standard configuration information are consistent, the difference value between the actual transmission rate of the HBA card and the transmission rate in the standard configuration information is less than or equal to 10% of the transmission rate in the standard configuration information, and the difference value between the PCIE bandwidth of the HBA card in the actual configuration information and the PCIE bandwidth of the HBA card in the standard configuration information is less than or equal to 10% of the PCIE bandwidth of the HBA card in the standard configuration information, otherwise, judging that the configuration of the HBA card is wrong.
Optionally, the data transmission module includes:
the calling unit is used for calling a data packet in a main board system disk through a PCIE protocol, and the HBA card is connected with the main board through a PCIE slot arranged on the main board;
the transmission unit is used for transmitting the data packet to the HBA card through the PCIE slot;
and the buffer unit is used for buffering the data packet.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
the application provides a test method of an HBA card in a storage system, and the test method is mainly used for testing the stability of the HBA card. The method comprises the steps of firstly reading actual configuration information of an HBA card, then comparing the actual configuration information of the HBA card with standard configuration information, judging whether the HBA card is correctly configured, carrying out data transmission test on the HBA card when the HBA card is correctly configured, judging whether the integrity of data transmission is qualified according to the MD5 value of transmitted data after the data transmission is finished, and displaying a test result and storing a test record if the data transmission is qualified. The script can be written according to the method in the embodiment, and the automatic test of the HBA card is realized by running the script, so that the test efficiency and the test accuracy can be greatly improved. In this embodiment, the automated testing of the stability of the HBA card is realized by verifying the configuration information of the HBA card and testing the data transmission integrity of the HBA card, and after the testing is completed, the testing result is displayed and the testing record is stored for the condition that the data transmission integrity is qualified, so that the checking by the staff is facilitated.
The application also provides a test system of the HBA card in the storage system, which mainly comprises an HBA card reading module, a configuration checking module, an integrity judging module and an output module. The method comprises the steps of firstly reading actual configuration information of an HBA card through an HBA card reading module, secondly comparing the actual configuration information with standard configuration information of the HBA card through a configuration checking module, judging whether the configuration of the HBA card is correct according to a comparison result, carrying out data transmission on the HBA card through a data transmission module when the configuration is correct, then judging whether the integrity of data transmission is qualified through an integrity judging module, and finally displaying a test result and storing a test record through an output module when the integrity of data transmission is qualified. By the test system in the embodiment, the automatic test of the HBA card can be realized, so that the test efficiency and the accuracy of the test result are greatly improved. After the test is finished, the test system can automatically output the test result and store the test record, so that the staff can conveniently obtain the test result or check the historical test result in time.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart illustrating a method for testing an HBA card in a storage system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a system for testing an HBA card in a storage system according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The HBA card is an optical fiber switch for connecting a host to a backend, or a disk array device for connecting a host to a backend, and is used to extend more interfaces of the host, which is equivalent to an external link card outside the host.
For a better understanding of the present application, embodiments of the present application are explained in detail below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for testing an HBA card in a storage system according to an embodiment of the present application. As shown in fig. 1, the method for testing the HBA card in the storage system in this embodiment mainly includes the following steps:
s1: the actual configuration information of the HBA card is read.
The configuration information of the HBA card in this embodiment includes a manufacturer Name of the HBA card, a QN (quality Number), a PN (Part Number, product model), a WWN (World Wide Name), a transmission rate, and a PCIE bandwidth. In this embodiment, the configuration information of the HBA card includes actual configuration information and standard configuration information of the HBA card, where the actual configuration information is configuration information of an actual product after the HBA card is produced, and the standard configuration information is configuration information meeting customer requirements pre-stored in a production task list before the HBA card is produced. In this embodiment, the test performed on the HBA card is mainly a stability test, and before the HBA card is tested, the standard configuration information of the HBA card needs to be maintained in the test system.
When the actual configuration information of the HBA card is read in step S1, the actual configuration information may be read by a command line under the RedHat system. Namely: and reading the actual configuration information of the HBA card according to the acquired command.
S2: and comparing the actual configuration information and the standard configuration information of the HBA card, and judging whether the HBA card is configured correctly.
Specifically, step S2 includes:
s21: judging whether the manufacturer name of the HBA card in the actual configuration information is consistent with the manufacturer name of the HBA card in the standard configuration information, whether the QN of the HBA card in the actual configuration information is consistent with the QN of the HBA card in the standard configuration information, whether the PN of the HBA card in the actual configuration information is consistent with the PN of the HBA card in the standard configuration information, and whether the WWN number of the HBA card in the actual configuration information is consistent with the WWN number of the HBA card in the standard configuration information.
In this embodiment, the same HBA card needs to satisfy: the manufacturer name, QN, PN and WWN numbers in the actual configuration information and the standard configuration information are respectively consistent.
When the manufacturer name, QN, PN and WWN numbers in the actual configuration information and the standard configuration information respectively coincide, step S22 is executed: and judging whether the difference value between the actual transmission rate of the HBA card and the transmission rate in the standard configuration information is less than or equal to 10% or not.
If the difference between the actual transmission rate of the HBA card and the transmission rate in the standard configuration information is less than or equal to 10% and the transmission rate in the standard configuration information, execute step S23: and judging whether the difference between the PCIE bandwidth of the HBA card in the actual configuration information and the PCIE bandwidth of the HBA card in the standard configuration information is less than or equal to 10% or not.
That is, when the actual transmission rate of the HBA card satisfies: when the transmission rate in the standard configuration information is not less than 90% and the actual transmission rate in the standard configuration information is not more than 110%, it is determined that the actual transmission rate of the HBA card is qualified, and step S23 is executed.
If the difference between the PCIE bandwidth of the HBA card in the actual configuration information and the PCIE bandwidth of the HBA card in the standard configuration information is less than or equal to 10% of the PCIE bandwidth of the HBA card in the standard configuration information, step S24 is executed: and judging that the configuration of the HBA card is correct, otherwise, judging that the configuration of the HBA card is wrong.
That is, when the PCIE bandwidth of the HBA card in the actual configuration information satisfies: and when the PCIE bandwidth of the HBA card in the 90% standard configuration information is less than or equal to the PCIE bandwidth of the HBA card in the actual configuration information is less than or equal to 110% standard configuration information, judging that the PCIE bandwidth of the HBA card is qualified. And judging that the configuration of the HBA card is correct because other configuration information of the HBA card is qualified, otherwise, judging that the configuration of the HBA card is wrong because any parameter in the configuration information is unqualified.
As can be seen from fig. 1, when the HBA card is correctly configured, step S3 is executed: and carrying out data transmission test on the HBA card.
Specifically, step S3 includes the following processes:
s31: and a data packet in the main board system disk is called through a PCIE protocol, and the HBA card is connected with the main board through a PCIE slot arranged on the main board.
S32: and the data packet is transmitted to the HBA card through the PCIE slot.
S33: the HBA card buffers the packet.
After the data transmission is completed, step S4 is executed: and judging whether the integrity of the data transmission is qualified or not according to the MD5 value of the transmitted data.
The embodiment determines the integrity of the data transmission according to whether the MD5 value of the transmitted data file is correct, and if the MD5 value of the transmitted data file is correct, performs the step S5: and judging that the integrity of the data transmission is qualified, and if the MD5 value of the transmitted data file is incorrect, judging that the integrity of the data transmission is unqualified.
If the data transmission integrity is qualified, execute step S6: and displaying the test result and storing the test record.
And if the data transmission integrity is not qualified, judging that the HBA card is not qualified, needing rework maintenance, returning to the step S1 after the maintenance is finished, and testing the HBA card again.
In summary, by the method for testing the HBA card in this embodiment, the actual configuration information of the HBA card can be automatically captured, whether the configuration of the HBA card is correct can be automatically determined according to the standard configuration information pre-stored in the production task sheet, data transmission is automatically performed on the HBA card according to the obtained command, the test result is automatically displayed according to the integrity of the data transmission, and the test result is stored, so that the automatic test of the HBA card of the storage system is realized. The automatic test method of the HBA card can greatly improve the test efficiency and the accuracy of the test result.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a system for testing an HBA card in a storage system according to an embodiment of the present application. As shown in fig. 2, the test system for the HBA card in this embodiment mainly includes: the HBA card reading module, the configuration checking module, the integrity judging module and the output module.
The HBA card reading module is configured to read actual configuration information of the HBA card, where the configuration information of the HBA card includes: manufacturer name of HBA card, QN, PN, WWN number, transmission rate and PCIE bandwidth. The configuration checking module is used for comparing the actual configuration information and the standard configuration information of the HBA card and judging whether the HBA card is configured correctly. And the data transmission module is used for transmitting data to the HBA card when the HBA card is correctly configured. And the integrity judging module is used for judging whether the integrity of the data transmission is qualified or not according to the MD5 value of the transmitted data after the data transmission is finished. And the output module is used for displaying the test result and storing the test record when the data transmission completeness is qualified.
Further, the configuration checking module comprises: the device comprises a first checking unit, a second checking unit, a third checking unit, a fourth checking unit, a fifth checking unit, a sixth checking unit and a judging unit.
The first checking unit is used for judging whether the manufacturer name of the HBA card in the actual configuration information is consistent with the manufacturer name of the HBA card in the standard configuration information. And the second checking unit is used for judging whether the QN of the HBA card in the actual configuration information is consistent with the QN of the HBA card in the standard configuration information. And the third checking unit is used for judging whether the PN of the HBA card in the actual configuration information is consistent with the PN of the HBA card in the standard configuration information. And the fourth checking unit is used for judging whether the WWN number of the HBA card in the actual configuration information is consistent with the WWN number of the HBA card in the standard configuration information. And the fifth checking unit is used for judging whether the difference value between the actual transmission rate of the HBA card and the transmission rate in the standard configuration information is less than or equal to 10% or not. And the sixth checking unit is used for judging whether the difference between the PCIE bandwidth of the HBA card in the actual configuration information and the PCIE bandwidth of the HBA card in the standard configuration information is less than or equal to 10% of the PCIE bandwidth of the HBA card in the standard configuration information. And the judging unit is used for judging that the configuration of the HBA card is correct when the manufacturer name, QN, PN and WWN of the HBA card in the actual configuration information and the standard configuration information are consistent, the difference value between the actual transmission rate of the HBA card and the transmission rate in the standard configuration information is less than or equal to 10% of the transmission rate in the standard configuration information, the difference between the PCIE bandwidth of the HBA card in the actual configuration information and the PCIE bandwidth of the HBA card in the standard configuration information is less than or equal to 10% of the PCIE bandwidth of the HBA card in the standard configuration information, and otherwise, judging that the configuration of the HBA card is wrong.
The data transmission module includes: the device comprises a calling unit, a transmission unit and a buffer unit.
The calling unit is used for calling a data packet in a main board system disk through a PCIE protocol, and the HBA card is connected with the main board through a PCIE slot arranged on the main board. The transmission unit is used for transmitting the data packet to the HBA card through the PCIE slot. And the buffer unit is used for buffering the data packet.
The working principle and the working method of the test system for the HBA card in this embodiment have been explained in detail in the test method for the HBA card shown in fig. 1, and are not described herein again. Through the test system in the embodiment, manual test in the prior art can be avoided, and automatic test of the HBA card is realized, so that the test efficiency and the accuracy of a test result are greatly improved. After the test is finished, the test system can automatically output the test result and store the test record, so that the test result can be conveniently obtained by a worker in time or the historical test result can be conveniently checked, and the test efficiency can be further improved.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (5)

1.一种存储系统中HBA卡的测试方法,其特征在于,所述测试方法包括:1. the test method of HBA card in a storage system, is characterized in that, described test method comprises: 读取HBA卡的实际配置信息,其中,HBA卡的配置信息包括HBA卡的制造厂商名称、QN、PN、WWN号、传输速率以及PCIE带宽;Read the actual configuration information of the HBA card, wherein the configuration information of the HBA card includes the manufacturer's name, QN, PN, WWN number, transmission rate and PCIE bandwidth of the HBA card; 比对所述HBA卡的实际配置信息和标准配置信息,判断所述HBA卡是否配置正确;Compare the actual configuration information and standard configuration information of the HBA card, and determine whether the HBA card is configured correctly; 如果是,对所述HBA卡进行数据传输测试;If so, perform a data transmission test on the HBA card; 数据传输完成后,根据所传输数据的MD5值,判断数据传输的完整性是否合格;After the data transmission is completed, judge whether the integrity of the data transmission is qualified according to the MD5 value of the transmitted data; 如果所传输数据的MD5值正确,判定数据传输的完整性合格;If the MD5 value of the transmitted data is correct, it is judged that the integrity of the data transmission is qualified; 如果数据传输完整性合格,显示测试结果并存储测试记录;If the integrity of the data transmission is qualified, display the test results and store the test records; 其中,所述比对所述HBA卡的实际配置信息和标准配置信息,判断所述HBA卡是否配置正确,包括:Wherein, comparing the actual configuration information and standard configuration information of the HBA card to determine whether the HBA card is correctly configured, including: 判断实际配置信息中所述HBA卡的制造厂商名称和标准配置信息中所述HBA卡的制造厂商名称是否一致,实际配置信息中所述HBA卡的QN和标准配置信息中所述HBA卡的QN是否一致,实际配置信息中所述HBA卡的PN和标准配置信息中所述HBA卡的PN是否一致,且,实际配置信息中所述HBA卡的WWN号和标准配置信息中所述HBA卡的WWN号是否一致;Determine whether the name of the manufacturer of the HBA card in the actual configuration information is consistent with the name of the manufacturer of the HBA card in the standard configuration information, the QN of the HBA card in the actual configuration information and the QN of the HBA card in the standard configuration information Whether they are consistent, whether the PN of the HBA card in the actual configuration information is consistent with the PN of the HBA card in the standard configuration information, and whether the WWN number of the HBA card in the actual configuration information and the HBA card in the standard configuration information are consistent. Whether the WWN number is the same; 如果是,判断所述HBA卡的实际传输速率与标准配置信息中传输速率的差值是否≤10%*标准配置信息中传输速率;If yes, determine whether the difference between the actual transmission rate of the HBA card and the transmission rate in the standard configuration information is ≤ 10% * the transmission rate in the standard configuration information; 如果是,判断实际配置信息中所述HBA卡的PCIE带宽与标准配置信息中所述HBA卡的PCIE带宽之差是否≤10%*标准配置信息中所述HBA卡的PCIE带宽;If yes, determine whether the difference between the PCIE bandwidth of the HBA card in the actual configuration information and the PCIE bandwidth of the HBA card in the standard configuration information is ≤ 10% * the PCIE bandwidth of the HBA card in the standard configuration information; 如果是,判定所述HBA卡的配置正确,否则判定所述HBA卡的配置错误。If yes, it is determined that the configuration of the HBA card is correct; otherwise, it is determined that the configuration of the HBA card is incorrect. 2.根据权利要求1所述的一种存储系统中HBA卡的测试方法,其特征在于,对所述HBA卡进行数据传输的方法,包括:2. the test method of HBA card in a kind of storage system according to claim 1, is characterized in that, the method that described HBA card is carried out data transmission, comprises: 通过PCIE协议调用主板系统盘中的数据包,所述HBA卡与所述主板通过设置于所述主板上的PCIE插槽连接;The data packet in the system disk of the mainboard is called by the PCIE protocol, and the HBA card is connected with the mainboard through the PCIE slot provided on the mainboard; 所述数据包通过PCIE插槽传输至HBA卡;The data packet is transmitted to the HBA card through the PCIE slot; 所述HBA卡缓存所述数据包。The HBA card caches the data packet. 3.根据权利要求1或2所述的一种存储系统中HBA卡的测试方法,其特征在于,所述HBA卡包括:以太网卡、FC网卡以及iSCSI网卡。3. The method for testing an HBA card in a storage system according to claim 1 or 2, wherein the HBA card comprises: an Ethernet card, an FC network card and an iSCSI network card. 4.一种存储系统中HBA卡的测试系统,其特征在于,所述测试系统包括:4. the test system of HBA card in a storage system, is characterized in that, described test system comprises: HBA卡读取模块,用于读取HBA卡的实际配置信息,所述配置信息包括HBA卡的制造厂商名称、QN、PN、WWN号、传输速率以及PCIE带宽;The HBA card reading module is used to read the actual configuration information of the HBA card, and the configuration information includes the manufacturer's name, QN, PN, WWN number, transmission rate and PCIE bandwidth of the HBA card; 配置校验模块,用于比对所述HBA卡的实际配置信息和标准配置信息,判断所述HBA卡是否配置正确;a configuration verification module, used for comparing the actual configuration information and standard configuration information of the HBA card, and judging whether the HBA card is configured correctly; 数据传输模块,用于当所述HBA卡配置正确时,对所述HBA卡进行数据传输;a data transmission module, configured to transmit data to the HBA card when the HBA card is correctly configured; 完整性判断模块,用于数据传输完成后,根据所传输数据的MD5值,判断数据传输的完整性是否合格;The integrity judgment module is used to judge whether the integrity of the data transmission is qualified according to the MD5 value of the transmitted data after the data transmission is completed; 输出模块,用于当数据传输完整性合格时,显示测试结果并存储测试记录;The output module is used to display the test results and store the test records when the integrity of the data transmission is qualified; 其中,所述配置校验模块,包括:Wherein, the configuration verification module includes: 第一校验单元,用于判断实际配置信息中所述HBA卡的制造厂商名称和标准配置信息中所述HBA卡的制造厂商名称是否一致;The first verification unit is used to judge whether the manufacturer's name of the HBA card in the actual configuration information is consistent with the manufacturer's name of the HBA card in the standard configuration information; 第二校验单元,用于判断实际配置信息中所述HBA卡的QN和标准配置信息中所述HBA卡的QN是否一致;The second verification unit is used to judge whether the QN of the HBA card in the actual configuration information is consistent with the QN of the HBA card in the standard configuration information; 第三校验单元,用于判断实际配置信息中所述HBA卡的PN和标准配置信息中所述HBA卡的PN是否一致;The third verification unit is used to judge whether the PN of the HBA card in the actual configuration information is consistent with the PN of the HBA card in the standard configuration information; 第四校验单元,用于判断实际配置信息中所述HBA卡的WWN号和标准配置信息中所述HBA卡的WWN号是否一致;The fourth verification unit is used to judge whether the WWN number of the HBA card in the actual configuration information is consistent with the WWN number of the HBA card in the standard configuration information; 第五校验单元,用于判断所述HBA卡的实际传输速率与标准配置信息中传输速率的差值是否≤10%*标准配置信息中传输速率;A fifth verification unit, configured to determine whether the difference between the actual transmission rate of the HBA card and the transmission rate in the standard configuration information is ≤10%*the transmission rate in the standard configuration information; 第六校验单元,判断实际配置信息中所述HBA卡的PCIE带宽与标准配置信息中所述HBA卡的PCIE带宽之差是否≤10%*标准配置信息中所述HBA卡的PCIE带宽;The sixth verification unit, judges whether the difference between the PCIE bandwidth of the HBA card in the actual configuration information and the PCIE bandwidth of the HBA card in the standard configuration information is ≤ 10% * the PCIE bandwidth of the HBA card in the standard configuration information; 判定单元,用于当实际配置信息和标准配置信息中所述HBA卡的制造厂商名称、QN、PN和WWN号均一致,所述HBA卡的实际传输速率与标准配置信息中传输速率的差值≤10%*标准配置信息中传输速率,且,实际配置信息中所述HBA卡的PCIE带宽与标准配置信息中所述HBA卡的PCIE带宽之差≤10%*标准配置信息中所述HBA卡的PCIE带宽时,判定所述HBA卡的配置正确,否则判定所述HBA卡的配置错误。A determination unit, used for when the manufacturer's name, QN, PN and WWN number of the HBA card in the actual configuration information and the standard configuration information are consistent, the difference between the actual transmission rate of the HBA card and the transmission rate in the standard configuration information ≤10%*The transmission rate in the standard configuration information, and the difference between the PCIE bandwidth of the HBA card in the actual configuration information and the PCIE bandwidth of the HBA card in the standard configuration information≤10%*The HBA card in the standard configuration information When the PCIE bandwidth is higher, it is determined that the configuration of the HBA card is correct; otherwise, it is determined that the configuration of the HBA card is incorrect. 5.根据权利要求4所述的一种存储系统中HBA卡的测试系统,其特征在于,所述数据传输模块包括:5. the test system of HBA card in a kind of storage system according to claim 4, is characterized in that, described data transmission module comprises: 调用单元,用于通过PCIE协议调用主板系统盘中的数据包,所述HBA卡与所述主板通过设置于所述主板上的PCIE插槽连接;a calling unit, used for calling the data packet in the system disk of the mainboard through the PCIE protocol, and the HBA card and the mainboard are connected by a PCIE slot arranged on the mainboard; 传输单元,用于将所述数据包通过PCIE插槽传输至HBA卡;a transmission unit for transmitting the data packet to the HBA card through the PCIE slot; 缓存单元,用于缓存所述数据包。a buffering unit for buffering the data packets.
CN201811553781.1A 2018-12-18 2018-12-18 Method and system for testing HBA card in a storage system Active CN109739716B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811553781.1A CN109739716B (en) 2018-12-18 2018-12-18 Method and system for testing HBA card in a storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811553781.1A CN109739716B (en) 2018-12-18 2018-12-18 Method and system for testing HBA card in a storage system

Publications (2)

Publication Number Publication Date
CN109739716A CN109739716A (en) 2019-05-10
CN109739716B true CN109739716B (en) 2021-11-02

Family

ID=66360587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811553781.1A Active CN109739716B (en) 2018-12-18 2018-12-18 Method and system for testing HBA card in a storage system

Country Status (1)

Country Link
CN (1) CN109739716B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110659202A (en) * 2019-08-12 2020-01-07 网宿科技股份有限公司 Client automatic testing method and device
CN115629931B (en) * 2022-10-21 2025-10-28 苏州元脑智能科技有限公司 HBA card stability testing method, device, terminal and storage medium
CN115904849B (en) * 2023-01-09 2023-05-12 苏州浪潮智能科技有限公司 PCIE link signal testing method, system, computer equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649015A (en) * 2016-12-29 2017-05-10 郑州云海信息技术有限公司 Testing device and testing method of USB interface
CN107608880A (en) * 2017-08-24 2018-01-19 郑州云海信息技术有限公司 A kind of automated testing method for being used for virtual platform based on data-driven
CN107729183A (en) * 2017-10-12 2018-02-23 郑州云海信息技术有限公司 A kind of method and system backed up by FC agreements with recovering linux operating systems

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9584359B2 (en) * 2011-12-12 2017-02-28 International Business Machines Corporation Distributed storage and computing of interim data
JP6809063B2 (en) * 2016-09-09 2021-01-06 富士通株式会社 Access control devices, access control methods, and access control programs

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649015A (en) * 2016-12-29 2017-05-10 郑州云海信息技术有限公司 Testing device and testing method of USB interface
CN107608880A (en) * 2017-08-24 2018-01-19 郑州云海信息技术有限公司 A kind of automated testing method for being used for virtual platform based on data-driven
CN107729183A (en) * 2017-10-12 2018-02-23 郑州云海信息技术有限公司 A kind of method and system backed up by FC agreements with recovering linux operating systems

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Extreme Performance scaling for the Virtualized Infrastructure;DELL;《BROCADE》;20121231;第1-3页 *
基于FPGA的光纤通道HBA卡设计与实现;俞则人 等;《信息技术》;20151231;第206-209页 *

Also Published As

Publication number Publication date
CN109739716A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
CN109739716B (en) Method and system for testing HBA card in a storage system
US20140359362A1 (en) Information interaction test device and method based on automatic generation of associated test cases
CN108763076A (en) A kind of Software Automatic Testing Method, device, equipment and medium
CN108965062A (en) A kind of network interface test method, device, equipment and the storage medium of Onboard NIC
CN107453960A (en) A kind of methods, devices and systems that test data is handled in service testing
CN103368643A (en) Method, system and device for detecting optical fiber link
WO2016197606A1 (en) Method and device for acquiring optical module state information
WO2020150863A1 (en) Optical communication module testing method and apparatus and terminal device
CN109710501A (en) Method and system for detecting stability of server data transmission
CN101013968A (en) Automated interface testing framework
CN117061371A (en) Testing method and system for energy products
CN101800672A (en) Equipment detection method and equipment
CN101510172B (en) Test system and method
CN107357701B (en) SAS signal testing method and device under distributed scene
CN106600461A (en) data verification method, device and equipment
CN116719750B (en) Software testing method and device, server equipment and storage medium
CN114860549B (en) Buried data verification method, buried data verification device, buried data verification equipment and storage medium
CN111737072A (en) An eye-diagram test system, system and related components of a hard disk TX signal
CN115098311A (en) Test method, system, device and storage medium based on multipath alias
WO2016202085A1 (en) Method and device for drawing planisphere of optical module, and virtual vector analyzer
CN110677316A (en) A kind of distributed storage server network card detection method and system
CN115421749A (en) Hard disk firmware refreshing method, system, device and medium based on Linux system
CN114697241A (en) End-to-end time delay test system and method
CN107506436B (en) Method and device for testing storage performance of Internet of things database
CN109686395B (en) OCP (optical proximity correction) buckle card testing method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant