CN105302681A - Automatic test method for disk performance of rack whole cabinet - Google Patents
Automatic test method for disk performance of rack whole cabinet Download PDFInfo
- Publication number
- CN105302681A CN105302681A CN201510740303.1A CN201510740303A CN105302681A CN 105302681 A CN105302681 A CN 105302681A CN 201510740303 A CN201510740303 A CN 201510740303A CN 105302681 A CN105302681 A CN 105302681A
- Authority
- CN
- China
- Prior art keywords
- script
- test
- disk
- disk performance
- logo file
- 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
Links
- 238000010998 test method Methods 0.000 title abstract description 5
- 238000012360 testing method Methods 0.000 claims abstract description 50
- 238000011056 performance test Methods 0.000 claims abstract description 17
- 238000000034 method Methods 0.000 claims abstract description 8
- 238000005192 partition Methods 0.000 claims description 3
- 238000013316 zoning Methods 0.000 abstract 1
- 230000006870 function Effects 0.000 description 9
- 241000282326 Felis catus Species 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000005055 memory storage Effects 0.000 description 1
- 238000006748 scratching Methods 0.000 description 1
- 230000002393 scratching effect Effects 0.000 description 1
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention discloses an automatic test method for disk performance of a rack whole cabinet, belonging to the technical field of disk test; the invention ensures that the test script and the test tool are installed on the tested node, and establishes the mark file for representing the script execution progress; obtaining the value of the mark file variable, and judging the script execution progress; the invention is particularly suitable for the x86 architecture red cap and the Centos operating system. The test method realizes the automatic performance of the zoning, formatting and performance test of the plurality of disks by using the script, has the advantages of simple operation, high automation degree and strong practicability, can greatly save manpower, improves the efficiency of the performance test of the multi-node disks of the whole cabinet server, effectively ensures the stability of the server, and is a very effective method for verifying the product quality.
Description
Technical field
The present invention discloses a kind of automated testing method of disk performance, belongs to disk tester technical field; Specifically a kind of automated testing method of rack whole machine cabinet disk performance.
Background technology
Refer to that in the external memory storage of computing machine, disk is more conventional.Disk is the earliest contained in the sealed box of a side by magnetic plate sheet, and the object done like this is to prevent magnetic disk surface from scratching, causing loss of data.Developed afterwards, occurred hard disk, be i.e. the disk in later stage.Along with development in science and technology, large data age arrives, and whole machine cabinet server arises at the historic moment, as one of the important memory unit of server---hard disk, its performance directly affects the performance of whole machine cabinet server.But the test process that existing rack server single node disk performance test needs manual fdisk one by one, restarts, formats, not only waste of manpower and the time, and easily make mistakes, the invention provides a kind of automated testing method of rack whole machine cabinet disk performance, automatically subregion, format can be carried out to disk, remove test log, start disk performance test; Easy to use, greatly can save test manpower and time, the test duration reduces to not enough a few minutes by a few hours that the manual test time is original, greatly increases work efficiency.
Summary of the invention
The test process of the present invention is directed to manual fdisk one by one in prior art, restarting, formaing, not only waste of manpower and the time, and the problem of easily makeing mistakes, a kind of automated testing method of rack whole machine cabinet disk performance is provided, automatically subregion, format can be carried out to disk, remove test log, start disk performance test; Easy to use, greatly can save test manpower and time, the test duration reduces to not enough a few minutes by a few hours that the manual test time is original, greatly increases work efficiency.
The concrete scheme that the present invention proposes is:
A kind of automated testing method of rack whole machine cabinet disk performance:
Guaranteeing that test script and testing tool are installed on tested node, creating logo file, for representing script implementation progress;
The value of the logo file variable obtained, judges script implementation progress, if script performs first time, then carries out subregion to node disk, afterwards autoboot; If script completes subregion, then carry out disk and format at a slow speed, scavenge system daily record, and restart;
Script completes subregion, selects, in requisition for the function performed, to call disk performance testing tool and carry out disk performance test.
Described establishment logo file process: obtain current file place catalogue, whether interpretation key file exists, if logo file does not exist, then thinks that script not yet performs, creates logo file, to logo file write flag data; If logo file exists, obtain logo file intermediate value.
Test terminates rear this script to be removed from starting up's item, and removes test logo file.
Script completes subregion, selects hdd-part function, carries out disk partition, call disk performance testing tool and carry out disk performance test;
Script completes subregion, selects hdd-mkfs function, carries out disk formatting, call disk performance testing tool and carry out disk performance test.
Usefulness of the present invention is:
The present invention guarantees that test script and testing tool are installed on tested node, creates logo file, for representing script implementation progress; The value of the logo file variable obtained, judges script implementation progress, if script performs first time, then carries out subregion to node disk, afterwards autoboot; If script completes subregion, then carry out disk and format at a slow speed, scavenge system daily record, and restart; Script completes subregion, selects, in requisition for the function performed, to call disk performance testing tool and carry out disk performance test, and the present invention is especially suitable for the red cap of x86 framework and Centos operating system.This method of testing utilize script achieve the subregion of polylith disk, format, performance test robotization carry out, and it is simple to operate, automaticity is high, practicality is stronger, greatly can save manpower, improving the efficiency of whole machine cabinet server multinode disk performance test, effectively ensure that the stability of server, is the very effective method of checking product quality.
Embodiment
A kind of automated testing method of rack whole machine cabinet disk performance:
Guaranteeing that test script and testing tool are installed on tested node, creating logo file, for representing script implementation progress;
The value of the logo file variable obtained, judges script implementation progress, if script performs first time, then carries out subregion to node disk, afterwards autoboot; If script completes subregion, then carry out disk and format at a slow speed, scavenge system daily record, and restart;
Script completes subregion, selects, in requisition for the function performed, to call disk performance testing tool and carry out disk performance test.
According to said method and summary of the invention, in conjunction with instantiation, the present invention will be further described.
A kind of automated testing method of rack whole machine cabinet disk performance:
Guaranteeing that test script and testing tool are installed on tested node, creating logo file, for representing script implementation progress;
Create logo file:
#!/bin/bash
Cur_Dir=$ (cd " $ (dirname " $ 0 ") "; Pwd) # obtains current file place catalogue
If [!-eflag.txt] whether # interpretation key file exist
Then# such as logo file does not exist, then think that script not yet performs, and creates logo file
Echo1>flag.txt# writes flag data to logo file
flag=1
Echo " sh $ Cur_Dir/hdd-perofrmance.sh " >>/etc/rc.d/rc.local#, this script write starting up item, ensures that this script can continue to perform after restart;
else
If flag=`catflag.txt`# logo file exists, obtain logo file intermediate value
fi
The value of the logo file variable obtained, judges script implementation progress,
Judge script implementation progress
The value of the indexed variable that # obtains according to step one, selects
case$flagin
hdd-part;echo2>flag.txt;reboot;;
If # script performs first time, then perform hdd-part function, subregion is carried out to node disk, afterwards autoboot;
hdd-mkfs;echo3>flag.txt;clear-log;reboot;;
If # script completes subregion, then carry out disk and format at a slow speed, scavenge system daily record, and restart;
shfio-td-ext4-parted-all.sh;rm-fflag.txt;sed-i'reboot/'/etc/rc.d/rc.local;;
# script completes subregion, starts to call disk performance testing tool fio-td-ext4-parted-all.sh, carries out disk performance test, and test terminates rear this script to be removed from starting up's item, and removes test logo file;
esac
Functionhdd-part () # disk partition function, carries out subregion to lower 8 disks of system, and 4K aligns
{
parted-s/dev/sdamkpartprimaryext4307202049s1500G
foriinbcdefgh
do
parted-s/dev/sd{$i}mklabelgptmkpartprimaryext40%100%
done
}
Functionhdd-mkfs () # disk formatting function, formats at a slow speed 8 pieces of disks
{
foriina3b1c1d1e1f1g1
do
mkfs.ext4-F-Elazy_itable_init=0/dev/sd$i&
done
mkfs.ext4-F-Elazy_itable_init=0/dev/sdh1
}
Clear-log () # scavenge system Hitachi function, message, mcelog daily record and BMC daily record under scavenge system
{
cat/dev/null>/var/log/messages
cat/dev/null>/var/log/mcelog
serviceipmistart
ipmitoolselclear
}
Method of testing of the present invention achieves subregion, the format of polylith disk, and improving the efficiency of whole machine cabinet server multinode disk performance test, effectively ensure that the stability of server, is the very effective method of checking product quality.
Claims (4)
1. an automated testing method for rack whole machine cabinet disk performance, is characterized in that
Guaranteeing that test script and testing tool are installed on tested node, creating logo file, for representing script implementation progress;
The value of the logo file variable obtained, judges script implementation progress, if script performs first time, then carries out subregion to node disk, afterwards autoboot; If script completes subregion, then carry out disk and format at a slow speed, scavenge system daily record, and restart;
Script completes subregion, selects, in requisition for the function performed, to call disk performance testing tool and carry out disk performance test.
2. the automated testing method of a kind of rack whole machine cabinet disk performance according to claim 1, it is characterized in that described establishment logo file process: obtain current file place catalogue, whether interpretation key file exists, if logo file does not exist, then think that script not yet performs, create logo file, to logo file write flag data; If logo file exists, obtain logo file intermediate value.
3. the automated testing method of a kind of rack whole machine cabinet disk performance according to claim 1 and 2, is characterized in that test terminates rear this script to be removed from starting up's item, and removes test logo file.
4. the automated testing method of a kind of rack whole machine cabinet disk performance according to claim 3, is characterized in that script completes subregion, selects hdd-part function, carries out disk partition, call disk performance testing tool and carry out disk performance test;
Script completes subregion, selects hdd-mkfs function, carries out disk formatting, call disk performance testing tool and carry out disk performance test.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510740303.1A CN105302681A (en) | 2015-11-04 | 2015-11-04 | Automatic test method for disk performance of rack whole cabinet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510740303.1A CN105302681A (en) | 2015-11-04 | 2015-11-04 | Automatic test method for disk performance of rack whole cabinet |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105302681A true CN105302681A (en) | 2016-02-03 |
Family
ID=55199972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510740303.1A Pending CN105302681A (en) | 2015-11-04 | 2015-11-04 | Automatic test method for disk performance of rack whole cabinet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105302681A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107451003A (en) * | 2017-06-30 | 2017-12-08 | 郑州云海信息技术有限公司 | The method of testing and device of a kind of storage system |
CN107992267A (en) * | 2017-11-23 | 2018-05-04 | 郑州云海信息技术有限公司 | A kind of method and system of the serial automatically formatting of more hard disks |
CN108037896A (en) * | 2017-12-08 | 2018-05-15 | 郑州云海信息技术有限公司 | To the method for mechanical hard disk batch formatization and multidomain treat-ment under a kind of Linux |
CN108038033A (en) * | 2017-12-12 | 2018-05-15 | 中标软件有限公司 | Test method and system based on linux system |
CN108762997A (en) * | 2018-05-02 | 2018-11-06 | 郑州云海信息技术有限公司 | Based on the method and system for executing hard disk performance test under linux system automatically |
CN110795304A (en) * | 2019-10-11 | 2020-02-14 | 苏州浪潮智能科技有限公司 | Method and device for testing performance of distributed storage system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040193785A1 (en) * | 2003-03-11 | 2004-09-30 | Zayas Fernando A. | System for improving the performance of read/write testing in a hard drive |
CN102306193A (en) * | 2011-09-05 | 2012-01-04 | 浪潮电子信息产业股份有限公司 | Method for testing performance of magnetic disc database |
CN103744759A (en) * | 2013-12-27 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Method for verifying unattended disk performance and stability under Linux system |
CN104317693A (en) * | 2014-10-30 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Method for automatically testing hard disk performance fluctuation |
CN104317714A (en) * | 2014-10-29 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Method for automatically testing stability of rack based on expect |
-
2015
- 2015-11-04 CN CN201510740303.1A patent/CN105302681A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040193785A1 (en) * | 2003-03-11 | 2004-09-30 | Zayas Fernando A. | System for improving the performance of read/write testing in a hard drive |
CN102306193A (en) * | 2011-09-05 | 2012-01-04 | 浪潮电子信息产业股份有限公司 | Method for testing performance of magnetic disc database |
CN103744759A (en) * | 2013-12-27 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Method for verifying unattended disk performance and stability under Linux system |
CN104317714A (en) * | 2014-10-29 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Method for automatically testing stability of rack based on expect |
CN104317693A (en) * | 2014-10-30 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Method for automatically testing hard disk performance fluctuation |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107451003A (en) * | 2017-06-30 | 2017-12-08 | 郑州云海信息技术有限公司 | The method of testing and device of a kind of storage system |
CN107451003B (en) * | 2017-06-30 | 2021-03-12 | 苏州浪潮智能科技有限公司 | Test method and device for storage system |
CN107992267A (en) * | 2017-11-23 | 2018-05-04 | 郑州云海信息技术有限公司 | A kind of method and system of the serial automatically formatting of more hard disks |
CN108037896A (en) * | 2017-12-08 | 2018-05-15 | 郑州云海信息技术有限公司 | To the method for mechanical hard disk batch formatization and multidomain treat-ment under a kind of Linux |
CN108038033A (en) * | 2017-12-12 | 2018-05-15 | 中标软件有限公司 | Test method and system based on linux system |
CN108038033B (en) * | 2017-12-12 | 2021-02-26 | 中标软件有限公司 | Test method and system based on Linux system |
CN108762997A (en) * | 2018-05-02 | 2018-11-06 | 郑州云海信息技术有限公司 | Based on the method and system for executing hard disk performance test under linux system automatically |
CN110795304A (en) * | 2019-10-11 | 2020-02-14 | 苏州浪潮智能科技有限公司 | Method and device for testing performance of distributed storage system |
CN110795304B (en) * | 2019-10-11 | 2023-01-10 | 苏州浪潮智能科技有限公司 | Method and device for testing performance of distributed storage system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105302681A (en) | Automatic test method for disk performance of rack whole cabinet | |
US9959177B2 (en) | Backing up virtual machines | |
CN103970585B (en) | Create the method and device of virtual machine | |
US9876695B2 (en) | Generating production server load activity for a test server | |
US8910172B2 (en) | Application resource switchover systems and methods | |
US20110208928A1 (en) | System and Method for Improving Performance of Data Container Backups | |
CN105068920B (en) | Shell-based method for testing stability of rack asset information | |
CN104518917A (en) | Automatic server inspection method | |
CN104572422A (en) | Memory monitoring achievement method based on startup and shutdown of Linux system | |
CN104317714A (en) | Method for automatically testing stability of rack based on expect | |
CN105302687A (en) | Linux-based hard disk sequence detection method | |
US9342390B2 (en) | Cluster management in a shared nothing cluster | |
WO2015154517A1 (en) | Software failure locating method, apparatus and equipment | |
CN104636242A (en) | Method for automatically deleting repeated content in system logs on basis of Linux operating system | |
CN213069791U (en) | Fault detection system of vehicle-mounted information entertainment system | |
CN106598796A (en) | Method for testing hardware information stability in reboot | |
CN105404573A (en) | SmartRack multi-node deployment system pressure testing method | |
CN105607869B (en) | A kind of quick formatting and the method using magnetic disk of virtual machine | |
CN107645427A (en) | A kind of system and method for automatic test network connectivty and stability | |
CN106776090A (en) | A kind of method for collecting information when RHEL operating systems are without response | |
CN108111343B (en) | Method and equipment for realizing terminal monitoring based on cloud platform and computer storage medium | |
CN107357700A (en) | A kind of method and system of test NVME hard disk order stability | |
CN103150247A (en) | Acquisition method and device for time consumed by shutdown | |
US20160266951A1 (en) | Diagnostic collector for hadoop | |
CN106055445A (en) | Automatic CPU pressure testing method |
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: 20160203 |