CN105242880A - Method for automatically creating Raid and executing pressure testing - Google Patents

Method for automatically creating Raid and executing pressure testing Download PDF

Info

Publication number
CN105242880A
CN105242880A CN201510652026.9A CN201510652026A CN105242880A CN 105242880 A CN105242880 A CN 105242880A CN 201510652026 A CN201510652026 A CN 201510652026A CN 105242880 A CN105242880 A CN 105242880A
Authority
CN
China
Prior art keywords
raid
capacity
pressure test
platform
measured
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
CN201510652026.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.)
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 CN201510652026.9A priority Critical patent/CN105242880A/en
Publication of CN105242880A publication Critical patent/CN105242880A/en
Pending legal-status Critical Current

Links

Abstract

The present invention discloses a method for automatically creating a Raid and executing pressure testing. According to the method, based on the diskless operation of a platform to be tested, a remote system is started via the Internet, a hard disk mounted in the system is made into one Raid, then capacity of the Raid is judged and according to the capacity, disk pressure testing is performed on the Raid. According to the method provided by the present invention, the Raid pressure testing of a storage subsystem of a system can be performed automatically, so that the storing quality of the system is ensured, the testing efficiency can be greatly improved and test labor can be reduced.

Description

A kind of robotization creates Raid and performs the method for pressure test
Technical field
The present invention relates to generic server technical field, be specifically related to a kind of robotization and create Raid and the method performing pressure test.
Background technology
Along with the fast development of IT industry, server has become a kind of mainstream demand, relative to PC, the reliability particular importance of server, the particularly reliability of data, so comparatively PC, the memory controller of server has raid function, be called for short disk array (RedundantArraysofIndependentDisks, RAID), there is the meaning of " array with redundant ability that independent disk is formed ", for realizing the reliability of server data and responding effect fast, the checking that this technology is used for different server design upward stability is particularly important, except the checking of product design, during mainboard re-packs, carry out preliminary detection is also very necessary.
Motherboard manufacturers will produce a lot of machine, if every platform machine manually goes to create raid, performing pressure test can compare waste of manpower.
Summary of the invention
The technical problem to be solved in the present invention is: the RAID stability test carrying out server stores controller of the robotization when mainboard production line or Server development test.
The technical solution adopted in the present invention is:
A kind of robotization creates Raid and performs the method for pressure test, described method operating without dish based on platform to be measured, by network startup to far end system, hard disk in the system of being installed to is made a Raid, then judge this RAID capacity, carry out the disk pressure test of this RAID according to capacity.
Described method specific procedure is as follows:
Check current raid state;
Raid drive is read;
Delete is except raid;
Create raid0;
Calculate hard disk quantity;
By the drive of all hard disks assignment altogether;
Create corresponding raid;
Read raid capacity;
Capacity is converted to M;
Perform Raid pressure test, and output test result.
Described method operation steps is as follows:
1) platform non-disk startup environment to be measured is built;
2) by PXE(Pre-bootExecutionEnvironment Pre-boot Execution Environment) start platform to be measured to far-end operation system;
3) enter operating system and perform test script;
4) current platform raid state to be measured is detected;
5) if current exist raid, remove;
6) if current do not exist raid state, reading disk number;
7) all disks are created a Raid;
8) Raid capacity Transforming units is MB is detected;
9) overall pressure test is performed.
Beneficial effect of the present invention is:
The present invention can the executive system storage subsystem RAID pressure test of robotization, ensure that the storage quality of system, greatly can improve testing efficiency, reduces test manpower.
Accompanying drawing explanation
Fig. 1 is operational flowchart of the present invention.
Embodiment
Below according to Figure of description, in conjunction with embodiment, the present invention is further described:
Embodiment 1:
A kind of robotization creates Raid and performs the method for pressure test, described method operating without dish based on platform to be measured, by network startup to far end system, the operating system of platform to be measured self can not be used, hard disk in the system of being installed to is made a Raid, then judge this RAID capacity, carry out the disk pressure test of this RAID according to capacity.
Embodiment 2:
On the basis of embodiment 1, described in the present embodiment, method specific procedure is as follows:
#CheckCurrentRAIDstatus
Currentraid=`cat/proc/mdstat|grep " active " | awk'{print $ 1}'|wc-l` checks current raid state
if["$currentraid"!="0"];then
for((i=1;i<=$currentraid;i++))
do
echo$i
Raid=`cat/proc/mdstat|grep " active " | sed-n " $ i}p " | raid drive reads by awk'{print $ 1}'`
Mdadm--stop/dev/ $ raid Delete is except raid
done
fi
#CreateRAID creates raid0
Md0diskcount=`./lsscsi|grep "/dev/ " | wc-l` calculates hard disk quantity
Md0disk=`./lsscsi|awk'{print $ 6}'|awk-vRS=" " ' { gsub (" n ", " "); Print}'` is by the drive of all hard disks assignment altogether
Mdadm-v--create--level=raid0--raid-devices=$ md0diskcount/dev/md0-c64--force--run $ md0disk; Echo $ creates corresponding raid
#StartDisktest
Sizek=`sfdisk-s/dev/md0` reads raid capacity
Capacity is converted to M by size=`expr $ sizek/1024`
./diskperf-64-arbt2-m50-d/dev/sda-s $ size-t2002 & 1; Echo $ >diskper.txt & performs Raid pressure test, and outputs test result.
Embodiment 3:
As shown in Figure 1, on the basis of embodiment 2, described in the present embodiment, method operation steps is as follows:
1) platform non-disk startup environment to be measured is built;
2) by PXE(Pre-bootExecutionEnvironment Pre-boot Execution Environment) start platform to be measured to far-end operation system;
3) enter operating system and perform test script;
4) current platform raid state to be measured is detected;
5) if current exist raid, remove;
6) if current do not exist raid state, reading disk number;
7) all disks are created a Raid;
8) Raid capacity Transforming units is MB is detected;
9) overall pressure test is performed.
Above embodiment is only for illustration of the present invention; and be not limitation of the present invention; the those of ordinary skill of relevant technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all equivalent technical schemes also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (3)

1. a robotization creates Raid and performs the method for pressure test, it is characterized in that: described method operating without dish based on platform to be measured, by network startup to far end system, hard disk in the system of being installed to is made a Raid, then judge this RAID capacity, carry out the disk pressure test of this RAID according to capacity.
2. a kind of robotization according to claim 1 creates Raid and performs the method for pressure test, and it is characterized in that, described method program is as follows:
Check current raid state;
Raid drive is read;
Delete is except raid;
Create raid0;
Calculate hard disk quantity;
By the drive of all hard disks assignment altogether;
Create corresponding raid;
Read raid capacity;
Capacity is converted to M;
Perform Raid pressure test, and output test result.
3. a kind of robotization according to claim 1 and 2 creates Raid and performs the method for pressure test, and it is characterized in that, described method step is as follows:
1) platform non-disk startup environment to be measured is built;
2) platform to be measured is started to far-end operation system by PXE;
3) enter operating system and perform test script;
4) current platform raid state to be measured is detected;
5) if current exist raid, remove;
6) if current do not exist raid state, reading disk number;
7) all disks are created a Raid;
8) Raid capacity Transforming units is MB is detected;
9) overall pressure test is performed.
CN201510652026.9A 2015-10-10 2015-10-10 Method for automatically creating Raid and executing pressure testing Pending CN105242880A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510652026.9A CN105242880A (en) 2015-10-10 2015-10-10 Method for automatically creating Raid and executing pressure testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510652026.9A CN105242880A (en) 2015-10-10 2015-10-10 Method for automatically creating Raid and executing pressure testing

Publications (1)

Publication Number Publication Date
CN105242880A true CN105242880A (en) 2016-01-13

Family

ID=55040543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510652026.9A Pending CN105242880A (en) 2015-10-10 2015-10-10 Method for automatically creating Raid and executing pressure testing

Country Status (1)

Country Link
CN (1) CN105242880A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549902A (en) * 2015-12-08 2016-05-04 浪潮电子信息产业股份有限公司 Design scheme used for automatically making RAID (Redundant Array of Independent Disks) during trial production of server
CN113608682A (en) * 2021-06-30 2021-11-05 济南浪潮数据技术有限公司 Intelligent flow control method and system based on HDD disk pressure

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7386663B2 (en) * 2004-05-13 2008-06-10 Cousins Robert E Transaction-based storage system and method that uses variable sized objects to store data
CN103473158A (en) * 2013-09-18 2013-12-25 浪潮电子信息产业股份有限公司 Disk pressure testing method for Linux server
CN104965672A (en) * 2015-05-27 2015-10-07 浪潮电子信息产业股份有限公司 Method for automatically, rapidly and conveniently configuring RAID

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7386663B2 (en) * 2004-05-13 2008-06-10 Cousins Robert E Transaction-based storage system and method that uses variable sized objects to store data
CN103473158A (en) * 2013-09-18 2013-12-25 浪潮电子信息产业股份有限公司 Disk pressure testing method for Linux server
CN104965672A (en) * 2015-05-27 2015-10-07 浪潮电子信息产业股份有限公司 Method for automatically, rapidly and conveniently configuring RAID

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
POLYGUN2000: "DELL服务器使用DTK+PXE全自动创建RAID", 《HTTP://BLOG.SINA.COM.CN/S/BLOG_704836F40101ERM1.HTML》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549902A (en) * 2015-12-08 2016-05-04 浪潮电子信息产业股份有限公司 Design scheme used for automatically making RAID (Redundant Array of Independent Disks) during trial production of server
CN113608682A (en) * 2021-06-30 2021-11-05 济南浪潮数据技术有限公司 Intelligent flow control method and system based on HDD disk pressure
CN113608682B (en) * 2021-06-30 2023-12-22 济南浪潮数据技术有限公司 Intelligent flow control method and system based on HDD disk pressure

Similar Documents

Publication Publication Date Title
CN101093462B (en) Automatization method for testing schooling pressure on database application
CN102568522B (en) The method of testing of hard disk performance and device
CN104375910A (en) Automated startup and shutdown testing method
CN104536875A (en) Automatic server restart testing method based on IPMI
CN103973515A (en) Network card stability testing method
CN102279787B (en) Method and device for testing average fault-free time
CN104572422A (en) Memory monitoring achievement method based on startup and shutdown of Linux system
CN112068852B (en) Method, system, equipment and medium for installing open-source software based on domestic server
CN106598796A (en) Method for testing hardware information stability in reboot
CN110750396A (en) Server operating system compatibility testing method and device and storage medium
CN115547396B (en) Test method and device for eMMC
CN104049999A (en) Automatic storage device repair system based on network and method thereof
CN104598340A (en) Detection system of hardware faults, electronic device and method
CN103984634A (en) Memory unsteady state pressure test method of LINUX server
CN108572895B (en) Stability test method for automatically checking software and hardware configuration under Linux
CN106502844A (en) A kind of method of the sAS port bandwidths of test RAID memory Is O
CN114880177A (en) Method and device for testing complete machine abnormal power failure of solid state disk and computer equipment
CN108153635B (en) System memory edge testing method, system device and computer readable storage medium
CN105242880A (en) Method for automatically creating Raid and executing pressure testing
CN111694684A (en) Abnormal construction method and device of storage equipment, electronic equipment and storage medium
CN112269697B (en) Equipment storage performance testing method, system and related device
CN109271009A (en) A kind of method, apparatus that control server backboard powers on and CPLD
CN107357700A (en) A kind of method and system of test NVME hard disk order stability
CN107145415A (en) A kind of method of the batch testing HDD LED under Linux system
CN115878400A (en) Test method, test apparatus, computer device, storage medium, and program product

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160113