Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A bad sector mapping method based on a mechanical hard disk

A mapping method, the technology of mechanical hard disk, applied in the direction of response error generation, input/output process of data processing, redundancy in operation, data error detection, etc., can solve the problems of discrete physical sectors, IO errors, etc., Achieve the effect of improving system performance, improving stability, and avoiding frequent IO errors

Active Publication Date: 2019-04-05
SHANGHAI UNIV OF ENG SCI
View PDF14 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of the above-mentioned problems and demands in the prior art, the purpose of the present invention is to provide a bad sector mapping method based on a mechanical hard disk to solve the problem of frequent IO errors in the system due to sector damage and the logically continuous but The actual physical sector is discrete, so as to improve the system IO read and write performance, improve system reliability and stability, and prolong the service life of the mechanical hard disk

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A bad sector mapping method based on a mechanical hard disk
  • A bad sector mapping method based on a mechanical hard disk
  • A bad sector mapping method based on a mechanical hard disk

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0052] A bad sector mapping method based on a mechanical hard disk provided in this embodiment includes a system, the system is provided with a bad sector management module, and the bad sector management module can detect bad sectors and execute bad sector Mapping operation; Described bad sector mapping method specifically comprises the steps:

[0053] S1) After the system starts, the bad sector management module starts to initialize, and the initialization includes (see figure 2 shown):

[0054] Apply for memory resources from the system;

[0055] Create and initialize bad sector mapping table;

[0056] Obtain the number of hard disk tracks and disks being launched and establish a mapping relationship from logical addresses to physical addresses accordingly;

[0057] Obtain the capacity of the hard disk that is going online, and reserve 5% to 20% of the hard disk space as reserved sectors for mapping;

[0058] Obtain the configuration information of the hard disk that is...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a bad sector mapping method based on a mechanical hard disk, which comprises the following steps that: after a system is started, a bad sector management module starts to initialize; After the hard disk is on-line, the system sends the logic address of the IO request to a bad sector management module, the bad sector management module converts the logic address into a physical address, then whether a bad sector mapping table is hit or not is judged, and detection of the bad sector mapping table is predicted; The bad sector management module determines whether to return the mapped physical address or the real physical address to the system according to the detection result; The system carries out hard disk reading and writing according to the physical address returnedby the bad sector management module, and if reading and writing are successful, IO is finished; And if the read-write fails, the bad sector management module is triggered to execute bad sector mapping operation with prediction characteristics. The method can effectively avoid the problems that IO frequently reports errors and is logically continuous but the physical sector is discrete caused by damage of continuous sectors of the system, and can greatly improve the stability and performance of the system.

Description

technical field [0001] The invention relates to a bad sector mapping method based on a mechanical hard disk, and belongs to the technical field of data storage. Background technique [0002] Please refer to the attached figure 1 As shown, mechanical hard disks are disk-type, consisting of a group of overlapping disks, each disk surface is divided into equal number of tracks (Track), and numbered from "0" on the outer edge, with the same The numbered tracks form a cylinder, which is called a cylinder, and each track is divided into several arc segments, and these arc segments are sectors. Data is stored in sectors, and sectors that cannot write data are called bad sectors. [0003] In the life cycle of the mechanical hard disk, there are always "system IO errors caused by sector damage". Therefore, in a storage server with a mechanical hard disk as the main storage medium, IO errors reported due to hard disk sector damage are the main reason for system read and write failu...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/06G06F11/14
CPCG06F3/0616G06F3/0619G06F3/064G06F3/0676G06F11/1415
Inventor 李攀张静张蕊郑昊李杰
Owner SHANGHAI UNIV OF ENG SCI
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products