CN105354122A - Function test optimization method of dual-use hard disk backplane of server - Google Patents

Function test optimization method of dual-use hard disk backplane of server Download PDF

Info

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
optimization method
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
Application number
CN201510887302.XA
Other languages
Chinese (zh)
Other versions
CN105354122B (en
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 CN201510887302.XA priority Critical patent/CN105354122B/en
Publication of CN105354122A publication Critical patent/CN105354122A/en
Application granted granted Critical
Publication of CN105354122B publication Critical patent/CN105354122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a function test optimization method of a dual-use hard disk backplane of a server. The function test optimization method comprises the following steps: 1) a machine is started from a UEFI (Unified Extensible Firmware Interface) shell; 2) the UEFI starts a script and guides the script into a test USB (Universal Serial Bus) flash disk; 3) the script is subjected to examination that whether an NVME (Non-volatile Memory Express) PASS marked file exists in the script; if not, an NVME hard disk starts to be tested, and the NVME PASS marked file is written if the test passes; if yes, an operation system is called to guide the file into the operating system for the test of the module function of a common hard disk; 4) if the test of the module function of the common hard disk passes, the function of the whole dual-use hard disk backplane is normal, the dual-use hard disk backplane is a good product, otherwise, the dual-use hard disk backplane is a defective product. Compared with the prior art, the function test optimization method solves the problem of long consumed time as the hard disk needs to be replaced in a shutdown state and the operating system needs to be started twice due to two parts of the existing test, thereby saving the testing time and the labor cost; moreover, the function test optimization method is high in degree of automation.

Description

A kind of functional test optimization method of server dual purpose hard disk backboard
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.
CN201510887302.XA 2015-12-07 2015-12-07 A kind of functional test optimization method of server dual purpose hard disk backboard Active CN105354122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510887302.XA CN105354122B (en) 2015-12-07 2015-12-07 A kind of functional test optimization method of server dual purpose hard disk backboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510887302.XA CN105354122B (en) 2015-12-07 2015-12-07 A kind of functional test optimization method of server dual purpose hard disk backboard

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 A kind of functional test optimization method of server dual purpose hard disk backboard

Country Status (1)

Country Link
CN (1) CN105354122B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653414A (en) * 2016-04-01 2016-06-08 浪潮电子信息产业股份有限公司 Method for achieving 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653414A (en) * 2016-04-01 2016-06-08 浪潮电子信息产业股份有限公司 Method for achieving 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 of dual-use hard disk backplane of server
CN105511993B (en) A kind of server NVME hard disk backboard function test method based on UEFI
CN104375910A (en) Automated startup and shutdown testing method
US9542304B1 (en) Automated operating system installation
CN103995760A (en) Computer fault detection device and detection and maintenance method
CN105718346A (en) Computer mainboard PCIe slot function test method based on UEFI
WO2019134113A1 (en) Automated test method and system
CN105302687A (en) Hard disk sequence detection method based on linux
CN110750396A (en) Server operating system compatibility testing method and device and storage medium
CN112069002B (en) Server hot plug debugging device and method
CN105335264A (en) Computer PCIE (Peripheral Component Interconnect Express) adapter card function testing method based on UEFI (Unified Extensible Firmware Interface)
CN102567171A (en) Method for testing blade server mainboard
CN104850421A (en) Computer system and detection method of universal sequence bus device thereof
CN102541711A (en) Method for testing X86 architecture server mainboards
CN102708909A (en) Hard disc backplane
CN112034330A (en) Automatic QC method and device for SOC chip
TWI761653B (en) Device and method for testing computer system
CN113204456A (en) Test method, tool, device and equipment for VPP interface of server
CN108153635B (en) System memory edge testing method, system device and computer readable storage medium
CN115422091B (en) Firmware debugging method and device, electronic equipment and storage medium
CN101727371A (en) Method for adding and running memory testing tool in BIOS
CN102541705A (en) Testing method for computer and tooling plate
CN103969492A (en) Device and method for detecting processor voltage
CN113567834A (en) Small card circuit path testing method and device, computer equipment and storage medium
CN105242880A (en) Method for automatically creating Raid and executing pressure testing

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