CN110992992B - A hard disk testing method, device and storage medium - Google Patents
A hard disk testing method, device and storage medium Download PDFInfo
- Publication number
- CN110992992B CN110992992B CN201911050922.2A CN201911050922A CN110992992B CN 110992992 B CN110992992 B CN 110992992B CN 201911050922 A CN201911050922 A CN 201911050922A CN 110992992 B CN110992992 B CN 110992992B
- Authority
- CN
- China
- Prior art keywords
- hard disk
- partition
- test
- verification value
- test 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C29/00—Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
- G11C29/56—External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
- G11C29/56008—Error analysis, representation of errors
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B20/00—Signal processing not specific to the method of recording or reproducing; Circuits therefor
- G11B20/10—Digital recording or reproducing
- G11B20/18—Error detection or correction; Testing, e.g. of drop-outs
- G11B20/1816—Testing
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C29/00—Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
- G11C29/56—External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
- G11C29/56016—Apparatus features
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域technical field
本发明涉及测试领域,具体涉及一种硬盘测试方法、设备以及存储介质。The invention relates to the testing field, in particular to a hard disk testing method, equipment and storage medium.
背景技术Background technique
大数据的存储离不开服务器,而服务器中数据最终落在底层硬盘,硬盘的可靠性和稳定性对于数据存储的安全至关重要,如何全面而高效的测试数量多,容量大的存储服务器硬盘可靠性和稳定性是服务器测试的关键点。随着测试点不断增多,如何高效快速的测试各个测试点,缩短测试时间等都是严峻的考验。The storage of big data is inseparable from the server, and the data in the server ultimately falls on the underlying hard disk. The reliability and stability of the hard disk is crucial to the security of data storage. How to comprehensively and efficiently test the hard disk of a storage server with a large number and large capacity Reliability and stability are key points in server testing. With the increasing number of test points, how to efficiently and quickly test each test point and shorten the test time is a severe test.
因此,急需一种硬盘测试方法。Therefore, there is an urgent need for a hard disk testing method.
发明内容Contents of the invention
有鉴于此,为了克服上述问题的至少一个方面,本发明实施例的提出一种硬盘测试方法,包括步骤:In view of this, in order to overcome at least one aspect of the above-mentioned problems, an embodiment of the present invention proposes a hard disk testing method, including steps:
在硬盘中创建第一分区和第二分区;Create the first partition and the second partition in the hard disk;
在所述第一分区中写入测试文件,在所述第二分区中进行FIO测试;Write a test file in the first partition, and perform a FIO test in the second partition;
获取所述测试文件的初始验证值;Obtain an initial verification value of the test file;
对所述硬盘的状态信息以及与系统的交互信息检查后记录到执行日志;After checking the state information of the hard disk and the interaction information with the system, record it in the execution log;
对所述硬盘进行预设次数的重启处理,并在每次重启后重新获取所述测试文件的验证值以及重新在所述执行日志中记录对所述硬盘的状态信息以及与系统的交互信息的检查结果;Restarting the hard disk for a preset number of times, reacquiring the verification value of the test file after each restart and re-recording the state information of the hard disk and the interaction information with the system in the execution log test result;
根据每一次获取的所述测试文件的验证值与初始验证值的比对结果以及检测结果确定所述硬盘的性能。The performance of the hard disk is determined according to the comparison result between the verification value of the test file acquired each time and the initial verification value and the detection result.
在一些实施例中,在所述第一分区中写入测试文件,进一步包括:In some embodiments, writing the test file in the first partition further includes:
对所述第一分区格式化为文件系统;Formatting the first partition as a file system;
将所述文件系统挂载到预设目录中;Mount the file system to a preset directory;
向挂载到所述预设目录下的所述第一分区中写入预设大小的测试文件。Writing a test file with a preset size into the first partition mounted under the preset directory.
在一些实施例中,在所述第二分区中进行FIO测试,进一步包括:In some embodiments, performing the FIO test in the second partition further includes:
利用FIO工具向所述第二分区下发预设大小数据库的随机混合读写IO。Use the FIO tool to send random mixed read and write IOs of the database with a preset size to the second partition.
在一些实施例中,对所述硬盘的状态信息以及与系统的交互信息检查后记录到执行日志,进一步包括:In some embodiments, the status information of the hard disk and the interaction information with the system are checked and recorded in the execution log, further comprising:
对所述硬盘的smart信息以及系统message信息、BMC log信息检查后记录到执行日志。Check the smart information of the hard disk, system message information, and BMC log information and record them in the execution log.
在一些实施例中,根据每一次获取的所述测试文件的验证值与初始验证值的比对结果以及检测结果确定所述硬盘的性能,进一步包括:In some embodiments, determining the performance of the hard disk according to the comparison result between the verification value of the test file obtained each time and the initial verification value and the detection result, further includes:
根据每一次获取的所述测试文件的验证值与初始验证值的相同率以及所述执行日志中的检测结果的错误率确定所述硬盘的性能。The performance of the hard disk is determined according to the identical rate between the verification value of the test file obtained each time and the initial verification value and the error rate of the detection results in the execution log.
基于同一发明构思,根据本发明的另一个方面,本发明的实施例还提供了一种计算机设备,包括:Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention also provides a computer device, including:
至少一个处理器;以及at least one processor; and
存储器,所述存储器存储有可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时执行以下步骤:A memory, the memory stores a computer program that can run on the processor, wherein the processor performs the following steps when executing the program:
在硬盘中创建第一分区和第二分区;Create the first partition and the second partition in the hard disk;
在所述第一分区中写入测试文件,在所述第二分区中进行FIO测试;Write a test file in the first partition, and perform a FIO test in the second partition;
获取所述测试文件的初始验证值;Obtain an initial verification value of the test file;
对所述硬盘的状态信息以及与系统的交互信息检查后记录到执行日志;After checking the state information of the hard disk and the interaction information with the system, record it in the execution log;
对所述硬盘进行预设次数的重启处理,并在每次重启后重新获取所述测试文件的验证值以及重新在所述执行日志中记录对所述硬盘的状态信息以及与系统的交互信息的检查结果;Restarting the hard disk for a preset number of times, reacquiring the verification value of the test file after each restart and re-recording the state information of the hard disk and the interaction information with the system in the execution log test result;
根据每一次获取的所述测试文件的验证值与初始验证值的比对结果以及检测结果确定所述硬盘的性能。The performance of the hard disk is determined according to the comparison result between the verification value of the test file acquired each time and the initial verification value and the detection result.
在一些实施例中,在所述第一分区中写入测试文件,进一步包括:In some embodiments, writing the test file in the first partition further includes:
对所述第一分区格式化为文件系统;Formatting the first partition as a file system;
将所述文件系统挂载到预设目录中;Mount the file system to a preset directory;
向挂载到所述预设目录下的所述第一分区中写入预设大小的测试文件。Writing a test file with a preset size into the first partition mounted under the preset directory.
在一些实施例中,在所述第二分区中进行FIO测试,进一步包括:In some embodiments, performing the FIO test in the second partition further includes:
利用FIO工具向所述第二分区下发预设大小数据库的随机混合读写IO。Use the FIO tool to send random mixed read and write IOs of the database with a preset size to the second partition.
在一些实施例中,根据每一次获取的所述测试文件的验证值与初始验证值的比对结果以及检测结果确定所述硬盘的性能,进一步包括:In some embodiments, determining the performance of the hard disk according to the comparison result between the verification value of the test file obtained each time and the initial verification value and the detection result, further includes:
根据每一次获取的所述测试文件的验证值与初始验证值的相同率以及所述执行日志中的检测结果的错误率确定所述硬盘的性能。The performance of the hard disk is determined according to the identical rate between the verification value of the test file obtained each time and the initial verification value and the error rate of the detection results in the execution log.
基于同一发明构思,根据本发明的另一个方面,本发明的实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时执行如上所述的任一种硬盘测试方法的步骤。Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor Execute the steps of any one of the hard disk testing methods described above.
本发明具有以下有益技术效果之一:本发明公开的方法通过在硬盘中创建2个分区以及不断的上下电处理,能够全面高效地测试硬盘的可靠性。The present invention has one of the following beneficial technical effects: the method disclosed by the present invention can comprehensively and efficiently test the reliability of the hard disk by creating two partitions in the hard disk and continuous power-on and power-on processing.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的实施例。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention, and those skilled in the art can obtain other embodiments according to these drawings without any creative effort.
图1为本发明的实施例提供的一种硬盘测试方法的流程示意图;Fig. 1 is a schematic flow chart of a hard disk testing method provided by an embodiment of the present invention;
图2为本发明的实施例提供的计算机设备的结构示意图;FIG. 2 is a schematic structural diagram of a computer device provided by an embodiment of the present invention;
图3为本发明的实施例提供的计算机可读存储介质的结构示意图。FIG. 3 is a schematic structural diagram of a computer-readable storage medium provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明实施例进一步详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.
需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are to distinguish two entities with the same name but different parameters or parameters that are not the same, see "first" and "second" It is only for the convenience of expression, and should not be construed as a limitation on the embodiments of the present invention, which will not be described one by one in the subsequent embodiments.
根据本发明的一个方面,本发明的实施例提出一种硬盘测试方法,如图1所示,其可以包括步骤:S1,在硬盘中创建第一分区和第二分区;S2,在所述第一分区中写入测试文件,在所述第二分区中进行FIO测试;S3,获取所述测试文件的初始验证值;S4,对所述硬盘的状态信息以及与系统的交互信息检查后记录到执行日志;S5,对所述硬盘进行预设次数的重启处理,并在每次重启后重新获取所述测试文件的验证值以及重新在所述执行日志中记录对所述硬盘的状态信息以及与系统的交互信息的检查结果;S6,根据每一次获取的所述测试文件的验证值与初始验证值的比对结果以及检测结果确定所述硬盘的性能。According to one aspect of the present invention, the embodiment of the present invention proposes a kind of hard disk testing method, as shown in Figure 1, it may comprise the steps: S1, create the first partition and the second partition in the hard disk; S2, in the first partition Write the test file in a partition, and carry out the FIO test in the second partition; S3, obtain the initial verification value of the test file; S4, record the state information of the hard disk and the interactive information with the system after checking Execution log; S5, restarting the hard disk for a preset number of times, and re-acquiring the verification value of the test file after each restart and re-recording the status information of the hard disk in the execution log and related information with the hard disk The checking result of the interactive information of the system; S6. Determine the performance of the hard disk according to the comparison result between the verification value of the test file acquired each time and the initial verification value and the detection result.
本发明公开的方法通过在硬盘中创建2个分区以及不断的上下电处理,能够全面高效地测试硬盘的可靠性。The method disclosed by the invention can comprehensively and efficiently test the reliability of the hard disk by creating two partitions in the hard disk and continuously powering on and off.
在一些实施例中,在所述第一分区中写入测试文件,进一步包括:In some embodiments, writing the test file in the first partition further includes:
对所述第一分区格式化为文件系统;Formatting the first partition as a file system;
将所述文件系统挂载到预设目录中;Mount the file system to a preset directory;
向挂载到所述预设目录下的所述第一分区中写入预设大小的测试文件。Writing a test file with a preset size into the first partition mounted under the preset directory.
具体的,可以利用分区模块分别为将硬盘分为容量相等的两个分区,通过文件系统模块将每块盘的第一分区格式化为ext4文件系统,挂载模块将ext4挂载到指定目录中,文件写入模块在挂载目录向硬盘写入100G大测试文件。Specifically, you can use the partition module to divide the hard disk into two partitions with equal capacity, format the first partition of each disk as an ext4 file system through the file system module, and mount ext4 to the specified directory with the mount module , the file writing module writes a 100G large test file to the hard disk in the mount directory.
在一些实施例中,在所述第二分区中进行FIO测试,进一步包括:In some embodiments, performing the FIO test in the second partition further includes:
利用FIO工具向所述第二分区下发预设大小数据库的随机混合读写IO。Use the FIO tool to send random mixed read and write IOs of the database with a preset size to the second partition.
具体的,可以利用读写模块中的FIO工具,对分区模块已完成创建的第二个分区,下发小数据块的随机混合读写IO,例如相关参数可以是BS=4K;QD=128,job=1,libaio,rwmixread=50。Specifically, the FIO tool in the read-write module can be used to issue random mixed read-write IO of small data blocks to the second partition created by the partition module. For example, the relevant parameters can be BS=4K; QD=128, job=1,libaio,rwmixread=50.
需要说明的是,当硬盘下电时,FIO测试被中断,当硬盘重新上电后,继续进行FIO测试。It should be noted that when the hard disk is powered off, the FIO test is interrupted, and when the hard disk is powered on again, the FIO test continues.
在一些实施例中,在步骤S3中,获取的所述测试文件的初始验证值可以是md5值。In some embodiments, in step S3, the acquired initial verification value of the test file may be an md5 value.
具体的,可以通过文件校验模块预先校验出每个盘中的测试文件的md5,并记入各自的sd*-md5文件中。Specifically, the md5 of the test file in each disc can be pre-verified by the file verification module, and recorded in the respective sd*-md5 files.
在一些实施例中,对所述硬盘的状态信息以及与系统的交互信息检查后记录到执行日志,进一步包括:In some embodiments, the status information of the hard disk and the interaction information with the system are checked and recorded in the execution log, further comprising:
对所述硬盘的smart信息以及系统message信息、BMC log信息检查后记录到执行日志。Check the smart information of the hard disk, system message information, and BMC log information and record them in the execution log.
具体的,可以利用硬盘状态检查模块预先检测所有待测硬盘的smart信息,并将检测结果记录与执行日志中,系统环境日志监测模块会检测当前的系统message、bmc log,同样将检测结果记录到执行日志中。Specifically, the hard disk status inspection module can be used to pre-detect the smart information of all hard disks to be tested, and record the detection results in the execution log. The system environment log monitoring module will detect the current system message and bmc log, and also record the detection results in in the execution log.
在一些实施例中,在步骤S5中,可以通过ipmitool powercycle,scrutiny工具对所有待测硬盘phy物理接口进行reset,使硬盘链路重新上下电,重新被系统识别。In some embodiments, in step S5, the phy physical interfaces of all the hard disks to be tested can be reset through ipmitool powercycle and scrutiny tools, so that the hard disk links are powered on and off again, and recognized by the system again.
具体的,在每一次重新识别后检查识别数量是否不变,硬盘状态检查模块和系统环境日志监测模块会自动启动检查各自检查项并录入执行日志。也即硬盘状态检查模块检查硬盘的smart信息,系统环境日志监测模块会检测当前的系统message、bmc log。同样将检测结果记录到执行日志中,若出现错误,则直接在执行日志中记录error、fail。Specifically, after each re-identification, it is checked whether the number of identifications remains unchanged, and the hard disk status inspection module and the system environment log monitoring module will automatically start to check the respective inspection items and enter the execution log. That is, the hard disk status check module checks the smart information of the hard disk, and the system environment log monitoring module checks the current system message and bmc log. Also record the detection results in the execution log. If an error occurs, directly record error and fail in the execution log.
日志检测完毕后,再次调用预置流程中的文件校验模块,校验第一分区中预存的大文件的md5是否与主流程之前的记录相等,同样也将校验结果记录到执行日志中。After the log detection is completed, call the file verification module in the preset process again to verify whether the md5 of the large file stored in the first partition is equal to the record before the main process, and also record the verification result in the execution log.
需要说明的是,硬盘的上下电次数可以根据实际情况设定。It should be noted that the power-on and power-off times of the hard disk can be set according to actual conditions.
在一些实施例中,根据每一次获取的所述测试文件的验证值与初始验证值的比对结果以及检测结果确定所述硬盘的性能,进一步包括:In some embodiments, determining the performance of the hard disk according to the comparison result between the verification value of the test file obtained each time and the initial verification value and the detection result, further includes:
根据每一次获取的所述测试文件的验证值与初始验证值的相同率以及所述执行日志中的检测结果的错误率确定所述硬盘的性能。The performance of the hard disk is determined according to the identical rate between the verification value of the test file obtained each time and the initial verification value and the error rate of the detection results in the execution log.
具体的,通过检测每次测试后的所有日志记录中是否有新增error、fail,md5检验是否全为pass,判断该硬盘的可靠性。相同率越高,错误率越少说明硬盘的可靠性越高。Specifically, the reliability of the hard disk is judged by checking whether there are new errors and fail in all log records after each test, and whether the md5 test is all pass. The higher the same rate and the lower the error rate, the higher the reliability of the hard disk.
本发明提出的硬盘测试方法可以通过预置在硬盘的各个模块作为测试点的覆盖,通过硬盘链路reset测试硬盘可靠性,并在每次硬盘reset过程中通过各个检测模块输出检测结果,最终生成测试报告,记录每个测试项的执行结果,能够高效快速的覆盖功能测试点。The hard disk test method proposed by the present invention can use each module preset in the hard disk as the coverage of the test point, test the reliability of the hard disk through the hard disk link reset, and output the detection results through each detection module during each hard disk reset process, and finally generate The test report records the execution results of each test item, which can efficiently and quickly cover functional test points.
基于同一发明构思,根据本发明的另一个方面,如图2所示,本发明的实施例还提供了一种计算机设备501,包括:Based on the same inventive concept, according to another aspect of the present invention, as shown in FIG. 2 , an embodiment of the present invention also provides a
至少一个处理器520;以及at least one
存储器510,存储器510存储有可在处理器上运行的计算机程序511,处理器520执行程序时执行如上的任一种硬盘测试方法的步骤。A
基于同一发明构思,根据本发明的另一个方面,如图3所示,本发明的实施例还提供了一种计算机可读存储介质601,计算机可读存储介质601存储有计算机程序指令610,计算机程序指令610被处理器执行时执行如上的任一种硬盘测试方法的步骤。Based on the same inventive concept, according to another aspect of the present invention, as shown in FIG. When the
最后需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关硬件来完成,的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,的存储介质可为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。上述计算机程序的实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。Finally, it should be noted that those skilled in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. When the program is executed, it may include the procedures of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), and the like. The foregoing computer program embodiments can achieve the same or similar effects as any of the foregoing method embodiments corresponding thereto.
此外,典型地,本发明实施例公开的装置、设备等可为各种电子终端设备,例如手机、个人数字助理(PDA)、平板电脑(PAD)、智能电视等,也可以是大型终端设备,如服务器等,因此本发明实施例公开的保护范围不应限定为某种特定类型的装置、设备。本发明实施例公开的客户端可以是以电子硬件、计算机软件或两者的组合形式应用于上述任意一种电子终端设备中。In addition, typically, the devices and devices disclosed in the embodiments of the present invention can be various electronic terminal devices, such as mobile phones, personal digital assistants (PDAs), tablet computers (PADs), smart TVs, etc., and can also be large-scale terminal devices, For example, a server, etc. Therefore, the scope of protection disclosed in the embodiments of the present invention should not be limited to a specific type of device or equipment. The client disclosed in the embodiments of the present invention may be applied to any of the above-mentioned electronic terminal devices in the form of electronic hardware, computer software, or a combination of the two.
此外,根据本发明实施例公开的方法还可以被实现为由CPU执行的计算机程序,该计算机程序可以存储在计算机可读存储介质中。在该计算机程序被CPU执行时,执行本发明实施例公开的方法中限定的上述功能。In addition, the method disclosed according to the embodiment of the present invention can also be implemented as a computer program executed by a CPU, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the CPU, the above functions defined in the methods disclosed in the embodiments of the present invention are executed.
此外,上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实现上述步骤或单元功能的计算机程序的计算机可读存储介质实现。In addition, the above-mentioned method steps and system units can also be realized by using a controller and a computer-readable storage medium for storing a computer program for enabling the controller to realize the functions of the above-mentioned steps or units.
此外,应该明白的是,本文的计算机可读存储介质(例如,存储器)可以是易失性存储器或非易失性存储器,或者可以包括易失性存储器和非易失性存储器两者。作为例子而非限制性的,非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)或快闪存储器。易失性存储器可以包括随机存取存储器(RAM),该RAM可以充当外部高速缓存存储器。作为例子而非限制性的,RAM可以以多种形式获得,比如同步RAM(DRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据速率SDRAM(DDRSDRAM)、增强SDRAM(ESDRAM)、同步链路DRAM(SLDRAM)、以及直接Rambus RAM(DRRAM)。所公开的方面的存储设备意在包括但不限于这些和其它合适类型的存储器。In addition, it should be appreciated that a computer-readable storage medium (eg, memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile memory and nonvolatile memory. By way of example and not limitation, nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory memory. Volatile memory can include random access memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in various forms such as Synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). Storage devices of the disclosed aspects are intended to include, but are not limited to, these and other suitable types of memory.
本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。为了清楚地说明硬件和软件的这种可互换性,已经就各种示意性组件、方块、模块、电路和步骤的功能对其进行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加给整个系统的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现的功能,但是这种实现决定不应被解释为导致脱离本发明实施例公开的范围。Those of skill would also appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described generally in terms of their functionality. Whether such functionality is implemented as software or as hardware depends upon the particular application and design constraints imposed on the overall system. Those skilled in the art may implement the functions in various ways for each specific application, but such implementation decisions should not be interpreted as causing a departure from the scope disclosed in the embodiments of the present invention.
结合这里的公开所描述的各种示例性逻辑块、模块和电路可以利用被设计成用于执行这里功能的下列部件来实现或执行:通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或其它可编程逻辑器件、分立门或晶体管逻辑、分立的硬件组件或者这些部件的任何组合。通用处理器可以是微处理器,但是可替换地,处理器可以是任何传统处理器、控制器、微控制器或状态机。处理器也可以被实现为计算设备的组合,例如,DSP和微处理器的组合、多个微处理器、一个或多个微处理器结合DSP和/或任何其它这种配置。The various exemplary logical blocks, modules, and circuits described in connection with the disclosure herein can be implemented or performed using the following components designed to perform the functions herein: general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, eg, a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
结合这里的公开所描述的方法或算法的步骤可以直接包含在硬件中、由处理器执行的软件模块中或这两者的组合中。软件模块可以驻留在RAM存储器、快闪存储器、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动盘、CD-ROM、或本领域已知的任何其它形式的存储介质中。示例性的存储介质被耦合到处理器,使得处理器能够从该存储介质中读取信息或向该存储介质写入信息。在一个替换方案中,存储介质可以与处理器集成在一起。处理器和存储介质可以驻留在ASIC中。ASIC可以驻留在用户终端中。在一个替换方案中,处理器和存储介质可以作为分立组件驻留在用户终端中。The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of both. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In an alternative, the storage medium may be integrated with the processor. The processor and storage medium can reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and storage medium may reside as discrete components in the user terminal.
在一个或多个示例性设计中,功能可以在硬件、软件、固件或其任意组合中实现。如果在软件中实现,则可以将功能作为一个或多个指令或代码存储在计算机可读介质上或通过计算机可读介质来传送。计算机可读介质包括计算机存储介质和通信介质,该通信介质包括有助于将计算机程序从一个位置传送到另一个位置的任何介质。存储介质可以是能够被通用或专用计算机访问的任何可用介质。作为例子而非限制性的,该计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其它光盘存储设备、磁盘存储设备或其它磁性存储设备,或者是可以用于携带或存储形式为指令或数据结构的所需程序代码并且能够被通用或专用计算机或者通用或专用处理器访问的任何其它介质。此外,任何连接都可以适当地称为计算机可读介质。例如,如果使用同轴线缆、光纤线缆、双绞线、数字用户线路(DSL)或诸如红外线、无线电和微波的无线技术来从网站、服务器或其它远程源发送软件,则上述同轴线缆、光纤线缆、双绞线、DSL或诸如红外线、无线电和微波的无线技术均包括在介质的定义。如这里所使用的,磁盘和光盘包括压缩盘(CD)、激光盘、光盘、数字多功能盘(DVD)、软盘、蓝光盘,其中磁盘通常磁性地再现数据,而光盘利用激光光学地再现数据。上述内容的组合也应当包括在计算机可读介质的范围内。In one or more exemplary designs, functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. Storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example and not limitation, the computer readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage device, magnetic disk storage device or other magnetic storage device, or may be used to carry or store instructions in Any other medium that can be accessed by a general purpose or special purpose computer or a general purpose or special purpose processor, and the required program code or data structure. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable Cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of media. Disk and disc, as used herein, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers . Combinations of the above should also be included within the scope of computer-readable media.
以上是本发明公开的示例性实施例,但是应当注意,在不背离权利要求限定的本发明实施例公开的范围的前提下,可以进行多种改变和修改。根据这里描述的公开实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本发明实施例公开的元素可以以个体形式描述或要求,但除非明确限制为单数,也可以理解为多个。The above are the exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications can be made without departing from the scope of the disclosed embodiments of the present invention defined in the claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in an individual form, they may also be understood as a plurality unless explicitly limited to a singular number.
应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。It should be understood that as used herein, the singular form "a" and "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
上述本发明实施例公开实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments disclosed in the above-mentioned embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above-mentioned embodiments can be completed by hardware, or can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. The above-mentioned The storage medium can be read-only memory, magnetic disk or optical disk and so on.
所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本发明实施例公开的范围(包括权利要求)被限于这些例子;在本发明实施例的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,并存在如上的本发明实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明实施例的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。Those of ordinary skill in the art should understand that: the discussion of any of the above embodiments is exemplary only, and is not intended to imply that the scope (including claims) disclosed by the embodiments of the present invention is limited to these examples; under the idea of the embodiments of the present invention , the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in details for the sake of brevity. Therefore, within the spirit and principle of the embodiments of the present invention, any omissions, modifications, equivalent replacements, improvements, etc., shall be included in the protection scope of the embodiments of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911050922.2A CN110992992B (en) | 2019-10-31 | 2019-10-31 | A hard disk testing method, device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911050922.2A CN110992992B (en) | 2019-10-31 | 2019-10-31 | A hard disk testing method, device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110992992A CN110992992A (en) | 2020-04-10 |
| CN110992992B true CN110992992B (en) | 2022-12-02 |
Family
ID=70082796
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911050922.2A Active CN110992992B (en) | 2019-10-31 | 2019-10-31 | A hard disk testing method, device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110992992B (en) |
Families Citing this family (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111722880B (en) * | 2020-05-11 | 2024-02-09 | 深圳市共进电子股份有限公司 | Equipment production method and device, terminal equipment and medium |
| CN112463495B (en) * | 2020-12-07 | 2022-07-19 | 苏州浪潮智能科技有限公司 | Open channel ssd and driver reliability testing method and device thereof |
| CN113076225B (en) * | 2021-03-30 | 2023-03-24 | 山东英信计算机技术有限公司 | External storage medium detection method, device and equipment and storage medium |
| CN113674795B (en) * | 2021-08-27 | 2024-05-28 | 长江存储科技有限责任公司 | Testing system and testing method for solid state disk |
| CN114692229B (en) * | 2022-03-30 | 2023-11-10 | 中国电信股份有限公司 | Hard disk unauthorized access detection method, device, computer equipment and storage medium |
| CN114880177A (en) * | 2022-05-18 | 2022-08-09 | 东莞忆联信息系统有限公司 | Method and device for testing complete machine abnormal power failure of solid state disk and computer equipment |
| CN115114053B (en) * | 2022-06-29 | 2024-05-14 | 苏州浪潮智能科技有限公司 | Hard disk reliability test method, system, storage medium and equipment |
| CN115662489B (en) * | 2022-10-28 | 2025-06-10 | 苏州浪潮智能科技有限公司 | Hard disk testing method, device, electronic equipment and storage medium |
| CN116665758B (en) * | 2023-05-06 | 2024-05-07 | 深圳市晶存科技有限公司 | Hard disk data testing method, device, system and medium |
| CN116340076B (en) * | 2023-05-30 | 2023-10-17 | 深圳市晶存科技有限公司 | Hard disk performance test method, device and medium |
| CN116844627B (en) * | 2023-06-13 | 2024-04-02 | 深圳市晶存科技有限公司 | Method, system and medium for power failure test of hard disk |
| CN116755938B (en) * | 2023-08-14 | 2023-11-03 | 中科三清科技有限公司 | Computing restarting method and device, storage medium and electronic equipment |
| CN118093448B (en) * | 2024-04-29 | 2024-08-09 | 浪潮云信息技术股份公司 | Full test method, equipment and medium based on core function of information creation operating system |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6782494B2 (en) * | 2000-04-08 | 2004-08-24 | Samsung Electronics, Co., Ltd | Method of verifying defect management area information of disc and test apparatus for performing the same |
| CN107704347A (en) * | 2017-09-19 | 2018-02-16 | 郑州云海信息技术有限公司 | A kind of automatic method for carrying out hard disc data uniformity test |
| CN108280005A (en) * | 2018-01-22 | 2018-07-13 | 郑州云海信息技术有限公司 | A kind of method and system of test NVDIMM memory power-off protections |
| CN109445861B (en) * | 2018-10-18 | 2022-04-01 | 深圳市网心科技有限公司 | System starting method, device, computer device and storage medium |
| CN109766230A (en) * | 2019-01-09 | 2019-05-17 | 深圳忆联信息系统有限公司 | Single-deck SSD powered-off fault test method, device and computer equipment |
-
2019
- 2019-10-31 CN CN201911050922.2A patent/CN110992992B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN110992992A (en) | 2020-04-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110992992B (en) | A hard disk testing method, device and storage medium | |
| CN106649092A (en) | Test script generation method, web page testing method, device and system | |
| CN101930372A (en) | Program updating system and method | |
| CN108923997B (en) | A python-based cloud service node automatic testing method and device | |
| CN111257788A (en) | A dynamic test method, system, device and medium for power supply | |
| CN111309553B (en) | A method, system, device and medium for monitoring and storing Jbod | |
| WO2023040198A1 (en) | Independent component upgrade method and system, and device and medium | |
| CN106021048A (en) | Out-of-order verification method and device of disk pack | |
| CN111857745A (en) | A multi-disk burning method, system, device and medium | |
| CN109697158B (en) | Log analysis method and device based on fault | |
| CN109815141A (en) | A test method and device | |
| CN110413433A (en) | A recovery method, device and storage medium after Maria DB cluster failure | |
| CN107729541A (en) | A kind of data processing method, device and computer-readable recording medium | |
| CN117827554A (en) | Test method, test device, computer equipment and storage medium | |
| CN111274140A (en) | Device, method and server for automatic case execution site recovery | |
| US20220188221A1 (en) | Regression testing method and regression testing apparatus | |
| CN114546749A (en) | Chip random test case regression method, device, equipment and readable medium | |
| CN111427777B (en) | SOL test method, system, equipment and medium | |
| CN112486785B (en) | Method, system, terminal and storage medium for positioning downtime phase of server | |
| CN112433738B (en) | A firmware update testing method, system, device and medium | |
| CN111290902B (en) | Switch port pressure testing method, device, equipment and medium | |
| CN108959006A (en) | A kind of hardware detection method and its tool | |
| CN111858136A (en) | Solid-state drive abnormal data detection method, system, electronic device and storage medium | |
| CN111367710B (en) | eMMC problem reduction method and device | |
| CN110727534A (en) | A file system repair method, device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address |
Address after: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province Patentee after: Suzhou Yuannao Intelligent Technology Co.,Ltd. Country or region after: China Address before: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province Patentee before: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd. Country or region before: China |