CN105354122A - Function test optimization method for dual-purpose hard disk backboard of server - Google Patents
Function test optimization method for dual-purpose hard disk backboard of server Download PDFInfo
- Publication number
- CN105354122A CN105354122A CN201510887302.XA CN201510887302A CN105354122A CN 105354122 A CN105354122 A CN 105354122A CN 201510887302 A CN201510887302 A CN 201510887302A CN 105354122 A CN105354122 A CN 105354122A
- Authority
- CN
- China
- Prior art keywords
- hard disk
- test
- nvme
- backboard
- dual purpose
- 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.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 48
- 238000000034 method Methods 0.000 title claims abstract description 19
- 238000005457 optimization Methods 0.000 title claims description 11
- 230000002950 deficient Effects 0.000 claims abstract description 11
- 230000009977 dual effect Effects 0.000 claims description 29
- 238000011990 functional testing Methods 0.000 claims description 20
- 238000010998 test method Methods 0.000 claims description 9
- 230000004064 dysfunction Effects 0.000 claims description 4
- 238000000151 deposition Methods 0.000 claims description 3
- 230000007613 environmental effect Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 1
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method for optimizing the function test of a dual-purpose hard disk backboard of a server, which comprises the following steps: 1) machine from UEFI? starting a shell; 2) the UEFI starting script is guided to enter a test U disk; 3) does the script check for the presence of NVME? PASS mark file, if not, begin to test NVME hard disk, test PASS write NVME? A PASS markup file; if the hard disk module exists, calling an operating system boot file to enter an operating system to perform a function test on the common hard disk module; 4) the function test of the common hard disk module is passed, namely the whole dual-purpose hard disk backboard is normal in function and is a good product, otherwise, the whole dual-purpose hard disk backboard is a defective product. Compared with the prior art, the method for optimizing the function test of the dual-purpose hard disk backboard of the server solves the problems that the existing test is divided into two parts, the hard disk needs to be replaced after shutdown, the operating system needs to be started twice, and the consumed time is long, so that the test time and the labor cost are saved; the automation degree is high.
Description
Technical field
The present invention relates to server hard disk back plane field tests, specifically a kind of functional test optimization method of server dual purpose hard disk backboard.
Background technology
In current server dual purpose hard disk backboard manufacture process, mostly to carry out functional test, whether normally detect backboard function.
Because NVME hard disk and common SATA/SAS hard disk adopt different interface standards, and cannot to drive for the fault/positioning lamp NVME module of common SATA/SAS hard disk and carry out functional test, therefore the functional test of dual purpose backboard is in order to both measure NVME interface, measure the fault/positioning lamp of common SATA/SAS hard disk again, factory is all divided into this hard disk backboard two parts to survey.Again because common hard disc backboard function is more, the instrument of use much only has DOS, Windows, Linux version, such as the instrument of testing backboard I2C function.And in order to test close friend, operator is easy to operate, test procedure is all Design of Graphical Interface, so in factory's dual purpose hard disk backboard functional test, mostly carry out functional test under the operating systems such as Windows or Linux.Therefore monoblock dual purpose hard disk backboard, test intermediate demand power-off shutdown changes hard disk, needs to start Windows or linux system twice, expends the long period.Particularly in factory's large scale test, start the operating system frequently, at substantial time and human cost.
Summary of the invention
Technical assignment of the present invention is to provide a kind of functional test optimization method of server dual purpose hard disk backboard.
Technical assignment of the present invention realizes in the following manner, and the method step is as follows:
1) machine starts from UEFIshell;
2) UEFI booting script guides and enters test USB flash disk;
3) script checks whether to there is NVMEPASS tab file, does not exist, and starts to test NVME hard disk, tests by writing NVMEPASS tab file; Exist, call operation System guides file enters operating system and carries out the test of common hard disc functions of modules;
4) test of common hard disc functions of modules is by namely monoblock dual purpose hard disk backboard function is normal, is non-defective unit, otherwise is defective products.
The concrete steps of the method are as follows:
1) check BIOSSetup boot sequence, determine that machine first startup item is bootfrombuild-inshell;
2) be inserted on mainboard PCIeSlot0 by NVME adapter, RAID card is inserted on Slot1, and be connected with the NVME interface on dual purpose hard disk backboard by NVME adapter with NVME cable, NVME hard-disk interface sticks with NVME hard disk;
3) compile script and test procedure, enters the file system depositing test procedure after making machine enter UEFIshell automatically, checks whether at NVMEPASS tab file, if there is no, then runs NVME module test program;
4) NVME module test program captures the NVME hard disk quantity on backboard, and carries out read-write operation to it;
5) on backboard, NVME hard disk quantity is correct, the normal then dual purpose backboard NVME functions of modules of disk read-write function is normal, is non-defective unit, and writes a NVMEPASS tab file in test USB flash disk; Otherwise be defective products, do not write PASS tab file;
6) close tester in power-down state, pull out NVME cable and hard disk, RAID card be connected with the MINISAS interface on backboard with MINISAS cable, hard-disk interface all plugs common hard disc;
7) starting up again, machine enters uefishell, script checks whether to there is NVMEPASS tab file, if existed, then calling system boot files, guiding enters operating system and carries out common hard disc functional test, and test PASS then monoblock dual purpose hard disk backboard function is normal, otherwise is dysfunction.
In described step 7), operating system is Windows or (SuSE) Linux OS.
The functional test optimization method of a kind of server dual purpose hard disk backboard of the present invention compared to the prior art, solve existing test and be divided into two parts, hard disk is changed in intermediate demand shutdown, need startup twice operating system, expend time in long problem, utilize UEFI environmental testing NVME functions of modules, and can the feature entering operating system be guided, realize dual purpose backboard NVME hard disc module function to test under UEFIShell, common hard disc functions of modules is tested under Windows or (SuSE) Linux OS, test is made only to need to start the operating system once, save factory testing time and human cost, test automation switches, manually participate in without the need to operator, automaticity is high.
Accompanying drawing explanation
Accompanying drawing 1 is a kind of FB(flow block) of functional test optimization method of server dual purpose hard disk backboard.
Embodiment
Embodiment 1:
The concrete steps of the functional test optimization method of this server dual purpose hard disk backboard are as follows:
1) check BIOSSetup boot sequence, determine that machine first startup item is bootfrombuild-inshell;
2) be inserted on mainboard PCIeSlot0 by NVME adapter, RAID card is inserted on Slot1, and be connected with the NVME interface on dual purpose hard disk backboard by NVME adapter with NVME cable, NVME hard-disk interface sticks with NVME hard disk;
3) compile script and test procedure, enters the file system depositing test procedure after making machine enter UEFIshell automatically, checks whether at NVMEPASS tab file, if there is no, then runs NVME module test program;
4) NVME module test program captures the NVME hard disk quantity on backboard, and carries out read-write operation to it;
5) on backboard, NVME hard disk quantity is correct, the normal then dual purpose backboard NVME functions of modules of disk read-write function is normal, is non-defective unit, and writes a NVMEPASS tab file in test USB flash disk; Otherwise be defective products, do not write PASS tab file;
6) close tester in power-down state, pull out NVME cable and hard disk, RAID card be connected with the MINISAS interface on backboard with MINISAS cable, hard-disk interface all plugs common hard disc;
7) starting up again, machine enters uefishell, script checks whether to there is NVMEPASS tab file, if existed, then calling system boot files, guiding enters Windows or (SuSE) Linux OS carries out common hard disc functional test, and test PASS then monoblock dual purpose hard disk backboard function is normal, otherwise is dysfunction.
Embodiment 2:
The functional test optimization method of this server dual purpose hard disk backboard is elaborated as follows:
Check BIOSSetup boot sequence, make bootfrombuild-inefishell as the first startup item, machine start starts build-inefishell automatically;
Be inserted in by NVME adapter on mainboard PCIeSlot0, RAID card is inserted on Slot1, for subsequent use; Be connected with the NVME interface on dual purpose hard disk backboard by NVME adapter with NVME cable, NVME hard-disk interface sticks with NVME hard disk;
Write the NVME hard disk test program of UEFI platform, called after disk.efi, editor uefishell self-starting script startup.nsh, scan available file system, automatically the file system entering and deposit test procedure is guided by a test USB flash disk tab file, detect and whether there is NVMEPASS tab file, if there is no then start to call disk.efi and test NVME hard disk, if existed, calling system boot files ((SuSE) Linux OS be efi boot bootx64.efi, Windows operating system be EFI Microsoft Boot bootmgfw.efi) guide and enter operating system and carry out common hard disc functional test, by test procedure, booting script startup.nsh and test USB flash disk tab file copy on USB flash disk, insert machine USB interface, machine powers on starting up, startup.nsh example is as follows:
echo-off
cls0
echo"SearchingforDiagnosticDrive"
for%dinfs0fs1fs2fs3fs4fs5fs6fs7fs8fs9fs10
setdiagdrive%d
ifexist%diagdrive%:\flagthen
echoLocatedDiagnosticDriveon%diagdrive%:
gotoSET_DIAGDRIVE
endif
endfor
ifnotexistflagthen
echo"Missingflagfile,unabletodeterminetestdrive"
gotoEND
endif
:SET_DIAGDRIVE
%diagdrive%:
ifexisttmp\nvmepass.flagthen
deltmp\nvmepass.flag>0
\efi\boot\bootx64.efior\EFI\Microsoft\Boot\bootmgfw.efi
gotoEND
endif
gotoSTART_DIAG
:START_DIAG
disk.efi
ifnotexisttmp\nvmepass.flagthen
gotoFailed
endif
echo"*******************************************************"
echo"**"
echo"*PPPPPPPPASSSSSSSSSSSSSSSSSS*"
echo"*PPPPAASSSS*"
echo"*PPPPAAAASSSS*"
echo"*PPPPPPAAAASSSSSSSSSSSS*"
echo"*PPAAAAAAAAASSSS*"
echo"*PPAAAASSSS*"
echo"*PPAAAASSSS*"
echo"*PPAAAASSSSSSSSSSSSSSSS*"
echo"**"
echo"*******************************************************"
gotoEND
:Failed
echo"******************************************************"
echo"**"
echo"*FFFFFFFFFAIIIIIIIILL*"
echo"*FFAAIILL*"
echo"*FFAAAAIILL*"
echo"*FFFFFFFFAAAAIILL*"
echo"*FFAAAAAAAAAIILL*"
echo"*FFAAAAIILL*"
echo"*FFAAAAIILL*"
echo"*FFAAAAIIIIIIIIIIIILLLLLLL*"
echo"**"
echo"******************************************************"
gotoEND
:END
After NVME hard disc module test PASS, close tester in power-down state, pull out NVME cable and hard disk, RAID card be connected with the MINISAS interface on backboard with MINISAS cable, hard-disk interface all plugs common hard disc;
Starting up again, machine still can enter uefishell automatically, script checks whether to there is NVMEPASS tab file, if existed, then calling system boot files, guiding enters Windows or (SuSE) Linux OS carries out common hard disc functional test, and test PASS then monoblock dual purpose hard disk backboard function is normal, otherwise is dysfunction.
Said method solves existing test and is divided into two parts, hard disk is changed in intermediate demand shutdown, need startup twice operating system, expend time in long problem, utilize UEFI environmental testing NVME functions of modules, and can the feature entering operating system be guided, realize dual purpose backboard NVME hard disc module function to test under UEFIShell, common hard disc functions of modules is tested under Windows or (SuSE) Linux OS, test is made only to need to start the operating system once, save factory testing time and human cost, test automation switches, manually participate in without the need to operator, automaticity is high.
By embodiment above, described those skilled in the art can be easy to realize the present invention.But should be appreciated that the present invention is not limited to above-mentioned several embodiments.On the basis of disclosed embodiment, described those skilled in the art can the different technical characteristic of combination in any, thus realizes different technical schemes.
Claims (3)
1. a functional test optimization method for server dual purpose hard disk backboard, is characterized in that, the method step is as follows:
1) machine starts from UEFIshell;
2) UEFI booting script guides and enters test USB flash disk;
3) script checks whether to there is NVMEPASS tab file, does not exist, and starts to test NVME hard disk, tests by writing NVMEPASS tab file; Exist, call operation System guides file enters operating system and carries out the test of common hard disc functions of modules;
4) test of common hard disc functions of modules is by namely monoblock dual purpose hard disk backboard function is normal, is non-defective unit, otherwise is defective products.
2. the functional test optimization method of a kind of server dual purpose hard disk backboard according to claim 1, it is characterized in that, the concrete steps of the method are as follows:
1) check BIOSSetup boot sequence, determine that machine first startup item is bootfrombuild-inshell;
2) be inserted on mainboard PCIeSlot0 by NVME adapter, RAID card is inserted on Slot1, and be connected with the NVME interface on dual purpose hard disk backboard by NVME adapter with NVME cable, NVME hard-disk interface sticks with NVME hard disk;
3) compile script and test procedure, enters the file system depositing test procedure after making machine enter UEFIshell automatically, checks whether at NVMEPASS tab file, if there is no, then runs NVME module test program;
4) NVME module test program captures the NVME hard disk quantity on backboard, and carries out read-write operation to it;
5) on backboard, NVME hard disk quantity is correct, the normal then dual purpose backboard NVME functions of modules of disk read-write function is normal, is non-defective unit, and writes a NVMEPASS tab file in test USB flash disk; Otherwise be defective products, do not write PASS tab file;
6) close tester in power-down state, pull out NVME cable and hard disk, RAID card be connected with the MINISAS interface on backboard with MINISAS cable, hard-disk interface all plugs common hard disc;
7) starting up again, machine enters uefishell, script checks whether to there is NVMEPASS tab file, if existed, then calling system boot files, guiding enters operating system and carries out common hard disc functional test, and test PASS then monoblock dual purpose hard disk backboard function is normal, otherwise is dysfunction.
3. the functional test optimization method of a kind of server dual purpose hard disk backboard according to claim 2, it is characterized in that, in described step 7), operating system is Windows or (SuSE) Linux OS.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510887302.XA CN105354122B (en) | 2015-12-07 | 2015-12-07 | Function test optimization method for dual-purpose hard disk backboard of server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510887302.XA CN105354122B (en) | 2015-12-07 | 2015-12-07 | Function test optimization method for dual-purpose hard disk backboard of server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105354122A true CN105354122A (en) | 2016-02-24 |
CN105354122B CN105354122B (en) | 2017-08-11 |
Family
ID=55330096
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510887302.XA Active CN105354122B (en) | 2015-12-07 | 2015-12-07 | Function test optimization method for dual-purpose hard disk backboard of server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105354122B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653414A (en) * | 2016-04-01 | 2016-06-08 | 浪潮电子信息产业股份有限公司 | Method for realizing automatic switching between DOS and other test platforms |
CN106951268A (en) * | 2017-03-31 | 2017-07-14 | 山东超越数控电子有限公司 | A kind of Shen prestige platform supports the implementation method of NVMe hard disk startups |
CN106970280A (en) * | 2017-03-30 | 2017-07-21 | 东信和平科技股份有限公司 | The method and device of a kind of smart card power-off test |
CN107766240A (en) * | 2017-09-29 | 2018-03-06 | 郑州云海信息技术有限公司 | UEFI Shell internal command automatic running detection methods and system |
CN108760120A (en) * | 2018-04-03 | 2018-11-06 | 郑州云海信息技术有限公司 | A kind of method and device of testing hard disk backboard adaptability to changes |
CN110737558A (en) * | 2019-10-21 | 2020-01-31 | 深圳忆联信息***有限公司 | Method and device for automatically deploying efi shell system to execute test, computer equipment and storage medium |
CN112540889A (en) * | 2020-12-22 | 2021-03-23 | 江苏国科微电子有限公司 | Method, device, equipment and medium for adjusting hard disk starting sequence in user state |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130024595A1 (en) * | 2010-12-28 | 2013-01-24 | Plx Technology, Inc. | Pci express switch with logical device capability |
CN104636089A (en) * | 2015-02-25 | 2015-05-20 | 浪潮集团有限公司 | Method for accelerating performance of servers of domestic central processing units on basis of NVME (nonvolatile memory express) technology |
CN204833236U (en) * | 2015-08-21 | 2015-12-02 | 浪潮电子信息产业股份有限公司 | Support memory system of hybrid storage |
-
2015
- 2015-12-07 CN CN201510887302.XA patent/CN105354122B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130024595A1 (en) * | 2010-12-28 | 2013-01-24 | Plx Technology, Inc. | Pci express switch with logical device capability |
CN104636089A (en) * | 2015-02-25 | 2015-05-20 | 浪潮集团有限公司 | Method for accelerating performance of servers of domestic central processing units on basis of NVME (nonvolatile memory express) technology |
CN204833236U (en) * | 2015-08-21 | 2015-12-02 | 浪潮电子信息产业股份有限公司 | Support memory system of hybrid storage |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653414A (en) * | 2016-04-01 | 2016-06-08 | 浪潮电子信息产业股份有限公司 | Method for realizing automatic switching between DOS and other test platforms |
CN106970280A (en) * | 2017-03-30 | 2017-07-21 | 东信和平科技股份有限公司 | The method and device of a kind of smart card power-off test |
CN106970280B (en) * | 2017-03-30 | 2019-07-19 | 东信和平科技股份有限公司 | A kind of method and device of smart card power failure test |
CN106951268A (en) * | 2017-03-31 | 2017-07-14 | 山东超越数控电子有限公司 | A kind of Shen prestige platform supports the implementation method of NVMe hard disk startups |
CN107766240A (en) * | 2017-09-29 | 2018-03-06 | 郑州云海信息技术有限公司 | UEFI Shell internal command automatic running detection methods and system |
CN108760120A (en) * | 2018-04-03 | 2018-11-06 | 郑州云海信息技术有限公司 | A kind of method and device of testing hard disk backboard adaptability to changes |
CN110737558A (en) * | 2019-10-21 | 2020-01-31 | 深圳忆联信息***有限公司 | Method and device for automatically deploying efi shell system to execute test, computer equipment and storage medium |
CN112540889A (en) * | 2020-12-22 | 2021-03-23 | 江苏国科微电子有限公司 | Method, device, equipment and medium for adjusting hard disk starting sequence in user state |
CN112540889B (en) * | 2020-12-22 | 2023-08-15 | 江苏国科微电子有限公司 | Method, device, equipment and medium for adjusting hard disk starting sequence in user mode |
Also Published As
Publication number | Publication date |
---|---|
CN105354122B (en) | 2017-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105354122A (en) | Function test optimization method for dual-purpose hard disk backboard of server | |
CN105511993A (en) | UEFI (unified extensible firmware interface) -based server NVME (network video management entity) hard disk backplane function test method | |
CN105425201B (en) | metering chip simulation test method for software reliability detection of intelligent electric energy meter | |
CN104375910A (en) | Automatic power-on and power-off test method | |
US9542304B1 (en) | Automated operating system installation | |
CN105718346A (en) | Computer mainboard PCIe slot function test method based on UEFI | |
CN103995760A (en) | Computer fault detection device and detection and maintenance method | |
WO2019134113A1 (en) | Automated test method and system | |
CN105335264A (en) | Computer PCIE adapter card function test method based on UEFI | |
CN102968362A (en) | Method for detecting integrity of PCIE (peripheral component interface express) equipment in system start-up process | |
CN111143150A (en) | Method and system for testing PCBA (printed circuit board assembly), testing equipment and micro-control unit | |
CN103729221A (en) | Method and device for writing BIOS debugging information into hard disk | |
CN112069002A (en) | Server hot plug debugging device and method | |
CN108153635B (en) | System memory edge testing method, system device and computer readable storage medium | |
CN113204456A (en) | Test method, tool, device and equipment for VPP interface of server | |
CN102193851A (en) | Method for testing stability of internal storage under DOS (Disk Operating System) | |
CN101727371A (en) | Method for adding and running memory testing tool in BIOS | |
CN115422091A (en) | Firmware debugging method and device, electronic equipment and storage medium | |
CN102541705A (en) | Testing method for computer and tooling plate | |
CN114064373B (en) | Test system, test method, test device and test equipment for USB platelet | |
CN115824033A (en) | Method, equipment and system for testing surface flatness of integrated circuit | |
CN103969492A (en) | Device and method for detecting processor voltage | |
CN102023916B (en) | Computer system detection method | |
CN105242880A (en) | Method for automatically creating Raid and executing pressure test | |
CN114113977A (en) | RTC circuit automatic detection method and system of circuit board |
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 |