CN104572386B - Automatically the wide method of HBA cassette tapes is tested under a kind of Linux - Google Patents
Automatically the wide method of HBA cassette tapes is tested under a kind of Linux Download PDFInfo
- Publication number
- CN104572386B CN104572386B CN201510009099.6A CN201510009099A CN104572386B CN 104572386 B CN104572386 B CN 104572386B CN 201510009099 A CN201510009099 A CN 201510009099A CN 104572386 B CN104572386 B CN 104572386B
- Authority
- CN
- China
- Prior art keywords
- hba
- test
- linux
- automatic
- cassette tapes
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000012360 testing method Methods 0.000 claims abstract description 77
- 230000005540 biological transmission Effects 0.000 claims abstract description 23
- 238000013515 script Methods 0.000 claims abstract description 6
- 241000282326 Felis catus Species 0.000 claims abstract description 5
- 238000009434 installation Methods 0.000 claims abstract description 4
- 238000006243 chemical reaction Methods 0.000 claims description 4
- 239000000126 substance Substances 0.000 claims description 3
- 238000010998 test method Methods 0.000 abstract description 5
- 230000007613 environmental effect Effects 0.000 abstract description 3
- 238000011056 performance test Methods 0.000 description 6
- 239000013307 optical fiber Substances 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 206010021703 Indifference Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
Abstract
The present invention discloses tests the wide method of HBA cassette tapes automatically under a kind of Linux, based on linux operating systems, pass through bash scripts, the disc information that all HBA interfaces insert is captured using the system cat/proc/partations and fdisk l that issue orders, automatic carry simultaneously formats all storage dishes, according to the storage dish test parameter and test block size set, automatic test HBA interface bandwidths and transmission rate performance are carried out using testing tool FIO.The method of testing is applied to all processor platforms in current industry, realizes without cumbersome environmental structure, instrument installation, parameter setting, succinct, time saving, automatic test and result preserve, and performance index is accurate.
Description
Technical field
The present invention relates to computer technology, the wide method of HBA cassette tapes is tested under specifically a kind of Linux automatically.
Background technology
HBA (Host Bus Adapter) is host bus adaptor, is one and is provided between server and storage device
Input/output (I/O) handles and the circuit board or integrated circuit adapter of physical connection.Exist because HBA alleviates primary processor
The burden of data storage and search task, it can improve the performance of server.One HBA and the disk subsystem being attached thereto
A disk channel is referred to as sometimes along.
Host bus adaptor (Host Bus Adaptor) HBA is used to connect computer-internal bus within the storage system
With storage network.HBA is the physical connection between the I/O passages of server internal and the I/O passages of storage system.The most frequently used
Server internal I/O passages are PCI and Sbus, and they are the communications protocol of connection server CPU and ancillary equipment.Storage system
I/O passages be actually optical-fibre channel.And HBA effect is exactly to realize inner passage agreement PCI or Sbus and FC
(Fibre Channel:Optical-fibre channel, but optical-fibre channel does not represent and necessarily needs to use optical fiber as transmission medium, so
Here it is not intended that FC is exactly optical fiber Fiber) conversion between agreement.
Industry is more to install work of increasing income using manual in server HBA interface bandwidths and transmission rate performance test at present
Have FIO Wireless Test Toolsets, server HBA interface bandwidths and transmission rate test performance are ground certainly to investigate.But according to different services
Device, HBA cards quantity is different, and HBA interfaces are tested one by one, and every kind of read-write mode parameter and test block size parameter
Need to be manually entered one by one and tested, workload is big, takes consumption manpower.
The content of the invention
We are bright to be directed to technical problem existing for prior art, there is provided test HBA cassette tapes are wide automatically under a kind of Linux
Method.
Automatically the wide method of HBA cassette tapes is tested under a kind of Linux of the present invention, solves the skill that above-mentioned technical problem uses
Art scheme is as follows:Automatically the wide method of test HBA cassette tapes under the Linux, based on linux operating systems, by bash scripts,
The disc information that all HBA interfaces insert is captured using issue orders cat/proc/partations and fdisk-l of system, oneself
Dynamic carry simultaneously formats all storage dishes, according to the storage dish test parameter set, is surveyed automatically using testing tool FIO
Try HBA interface bandwidths and transmission rate performance.
Preferably, the disc information that all HBA interfaces are inserted is captured, refers to accurately capture hard disk and storage dish is believed in detail
Breath, the information of crawl is analyzed, and distinguishes hard disk and storage dish.
Preferably, automatic carry and all storage dishes are formatted, refers to that selecting each HBA according to disc information Automatic sieve connects
Mouth connects storage dish, automatically by under all storage dish carries to (SuSE) Linux OS;Can by the chemical conversion of all storage dish automatic formats
To have given play to maximum bandwidth BW and transmission rate IOPS file system format.
Preferably, installation testing tool FIO, all test parameters and test block size are installing testing tool FIO automatically
While set completion.
Preferably, the test parameter includes read-write mode read, write, random read, random write.
Preferably, the test block size is divided into 4k, 8k, 16k, 32k, 64k, 128k, 256k, 512k, 1024k.
Preferably, by FIO__HBA_testtime.txt recording test times, floating-point is recorded by FIO_HBA.csv
Computing test result.
The beneficial effect that the wide method of automatic test HBA cassette tapes has compared with prior art under a kind of Linux of the present invention
Fruit is:The method of testing is applied to all processor platforms in current industry, realizes and pacifies without cumbersome environmental structure, instrument
Dress, parameter setting, succinct, time saving, automatic test and result preserve, and performance index is accurate;This method is automatic by system
FIO programs are run, without artificially guard during test, record test result, test log and testing time automatically;Without manually
Identification all HBA interfaces of carry connect storage dish and set any test parameter, meet Servers-all testing requirement;
The method of testing will change the Operating Complexity of traditional HBA interface test methods, fully achieve automation, saves and surveys
The environmental structure time is tried, obtains stable results of property;Suitable for current all types server HBA interface bandwidths and transmission speed
Rate performance test, there is good popularization and generalization, can with it is more scientific, more effectively assess the performance of HBA card interfaces, carry
The total quality of the company of liter sales server platform.
Brief description of the drawings
Accompanying drawing 1 is the flow chart of the method that automatic test HBA cassette tapes are wide under the Linux.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with specific embodiment, and refer to
Accompanying drawing, to the wide method of test HBA cassette tapes is further described automatically under a kind of Linux of the present invention.
Automatically the wide method of HBA cassette tapes is tested under Linux of the present invention, based on linux operating systems, passes through bash pin
This, the disc information that all HBA interfaces insert is captured using issue orders cat/proc/partations and fdisk-l of system,
Automatic carry simultaneously formats all storage dishes, according to the storage dish test parameter set, is carried out using testing tool FIO automatic
Test HBA interface bandwidths and transmission rate performance.
Automatically the wide method of HBA cassette tapes is tested under Linux of the present invention, is defined by the disc information of crawl, will not
Produce artificial test storage dish mistake, ensure that the stable state of test environment, and without guard, automatically save bandwidth BW and
Transmission rate IOPS test results, recording test time and log, automation is fully achieved, it is succinct, time saving, easy to operate, save
Manpower, while also ensure the accuracy of HBA interface bandwidths and transmission rate test performance.
Embodiment:
Automatically the wide method of HBA cassette tapes is tested under a kind of Linux described in the present embodiment, Servers-all can be tested automatically
HBA interface bandwidths and transmission rate performance;By under linux operating systems, execute instruction cat/proc/partations,
Fdisk-l, demidecode, df-h, it is accurate to capture hard disk and storage dish details, the information of crawl is analyzed, area
Divide hard disk and storage dish, and each HBA interfaces are gone out according to the category information automatic screening and connect storage dish, automatically hang all storage dishes
It is loaded onto under (SuSE) Linux OS, the chemical conversion of all storage dish automatic formats then can have been given play into maximum bandwidth BW and transmission speed
Rate IOPS file system format, directly performs test program.
Tested automatically in the wide method of HBA cassette tapes under Linux described in the present embodiment, it is automatic that testing tool FIO is installed, it is not necessary to
Installation manually in addition, all test parameters such as read-write mode read, write, random read, random write, and
Test block size 4k, 8k, 16k, 32k, 64k, 128k, 256k, 512k, 1024k have been set while testing tool FIO is installed
Complete, disclosure satisfy that the testing requirement under all situations.
The wide method of test HBA cassette tapes, its idiographic flow as shown in Figure 1, pass through automatically under Linux described in the present embodiment
Uningauto_run_fio.shell, disc format information is obtained, checks disk number, and obtain disk carry information, checked
Disc information, then automatic distinguishing hard disk and storage dish, all storage dishes of carry simultaneously format, finally using FIO instruments it is automatic
Install and test parameter is set, tested automatically, while pass through FIO__HBA_testtime.txt recording test times, HBA
Cassette tape is wide and transmission rate performance test terminates, and floating-point operation test result is recorded by FIO_HBA.csv.
The HBA clampings port band width and transmission rate method of testing, automatic crawl disk number, institute are realized using bash scripts
There are disk carry information, all disc format information and all disk type informations, automatic distinguishing hard disk and storage dish, carry is simultaneously
Storage dish is formatted, then Disk bandwidth and transmission rate testing tool FIO and parameter setting are installed automatically, is complied fully with present
Each platform needs in industry, succinct, time saving, easy to operate, realizes that really full-automatic more HBA interface bandwidths and transmission rate are calculated
Performance test, real result are accurate.Can be with it, assessing test server platform HBA interface bandwidths and transmission rate
Whether performance reaches standard.
Using the wide method of test HBA cassette tapes, specific operation process are as follows automatically under Linux described in the present embodiment:
1) test main frame platform is got out, (SuSE) Linux OS is installed in test main frame;
2) machine will be established in test main frame by cable, into operating system, is logged in using root user;
3) auto_run scripts and FIO instruments are copied on linux system desktop;
4) all HBA card interfaces are connected into storage dish;
5) terminal terminal programs are run under linux system, following operation is performed under terminal:
A) #cd/root/Desktop carriage returns
B) #./auto_run carriage returns
6) Terminal shows automatic carry storage dish and starts to format one by one, goes out to have set after the completion of formatting
Test block size;
7) FIO_HBA_ of record time occurs under now/root/Desktop/result files
Testtime.txt files;
8) test main frame continued synchronization runs all HBA interface bandwidths and transmission rate performance test;
9) treat that HBA cassette tapes are wide and transmission rate performance test after the completion of, checked under/root/Desktop/result
FIO_HBA.csv files, the read of all test block sizes, write, random read and random described in file record
Write bandwidth and transmission rate value, unit are MB/s;/ var/log/messages files are checked, do not report an error record, and
Test main frame platform stable is run in whole test process, the anomalies such as deadlock, power down does not occur.
The content of above-mentioned steps one to three is to get out Linux test platforms, and copies floating-point operation auto_run.sh pin
Sheet and FIO instruments;Then, terminal terminal programs are run under linux system, auto_ is run under terminal
Run.sh scripts.
Automatically the wide method of HBA cassette tapes is tested under Linux of the present invention, is tested automatically suitable for all kinds of server syncs
Multiple HBA interface bandwidths and transmission rate, to realize succinct, time saving, automatic mode, and it is applied to all places of current industry
Device Platform Server is managed, as a result more normal manual mode indifference, greatly reduce the cost of time and human resources.
Above-mentioned embodiment is only the specific case of the present invention, and scope of patent protection of the invention includes but is not limited to
Above-mentioned embodiment, any person of an ordinary skill in the technical field that meet claims of the present invention and any
The appropriate change or replacement done to it, it should all fall into the scope of patent protection of the present invention.
Claims (6)
1. the wide method of HBA cassette tapes is tested under a kind of Linux automatically, it is characterised in that test HBA cards under the Linux automatically
The method of bandwidth, based on linux operating systems, by bash scripts, using system issue orders cat/proc/partations and
Fdisk-l captures hard disk and the storage dish details that all HBA interfaces are inserted, and the information of crawl is analyzed, and distinguishes hard
Disk and storage dish;Automatic carry simultaneously formats the storage dish that all HBA interfaces are inserted, and joins according to the storage looping test set
Number, automatic test HBA interface bandwidths and transmission rate performance are carried out using testing tool FIO.
2. test the wide method of HBA cassette tapes under a kind of Linux automatically according to claim 1, it is characterised in that automatic carry
And the storage dish that all HBA interfaces are inserted is formatted, refer to that selecting each HBA interfaces according to disc information Automatic sieve connects storage
Disk, automatically by under all storage dish carries to (SuSE) Linux OS;The chemical conversion of all storage dish automatic formats can have been given play to most
The file system format of big bandwidth BW and transmission rate IOPS.
3. test the wide method of HBA cassette tapes under a kind of Linux automatically according to claim 2, it is characterised in that automatic installation
Testing tool FIO, all test parameters and test block size have set completion while testing tool FIO is installed.
4. test the wide method of HBA cassette tapes under a kind of Linux automatically according to claim 3, it is characterised in that the test
Parameter includes read-write mode read, write, random read, random write.
5. test the wide method of HBA cassette tapes under a kind of Linux automatically according to claim 3, it is characterised in that the test
Block size is divided into 4k, 8k, 16k, 32k, 64k, 128k, 256k, 512k, 1024k.
6. test the wide method of HBA cassette tapes under a kind of Linux automatically according to claim 3, it is characterised in that pass through
FIO__HBA_testtime.txt recording test times, floating-point operation test result is recorded by FIO_HBA.csv.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510009099.6A CN104572386B (en) | 2015-01-08 | 2015-01-08 | Automatically the wide method of HBA cassette tapes is tested under a kind of Linux |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510009099.6A CN104572386B (en) | 2015-01-08 | 2015-01-08 | Automatically the wide method of HBA cassette tapes is tested under a kind of Linux |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104572386A CN104572386A (en) | 2015-04-29 |
CN104572386B true CN104572386B (en) | 2017-11-10 |
Family
ID=53088520
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510009099.6A Active CN104572386B (en) | 2015-01-08 | 2015-01-08 | Automatically the wide method of HBA cassette tapes is tested under a kind of Linux |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104572386B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104978250A (en) * | 2015-06-23 | 2015-10-14 | 浪潮电子信息产业股份有限公司 | Iozone-based HBA card performance test method |
CN106528354B (en) * | 2016-10-12 | 2019-09-17 | 郑州云海信息技术有限公司 | A kind of automatic method of burning memory power fru id |
CN108874645A (en) * | 2018-06-12 | 2018-11-23 | 郑州云海信息技术有限公司 | A kind of method and system for integrating FIO performance data |
CN108959055A (en) * | 2018-07-25 | 2018-12-07 | 郑州云海信息技术有限公司 | Readwrite performance test method, device and the equipment of xfs file system |
CN109446010B (en) * | 2018-11-01 | 2021-10-29 | 郑州云海信息技术有限公司 | AEP memory pressure performance stability testing method and system |
CN109741780A (en) * | 2019-01-07 | 2019-05-10 | 东莞记忆存储科技有限公司 | A kind of method and its system based on linux system test SSD performance |
CN110543396B (en) * | 2019-09-06 | 2021-03-02 | 深圳市安信达存储技术有限公司 | Device and method for testing hard disk by PCIe expansion cluster |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104079445A (en) * | 2013-03-29 | 2014-10-01 | 英业达科技有限公司 | Distributed type pressure testing system and method |
CN103970570A (en) * | 2014-05-16 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Testing method for compatibility adaptation between disk array and mainframe |
CN104268076A (en) * | 2014-09-23 | 2015-01-07 | 浪潮电子信息产业股份有限公司 | Memory bandwidth automatically testing method applicable to various processor platforms |
-
2015
- 2015-01-08 CN CN201510009099.6A patent/CN104572386B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104572386A (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104572386B (en) | Automatically the wide method of HBA cassette tapes is tested under a kind of Linux | |
US10929260B2 (en) | Traffic capture and debugging tools for identifying root causes of device failure during automated testing | |
US10955461B2 (en) | Smart and efficient protocol logic analyzer configured within automated test equipment (ATE) hardware | |
CN104660471A (en) | Method for automatically testing PCIE-SSD transmitting velocity and band width under Linux | |
CN104317684A (en) | Method for synchronously automatic testing of bandwidth and transmission rate of multiple USB (Universal Serial Bus) interfaces | |
CN103578568A (en) | Method and apparatus for testing performances of solid state disks | |
US7911970B2 (en) | Systems and methods for presenting electronic communication packets using a logic analyzer | |
CN105223889A (en) | A kind of method being applicable to the automatic monitoring PMC RAID card daily record of producing line | |
CN107068199B (en) | Performance test method of SSD (solid State disk) | |
CN113961413A (en) | Server power consumption testing method and device | |
CN105468482A (en) | Hard disk position identification and fault diagnosis method and server device | |
CN110018937A (en) | A kind of solid state hard disk test device and method | |
CN104022913B (en) | For method of testing and the device of data cluster | |
CN113656174A (en) | Resource allocation method, system, computer device and storage medium | |
CN105138293A (en) | Disk performance evaluating method based on database | |
US8843781B1 (en) | Managing drive error information in data storage systems | |
CN107480017A (en) | The batch-testing device and method of PCIE outer plug-in cards | |
CN105468488A (en) | Method, device and system of diskless CPU (Central Processing Unit) on the basis of IB (InfiniBand) network | |
US20140325285A1 (en) | Serial attached scsi expander and method for debugging faults thereof | |
CN106649011A (en) | Detection method and detection device for server equipment | |
CN108038031A (en) | A kind of method and device for monitoring hard disk presence in real time | |
US10382311B2 (en) | Benchmarking servers based on production data | |
CN104678292B (en) | A kind of complex programmable logic device (CPLD) test method and device | |
WO2023050671A1 (en) | Server fault locating method and apparatus, electronic device, and storage medium | |
US20160117233A1 (en) | Quasi Disk Drive For Testing Disk Interface Performance |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |