CN107145415A - A kind of method of the batch testing HDD LED under Linux system - Google Patents

A kind of method of the batch testing HDD LED under Linux system Download PDF

Info

Publication number
CN107145415A
CN107145415A CN201710317378.8A CN201710317378A CN107145415A CN 107145415 A CN107145415 A CN 107145415A CN 201710317378 A CN201710317378 A CN 201710317378A CN 107145415 A CN107145415 A CN 107145415A
Authority
CN
China
Prior art keywords
hdd
led
linux system
batch testing
under linux
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
CN201710317378.8A
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.)
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 CN201710317378.8A priority Critical patent/CN107145415A/en
Publication of CN107145415A publication Critical patent/CN107145415A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to server hard disc testing field, and in particular to a kind of method of the batch testing HDD LED under Linux system.The purpose is to provide a kind of easy readily hard disk LED batch testing method, multiple memory serial ports are connected by serial interface management device, test is automatically performed with program on the server and testing procedure and result are stored in log files, reduce unnecessary interactive process, save the resources such as manpower, time, cost, the coverage rate of test is high simultaneously, and product can all be blocked and can be accurately positioned problem and solve a problem promptly the problem of any.

Description

A kind of method of the batch testing HDD LED under Linux system
Technical field
The present invention relates to server hard disc testing field, and in particular to one kind batch testing HDD LED under Linux system Method.The purpose is to provide a kind of easy readily hard disk LED batch testing method, test is automatically performed with program and is tested Step and result are stored in log files, reduce unnecessary interactive process, save the resources such as manpower, time, cost, together When the coverage rate tested it is high, product can all be blocked and can be accurately positioned problem and solve a problem promptly the problem of any.
Background technology
With continuing to develop for IT field technology, memory is as the main flow product in big data epoch, and market demand gets over Come bigger.Company's shipment amount is increasing, and for the test request more and more higher researched and developed and produced, enterprise focuses on speed of production Also require that quality is secure simultaneously.Product meet production standard and can shipment on time, be not only related to company prestige represent The production capacity of one company, while also contributing to the satisfaction of client.Accomplish this point, the efficient test of product is most important A link, no matter the test in development or production line production phase, how to improve testing efficiency into opera involving much singing and action, Meanwhile, the management and control to cost is similarly important, so each test event is improving testing efficiency while also needing to most as far as possible Limits it is cost-effective.The degree of automation is higher, is more easily able to this point.
In view of the above-mentioned problems, a kind of method of the batch testing HDD LED under Linux system of the present application, this method It is easy to use for HDD LED functional test, simultaneously large batch of it can carry out, and each testing procedure has test Log is produced.Reduce unnecessary interactive process.
The content of the invention
A kind of method of the batch testing HDD LED under Linux system of the present application, this method specifically includes following step Suddenly:Test environment is built, multiple HDD to be measured are connected with server;HDD LED are run under server Linux system automatic Test program;By testing procedure and result record in log files.
The method of the batch testing HDD LED as described above under Linux system, is further characterized in that, will be multiple to be measured HDD is connected with server to be connected particular by serial interface management device serial ports.
The method of the batch testing HDD LED as described above under Linux system, is further characterized in that, HDD LED are automatic Test program specifically includes herein below:HDD I/O sequence numbers are scanned, its type is adjudicated and loads corresponding driver;It is right HDD hardware is detected;Log in HDD I/O serial ports;Quantity to HDD is detected;HDD FirmWare is surveyed Examination;HDD LED are tested.
The method of the batch testing HDD LED as described above under Linux system, is further characterized in that, in HDD LED certainly In dynamic test program, if program interrupt, record log terminates automatically.
The method of the batch testing HDD LED as described above under Linux system, is further characterized in that, in HDD LED certainly In dynamic test program, if there is exception, then print error message is retested after queueing problem.
Brief description of the drawings
Fig. 1, herein described method operating diagram
Fig. 2, herein described method workflow diagram
Embodiment
A kind of method of the batch testing HDD LED under Linux system of the present application, this method is used for HDD LED's Functional test, whole process is all performed automatically by programming, and will be produced test log and also be protected while be printed upon terminal In presence server, test is allowed to have absolute guarantee.
Here is the specific embodiment according to method described herein.
1st, test environment is built
As shown in figure 1, getting out 1PCS (part) servers and installing linux operating systems, then HDD to be measured is put into storage In device, while the JBOD IO (Just a Bunch Of Disks, disk cluster) that arrange in pairs or groups;Then server end is connected into 1 serial ports Turn USB line, the other end is connected on UBS COM (serial interface management device), then memory I O serial ports connected into Serial Port Line successively, separately One end is connected similarly on UBS COM;Last server end installs test script.
Carry USB flash disk mount/dev/sdb4/mnt;
Test script is copied into assigned catalogue cp/mnt/hddled_test/usr/local/bin/Neptune/.
Note, hard disk HDD models must be unified, the present invention can at most test 72PCS simultaneously.
2nd, automation formula is performed under linux operating systems
Plus perform authority chmod+x hddled_test;
Perform order ./hddled_test;
3rd, in scanning memory I/O sequence number, log can write in the file named with the time automatically, and path can be with Oneself is specified by configuration file;
Program interrupt log terminates automatically;
print ″Please scan uiom sn[]:″;
Chomp ($ uiom_sn=<STDIN>);
My $ output_filename=" 20160106hdd_led_res.log ";
4th, the Pn (Pn port pinouts) of I/O in memory is scanned, program is according to Pn automatic decision I/O types and loads automatically Driver, loading successful procedure continues, and loading unsuccessfully prints rerun routine after error, processing exception;
sub load_driver;
If ($ fc) { `modprobe mptfc` } -- the I/O of FC types
If ($ sas) { `modprobe mptsas` } --- the I/O of SAS types
5th, hardware detection
Program captures information, automatic decision by SAS (Serial Attached SCSI Serial Attached SCSI (SAS)s) interface line The situation in place (including HDD, SAS line connection status, IO state) of the connection status and modules of server and memory, , can be at end if program judges that memory end and server end have exception if the program that state is all OK may proceed to operation Hold " the test fail ", while continuing to retest after printing error information, queueing problem that report an error;
sub get_device
My ($ encl)=@-;
My@sg_map=`sg_map-x-i`;
6th, program automated log on IO serial ports
Step on serial ports:
7th, by SAS line automatic detection HDD quantity, if HDD quantity has exception, program, which can be terminated, tests and is beaten in terminal Print abnormal information;Continue to retest after queueing problem.
$ hddqty=getConfig ($ uut_name. " .jbod.hdd.qty ");
8th, program passes through which corresponding HDD slot of every piece of HDD of Serial Port Line automatic detection;
9th, (firmware, exactly writes EROM EROMs to automatic detection HDD FirmWare or EEPROM electricity can Program in EPROM), if HDD FirmWare are abnormal, test stops changing weight after one piece of new HDD New test;
10th, HDD LED tests are started, test PASS, which is then tested, to be terminated, and is tested fail, is retested after excluding exception;
Here is the specific code of certain embodiments
HDD LED are tested:
The software program is write by perl language under linux, can be applied to most of HDD products.It is accurate improving test The test log for having high coverage rate while speed and accuracy not only but also having completion is preserved, and largely improves production speed Degree, and no one for configuration when the mistake such as the mistake, the leakage that are likely to occur.This method is simple to operate, and practicality is stronger, right Some case studies and positioning, production speed-raising in us etc. have good effect.

Claims (5)

1. a kind of method of the batch testing HDD LED under Linux system, this method specifically includes following steps:
Test environment is built, multiple HDD to be measured are connected with server;
HDD LED autotest programs are run under server Linux system;
By testing procedure and result record in log files.
2. the method for the batch testing HDD LED as claimed in claim 1 under Linux system, is further characterized in that, will be multiple HDD to be measured is connected with server to be connected particular by serial interface management device serial ports.
3. the method for the batch testing HDD LED as claimed in claim 2 under Linux system, is further characterized in that, HDD LED autotest programs specifically include herein below:
HDD I/O sequence numbers are scanned, its type is adjudicated and loads corresponding driver;
HDD hardware is detected;
Log in HDD I/O serial ports;
Quantity to HDD is detected;
HDD FirmWare is tested;
HDD LED are tested.
4. the method for the batch testing HDD LED as claimed in claim 3 under Linux system, is further characterized in that, in HDD In LED autotest programs, if program interrupt, record log terminates automatically.
5. the method for the batch testing HDD LED as claimed in claim 4 under Linux system, is further characterized in that, in HDD In LED autotest programs, if there is exception, then print error message is retested after queueing problem.
CN201710317378.8A 2017-05-05 2017-05-05 A kind of method of the batch testing HDD LED under Linux system Pending CN107145415A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710317378.8A CN107145415A (en) 2017-05-05 2017-05-05 A kind of method of the batch testing HDD LED under Linux system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710317378.8A CN107145415A (en) 2017-05-05 2017-05-05 A kind of method of the batch testing HDD LED under Linux system

Publications (1)

Publication Number Publication Date
CN107145415A true CN107145415A (en) 2017-09-08

Family

ID=59777888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710317378.8A Pending CN107145415A (en) 2017-05-05 2017-05-05 A kind of method of the batch testing HDD LED under Linux system

Country Status (1)

Country Link
CN (1) CN107145415A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107886996A (en) * 2017-11-28 2018-04-06 郑州云海信息技术有限公司 A kind of method of batch testing NVME hard disks
CN111221686A (en) * 2018-11-27 2020-06-02 维谛技术有限公司 Method for enabling linux equipment to support serial port command line
CN111863116A (en) * 2020-06-29 2020-10-30 浪潮电子信息产业股份有限公司 Multi-disk indicator lamp testing method, system and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455395A (en) * 2013-08-08 2013-12-18 华为技术有限公司 Method and device for detecting hard disk failures
CN105045689A (en) * 2015-06-25 2015-11-11 浪潮电子信息产业股份有限公司 Method for monitoring and alarming hard disks by using RAID card batch detection
CN106504797A (en) * 2016-10-10 2017-03-15 郑州云海信息技术有限公司 The automatic mode of RAID IO LED lamps in test memory

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455395A (en) * 2013-08-08 2013-12-18 华为技术有限公司 Method and device for detecting hard disk failures
CN105045689A (en) * 2015-06-25 2015-11-11 浪潮电子信息产业股份有限公司 Method for monitoring and alarming hard disks by using RAID card batch detection
CN106504797A (en) * 2016-10-10 2017-03-15 郑州云海信息技术有限公司 The automatic mode of RAID IO LED lamps in test memory

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107886996A (en) * 2017-11-28 2018-04-06 郑州云海信息技术有限公司 A kind of method of batch testing NVME hard disks
CN111221686A (en) * 2018-11-27 2020-06-02 维谛技术有限公司 Method for enabling linux equipment to support serial port command line
CN111221686B (en) * 2018-11-27 2023-08-25 维谛技术有限公司 Method for enabling linux equipment to support serial port command line
CN111863116A (en) * 2020-06-29 2020-10-30 浪潮电子信息产业股份有限公司 Multi-disk indicator lamp testing method, system and device
CN111863116B (en) * 2020-06-29 2022-06-17 浪潮电子信息产业股份有限公司 Multi-disk indicator lamp testing method, system and device

Similar Documents

Publication Publication Date Title
CN104317693A (en) Method for automatically testing hard disk performance fluctuation
US6557120B1 (en) System and method for testing software reliability over extended time
US6678639B2 (en) Automated problem identification system
CN102568522B (en) The method of testing of hard disk performance and device
US7493521B1 (en) Apparatus and method for estimating the testing proficiency of a software test according to EMS messages extracted from a code base
US7392148B2 (en) Heterogeneous multipath path network test system
CN103744759A (en) Method for verifying unattended disk performance and stability under Linux system
US20080222456A1 (en) Method and System for Implementing Dependency Aware First Failure Data Capture
CN106649020A (en) Detecting method and device for storage case burn information
US9542304B1 (en) Automated operating system installation
CN107145415A (en) A kind of method of the batch testing HDD LED under Linux system
CN105068920A (en) Shell-based method for testing stability of rack asset information
CN105893230A (en) Method and device for detecting IOPS performance of hard disks
CN106095680A (en) Verification disk out-of-order automatic test method applied to Linux
CN115080398A (en) Automatic interface test system and method
CN106502844A (en) A kind of method of the sAS port bandwidths of test RAID memory Is O
CN107329914A (en) It is a kind of that the out of order method and device of hard disk is detected based on linux system
US8327189B1 (en) Diagnosing an incident on a computer system using a diagnostics analyzer database
CN104615514A (en) Method for examining performance of raid levels of raid card
US6438714B1 (en) Method and apparatus for testing large arrays of storage devices
CN106504797A (en) The automatic mode of RAID IO LED lamps in test memory
CN106095647A (en) Method for monitoring voltage of Seagate hard disk in real time
CN107357700A (en) A kind of method and system of test NVME hard disk order stability
CN113868129B (en) Method for checking accuracy of back-end data and automatic testing tool
CN115480970A (en) Performance test method, device, equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170908

RJ01 Rejection of invention patent application after publication