CN104615514A - Method for examining performance of raid levels of raid card - Google Patents

Method for examining performance of raid levels of raid card Download PDF

Info

Publication number
CN104615514A
CN104615514A CN201510005923.0A CN201510005923A CN104615514A CN 104615514 A CN104615514 A CN 104615514A CN 201510005923 A CN201510005923 A CN 201510005923A CN 104615514 A CN104615514 A CN 104615514A
Authority
CN
China
Prior art keywords
raid
card
raid card
rank
test
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
CN201510005923.0A
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510005923.0A priority Critical patent/CN104615514A/en
Publication of CN104615514A publication Critical patent/CN104615514A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a method for examining performance of raid levels of a raid card. The method for examining the performance of the raid levels of the raid card is put forward through a shell script in a batch and automatic mode. The method for examining the performance of the raid levels of the raid card comprises the step of recognizing the model of the raid card, the step of determining the supported raid levels, the step of automatically establishing a magnetic disk into the raid levels needing to be examined, the step of running a magnetic disk performance evaluation program, the step of collecting a test result, and the step of outputting a magnetic disk performance comparison result. The examining method is convenient to use and easy to operate, achieves automatic testing, saves manpower, time, cost and other resources, and reduces unnecessary human-computer interaction processes; through the method for examining the performance of the raid levels of the raid card, the performance of the raid levels of the raid card can be evaluated flexibly, conveniently and rapidly according to different servers and different configurations; the method can be combined with automatic filling to achieve batch testing, the test result can be automatically collected, complex arrangement work is not needed, manpower is saved, and errors caused by manual operation are avoided.

Description

A kind of to raid card each raid rank service check method
Technical field
The present invention relates to computer technology, specifically a kind of practical, can the automatic method of each raid rank of raid card on server being carried out to Performance Evaluation of batch.
Background technology
Along with the development of computer technology, conventional informationization service and the increasingly powerful stability requirement of cloud computing service to server more and more higher.For server product provider, a server all needs to carry out the test of disk new capability in development or production phase.Because different raid cards supports different raid ranks, the raid level categories of support is also many, if comprehensively carry out the test of raid rank, needs a lot of manual operations; By performance data, whether can stablize the hardware of effective evaluating server, under developmently need this functional stabilization of strict guarantee.
And server research and development kind gets more and more, the kind of subcard gets more and more, and the robotization of test, high efficiency also become extremely urgent.Carry out the pressure test of many moneys product, bulk article simultaneously, can increase personnel be passed through, also can by writing automated test tool.Obvious automated test tool will save more in the resources such as manpower, time, cost, decreases unnecessary man-machine interactively process.
Shell is commonly called as shell (being used for being different from core), refers to the software (command analysis device) of " providing user to use interface ".Shell can receives user's, then calls corresponding application program.Shell script is similar to the batch processing under Windows/Dos, namely puts in advance in a file with all kinds of order, facilitates a program file of disposable execution, mainly facilitates keeper to carry out arranging or manage.But it is more powerful than the batch processing under Windows, than higher by the program efficiency of other programs editor.
RAID card is just used to the board realizing RAID function, is normally made up of a series of spare parts such as I/O processor, hard disk controller, hard disk connector and buffer memorys.The RAID function that different RAID card is supported is different, supports RAlD0, RAID1, RAID3, RAID4, RAID5, RAID10 not.RAID card can allow a lot of disc driver transmit data simultaneously, and these disc drivers are logically disc drivers, so use RAID can reach single disc driver several times, tens times even speed of hundreds of times.This is also the problem that RAID card is wanted to solve at first.Can provide fault tolerance, this is second critical function of RAID card.
FIO is the extraordinary instrument of test I/O PS, is used for carrying out pressure test and checking to hardware, supports the I/O engine that 13 kinds different, comprising: sync, mmap, libaio, posixaio, SG v3, splice, null, network, syslet, guasi, solarisaio etc.Fio is an io testing tool very flexibly, and he can by multithreading or the various io operation of process simulation, and comprise random, order read-write, mixing read-write waits operation.
Based on above-mentioned technology, the present invention proposes a kind of to raid card each raid rank service check method, by shell script, simplify artificial operation, faulty operation also can be avoided to bring the problems such as the machine of delaying; And by operation automatically, the scheme import operation of batch can be realized.
Summary of the invention
The bright technical matters existed for prior art of we, provides a kind of batch automatic to raid card each raid rank service check method.
One of the present invention is to raid card each raid rank service check method, the technical scheme solving the problems of the technologies described above employing is as follows: by shell script, the present invention proposes a kind of batch automatic to raid card each raid rank service check method, its particular content comprises: step one, identification raid card model; Step 2, determine support raid rank; Step 3, automatic raid rank disk being created as required inspection; Step 4, operation disk performance assessment formula; Step 5, collection test result; Step 6, output disk performance comparison result.It can combine with auto-filling and carry out batch testing by the method, and can collect test result automatically, need not carry out loaded down with trivial details housekeeping, saves manpower, avoids the error that manual operation brings.
Of the present invention to raid card each raid rank service check method, need to complete in the server being provided with linux operating system, during operation, user carries out with root identity logs.
This is in raid card each raid rank service check method, and the result after having tested is redirected to the result file under test catalogue, and file is arranged with result.txt file, records the test result of all tests in this file.
Of the present inventionly a kind ofly to the beneficial effect that raid card each raid rank service check method compared with prior art has be: the shell script of this method of inspection design is easy to use, simple to operate, realize automatically detecting, automatically perform, without the need to carrying out man-machine interactively in whole test, realize real unmanned, save the resources such as manpower, time, cost, decrease unnecessary interactive process; This method of inspection can configure according to different server, difference flexibly, easily, carries out raid card each raid rank Performance Evaluation; And can combine with auto-filling and carry out batch testing, checking client has the fixing configuration required to raid card performance, whether meets customer requirement, saves the resources such as manpower, time, cost, decrease unnecessary interactive process for company.
Accompanying drawing explanation
Accompanying drawing 1 is the described process flow diagram to raid card each raid rank service check method.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with specific embodiment, and with reference to accompanying drawing, one of the present invention is further described raid card each raid rank service check method.
Embodiment:
A kind of to raid card each raid rank service check method described in the present embodiment, first, prepare for checking and carry out identification raid card model; And by raid card model, from database, obtain the raid rank that corresponding raid card is supported, determine the raid rank supported, generate test profile simultaneously; Then according to test profile, automatically disk is created as the raid rank of required inspection by shell script, for checking is prepared; For different raid ranks, run disk performance assessment formula, carry out disk performance test, obtain related data; Finally test result is carried out classification to file, collect test result, all data are compared, output disk performance comparison result.
To raid card each raid rank service check method described in the present embodiment, need to complete in the server being provided with linux operating system, during operation, user carries out with root identity logs.In the method, the result after having tested is redirected to the result file under test catalogue, and file is arranged with result.txt file, records the test result of all tests in this file.
To raid card each raid rank service check method described in the present embodiment, as shown in Figure 1, its idiographic flow is as follows: first identify raid card model, determine raid rank and set up configuration file, according to configuration file, disk being created as relevant raid rank, then runnability assessment formula, and collect test result, if complete test, then carry out gathering test result, and output test result; If do not complete test, then return the 3rd step, according to configuration file, disk is created as relevant raid.
This, in raid card each raid rank service check method, mounts the system on a single hard disk, loads the driving of corresponding raid card after system installation, so that recognize relevant disc information, carry out the configuration of raid card;
About identifying raid card model: different raid card configurations, the raid card kind of collocation is different, checks the model of arranged in pairs or groups raid card, and the raid card loading correspondence drives;
RAID_bus=`lspci |grep RAID |awk –F ‘ ‘ ‘{print $1}’
RAID_name1=`lspci |grep RAID |awk –F ‘ ‘ ‘{print $5}’
RAID_name2=`lspci | grep RAID | { print $ 11} ' checks the title of raid card and No. bus to awk – F ' ' ';
The device number such as viewed is as follows:
RAID_bus=07.00.0
RAID_name1=LSI
RAID_name2=2108
Rpm – ivh xxx.rpm wherein xxx.rpm is the driver installation kit of corresponding raid card.
This is in raid card each raid rank service check method, the raid rank about determining to support: according to different raid cards, determine supported raid rank, forming property assessment configuration file, and determines the order of whole evaluation process;
if [ $RAID_name1 == LSI ];then
raid_num=`cat LSI.txt |grep $RAID_name2 |awk –F ‘ ‘ ‘{print $2}’`
for i in {$raid_num}
do
echo $i >> /root/raid.txt
done
else
raid_num=`cat Adaptec.txt |grep $RAID_name2 |awk –F ‘ ‘ ‘{print $2}’`
for i in {$raid_num}
do
echo $i >> /root/raid.txt
done
fi.
This is in raid card each raid rank service check method, about automatic raid rank disk being created as required inspection: according to test profile, in order, automatically disk is created as the raid rank of required inspection by script, for checking is prepared:
num=`cat /root/raid.txt |wc –l`
num=num+1
if [ i –lt $num ];then
RAID=`Sed –n ‘$num,$num“p”’ /root/raid.txt`
if [ $RAID_name1 == LSI ];then
do_lsi_raid.sh
else
do_adeptec_raid.sh
fi
do_test.sh
mv result $RAID
else
echo “test finish”
do_collect
fi.
This is in raid card each raid rank service check method, about operation disk performance assessment formula: for different raid ranks, carry out disk performance test, obtain related data, can read for the random write of disk 4k, 8k, 16k, 32k, 64k, 128k, 256k, 512k, 1024k, 2048k block size, random write, order, sequential write, the operation such as mixing read-write;
Set up conf file
for i in read write randread randwrite
do
for j in 4k 8k 16k 64k 128k 512k 1M
do
………
done
done
for i in rw randrw
do
for j in 4k 8k 16k 64k 128k 512k 1M
do
……..
done
done
Test: do_test.sh
for m in `cat $ROOT_DIR/conf.txt`
do
fio $DIR/$m >> $RES/$m 2>&1
done.
Whether this is in raid card each raid rank service check method, about collection test result: test result is carried out classification and file, after filing data, check and tested, proceed if will not jump to step 3; If tested, then continue to carry out downwards, gathered test result;
mv $DIR/result $DIR/$RAID.
All data, in raid card each raid rank service check method, about output disk performance comparison result: after all tests complete, arrange by this, form comparison result, and Output rusults;
function do_collect(){
for i in `$/DIR/conf.txt`
do
for j in `cat /root/raid.txt`
do
Result=`cat $DIR/$j/res.csv |grep $i |awk -F ‘ ‘ ‘{print $2}’`
echo –n $Result >> /root/result_iops.csv
echo –n “ “ >> /root/result_iops.csv
Result=`cat $DIR/$j/res.csv |grep $i |awk -F ‘ ‘ ‘{print $3}’`
echo –n $Result >> /root/result_MB.csv
echo –n “ “ >> /root/result_MB.csv
done
echo $i >> /root/result_iops.csv
echo $i >> /root/result_MB.csv
done
for j in `cat /root/raid.txt`
do
echo -n $j >> /root/result_iops.csv
echo -n $j >> /root/result_MB.csv
done
}.
This
When using the present embodiment to carry out actual test to raid card each raid rank service check method, particular hardware operating process is as follows:
1) prepare a station server, and install linux operating system, be connected to by one piece of sata hard disk on mainboard sata interface, raid card connects the hard disk of full configuration;
2) after system installation, with root identity logs in operating system, raid card driver is loaded;
3) update routine is copied under system under any one file, action command:
chmod +x *
./raid_test.sh.
4) after script completes, arrange result.txt file in result file, this file is for recording the test result of all tests.
To raid card each raid rank service check method described in embodiment, the shell script of design is easy to use, simple to operate, realize automatically detecting, automatically performing, without the need to carrying out man-machine interactively in whole test, realizing real unmanned, save the resources such as manpower, time, cost, decrease unnecessary interactive process.This method can be applied in various configuration, can configure flexibly, easily, carry out raid card each raid rank Performance Evaluation according to different server, difference.The method only needs suitable amendment, can be applied to batch deployment operation system, quick and easy, easy care; For being unfamiliar with linux and needing the technician carrying out operating under linux platform to have reality and deep meaning.
Above-mentioned embodiment is only concrete case of the present invention; scope of patent protection of the present invention includes but not limited to above-mentioned embodiment; any claims according to the invention and any person of an ordinary skill in the technical field to its suitable change done or replacement, all should fall into scope of patent protection of the present invention.

Claims (9)

1. to raid card each raid rank service check method, it is characterized in that, propose batch by shell script automatic to raid card each raid rank service check method, its particular content comprises: step one, identification raid card model; Step 2, determine support raid rank; Step 3, automatic raid rank disk being created as required inspection; Step 4, operation disk performance assessment formula; Step 5, collection test result; Step 6, output disk performance comparison result.
2. a kind of to raid card each raid rank service check method according to claim 1, it is characterized in that, complete in the server being provided with linux operating system, during operation, user carries out with root identity logs.
3. one, to raid card each raid rank service check method, is characterized in that according to claim 2,
First, prepare for checking and carry out identification raid card model, by raid card model, from database, obtain the raid rank that corresponding raid card is supported, determine the raid rank supported, and generate test profile; Then according to test profile, automatically disk is created as the raid rank of required inspection by shell script; Last for different raid ranks, run disk performance assessment formula, carry out disk performance test, obtain related data; And test result is carried out classification file, collect test result, all data are compared, and output disk performance comparison result.
4. a kind of to raid card each raid rank service check method according to claim 2, it is characterized in that, about identification raid card model, check the model of arrange in pairs or groups raid card, and load corresponding raid card driving, check the title of raid card and No. bus.
5. one, to raid card each raid rank service check method, is characterized in that according to claim 2, about the raid rank determining to support, according to different raid cards, determine supported raid rank, forming property assessment configuration file, and determine the order of whole evaluation process.
6. a kind of to raid card each raid rank service check method according to claim 5, it is characterized in that, about automatic raid rank disk being created as required inspection, according to test profile, in order, automatically disk is created as the raid rank of required inspection by script.
7. a kind of to raid card each raid rank service check method according to claim 6, it is characterized in that, about operation disk performance assessment formula, for different raid ranks, carry out disk performance test, obtain related data, can for the random write of disk 4k, 8k, 16k, 32k, 64k, 128k, 256k, 512k, 1024k, 2048k block size, random write, order read, sequential write, mixing read-write operation.
8. whether one, to raid card each raid rank service check method, is characterized in that according to claim 7, test result is carried out classification and file, after filing data, check and tested, proceed if will not jump to step 3; If tested, then gather test result.
9. a kind of to raid card each raid rank service check method according to claim 8, it is characterized in that, result after having tested is redirected to the result file under test catalogue, and file is arranged with result.txt file, records the test result of all tests in this file.
CN201510005923.0A 2015-01-07 2015-01-07 Method for examining performance of raid levels of raid card Pending CN104615514A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510005923.0A CN104615514A (en) 2015-01-07 2015-01-07 Method for examining performance of raid levels of raid card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510005923.0A CN104615514A (en) 2015-01-07 2015-01-07 Method for examining performance of raid levels of raid card

Publications (1)

Publication Number Publication Date
CN104615514A true CN104615514A (en) 2015-05-13

Family

ID=53149971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510005923.0A Pending CN104615514A (en) 2015-01-07 2015-01-07 Method for examining performance of raid levels of raid card

Country Status (1)

Country Link
CN (1) CN104615514A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607988A (en) * 2015-12-18 2016-05-25 浪潮电子信息产业股份有限公司 Automated test and analysis method for IO performance of storage devices in server
CN107491338A (en) * 2017-09-29 2017-12-19 郑州云海信息技术有限公司 A kind of whole machine cabinet batch automatic configuration RAID card level method for distinguishing
CN107678894A (en) * 2017-08-31 2018-02-09 郑州云海信息技术有限公司 A kind of internal storage testing method, apparatus and system
CN107688434A (en) * 2016-08-04 2018-02-13 紫光华山信息技术有限公司 Disk array RAID collocation methods and device
CN108153631A (en) * 2017-12-22 2018-06-12 曙光信息产业股份有限公司 The test method and test device of RAID card
CN108733526A (en) * 2018-06-21 2018-11-02 郑州云海信息技术有限公司 A kind of test method and system of batch detection RAID card health status

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015744A1 (en) * 2002-07-22 2004-01-22 Finisar Corporation Scalable multithreaded network testing tool
CN101192180A (en) * 2006-11-20 2008-06-04 中兴通讯股份有限公司 Method for testing magnetic disc array
CN101236521A (en) * 2008-02-15 2008-08-06 浪潮电子信息产业股份有限公司 RAID card compatibility and stability test method
CN103744759A (en) * 2013-12-27 2014-04-23 浪潮电子信息产业股份有限公司 Method for verifying unattended disk performance and stability under Linux system
US8788685B1 (en) * 2006-04-27 2014-07-22 Netapp, Inc. System and method for testing multi-protocol storage systems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015744A1 (en) * 2002-07-22 2004-01-22 Finisar Corporation Scalable multithreaded network testing tool
US8788685B1 (en) * 2006-04-27 2014-07-22 Netapp, Inc. System and method for testing multi-protocol storage systems
CN101192180A (en) * 2006-11-20 2008-06-04 中兴通讯股份有限公司 Method for testing magnetic disc array
CN101236521A (en) * 2008-02-15 2008-08-06 浪潮电子信息产业股份有限公司 RAID card compatibility and stability test method
CN103744759A (en) * 2013-12-27 2014-04-23 浪潮电子信息产业股份有限公司 Method for verifying unattended disk performance and stability under Linux system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607988A (en) * 2015-12-18 2016-05-25 浪潮电子信息产业股份有限公司 Automated test and analysis method for IO performance of storage devices in server
CN107688434A (en) * 2016-08-04 2018-02-13 紫光华山信息技术有限公司 Disk array RAID collocation methods and device
CN107688434B (en) * 2016-08-04 2020-03-06 新华三信息技术有限公司 RAID configuration method and device
US10917291B2 (en) 2016-08-04 2021-02-09 New H3C Information Technologies Co., Ltd. RAID configuration
CN107678894A (en) * 2017-08-31 2018-02-09 郑州云海信息技术有限公司 A kind of internal storage testing method, apparatus and system
CN107678894B (en) * 2017-08-31 2021-04-27 郑州云海信息技术有限公司 Memory test method, device and system
CN107491338A (en) * 2017-09-29 2017-12-19 郑州云海信息技术有限公司 A kind of whole machine cabinet batch automatic configuration RAID card level method for distinguishing
CN108153631A (en) * 2017-12-22 2018-06-12 曙光信息产业股份有限公司 The test method and test device of RAID card
CN108733526A (en) * 2018-06-21 2018-11-02 郑州云海信息技术有限公司 A kind of test method and system of batch detection RAID card health status

Similar Documents

Publication Publication Date Title
CN104615514A (en) Method for examining performance of raid levels of raid card
CN103744759A (en) Method for verifying unattended disk performance and stability under Linux system
CN104360919A (en) Method for automatically testing performance, function and stability of SSD (solid state drive)
CN102568522B (en) The method of testing of hard disk performance and device
CN111756575B (en) Performance analysis method and device of storage server and electronic equipment
US6845344B1 (en) Graphical user input interface for testing performance of a mass storage system
CN102004693A (en) System performance test method and device
CN103793326A (en) Assembly test method and device
CN105223889A (en) A kind of method being applicable to the automatic monitoring PMC RAID card daily record of producing line
CN105893230A (en) Method and device for detecting IOPS performance of hard disks
CN104317684A (en) Method for synchronously automatic testing of bandwidth and transmission rate of multiple USB (Universal Serial Bus) interfaces
Perry et al. An empirical study of software interface faults
CN110109773A (en) A kind of detection method and system of magnetic disk of virtual machine consistency
US10915426B2 (en) Intercepting and recording calls to a module in real-time
CN103425580A (en) Method for automatically and rapidly obtaining and calibrating configuration information of cloud computing device
CN107656867A (en) A kind of method and apparatus of database and Compatibility of Operating System authentication test
CN105138293A (en) Disk performance evaluating method based on database
US6865514B1 (en) Post test data processing of a mass storage system
CN107145415A (en) A kind of method of the batch testing HDD LED under Linux system
CN107515803A (en) A kind of storing performance testing method and device
CN110297735B (en) Universal re-judging test system based on solid state disk
CN106683705A (en) EMMC test method and eMMC test system
CN116244133A (en) Hard disk test management method, system, terminal and storage medium
CN111209146B (en) RAID card aging test method and system
US7171338B1 (en) Output performance trends of a mass storage system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150513

WD01 Invention patent application deemed withdrawn after publication