CN104035851A - Method for testing storage device and computer program product - Google Patents

Method for testing storage device and computer program product Download PDF

Info

Publication number
CN104035851A
CN104035851A CN201310095210.9A CN201310095210A CN104035851A CN 104035851 A CN104035851 A CN 104035851A CN 201310095210 A CN201310095210 A CN 201310095210A CN 104035851 A CN104035851 A CN 104035851A
Authority
CN
China
Prior art keywords
interface
storage device
storage
control interface
testing
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.)
Pending
Application number
CN201310095210.9A
Other languages
Chinese (zh)
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.)
Wistron Corp
Original Assignee
Wistron Corp
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 Wistron Corp filed Critical Wistron Corp
Publication of CN104035851A publication Critical patent/CN104035851A/en
Pending legal-status Critical Current

Links

Abstract

A method for testing a storage device and a computer program product are provided. The testing method of the storage device is executed by at least one storage device matched with a computer device, the storage device comprises a first interface, a second interface and at least one storage module, the storage module comprises a first transmission port, a second transmission port and a storage unit, the computer device comprises an arithmetic unit and a control interface, and the testing method comprises the following steps: the operation unit enables the control interface to enable the first interface to be electrically connected with the first transmission port, and disables the second interface to be electrically connected with the second transmission port; (B) the control interface accesses data of the storage unit through the first interface and the first transmission port; (C) the operation unit enables the control interface to enable the second interface to be electrically connected with the second transmission port, and disables the first interface to be electrically connected with the first transmission port; and (D) enabling the control interface to carry out data access on the storage unit through the second interface and the second transmission port. The invention can measure the performance of a single transmission path.

Description

The method of testing of storage device and computer program
Technical field
The present invention relates to a kind of method of testing and computer program, refer to especially a kind of method of testing and computer program of storage device.
Background technology
Redundant Array of Independent Disks (RAID) (redundant array of independent disks, RAID) be a kind of common data storing technology, it is combined as a logic sector by a plurality of hard disks (hard disk), and is widely used in the data storage media of the computer systems such as server.
For instance, server computer can connect by its Redundant Array of Independent Disks (RAID) control interface (RAID controller) and boundling disk (just a bunch of disks, JBOD), with the data in access boundling disk.Each boundling disk respectively comprises the extender (expander) of two concatenation type small computer system interfaces (serial attached small computer system interface, SAS), and a plurality of SAS hard disk.Each SAS hard disk respectively has a main transmit port (primary port) and one transmit port (secondary port).
Above-mentioned Redundant Array of Independent Disks (RAID) control interface is connected with two SAS extenders of boundling disk respectively, and wherein a SAS extender is connected in the main transmit port of each SAS hard disk, and another SAS extender is connected in the inferior transmit port of each SAS hard disk.
Accordingly, for example, while boundling disk being carried out to performance test (pressure test) by above-mentioned server computer, data can transfer to Redundant Array of Independent Disks (RAID) control interface with time transmit port via corresponding SAS extender from the main transmit port of SAS hard disk respectively, that is the partial information of same data carries out access via main transmit port and corresponding SAS extender thereof, another part information is via inferior transmit port and corresponding SAS extender access thereof.But in said process, data are transmitted via two paths dispersedly, and cannot record the Data Transmission Feature (for example maximum load) of single-pathway (single transmission port).
Therefore, need to provide a kind of method of testing of storage device and computer program to solve the problems referred to above.
Summary of the invention
Therefore, object of the present invention, is to provide a kind of and can carries out to storage device the method for single-pathway test.
So, the invention provides a kind of method of testing of storage device, the method of testing of this storage device coordinates a computer installation to carry out by least one storage device, this storage device comprises a first interface, one second interface and at least one storage module, this storage module comprises one first transmit port, one second transmit port and a storage unit, this computer installation comprises an arithmetic element and a control interface, this method of testing comprises following steps: (A) arithmetic element of this computer installation is sent one first steering order to this control interface, this control interface enables the first interface of (enable) this storage device according to this first steering order and the first transmit port of this storage module is electrically connected, and the second transmit port electric connection of second interface of forbidding (disable) this storage device and this storage module, (B) this arithmetic element is sent one first test signal to this control interface, make this control interface by the first interface of this storage device, the first transmit port of this storage module is carried out data access to the storage unit of this storage module, (C) arithmetic element of this computer installation is sent one second steering order to this control interface, this control interface enables the second interface of this storage device according to this second steering order and the second transmit port of this storage module is electrically connected, and forbids the first transmit port electric connection of first interface and this storage module of this storage device, and (D) this arithmetic element is sent one second test signal to this control interface, make this control interface by the second interface of this storage device, the second transmit port of this storage module is carried out data access to the storage unit of this storage module.
Preferably, this storage device comprises a plurality of storage modules, and respectively the first transmit port of this storage module is electrically connected on the first interface of this storage device, and respectively the second transmit port of this storage module is electrically connected on the second interface of this storage device.
Preferably, this first test signal, this second steering order relate to effect test, load testing or the pressure test of this storage device.
Preferably, the quantity of this storage device is a plurality of, and the first interface of these storage devices and one second interface are electrically connected on respectively the control interface of this storage device.
Preferably, the quantity of this storage device is a plurality of, these storage devices also respectively comprise that a first serial connection port and that is electrically connected on this first interface is electrically connected on the second serial connection port of this second interface, respectively the first interface of first series side another storage device of confession of this storage device is electrically connected, and respectively the second interface of second series side another storage device of confession of this storage device is electrically connected; In step (B) this control interface also by respectively this first serial connection port the storage unit of these storage modules is carried out to data access; In step (D) this control interface also by respectively this second serial connection port the storage unit of these storage modules is carried out to data access.
Preferably, this control interface is a Redundant Array of Independent Disks (RAID) control interface, this storage device is a boundling disk, and this first interface and this second interface are respectively concatenation type small computer system interface extenders, and this storage module is a concatenation type small computer system interface hard disk.
The present invention also provides a kind of computer program, after this computer program is written into and is carried out by a computer installation, can carry out above-mentioned arbitrary described method of testing.
Effect of the present invention is: the control interface by computer installation sends instruction to the first interface of storage device, the second interface, both are enabled respectively or forbid the electric connection with the first transmit port, the second transmit port, and can be singly with regard to the data transfer path of the data transfer path of first interface, the first transmit port or the second interface, the second transmit port, test, to record the performance performance in single transmission path.
Accompanying drawing explanation
Other feature and effect of the present invention, clearly presents during the preferred embodiment with reference to accompanying drawing is described in detail, wherein:
Fig. 1 is a system architecture diagram, and the first preferred embodiment of the method for testing of storage device of the present invention is described;
Fig. 2 is the process flow diagram of this first preferred embodiment;
Fig. 3 is a system architecture diagram, and the second preferred embodiment of the method for testing of storage device of the present invention is described; And
Fig. 4 is the process flow diagram of this second preferred embodiment.
Primary clustering symbol description:
Embodiment
About aforementioned and other technology contents, feature and effect of the present invention, in the detailed description in following cooperation with reference to two preferred embodiments of accompanying drawing, can clearly present.
Before the present invention is described in detail, should be noted that in the following description content, similarly assembly is to represent with identical numbering.
Consult Fig. 1, Fig. 2, method of testing of the present invention, is applied to a computer system 1, and this computer system 1 comprises a computer installation 2 and a storage device 3.
Computer installation 2 comprises that an arithmetic element 21 and is electrically connected on the control interface 22 of arithmetic element 21.In the present embodiment, computer installation 2 be take a server computer as example, arithmetic element 21 is central processing unit (central processing unit of this server computer, CPU), control interface 22 is Redundant Array of Independent Disks (RAID) control interfaces, but computer installation 2, arithmetic element 21 can optionally be adjusted with the embodiment of control interface 22, with foregoing, are not limited.
Storage device 3 comprises a first interface 31, one second interface 32 and a plurality of (this sentences two for example) storage module 33.Storage module 33 respectively has one first transmit port 331, one second transmit port 332 and a storage unit 333.The first interface 31 of this storage device 3 is electrically connected on the control interface 22 of computer installation 2 by a connecting line (not drawing in figure), and be electrically connected on respectively the first transmit port 331 of these storage modules 33, and its second interface 32 is electrically connected on the control interface 22 of computer installation 2 by another connecting line (not drawing in figure), and is electrically connected on respectively the second transmit port 332 of these storage modules 33.Accordingly, control interface 22 can carry out data access by first interface 31,331 pairs of storage unit of the first transmit port 333 respectively, or carries out data access by the second interface 32,332 pairs of storage unit of the second transmit port 333.
In the present embodiment, storage device 3 is boundling disks, first interface 31, the second interface 32 are respectively a concatenation type small computer system interface extender (SAS expander), storage module 33 is respectively a concatenation type small computer system interface hard disk (SAS hard disk), the first transmit port 331,332 of the second transmit pories be respectively the main transmit port of concatenation type small computer system interface hard disk, inferior transmit port one of them.But depending on application feature, above-mentioned member can be adjusted according to need, with content disclosed herein, is not limited.
Referring to Fig. 1, Fig. 2, Fig. 1, Fig. 2 illustrate the method for testing of the storage device 3 that the present invention proposes.
Step S1, S2: user operates computer installation 2, allow the arithmetic element 21 of computer installation 2 send one first steering order to control interface 22.Control interface 22 is according to the first steering order, make storage device start entity (PHY) link of first interface 31 to the first transmit port 331 of these storage modules 33, enable first interface 31 and the first transmit port 331 formation electric connections, and can carry out data transmission.In addition, control interface 22, also according to this first steering order, makes storage device cut off the entity link of the second interface 32 to the second transmit port 332 of these storage modules 33, between forbidding the second interface 32 and the second transmit port 332, carries out data transmission.Therefore,, after this setting program, storage module 33 can only carry out data transmission by its first transmit port 331.
Step S3: arithmetic element 21, according to user's setting, is sent first test signal about test modes such as effect test, load testing or pressure tests.According to test-types, control interface 22 passes through the first interface 31 of storage device 3, the first transmit port 331 of these storage modules 33, storage unit 333 to these storage modules 33 is carried out data access, for example with 100% data transmission rate, carry out complete load testing, to record the performance performance of this data transfer path.
Step S4, S5: after completing steps S1~S3, proceed the performance test of another data transfer path.Specifically, the arithmetic element 21 of computer installation 2 is sent one second steering order, enables the second interface 32 and the second transmit port 332 electric connections, and forbids this first interface 31 and the first transmit port 331 electric connections.
Step S6: then, arithmetic element 21 is sent one second test signal, make this control interface 22 pass through the second interface 32 of storage device 3, the second transmit port 332 of these storage modules 33, storage unit 333 to these storage modules 33 is carried out data access, and carries out the data transmission test being undertaken by the second interface 32, the second transmit port 332.
According to above-mentioned steps, user sends by 2 pairs of storage devices 3 of computer installation and enables, illegal instruction, and can with regard to two data transfer paths of storage device 3, test respectively, to record the performance performance of single data transfer path.
Specify, in the present embodiment, though step S1~S6 is set as continuous execution, optionally, also can only perform step S1~S3 or step S4~S6, namely once only test a data transfer path.
In addition, in the present embodiment, though storage device 3 be take " one " describe as example, this method also can be for the test of a plurality of storage devices 3.Specifically, a plurality of storage devices 3 are connected in control interface 22 by its first interface 31, the second interface 32 respectively, and user completes after testing setup at computer installation 2, and computer installation 2 can automatically perform the performance test of each storage device 3.Therefore, the quantity of said storage unit 3 can optionally and flexibly be adjusted, and with specific quantity, is not limited.
Consult Fig. 3, Fig. 4, Fig. 3, Fig. 4 are the second preferred embodiment of the method for testing of storage device 3 of the present invention.In this second preferred embodiment, computer installation 2 is that a plurality of (this sentences two for example) storage device 3 is carried out to the test of single data transfer path, but be with the difference of the first preferred embodiment: each storage device 3 also comprises one and is electrically connected on first of first interface 31 and is connected in series port 34, and a second serial connection port 35 that is electrically connected on the second interface 32.The first serial connection port 34 is electrically connected for the first interface 31 of another storage device 3, and the second interface 32 of 35 another storage devices 3 of confession of the second serial connection port is electrically connected.That is to say, in the present embodiment, these storage devices 3 form and are electrically connected to computer installation 2 in the mode of serial connection (serial cascade).
Specifically, the first interface 31 of the storage device 3 in Fig. 3, the second interface 32 are connected in respectively the control interface 22 of computer installation 2 by two connecting lines (not drawing in figure), and the first serial connection port 34, the second serial connection port 35 of this storage device 3 are also connected in respectively first interface 31, second interface 32 of another storage device 3 by two connecting lines (not drawing in figure).Accordingly, control interface 22 can pass through first interface 31, the first transmit port 331, the first serial connection port 34 of the storage device 3 of these serial connections, and data from the first transmit port 331 access memory cells 333 of these storage modules 33, or by the second interface 32, the second transmit port 332, the second serial connection port 35, and data from the second transmit port 332 access memory cells 333 of storage module 33.
Accordingly, the second embodiment of the method for testing of storage device 3 of the present invention, is carried out by the following step:
Step F 1, F2: the arithmetic element 21 of computer installation 2 is sent one first steering order to its control interface 22, the first transmit port 331 that control interface 22 makes each storage device 3 enable its first interface 31 and its storage module 33 forms and is electrically connected, and forbids the second transmit port 332 formation electric connections of its second interface 32 and its storage module 33.That is to say, through setting thus after step, the storage module 33 in each storage device 3 must carry out data access by its first transmit port 331, and the data-transformation facility of the second transmit port 332 is closed.
Step F 3: the arithmetic element 21 of computer installation 2 is sent after the first test signal, control interface 22 is according to this first test signal, from first interface 31, first transmit port 331 access datas of each storage device 3, and by the first serial connection port 34, first interface 31, carry out data transmission between each storage device 3.Accordingly, computer installation 2 can carry out single data transfer path to the storage device 3 of serial connection and carry out performance test.
Step F 4~F6: the similar step F 1~F3 of these steps, the link that computer installation 2 makes each storage device 3 open between the second interface 32, the second transmit port 332, and close after the connection between first interface 31, the first transmit port 331, the data transfer path that can define with regard to the second interface 32, the second transmit port 332, the second serial connection port 35, carries out data access to each storage unit 333.
As described above, user can carry out the test of single data transfer path by the storage device 3 of 2 pairs of a plurality of serial connections of computer installation, and reaches effect of the present invention.But specify, though the present embodiment be take two storage devices 3 and described as example, the quantity of storage device 3 can optionally be adjusted, as continued in a similar fashion serial connection again and set more than two.Therefore foregoing, only for embodiments of the present invention are described, should not limit practical range of the present invention with this.
In sum, by two preferred embodiments of the present invention, user can test the different storage device 3 of one or more set-up modes respectively, to record the performance performance of single data transfer path.In addition, user completes after configuration and setting at computer installation 2, and computer installation 2 can automatically carry out testing process to storage device 3, and significantly promotes the convenience degree of test procedure.Therefore the method for testing of storage device 3 of the present invention, can reach object of the present invention really.
Only as described above, it is only preferred embodiment of the present invention, can not limit scope of the invention process with this, every simple equivalent variations and modification of doing according to the scope of the claims in the present invention book and patent specification content, all still remains within the scope of the patent.

Claims (7)

1. the method for testing of a storage device, the method of testing of this storage device coordinates a computer installation to carry out by least one storage device, this storage device comprises a first interface, one second interface and at least one storage module, this storage module comprises one first transmit port, one second transmit port and a storage unit, this computer installation comprises an arithmetic element and a control interface, and this method of testing comprises the following steps:
(A) arithmetic element of this computer installation is sent one first steering order to this control interface, this control interface enables the first interface of this storage device according to this first steering order and the first transmit port of this storage module is electrically connected, and forbids the second transmit port electric connection of the second interface and this storage module of this storage device;
(B) this arithmetic element is sent one first test signal to this control interface, make this control interface by the first interface of this storage device, the first transmit port of this storage module is carried out data access to the storage unit of this storage module;
(C) arithmetic element of this computer installation is sent one second steering order to this control interface, this control interface enables the second interface of this storage device according to this second steering order and the second transmit port of this storage module is electrically connected, and forbids the first transmit port electric connection of first interface and this storage module of this storage device; And
(D) this arithmetic element is sent one second test signal to this control interface, make this control interface by the second interface of this storage device, the second transmit port of this storage module is carried out data access to the storage unit of this storage module.
2. the method for testing of storage device as claimed in claim 1, wherein, this storage device comprises a plurality of storage modules, respectively the first transmit port of this storage module is electrically connected on the first interface of this storage device, and respectively the second transmit port of this storage module is electrically connected on the second interface of this storage device.
3. the method for testing of storage device as claimed in claim 1, wherein, this first test signal, this second steering order relate to effect test, load testing or the pressure test of this storage device.
4. the method for testing of storage device as claimed in claim 1, wherein, the quantity of this storage device is a plurality of, and the first interface of these storage devices and one second interface are electrically connected on respectively the control interface of this storage device.
5. the method for testing of storage device as claimed in claim 1, wherein, the quantity of this storage device is a plurality of, these storage devices also respectively comprise that a first serial connection port and that is electrically connected on this first interface is electrically connected on the second serial connection port of this second interface, respectively the first interface of first series side another storage device of confession of this storage device is electrically connected, and respectively the second interface of second series side another storage device of confession of this storage device is electrically connected; In step (B) this control interface also by respectively this first serial connection port the storage unit of these storage modules is carried out to data access; In step (D) this control interface also by respectively this second serial connection port the storage unit of these storage modules is carried out to data access.
6. the method for testing of storage device as claimed in claim 1, wherein, this control interface is a Redundant Array of Independent Disks (RAID) control interface, this storage device is a boundling disk, this first interface and this second interface are respectively concatenation type small computer system interface extenders, and this storage module is a concatenation type small computer system interface hard disk.
7. a computer program, this computer program can execute claims the method for testing described in any one in 1 to 6 after being written into and being carried out by a computer installation.
CN201310095210.9A 2013-03-05 2013-03-22 Method for testing storage device and computer program product Pending CN104035851A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
TW102107627 2013-03-05
TW102107627A TWI482016B (en) 2013-03-05 2013-03-05 Test method for a storage device and computer program product executing the same

Publications (1)

Publication Number Publication Date
CN104035851A true CN104035851A (en) 2014-09-10

Family

ID=51466625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310095210.9A Pending CN104035851A (en) 2013-03-05 2013-03-22 Method for testing storage device and computer program product

Country Status (2)

Country Link
CN (1) CN104035851A (en)
TW (1) TWI482016B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108073480A (en) * 2016-11-16 2018-05-25 佛山市顺德区顺达电脑厂有限公司 storage module detecting system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1504884A (en) * 2002-11-29 2004-06-16 华为技术有限公司 Self-testing method and apparatus for synchronous dynamic random memory
US6976190B1 (en) * 2002-07-31 2005-12-13 Western Digital Technologies, Inc. Serial ATA disk drive having a parallel ATA test interface and method
US20080010530A1 (en) * 2006-06-08 2008-01-10 Dot Hill Systems Corporation Fault-isolating sas expander
TW201018941A (en) * 2008-11-11 2010-05-16 Universal Scient Ind Co Ltd Universal debug auxiliary device
TW201020763A (en) * 2008-11-28 2010-06-01 Inventec Corp Fault simulator
CN101740137A (en) * 2008-11-06 2010-06-16 奇岩电子股份有限公司 Method for testing memory
CN101923506A (en) * 2009-06-11 2010-12-22 英业达股份有限公司 Testing device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7228364B2 (en) * 2004-06-24 2007-06-05 Dell Products L.P. System and method of SCSI and SAS hardware validation
TWI309779B (en) * 2005-08-12 2009-05-11 Hon Hai Prec Ind Co Ltd Testing system and testing method for link control card

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6976190B1 (en) * 2002-07-31 2005-12-13 Western Digital Technologies, Inc. Serial ATA disk drive having a parallel ATA test interface and method
CN1504884A (en) * 2002-11-29 2004-06-16 华为技术有限公司 Self-testing method and apparatus for synchronous dynamic random memory
US20080010530A1 (en) * 2006-06-08 2008-01-10 Dot Hill Systems Corporation Fault-isolating sas expander
CN101740137A (en) * 2008-11-06 2010-06-16 奇岩电子股份有限公司 Method for testing memory
TW201018941A (en) * 2008-11-11 2010-05-16 Universal Scient Ind Co Ltd Universal debug auxiliary device
TW201020763A (en) * 2008-11-28 2010-06-01 Inventec Corp Fault simulator
CN101923506A (en) * 2009-06-11 2010-12-22 英业达股份有限公司 Testing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108073480A (en) * 2016-11-16 2018-05-25 佛山市顺德区顺达电脑厂有限公司 storage module detecting system
CN108073480B (en) * 2016-11-16 2020-08-11 佛山市顺德区顺达电脑厂有限公司 Storage module detection system

Also Published As

Publication number Publication date
TW201435580A (en) 2014-09-16
TWI482016B (en) 2015-04-21

Similar Documents

Publication Publication Date Title
US11953981B2 (en) Memory module register access
US9026863B2 (en) Replacement of storage responsive to remaining life parameter
US9411700B2 (en) Storage tester capable of individual control for a plurality of storage
US9607120B2 (en) Implementing system irritator accelerator FPGA unit (AFU) residing behind a coherent attached processors interface (CAPI) unit
CN103853639A (en) System integrated on chip and method for self-testing functional logic module on chip
US11016833B2 (en) Remote debug for scaled computing environments
CN102636987B (en) Dual control device
US20140164845A1 (en) Host computer and method for testing sas expanders
KR101254646B1 (en) Apparatus for storage interface in solid state drive tester
US20170269857A1 (en) METHOD TO VIRTUALIZE PCIe CONTROLLERS TO SUPPORT BOOT/HIBERNATION/CRASH-DUMP FROM A SPANNED VIRTUAL DISK
US20180032267A1 (en) Extensible storage system controller
US9417942B1 (en) Event-based in-band host registration
CN104123246A (en) Interface expansion device and serial attached SCSI expander
CN104575615A (en) Device and method for built-in self-test memory
US9158609B2 (en) Universal serial bus testing device
CN104035851A (en) Method for testing storage device and computer program product
WO2018089176A1 (en) Hardware automated link control of daisy-chained storage device
US11882038B2 (en) Transaction analyzer for communication bus traffic
EP2942714B1 (en) Monitoring method, monitoring apparatus, and electronic device
WO2016101177A1 (en) Random access memory detection method of computer device and computer device
US20070300027A1 (en) System and method for the self-mirroring storage drives
US20160342362A1 (en) Volume migration for a storage area network
CN103049214B (en) Magnetic disc array card and there is the disc array system of extended function
CN109542700A (en) The test method and device of the PCIE interface link rate of magnetic disc array card
US10437497B1 (en) Active-active host environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140910