CN109271293A - A kind of read method of hard disc data, device and relevant device - Google Patents

A kind of read method of hard disc data, device and relevant device Download PDF

Info

Publication number
CN109271293A
CN109271293A CN201811081915.4A CN201811081915A CN109271293A CN 109271293 A CN109271293 A CN 109271293A CN 201811081915 A CN201811081915 A CN 201811081915A CN 109271293 A CN109271293 A CN 109271293A
Authority
CN
China
Prior art keywords
voltage
data
read
hard disk
hard disc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811081915.4A
Other languages
Chinese (zh)
Inventor
邵文豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201811081915.4A priority Critical patent/CN109271293A/en
Publication of CN109271293A publication Critical patent/CN109271293A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3034Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine

Abstract

This application discloses a kind of read methods of hard disc data, including hard disk firmware to read hard disc data according to basic voltage, obtains normal data;The hard disc data is read according to each voltage in predetermined voltage range, obtains the corresponding reading data of each voltage;Calculate each difference read between data and the normal data;Minimal difference is determined in each difference, and obtains the corresponding minimal error voltage of the minimal difference;The minimal error voltage is saved, to read the hard disc data according to the minimal error voltage when controller receives read requests;The read method can effectively save the time, reading of the realization of greater efficiency to data in solid state hard disk.Disclosed herein as well is a kind of reading device of hard disc data, system, hard disk and computer readable storage mediums, all have above-mentioned beneficial effect.

Description

A kind of read method of hard disc data, device and relevant device
Technical field
This application involves technical field of data storage, in particular to a kind of read method of hard disc data further relates to one kind Reading device, system, a kind of hard disk and the computer readable storage medium of hard disc data.
Background technique
With the continuous development of information technology, data are gradually taken seriously as a kind of precious resources, and people are working Various activities in life can all generate data, and many useful informations can be obtained by analysis processing again by collecting these data, Real existing resource to assets conversion, to be catalyzed the high speed development of big data, high-performance calculation.In big data era, sea The storage for measuring data is located at increasingly consequence, while the calculating units operating rate such as CPU is higher and higher, data Storage becomes the bottleneck of system with reading rate.Currently, with the solid state hard disks prices such as NAND (computer flash memory device) by Gradually decline, usage quantity is also gradually increasing.
However, different from conventional hard, the use of solid state hard disk has the service life, as solid state hard disk PE is operated The increase of (Program/Erase, write/erase operation) number, when reaching certain erasable quantity, when carrying out reading data to it very The case where being easy to appear read error.Currently, widely used NAND type is 3D TLC, for NAND, with PE times The ability of several increases, NAND cell storing data will die down, at this point, if grasping to the NAND reading for carrying out user data There is mistake in work, then needs to attempt to carry out voltage deflection, then be read, data correction can be returned.However, due to Voltage is deflected, corresponding value can not directly determine, and can only be entangled by being constantly trying to read with obtaining maximum The voltage tilt value of wrong ability, further obtains corresponding user data, therefore, is realized by this method to number in solid state hard disk According to reading need constantly to carry out it is stressed, greatly cause the time waste, reduce data reading performance using redundancy;Meanwhile it reading Increasing for number is taken also can seriously to reduce solid state hard disk in the performance of later stage of life.
Therefore, how the time is effectively saved, the realization of greater efficiency is this field skill to the reading of data in solid state hard disk Art personnel's urgent problem to be solved.
Summary of the invention
The purpose of the application is to provide a kind of read method of hard disc data, which can effectively save the time, compared with Reading of the efficient realization to data in solid state hard disk;The another object of the application is to provide a kind of reading dress of hard disc data It sets, system, hard disk and computer readable storage medium, all has above-mentioned beneficial effect.
In order to solve the above technical problems, this application provides a kind of read method of hard disc data, the read method packet It includes:
Hard disk firmware reads hard disc data according to basic voltage, obtains normal data;
The hard disc data is read according to each voltage in predetermined voltage range, obtains the corresponding reading of each voltage Access evidence;
Calculate each difference read between data and the normal data;
Minimal difference is determined in each difference, and obtains the corresponding minimal error voltage of the minimal difference;
The minimal error voltage is saved, so as to when controller receives read requests, according to the minimal error electricity Pressure reads the hard disc data.
Preferably, the hard disk firmware according to basic voltage read hard disc data, obtain normal data after, further includes:
Obtain the current state of hard disk;
Judge whether the hard disk is in idle condition according to the current state;If so, executing described according to default The step of each voltage in voltage range reads the hard disc data, obtains each voltage corresponding reading data.
Preferably, the hard disk firmware according to basic voltage read hard disc data, obtain normal data after, further includes:
Count the PE number of operations of hard disk;
When the PE number of operations reaches preset times, then execute described according to each voltage in predetermined voltage range The step of reading the hard disc data, obtaining each voltage corresponding reading data.
Preferably, each voltage according in predetermined voltage range reads the hard disc data, obtains each described The corresponding reading data of voltage, comprising:
Data in Block each in hard disk are read out according to each voltage, each reading is obtained Data;Wherein, the hard disk includes multiple Block;
Then the minimal error voltage includes the minimal error voltage of each Block.
Preferably, the data to Block each in hard disk are read out according to each voltage, comprising:
Predetermined quantity WL is chosen in the Block;
Data in each WL are read out according to each voltage.
Preferably, the read method of the hard disc data further include:
When the minimal difference exceeds preset range, alarm command is sent to alarm.
In order to solve the above technical problems, present invention also provides a kind of reading device of hard disc data, the reading device Include:
Normal data obtains module, reads hard disc data according to basic voltage for hard disk firmware, obtains normal data;
Deflection voltage read module is obtained for reading the hard disc data according to each voltage in predetermined voltage range Obtain the corresponding reading data of each voltage;
Difference calculating module, for calculating each difference read between data and the normal data;
Deflection voltage determining module for determining minimal difference in each difference, and obtains the minimal difference Corresponding minimal error voltage;
Deflection voltage preserving module, for saving the minimal error voltage, to receive read requests when controller When, the hard disc data is read according to the minimal error voltage.
In order to solve the above technical problems, the hard disk includes hard disk firmware present invention also provides a kind of hard disk, it is described hard Disk firmware is used for the step of read method of any one of the above hard disc data.
In order to solve the above technical problems, present invention also provides a kind of reading system of hard disc data, the read apparatus packet Include hard disk;
And controller transfers the minimal error voltage in the hard disk for upon receipt of a read request, and according to The minimal error voltage reads hard disc data.
In order to solve the above technical problems, the computer can present invention also provides a kind of computer readable storage medium It reads to be stored with computer program on storage medium, the computer program realizes any one of the above hard disk when being executed by processor The step of read method of data.
A kind of read method of hard disc data provided herein, including hard disk firmware read hard disk according to basic voltage Data obtain normal data;The hard disc data is read according to each voltage in predetermined voltage range, obtains each electricity Press corresponding reading data;Calculate each difference read between data and the normal data;In each difference Middle determining minimal difference, and obtain the corresponding minimal error voltage of the minimal difference;The minimal error voltage is saved, so as to When controller receives read requests, the hard disc data is read according to the minimal error voltage.
As it can be seen that technical solution provided herein, by the way that hard disk firmware is arranged inside solid state hard disk, when it is operated Trial reading is carried out to the user data in solid state hard disk according to predetermined voltage range, is had most therefrom to obtain to user data The voltage tilt value of big error correcting capability, that is, correspond to above-mentioned minimal error voltage, as a result, when needing to be read hard disk When, the minimal error voltage obtained in above-mentioned hard disk firmware can be called directly, and user is carried out according to the minimal error voltage Therefore the reading of data can be further ensured that most user data read operation can be disposable after read requests issue Read the time successfully greatly reduced spent by read error is read again again has to reduce period of reservation of number Effect improves data reading performance using redundancy;Further, since hard disk firmware effectively reduces user to hard to the simulation read operation of hard disk Therefore the actual read operation number of disk also further ensures hard disk self performance.
Reading device, system, hard disk and the computer readable storage medium of a kind of hard disc data provided herein, Above-mentioned beneficial effect is all had, details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow diagram of the read method of hard disc data provided herein;
Fig. 2 is the flow diagram of the read method of another hard disc data provided herein;
Fig. 3 is the flow diagram of the read method of another hard disc data provided herein;
Fig. 4 is a kind of structural schematic diagram of the reading device of hard disc data provided herein;
Fig. 5 is the structural schematic diagram of the reading device of another hard disc data provided herein;
Fig. 6 is a kind of structural schematic diagram of the reading system of hard disc data provided herein.
Specific embodiment
The core of the application is to provide a kind of read method of hard disc data, which can effectively save the time, compared with Reading of the efficient realization to data in solid state hard disk;Another core of the application is to provide a kind of reading dress of hard disc data It sets, system, hard disk and computer readable storage medium, all has above-mentioned beneficial effect.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art All other embodiment obtained without making creative work, shall fall in the protection scope of this application.
In the prior art, it to obtain accurate user data from solid state hard disk, needs constantly according to difference Voltage tilt value carry out trial reading, to determine the voltage tilt value of maximum error correcting capability, further obtain corresponding user Data, the realization of this method needs constantly to carry out to repeat read operation as a result, greatly causes time waste, reduces Data reading performance using redundancy;Meanwhile increasing for reading times also can seriously reduce solid state hard disk in the performance of later stage of life.For this purpose, This application provides a kind of read methods of hard disc data, by the way that hard disk firmware is arranged in solid state hard disk, by the hard disk firmware The voltage tilt value that there is maximum error correcting capability to user data is predefined, as a result, when needing to be read hard disk When, call directly the voltage tilt value.This method can guarantee that most user data read operation can be in read requests It disposably reads successfully to reduce after issuing and reads the spent time again, reduce period of reservation of number, effectively increase data Reading efficiency further ensures hard disk self performance.
Referring to FIG. 1, Fig. 1 is a kind of flow diagram of the read method of hard disc data provided herein, the reading The method is taken to may include:
S101: hard disk firmware reads hard disc data according to basic voltage, obtains normal data;
Specifically, to the user data in solid state hard disk, i.e., when above-mentioned hard disc data carries out initial read operation, by Multiple PE operation is not carried out in solid state hard disk, therefore, performance does not also reduce, at this point, can directly pass through basis electricity Pressure is read out it, and read operation is gone not malfunction, and further can be obtained corresponding normal data.Wherein, above-mentioned base The voltage value that plinth voltage is not deflected as, specific value are that the actual conditions of foundation solid state hard disk are configured; Above-mentioned standard data are the user data of original write-in solid state hard disk, and particular content can be by user according to itself practical need Ask setting.
Wherein, hard disk firmware is the program that is previously written in read-only memory, as EROM (rewritable read-only memory), EEPROM (Electrically Erasable Programmable Read-Only Memory) etc., can be built in solid state hard disk, certainly, position be arranged for it, The application is not specifically limited.
In addition, to guarantee to obtain correct normal data, above-mentioned steps need carrying out solid state hard disk initial PE behaviour It carries out, is such as carried out after user data is written in first time, or in the PE for not influencing read operation error when making with read operation Operation is executed in number and is carried out, for example, in this application, the PE operation that setting does not influence read operation error executes number and is 1000 times, i.e., when executing the number of PE operation to solid state hard disk within 1000 times, whether hard disk firmware or controller, When executing read operation to solid state hard disk, can be read out according to basic voltage, and will not malfunction.Further, the step Rapid without repeatedly carrying out, execution is primary, can be stored directly in itself program after obtaining normal data, also can be reserved for phase The memory answered waits when being read again, can call directly the normal data, really so as to subsequent voltage tilt value It is fixed.
S102: hard disc data is read according to each voltage in predetermined voltage range, obtains the corresponding reading of each voltage Data;
Specifically, hard disk firmware is being carried out to the timing really of voltage tilt value, it can be according to each voltage in preset range To the user data in solid state hard disk, i.e., above-mentioned hard disc data is read out, to obtain each voltage in the predetermined voltage range Corresponding reading data.Wherein, above-mentioned predetermined voltage range is that user is preset based on actual conditions, for its specific model Enclose the application without limitation.Certainly, the setting range of the predetermined voltage range cannot be excessive, needs to guarantee the normal of whole system Operation.For example, in this application, settable voltage range of deflection is (- 12 ,+12), can be used on the basis of basic voltage (- 2 ,+2, -4 ,+4, -6 ,+6, -8 ,+8, -12 ,+12) are read out hard disc data, further to obtain above-mentioned each deflection The corresponding reading data of voltage.
S103: each difference read between data and normal data is calculated;
S104: minimal difference is determined in each difference, and obtains the corresponding minimal error voltage of minimal difference;
Specifically, after obtaining corresponding the readings data of each deflection voltage, can calculate each reading data and The difference between normal data obtained in S101, and therefrom determine the smallest difference of value, i.e., above-mentioned minimal difference.Work as reading When difference minimum between data and normal data, that is, illustrate that the error of the reading data is minimum, accuracy highest, further, It can be obtained corresponding minimal error voltage, i.e., the voltage after being deflected on the basis of basic voltage, namely to solid-state Error rate minimum voltage when hard disk is read.
As a kind of preferred embodiment, hard disk number is read according to each voltage in predetermined voltage range in above-mentioned S102 According to obtaining the corresponding reading data of each voltage, may include: to the data in Block each in hard disk according to each electricity Pressure is read out, and obtains each reading data;Wherein, hard disk includes multiple Block;Then minimal error voltage includes each The minimal error voltage of Block.
Specifically, Block is a unit of NAND management, and carries out PE operation most for nand flash memory Subsection to the PE operation of solid state hard disk is realized based on Block, includes multiple Block in a solid state hard disk, because This, the reading to hard disc data in solid state hard disk is the reading to data in each Block.As a result, when reading hard disc data When, successively the data in each Block can be read out.Specifically, can be pressed for the data in each Block It is read out according to each voltage in predetermined voltage range, can be obtained the corresponding minimal error voltage of each Block as a result,. Correspondingly, including the corresponding minimal error voltage of above-mentioned each Block for the minimal error voltage obtained in S104.
Preferably, the above-mentioned data to Block each in hard disk are read out according to each voltage, may include: Predetermined quantity WL is chosen in Block;Data in each WL are read out according to each voltage.
Specifically, including 256 WL (WordLine, NAND for similarly for nand flash memory, in each Block In one TLC pages;Wherein, TLC, that is, Triple Level Cell, three layers of storage unit, each unit store three data), Therefore, the above-mentioned reading to data in Block, as to the reading of WL.It is hard to guarantee but since WL is numerous in each Block Disk data reading performance using redundancy, the WL that can only choose predetermined quantity carry out data read operation, and for each TLC according to above-mentioned pre- If each voltage in voltage range is read out.Simultaneously as 256 WL belong to a Block, selected part WL is carried out Read the reading accuracy rate for having no effect on data.In addition, actual conditions can be combined to set by user above-mentioned predetermined quantity Fixed, the application is not specifically limited.
Further, the accuracy rate that data are finally read for guarantee controller, can separately choose in 256 WL, for example, In the application, can first divide 256 WL is six parts, i.e. WL (0)-WL (31), WL (32)-WL (79), WL (80)-WL (191), WL (192)-WL (223), WL (224)-WL (251), WL (252)-WL (255), the first four WL that every part is chosen in setting are carried out Data read operation, it is corresponding, it further can be obtained six corresponding four groups of reading data, to realize subsequent minimal error The acquisition of voltage.
S105: saving minimal error voltage, so as to when controller receives read requests, according to minimal error voltage reading Take hard disc data.
Specifically, can be saved after obtaining minimal error.Further, when controller receives upper layer When the read requests issued, the minimal error voltage being obtained ahead of time in hard disk firmware can be called directly, and according to the minimal error Voltage is read out hard disc data.
It should be noted that the read method of above-mentioned hard disc data, except S101 need to only execute one secondly, other steps then need It to be performed a plurality of times simultaneously according to actual conditions, for example, can be executed after solid state hard disk executes a PE operation every time, it can also To guarantee that the performance of solid state hard disk executes after PE operation executes certain number.
The read method of hard disc data provided herein, by the way that hard disk firmware is arranged inside solid state hard disk, when it Trial reading is carried out to the user data in solid state hard disk according to predetermined voltage range when operation, therefrom to obtain to user data Voltage tilt value with maximum error correcting capability corresponds to above-mentioned minimal error voltage, as a result, when needing to be read out hard disk When operation, the minimal error voltage obtained in above-mentioned hard disk firmware can be called directly, and carry out according to the minimal error voltage Therefore the reading of user data it is latter can be further ensured that most user data read operation can be issued in read requests Secondary property, which is read, successfully to be greatly reduced since read error reads the spent time again again, thus when reducing user's waiting Between, effectively increase data reading performance using redundancy;Further, since hard disk firmware effectively reduces user to the simulation read operation of hard disk Therefore hard disk self performance is also further ensured to the actual read operation number of hard disk.
On the basis of the various embodiments described above, referring to FIG. 2, Fig. 2 is another hard disc data provided herein The flow diagram of read method.
As a kind of preferred embodiment example, as shown in step S202 to step S203 in Fig. 2, above-mentioned hard disk firmware is according to base Plinth voltage reads hard disc data, after obtaining normal data, can also include:
S202: the current state of hard disk is obtained;
S203: judge whether hard disk is in idle condition according to current state;If so, into S204.
Specifically, after obtaining normal data, namely before the determination of progress voltage tilt value, solid-state can be obtained in advance The current state of hard disk, if solid state hard disk is in busy state, illustrates controller to determine if to be in idle condition It is read, or is carrying out PE operation, at this point, can first suspend for the normal operation for guaranteeing solid state hard disk Subsequent step;If solid state hard disk is in idle condition, illustrate that controller is not read it, does not also carry out PE behaviour Make, at this point, S204 can be entered, to carry out subsequent step.
In addition, after can suspending the predetermined time, be back to S202 after for above-mentioned pause subsequent step and re-start, Can be as shown in Fig. 2, direct end operation, and read operation next time is waited for, above two embodiment has no effect on The implementation of the technical program.
The read method of hard disc data provided by the embodiment of the present application judged by the state to solid state hard disk, The selection that voltage tilt value is carried out when it is in idle condition, can effectively ensure that its operation performance.
On the basis of the various embodiments described above, referring to FIG. 3, Fig. 3 is another hard disc data provided herein The flow diagram of read method.
As a kind of preferred embodiment example, as shown in step S304 to step S305 in Fig. 3, above-mentioned hard disk firmware is according to base Plinth voltage reads hard disc data, after obtaining normal data, can also include:
S304: the PE number of operations of hard disk is counted;
S305: when PE number of operations reaches preset times, then enter S306.
Specifically, after obtaining normal data, namely before the determination of progress voltage tilt value, solid-state can be counted in advance The number for the PE operation that hard disk has carried out, since when initially carrying out PE operation to solid state hard disk, performance is not also by broken Bad, corresponding read operation will not generally malfunction, and therefore, a PE number of operations can be preset, in the PE number of operations Within, without carrying out the determination of voltage tilt value, at this point, same can guarantee the accuracy for reading data;It is grasped when beyond above-mentioned PE After making number, then when being read out to solid state hard disk, it will it is easy to appear reading error, at this point, into S306, with Carry out subsequent step.Certainly, it for the specific value of above-mentioned preset times, can be set according to the actual performance of solid state hard disk It sets, the application is not specifically limited.For example, settable preset times are 1000 times in this application, i.e., held when to solid state hard disk When the number of row PE operation reaches 1000 times, the selection of voltage tilt value can be carried out by hard disk firmware.
In addition, due in similar PE number of operations, the accuracy rate for reading data result is almost not much different, such as the 1001 PE operate corresponding read operation, read operation corresponding with the 1002nd PE operation, and the two reads the result of data It is almost the same, therefore, for the performance for being further ensured that solid state hard disk, settable preset interval number, i.e., to the PE of solid state hard disk When the number of operations certain number of every increase, the selection of primary voltage tilt value can be carried out by hard disk firmware, without every increase As soon as time PE operation, carries out the selection of primary voltage tilt value.For example, in this application, above-mentioned preset interval number is arranged It is 3000, i.e., at the every increase of the PE number of operations to solid state hard disk 3000 times, it is inclined that primary voltage is re-started by hard disk firmware Turn the selection of value, can effectively ensure that the performance of solid state hard disk as a result,.
It should be noted that the statistics of PE number of operations and judgement are set to solid state hard disk in S304~S305 in Fig. 3 State obtain after, but its execution sequence it is not unique, the statistics of PE number of operations can also be set to judgement above-mentioned solid Before the state of state hard disk, or both implement simultaneously, have no effect on the implementation of the technical program.
On the basis of above-mentioned each embodiment, as a kind of preferred embodiment, the read method of the hard disc data may be used also When including: that minimal difference exceeds preset range, alarm command is sent to alarm.
Specifically, also further value judgement can be carried out to the minimal difference of acquisition, it is default to judge whether its value exceeds Whether range, i.e. reading data and the minimal difference of normal data exceed preset range, wherein the preset range be error most Small range, specific value range be not unique.Further, if minimal difference is without departing from preset range, illustrate that the solid-state is hard Disk still can normal use, can also continue to carry out PE operation and read operation;However, if minimal difference has exceeded default model It encloses, then illustrates that the performance of the solid state hard disk has been badly damaged, the corresponding reading data of read operation have already appeared serious mistake Accidentally, cause the solid state hard disk that can not continue normal use, therefore, can trigger alarm command, and send it to corresponding report Alert equipment, i.e., above-mentioned alarm are alarmed, and are timely updated solid state hard disk with notification technique personnel or user.Certainly, above-mentioned report Police's formula is only a kind of embodiment provided herein, not uniquely, can also pass through the side such as voice prompting, text prompt Formula is notified.
To solve the above problems, referring to FIG. 4, Fig. 4 is a kind of reading device of hard disc data provided herein Structural schematic diagram, the reading device may include:
Normal data obtains module 10, reads hard disc data according to basic voltage for hard disk firmware, obtains normal data;
Deflection voltage read module 20 is obtained for reading hard disc data according to each voltage in predetermined voltage range The corresponding reading data of each voltage;
Difference calculating module 30, for calculating the difference between each reading data and normal data;
Deflection voltage determining module 40, for determining minimal difference in each difference, and it is corresponding to obtain minimal difference Minimal error voltage;
Deflection voltage preserving module 50, for saving minimal error voltage, so as to when controller receives read requests, Hard disc data is read according to minimal error voltage.
On the basis of the above embodiments, referring to FIG. 5, Fig. 5 is the reading of another hard disc data provided herein Take the structural schematic diagram of device.
As a kind of preferred embodiment, the reading device of the hard disc data can also include:
Disk state determining module 60, for obtaining the current state of hard disk;And whether hard disk is judged according to current state It is in idle condition;If so, into above-mentioned deflection voltage read module.
As a kind of preferred embodiment, the reading device of the hard disc data can also include:
PE number of operations statistical module 70, for counting the PE number of operations of hard disk;When PE number of operations reaches default time When number, then enter above-mentioned deflection voltage read module.
Wherein, it should be noted that disk state determining module 60 and PE number of operations statistical module 70 in above-mentioned Fig. 5 A kind of only embodiment provided herein is set, not uniquely, in actual moving process, the two in no particular order, It can run simultaneously.
As a kind of preferred embodiment, above-mentioned deflection voltage read module 20 can be specifically used for Block each in hard disk In data be read out according to each voltage, obtain each reading data;Wherein, hard disk includes multiple Block;It is then minimum Error voltage includes the minimal error voltage of each Block.
As a kind of preferred embodiment, the reading device of the hard disc data can also include:
Alarm module 80, for sending alarm command to alarm when minimal difference exceeds preset range.
Above method embodiment is please referred to for the introduction of device provided by the present application, this will not be repeated here by the application.
To solve the above problems, the application also provides a kind of hard disk, which may include hard disk firmware, the hard disk firmware It can be used for realizing following steps:
Hard disc data is read according to basic voltage, obtains normal data;According to each voltage reading in predetermined voltage range Hard disc data is taken, the corresponding reading data of each voltage are obtained;Calculate the difference between each reading data and normal data;? Minimal difference is determined in each difference, and obtains the corresponding minimal error voltage of minimal difference;Minimal error voltage is saved, so as to When controller receives read requests, hard disc data is read according to minimal error voltage.
Above method embodiment is please referred to for the introduction of hard disk provided by the present application, this will not be repeated here by the application.
To solve the above problems, referring to FIG. 6, Fig. 6 is a kind of reading system of hard disc data provided herein Structural schematic diagram, the reading system may include:
Above-mentioned hard disk 1 and controller 2;Wherein, controller 2 can be used for upon receipt of a read request, transferring in hard disk 1 Minimal error voltage, and according to minimal error voltage read hard disc data.
It should be noted that above-mentioned read requests can be the read requests that user is sent based on client.And for hard Data transfer mode between disk 1 and controller 2, the application are not specifically limited in this embodiment, such as can pass through corresponding interface etc. It realizes.
Above method embodiment is please referred to for the introduction of system provided by the present application, this will not be repeated here by the application.
To solve the above problems, the application also provides a kind of computer readable storage medium, computer readable storage medium On be stored with computer program, can realize following steps when computer program is executed by processor:
Hard disc data is read according to basic voltage, obtains normal data;According to each voltage reading in predetermined voltage range Hard disc data is taken, the corresponding reading data of each voltage are obtained;Calculate the difference between each reading data and normal data;? Minimal difference is determined in each difference, and obtains the corresponding minimal error voltage of minimal difference;Minimal error voltage is saved, so as to When controller receives read requests, hard disc data is read according to minimal error voltage.
The computer readable storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
Above method embodiment is please referred to for the introduction of computer readable storage medium provided by the present application, the application exists This is not repeated them here.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration ?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
It to the read method of hard disc data provided herein, device, system, hard disk and computer-readable deposits above Storage media is described in detail.Specific examples are used herein to illustrate the principle and implementation manner of the present application, The description of the example is only used to help understand the method for the present application and its core ideas.It should be pointed out that for this technology For the those of ordinary skill in field, under the premise of not departing from the application principle, several improvement can also be carried out to the application And modification, these improvement and modification also fall into the protection scope element of the claim of this application.

Claims (10)

1. a kind of read method of hard disc data characterized by comprising
Hard disk firmware reads hard disc data according to basic voltage, obtains normal data;
The hard disc data is read according to each voltage in predetermined voltage range, obtains the corresponding reading number of each voltage According to;
Calculate each difference read between data and the normal data;
Minimal difference is determined in each difference, and obtains the corresponding minimal error voltage of the minimal difference;
The minimal error voltage is saved, so as to when controller receives read requests, according to the minimal error voltage reading Take the hard disc data.
2. read method as described in claim 1, which is characterized in that the hard disk firmware reads hard disk number according to basic voltage According to after acquisition normal data, further includes:
Obtain the current state of hard disk;
Judge whether the hard disk is in idle condition according to the current state;If so, executing described according to predeterminated voltage The step of each voltage in range reads the hard disc data, obtains each voltage corresponding reading data.
3. read method as described in claim 1, which is characterized in that the hard disk firmware reads hard disk number according to basic voltage According to after acquisition normal data, further includes:
Count the PE number of operations of hard disk;
When the PE number of operations reaches preset times, then executes each voltage according in predetermined voltage range and read The hard disc data, the step of obtaining each voltage corresponding reading data.
4. read method as described in claim 1, which is characterized in that each voltage reading according in predetermined voltage range The hard disc data is taken, the corresponding reading data of each voltage are obtained, comprising:
Data in Block each in hard disk are read out according to each voltage, each reading data are obtained; Wherein, the hard disk includes multiple Block;
Then the minimal error voltage includes the minimal error voltage of each Block.
5. read method as claimed in claim 4, which is characterized in that the data to Block each in hard disk according to Each voltage is read out, comprising:
Predetermined quantity WL is chosen in the Block;
Data in each WL are read out according to each voltage.
6. the read method as described in claim 1 to 5 any one, which is characterized in that further include:
When the minimal difference exceeds preset range, alarm command is sent to alarm.
7. a kind of reading device of hard disc data characterized by comprising
Normal data obtains module, reads hard disc data according to basic voltage for hard disk firmware, obtains normal data;
Deflection voltage read module obtains each for reading the hard disc data according to each voltage in predetermined voltage range The corresponding reading data of a voltage;
Difference calculating module, for calculating each difference read between data and the normal data;
Deflection voltage determining module, for determining minimal difference in each difference, and it is corresponding to obtain the minimal difference Minimal error voltage;
Deflection voltage preserving module, for saving the minimal error voltage, so as to when controller receives read requests, root The hard disc data is read according to the minimal error voltage.
8. a kind of hard disk, which is characterized in that including hard disk firmware, the hard disk firmware is any for realizing such as claim 1 to 6 The step of read method of hard disc data described in one.
9. a kind of reading system of hard disc data characterized by comprising
Hard disk as claimed in claim 8;
Controller, for upon receipt of a read request, transferring the minimal error voltage in the hard disk, and according to the minimum Error voltage reads hard disc data.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the reading of the hard disc data as described in claim 1 to 6 any one when the computer program is executed by processor The step of taking method.
CN201811081915.4A 2018-09-17 2018-09-17 A kind of read method of hard disc data, device and relevant device Pending CN109271293A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811081915.4A CN109271293A (en) 2018-09-17 2018-09-17 A kind of read method of hard disc data, device and relevant device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811081915.4A CN109271293A (en) 2018-09-17 2018-09-17 A kind of read method of hard disc data, device and relevant device

Publications (1)

Publication Number Publication Date
CN109271293A true CN109271293A (en) 2019-01-25

Family

ID=65188769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811081915.4A Pending CN109271293A (en) 2018-09-17 2018-09-17 A kind of read method of hard disc data, device and relevant device

Country Status (1)

Country Link
CN (1) CN109271293A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109871594A (en) * 2019-01-28 2019-06-11 山东华芯半导体有限公司 A kind of NAND Flash characteristic model method for building up
CN109992446A (en) * 2019-04-12 2019-07-09 苏州浪潮智能科技有限公司 A kind of solid state hard disk error correction method and relevant apparatus
CN111124278A (en) * 2019-11-21 2020-05-08 苏州浪潮智能科技有限公司 Method, device and medium for improving reading performance of solid state disk

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107247636A (en) * 2017-06-06 2017-10-13 郑州云海信息技术有限公司 The method and device that data reconstruction optimizes in a kind of solid state hard disc
CN107527644A (en) * 2017-08-28 2017-12-29 郑州云海信息技术有限公司 A kind of solid state hard disc reads the optimization method and device of reference voltage
CN108122589A (en) * 2017-12-19 2018-06-05 深圳忆联信息系统有限公司 It is a kind of to eliminate the inconsistent method of the Nand bit error rates and solid state disk

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107247636A (en) * 2017-06-06 2017-10-13 郑州云海信息技术有限公司 The method and device that data reconstruction optimizes in a kind of solid state hard disc
CN107527644A (en) * 2017-08-28 2017-12-29 郑州云海信息技术有限公司 A kind of solid state hard disc reads the optimization method and device of reference voltage
CN108122589A (en) * 2017-12-19 2018-06-05 深圳忆联信息系统有限公司 It is a kind of to eliminate the inconsistent method of the Nand bit error rates and solid state disk

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109871594A (en) * 2019-01-28 2019-06-11 山东华芯半导体有限公司 A kind of NAND Flash characteristic model method for building up
CN109871594B (en) * 2019-01-28 2023-02-03 山东华芯半导体有限公司 NAND Flash characteristic model establishing method
CN109992446A (en) * 2019-04-12 2019-07-09 苏州浪潮智能科技有限公司 A kind of solid state hard disk error correction method and relevant apparatus
CN111124278A (en) * 2019-11-21 2020-05-08 苏州浪潮智能科技有限公司 Method, device and medium for improving reading performance of solid state disk

Similar Documents

Publication Publication Date Title
CN109271293A (en) A kind of read method of hard disc data, device and relevant device
US9471134B2 (en) Method and apparatus for managing power of a storage system
EP2927779A1 (en) Disk writing method for disk arrays and disk writing device for disk arrays
CN110007870A (en) A kind of storage equipment write request processing method and relevant apparatus
CN110673789B (en) Metadata storage management method, device, equipment and storage medium of solid state disk
CN111966449B (en) Virtual machine backup management method, system, terminal and storage medium
CN102982122A (en) Repeating data deleting method suitable for mass storage system
CN108874324B (en) Access request processing method, device, equipment and readable storage medium
CN109358947A (en) A kind of realization method and system of virtual machine snapshot
CN106445409A (en) Distributed block storage data writing method and device
CN109992446A (en) A kind of solid state hard disk error correction method and relevant apparatus
CN109684271A (en) Snapshot data management method, device, electronic equipment and machine readable storage medium
CN109524048A (en) A kind of the service life method for early warning and relevant apparatus of SSD disk
CN109120067A (en) A kind of sequence of events recording report method, device, equipment and readable storage medium storing program for executing
CN103500143A (en) Hard disc parameter adjusting method and device
CN105242955A (en) Virtual machine disk input and output scheduling method and system
CN115291806A (en) Processing method, processing device, electronic equipment and storage medium
CN109196458A (en) Storage system active volume calculation method and device
CN112732422B (en) Norflash asynchronous erasing method, device, equipment and medium
CN110007864A (en) A kind of data processing method, device, equipment and readable storage medium storing program for executing
CN103383652B (en) The switching method of the multiple operating systems of computer platform
WO2020224218A1 (en) Hbase-based data writing method, system, device, and readable storage medium
WO2014187574A1 (en) Managing storage devices having a lifetime of a finite number of operations
CN110083310A (en) Company-data store method, device and storage cluster system in a kind of storage cluster
CN103176753A (en) Storage device and data management method of storage device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190125