WO2014019360A1 - Procédé et dispositif de remappage d'un disque - Google Patents

Procédé et dispositif de remappage d'un disque Download PDF

Info

Publication number
WO2014019360A1
WO2014019360A1 PCT/CN2013/072036 CN2013072036W WO2014019360A1 WO 2014019360 A1 WO2014019360 A1 WO 2014019360A1 CN 2013072036 W CN2013072036 W CN 2013072036W WO 2014019360 A1 WO2014019360 A1 WO 2014019360A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
sector
bad
bad sector
track
Prior art date
Application number
PCT/CN2013/072036
Other languages
English (en)
Chinese (zh)
Inventor
黄贤园
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2014019360A1 publication Critical patent/WO2014019360A1/fr

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/18Error detection or correction; Testing, e.g. of drop-outs
    • G11B20/1883Methods for assignment of alternate areas for defective areas
    • G11B20/1889Methods for assignment of alternate areas for defective areas with discs

Definitions

  • the present invention relates to communications technologies, and in particular, to a disk remapping method and apparatus.
  • BACKGROUND OF THE INVENTION A hard disk bad track problem is a common problem in the storage field. Hard disk bad sectors are classified into logical bad sectors and physical bad sectors. The physical bad sectors cannot be repaired, and the logical bad sectors can be repaired by a write operation, that is, the logical bad track address is remapped to the reserved area of the hard disk according to the hard disk remapping mechanism.
  • LBA Logic Block Addressing
  • the read head when sequentially reading data in the hard disk, when the bad track 1 is read, the read head automatically swings into the reserved area to read the information of the remapping address corresponding to the bad track 1, and then reads the magnetic head. Returning to read the good sector between bad track 1 and bad track 2; when reading bad track 2, the read head automatically swings into the reserved area to read the information of the remapping address corresponding to bad track 2, and then reads The head then returns to read a good sector between bad track 2 and bad track 3, and so on, to complete the data reading of the entire hard disk containing the bad track.
  • the read head repeatedly swings, resulting in a large disk read and write delay.
  • Embodiments of the present invention provide a disk remapping method and apparatus, which reduce disk read and write delays.
  • a first aspect of the embodiments of the present invention provides a disk remapping method, including:
  • the position of the bad sectors is obtained according to the logical address of the bad sectors
  • the data in the bad track sector is migrated to the original Reserving the physical address corresponding to the logical address of the bad sector and redirecting to the physical address after the data migration in the bad sector;
  • the data in the bad track area where the bad sector is satisfied by the preset area mapping condition is migrated to the preset new reserved area, and the The physical address corresponding to the logical address corresponding to the data in the bad track area is respectively redirected to the physical address after the data migration in the bad track area; wherein the inner track area is a radius of R/P in the disc. a region within the track corresponding to the concentric circle, where R is the radius of the disc, and ⁇ is a preset real number greater than 1 and less than R; the non-inner track region is the inner disc The area outside the road area.
  • the bad track area where the bad sectors are located is an area composed of sectors having a physical address of [XQ, X+Q], where X is the bad
  • the physical address of the track sector, Q is a preset positive integer
  • the bad track area When there are other bad sectors in the bad track area, the bad track area satisfies the preset area mapping condition, and the data in the bad track area is migrated to the preset new reserved area.
  • the newly added reserved area further includes:
  • the bad track area When there are no other bad sectors in the bad track area, the bad track area does not satisfy the preset area mapping condition, and the data in the bad track sector is migrated to the preset new reserved. In the area, the physical address corresponding to the logical address of the data in the bad track sector is redirected to the physical address after the data migration in the bad track sector.
  • the disk remapping method provided by the embodiment of the present invention further includes:
  • the new reserved area is pre-configured, and the newly added reserved area is uniformly distributed on each of the discs, and the newly added reserved areas in the discs are respectively distributed in the discs by a radius of An area composed of concentric circles of [R/N, R/M], the total number of logical addresses in the newly added reserved area is in the original reserved area N times the total number of logical addresses, M and N are preset real numbers greater than 1 and less than 2, and M ⁇ N, n is a preset positive integer greater than 1.
  • the disk remapping method provided by the embodiment of the present invention further includes:
  • a second aspect of the embodiments of the present invention provides a disk remapping apparatus, including:
  • a first acquiring unit configured to: when reading a bad track sector on each disc, acquire a location of the bad track sector according to a logical address of the bad track sector;
  • a first migration unit configured to migrate data in the bad track sector to an original reserved area if the bad sector sector acquired by the first acquiring unit is located in an inner track area, and The physical address corresponding to the logical address of the bad sector is redirected to the physical address after data migration in the bad sector;
  • a second migration unit configured to: if the bad sector sector acquired by the first acquiring unit is located in a non-internal move to a preset new reserved area, and the logical address of the data in the bad track area Corresponding physical addresses are respectively redirected to physical addresses after data migration in the bad track area;
  • a reading module configured to re-point according to the first migration unit and the second migration unit, wherein the inner channel region is within a track corresponding to a concentric circle having a radius of R/P in the disc An area, where R is a radius of the disc, P is a preset 1 and less than a real number of R; and the non-inner track area is an area on the disc other than the inner track area.
  • the second migration unit includes:
  • a scanning subunit configured to scan a bad track area where the bad track sector is located, if the bad track sector acquired by the first acquiring unit is located in a non-inner track area, the bad track sector
  • the bad track area is an area composed of sectors having a physical address of [XQ, X+Q], where X is the sector of the bad track Physical address, Q is a preset positive integer;
  • a migration subunit configured to: when the scan subunit scans that there are other bad sectors in the bad track area, the bad track area satisfies a preset area mapping condition, and the bad track area is The data is migrated to the preset new reserved area.
  • the second migration unit further includes:
  • a processing subunit configured to: when the scan subunit scans that there are no other bad sectors in the bad track area, the bad track area does not satisfy a preset area mapping condition, and the bad track is The data in the sector is migrated to the preset new reserved area, and the physical address corresponding to the logical address of the data in the bad track sector is redirected to the data in the bad sector. Physical address.
  • the disk remapping apparatus provided in this embodiment further includes:
  • a pre-configuration module configured to pre-configure the newly added reserved area, where the newly added reserved area is hooked on each disc, before the first acquiring module acquires the location of the bad sector sector,
  • the newly added reserved areas in the respective discs are respectively distributed in an area composed of concentric circles having a radius of [R/N, R/M] in the respective discs, and logic in the newly added reserved area
  • the total number of addresses is n times the total number of logical addresses in the original reserved area, and M and N are preset real numbers greater than 1 and less than 2, and M ⁇ N, n is a preset positive integer greater than 1.
  • the disk remapping apparatus further includes:
  • a second acquiring module configured to acquire, before the first acquiring module acquires the location of the bad sector sector, the number of disks included in each hard disk, the number of magnetic tracks included in each disk, and the track included in each track Number of sectors;
  • a generating module configured to: according to the second obtaining module, the number of disks included in each hard disk, the number of tracks included in each disk, the number of sectors included in each track, and each track
  • the first and last logical addresses corresponding to the first and last sectors generate a correspondence between each track and the first and last logical addresses in the track.
  • the technical effect of the embodiment of the present invention is: by distinguishing the location of the bad sectors, using the physical address after data migration in the nearby reserved area, and corresponding to the logical address of the bad sectors in the non-inner area The physical address is redirected to the physical address after data migration in the newly added reserved area, reducing the head The distance from the good sector to the reserved area, thereby reducing the delay caused by the head swing; by migrating the data in the bad track area that satisfies the preset area mapping condition to the newly added reserved area, When the data in the bad track area is read, the overall reading is directly performed from the newly added reserved area, thereby avoiding repeated head swings due to the presence of a plurality of similar but discontinuous bad sectors in a certain area. Thereby, the delay caused by the repeated swing of the head is greatly reduced.
  • FIG. 2 is a schematic structural diagram of a disc in Embodiment 1 of a disk remapping method according to the present invention
  • Embodiment 3 is a flowchart of Embodiment 2 of a disk remapping method according to the present invention.
  • Embodiment 4 is a schematic structural diagram of Embodiment 1 of a disk remapping apparatus according to the present invention.
  • Embodiment 2 of a disk remapping apparatus according to the present invention
  • FIG. 6 is a schematic structural diagram of Embodiment 3 of a disk remapping apparatus according to the present invention.
  • FIG. 1 is a flowchart of Embodiment 1 of a disk remapping method according to the present invention. As shown in FIG. 1 , this embodiment provides a disk remapping method, which may include the following steps:
  • Step 101 When a bad track sector on each disc is read, the location of the bad track sector is obtained according to the logical address of the bad sector.
  • the bad sectors on each disc can be read by data reading, and the bad can be obtained according to the logical address of the bad sectors.
  • the location of the track sector, where the logical address can be an LBA, and the bit at which the bad sector is located can be obtained by the logical address.
  • the disk remapping method provided in this embodiment can be applied to various storage software products, such as a computer operating system and storage control software, using a Redundant Arrays of Inexpensive Disks (RAID) group.
  • RAID Redundant Arrays of Inexpensive Disks
  • a RAID group is composed of a plurality of hard disks, one hard disk is composed of a plurality of disks, and one disk is composed of a plurality of magnetic tracks, each of which includes a plurality of sectors.
  • the magnetic track may be a concentric circle on the disc centered on the center of the disc, and a concentric circle on the disc may correspond to a track, that is, centered on the center of the disc, and different radii correspond to different tracks. . Since the sectors on the same disc are continuous, that is, the logical addresses corresponding to the sectors in the tracks corresponding to the concentric circles of different radii on the same disc can be successively arranged in the order of the radius from large to small or from small to large. The logical addresses corresponding to the sectors in the same track can be consecutively arranged in a counterclockwise or clockwise order, and the location of the bad sectors can be obtained by the logical address.
  • Step 102 Determine whether the bad sectors are located in the inner track area according to the position of the bad sectors. If yes, go to step 103, otherwise go to step 104.
  • determining whether the bad track sector is located in the inner track area according to the position of the bad track sector may be based on the concentricity of the track
  • the radius of the circle is used to determine whether the bad sectors are located in the inner track area, and if so, step 103 is performed, otherwise step 104 is performed.
  • the inner channel region in this embodiment may be an area within the disc corresponding to a concentric circle having a radius of R/P, wherein R is a radius of the disc, and P is a preset greater than 1 and less than
  • the real number of R may preferably be set to be greater than 2; the non-inner track area is the area on the disc other than the inner track area.
  • 2 is a schematic structural diagram of a disc in the first embodiment of the disk remapping method according to the present invention. As shown in FIG. 2, since one disc includes tens of thousands of magnetic tracks, each magnetic track corresponds to a concentric circle in the disc. .
  • the storage area of the disc is divided into an inner lane area and an outer lane area by setting the value of the parameter P.
  • P can take a value of 3, which corresponds to a concentric circle with a radius of R/3 in the disc.
  • a sector within the track is set as an inner track area, and a sector other than the track corresponding to a concentric circle having a radius of R/3 is set as a non-inner track area.
  • R/P is not necessarily equal to the radius of the concentric circle corresponding to a certain magnetic track. The size of the track, where you can select the track with the radius value closest to R/P.
  • Step 103 The data in the bad sector is migrated into the original reserved area, and the physical address corresponding to the logical address of the bad sector is redirected to the physical after migration of the data in the bad sector. address.
  • the data in the bad track sector is migrated into the original reserved area, and the physical address corresponding to the logical address of the bad track sector is redirected to the location
  • the physical address after the data migration in the bad sectors is the remapping mechanism of the hard disk, and the logical address of the bad sectors is remapped into the original reserved area.
  • the original reserved area here is the reserved area of the hard disk, usually located in the inner track of the disc.
  • the data is migrated to the preset new reserved area, and the physical address corresponding to the logical address of the data in the bad track area is redirected to the physical address after the data migration in the bad track area.
  • the data in the bad track area of the bad sector that satisfies the preset area mapping condition is migrated to the preset new reserved area, and Relocating the physical address corresponding to the logical address of the data in the bad track area to the physical address after the data migration in the bad track area.
  • the bad track area where the bad sectors are located here may refer to the area near the bad sectors, and the area range may be set according to actual conditions.
  • the area mapping condition referred to herein may be that there are other bad sectors in the bad track area where the bad sectors are located, and there may be multiple bad sectors in the bad track area formed on the adjacent multiple tracks. Sector.
  • the newly reserved area is a reserved area for the logical address redirection pointed to by the embodiment, and the newly added reserved area may be located in the middle of the storage area in the disc instead of the inner track position.
  • the data in the bad track area that satisfies the preset area mapping condition is migrated to the newly added reserved area, and the data may be migrated to the idle of the newly added reserved area and the closest to the bad track area. region.
  • the physical address corresponding to the logical address of the bad track sector may be redirected to the physical address after the data migration in the bad track sector.
  • the logical address corresponding to the redirection is used in the area corresponding to the logical address.
  • Read the data Since the logical address of the bad sector in the hard disk has been redirected, when the data in the RAID group is read, the logical address of the data in the good sector is not redirected, and the data is still read from the good sector; The logical address of the data in the sector of the bad track sector is redirected.
  • the data in the inner track area the data corresponding to the logical address after the redirection is read from the original reserved area, for the non-inner track area.
  • the data is read from the newly added reserved area.
  • the discontinuous bad sectors cause the head to repeatedly oscillate, thereby greatly reducing the disk read/write delay caused by the repeated swing of the head.
  • This embodiment provides a disk remapping method.
  • the physical address of the data after migration to the original reserved area the logic of the bad sectors in the non-inner area
  • the physical address corresponding to the address is redirected to the physical address after the data migration in the newly added reserved area, which reduces the distance that the magnetic head swings from the good sector to the reserved area, thereby reducing the delay caused by the head swing;
  • the data in the bad track area of the preset area mapping condition is migrated to the newly added reserved area, so that when the data in the bad track area is read, the overall reading is directly performed from the newly added reserved area. It is avoided that the head is repeatedly oscillated due to the presence of a plurality of similar but discontinuous bad sectors in a certain area, thereby greatly reducing the delay caused by the repeated swing of the head.
  • FIG. 3 is a flowchart of Embodiment 2 of the disk remapping method of the present invention. As shown in FIG. 3, this embodiment provides a disk remapping method, which may include the following steps:
  • Step 301 Obtain the number of disks included in each hard disk in the RAID group, the number of tracks included in each disk, and the number of sectors included in each track.
  • a RAID group is composed of a plurality of hard disks, one hard disk is composed of a plurality of disks, and one disk is composed of a plurality of magnetic tracks, each of which includes a plurality of sectors.
  • the number of disks included in a hard disk, the number of magnetic heads, the number of tracks included in each disk, the number of sectors included in one track, and the number of sectors included in one track can be found by using a mode page or a specification sheet.
  • the original reserved area reserved by the hard disk itself can be obtained. It is assumed that the original reserved area reserved by itself in one hard disk contains G sectors, that is, G LBAs are reserved.
  • a single disc in the known hard disk currently contains 100K-200K tracks, each track contains 2K-3K sectors, and the original reserved area reserved by the hard disk itself contains 2048-8192 sectors. Each sector corresponds to one LBA, that is, the original reserved area contains 2048-8192 LBAs.
  • Step 302 Generate each magnetic wave according to the number of disks included in each hard disk, the number of tracks included in each disk, the number of sectors included in each track, and the first and last logical addresses corresponding to the first and last sectors in each track. The correspondence between the track and the first and last logical addresses in the track.
  • the logical addresses of the sectors in the track are arranged in order, according to each The number of disks included in the hard disk, the number of tracks included in each disk, and the number of sectors included in each track can calculate the first and last logical addresses corresponding to the first and last sectors in each track.
  • the first and last logical addresses may be a logical address corresponding to the first sector in the track and a logical address corresponding to the tail sector.
  • Step 303 When the RAID group is created, the newly added reserved area is preset in the RAID group, and the newly added reserved area is hooked on each disk in the RAID group.
  • the storage space is striped across the hard disks in the RAID group, and a new reserved area is customized in the RAID group.
  • the newly added reserved areas are all distributed on the discs in the RAID group, so that some reserved sectors in the reserved area are shared by a certain number of tracks on each disc.
  • the newly added reserved area is different from the original reserved area, and the newly added reserved areas in each disc are respectively distributed in the discs with a radius of [R/N, R/M
  • the area consisting of concentric circles, that is, the newly added reserved area is a strip area composed of a plurality of concentric circles, wherein the minimum radius is R/N, the maximum radius is R/M, and M and N are presets.
  • the total number of logical addresses in the newly added reserved area in this embodiment is n times the total number of logical addresses in the original reserved area. If a hard disk contains A blocks, the new one is added to each disk.
  • the reserved area may contain nG/A logical addresses, and n is a preset positive integer greater than 1.
  • Step 304 When reading the bad sectors on each disc in the RAID group, obtain the location of the bad sectors according to the logical address of the bad sectors.
  • the completion 10 operation is first lowered, and the logical address of the bad sectors is recorded. Then use The RAID group verification algorithm performs data reconstruction. If the bad sector sector cannot be repaired by data reconstruction, the location of the bad sector sector may be obtained according to the logical address of the bad sector sector, that is, the bad sector is obtained. Which track is located on which track. The position of the bad sectors can be obtained according to the correspondence between the tracks generated in the above step 302 and the first and last logical addresses in the track, that is, the logical address of the bad sectors is determined to be located in the address range formed by the first and last logical addresses of the group. , indicating that the bad sector is located on the track corresponding to the first and last logical addresses.
  • Step 305 Determine whether the bad sectors are located in the inner track area according to the position of the bad sectors. If yes, go to step 306, otherwise go to step 307.
  • determining whether the bad track sector is located in the inner track area according to the position of the bad track sector may be based on the concentricity of the track
  • the radius of the circle is used to determine whether the bad sectors are located in the inner track area. If yes, step 306 is performed; otherwise, step 307 is performed.
  • the inner channel region in this embodiment may be an area within the disc corresponding to a concentric circle having a radius of R/P, wherein R is a radius of the disc, and P is a preset larger than 1 and smaller than R. Real number; the non-inner area is the area on the disc except the inner track area.
  • Step 306 The data in the bad sector is migrated into the original reserved area, and the physical address corresponding to the logical address of the bad sector is redirected to the physical after migration of the data in the bad sector. address.
  • the data in the bad track sector is migrated into the original reserved area, and the physical address corresponding to the logical address of the bad track sector is redirected to the location
  • the physical address after the data migration in the bad sector is the remapping mechanism of the hard disk, and the physical address corresponding to the logical address of the bad sector is redirected to the original reserved area.
  • the original reserved area here is the reserved area of the hard disk, usually located in the inner track of the disc.
  • Step 307 Determine whether the bad track area where the bad sector is located meets the preset area mapping condition. If yes, go to step 308; otherwise, go to step 309.
  • step 308 When the logical address of the bad sector is located in the non-inner track area, it is determined whether the bad track area of the bad track sector satisfies the preset area mapping condition. If yes, step 308 is performed; otherwise, step 309 is performed.
  • the bad track area where the bad sectors are located may be scanned to determine whether there are other bad sectors in the bad track area, and the bad track area is named only for defining the area near the bad sectors. It does not mean other meanings, such as not all sectors in the bad track area are bad sectors.
  • X is the physical address of the bad sector
  • Q is a preset positive integer. That is, this step scans the sector around the physical address X to determine whether there are other bad sectors adjacent to it. Similar here may refer to the similarity of sectors in physical locations.
  • the size of the area to be migrated can be determined by setting the parameter Q.
  • Step 308 The data in the bad track area is migrated to the preset new reserved area, and the physical address after the data in the domain is migrated.
  • the two bad track sectors may be similar but not continuous, and this embodiment will The data in the bad track area is migrated to the preset new reserved area, and the physical address corresponding to the logical address of the data in the bad track area is redirected to the physical tunnel after the data migration in the bad track area.
  • this embodiment not only migrates data of at least two bad sectors to a newly reserved area, but also migrates data of other good sectors around the bad sectors to the newly reserved area. Therefore, when it is necessary to read data in a sector whose physical address is [XQ, X+Q], the head does not swing back and forth because the data is not in the same area.
  • Step 309 The data in the bad sector is migrated to the newly added reserved area, and the physical address corresponding to the logical address of the data in the bad track is redirected to the data in the bad sector. Physical address.
  • the bad track area of the bad sector does not satisfy the preset area mapping condition, that is, only one bad track sector exists in the bad track area, there is no need to perform overall migration of the data in the bad track area, but only the bad
  • the data in the track sector is migrated to the newly added reserved area, and the physical address corresponding to the logical address of the data in the bad track sector is redirected to the physical address after the data migration in the bad track sector. This can reduce the burden of adding new reserved areas.
  • Step 310 Read data from a sector corresponding to the logical address according to the logical address of the data.
  • the data in the RAID group is subsequently 10
  • the data is read from the area corresponding to the logical address according to the redirected logical address.
  • the logical address of the data in the good sector is not remapped, and the data is still read from the good sector.
  • the logical address of the data in the sector in which the bad sector is present is redirected.
  • the reoriented logic is read from the original reserved area.
  • the data in the non-inner track area if the logical address in the area around a logical address is redirected as a whole, the new reserved area is directly accessed. If a logical address is redirected individually, The data is read from the newly added reserved area.
  • This embodiment provides a disk remapping method.
  • the logic of the bad sectors in the non-inner area The physical address corresponding to the address is redirected to the physical address after the data migration in the newly added reserved area.
  • the data in the bad track area that meets the preset area mapping condition is migrated to the newly added reserved area, so that the current reading is performed.
  • the overall reading is directly performed from the newly added reserved area, thereby avoiding the repeated swing of the magnetic head due to the presence of a plurality of similar but discontinuous bad sectors in a certain area, thereby greatly The delay due to repeated head swings is reduced.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
  • FIG. 4 is a schematic structural diagram of Embodiment 1 of a disk remapping apparatus according to the present invention. As shown in FIG. 4, this embodiment provides a disk remapping apparatus, which can perform various steps in Embodiment 1 of the foregoing method, where Narration.
  • the disk remapping apparatus provided in this embodiment may include a first obtaining unit 401, a first migrating unit 402, a second migrating unit 403, and a reading unit 404.
  • the first obtaining unit 401 is configured to acquire the location of the bad sectors according to the logical address of the bad sectors when the bad sectors on each disc are read.
  • the first migration unit 402 is configured to migrate the data in the bad track sector to the original reserved area if the bad sector sector acquired by the first obtaining unit 401 is located in the inner channel area, and The physical address corresponding to the logical address of the bad sector is redirected to the physical address after the data migration in the bad sector.
  • the second migration unit 403 is configured to: if the bad sector sector acquired by the first obtaining unit 401 is located in the non-inner track area, the data in the bad track area where the bad track sector meets the preset area mapping condition The data is migrated to the preset new reserved area, and the physical address corresponding to the logical address of the data in the bad track area is redirected to the physical address after the data migration in the bad track area.
  • the reading unit 404 is configured to re-point the domain according to the first migration unit 402 and the second migration unit 403 to a region within the disc corresponding to a concentric circle having a radius of R/P, wherein R is the disc
  • R is the disc
  • P is a preset real number greater than 1 and less than R
  • the non-inner track region is an area on the disc other than the inner track region.
  • FIG. 5 is a schematic structural diagram of Embodiment 2 of a disk remapping apparatus according to the present invention. As shown in FIG. 5, this embodiment provides a disk remapping apparatus, which can perform various steps in Embodiment 2 of the foregoing method, where Narration.
  • the disk remapping apparatus provided in this embodiment is based on the foregoing FIG. 4, and the second migration unit 403 may include a scanning subunit 413 and a migration subunit 423.
  • the scan sub-unit 413 is configured to scan the bad track area where the bad track sector is located, if the bad track sector acquired by the first obtaining unit 401 is located in the non-inner track area, the bad track fan
  • the bad track area where the area is located is an area composed of sectors having a physical address of [XQ, X+Q], where X is the physical address of the bad sector, and Q is a preset positive integer.
  • the migration sub-unit 423 is configured to: when the scan sub-unit 413 scans that there are other bad sectors in the bad track area, the bad track area satisfies a preset area mapping condition, where the bad track area The data is migrated to the preset new reserved area, and the physical address corresponding to the logical address of the data in the bad track area is redirected to the physical address after the data migration in the bad track area.
  • the disk remapping apparatus may further include a processing unit 501.
  • the processing unit 501 is configured to: when the scan sub-unit 413 scans that there is no other bad track sector in the bad track area, the bad track area does not satisfy the preset area mapping condition, and the bad track sector is The physical address corresponding to the logical address is redirected to the physical address after the data migration in the bad sector.
  • the disk remapping apparatus may further include a pre-configuration unit 502, configured to pre-configure the new pre-preparation before the first acquiring unit 401 acquires the location of the bad sector sector.
  • a pre-configuration unit 502 configured to pre-configure the new pre-preparation before the first acquiring unit 401 acquires the location of the bad sector sector.
  • the newly added reserved area is hooked on each of the discs, and the newly added reserved areas in the discs are respectively distributed in the discs with a radius of [R/N, R/ An area composed of concentric circles of M], the total number of logical addresses in the newly added reserved area is n times the total number of logical addresses in the original reserved area, and M and N are preset values greater than 1 and less than 2 Real number, M ⁇ N, n is a preset positive integer greater than 1.
  • the disk remapping apparatus may further include a second obtaining unit 503 and a generating unit 504.
  • the second obtaining unit 503 is configured to obtain the number of disks included in each hard disk, the number of magnetic tracks included in each disk, and each track before the first acquiring unit 401 acquires the position of the bad sectors.
  • the generating unit 504 is configured to use, according to the number of disks included in each hard disk acquired by the second obtaining unit 503, the number of tracks included in each disk, and the number of sectors included in each track. And the first and last logical addresses corresponding to the first and last sectors in each track, and the correspondence between each track and the first and last logical addresses in the track is generated.
  • This embodiment provides a disk remapping device.
  • the logic of the bad sectors in the non-inner track area is determined by distinguishing the location of the bad sectors from the physical address to the original reserved area.
  • the physical address corresponding to the address is redirected to the physical address after the data migration in the newly added reserved area.
  • the data in the bad track area that meets the preset area mapping condition is migrated to the newly added reserved area, so that the current reading is performed.
  • the overall reading is directly performed from the newly added reserved area, thereby avoiding the repeated swing of the magnetic head due to the presence of a plurality of similar but discontinuous bad sectors in a certain area, thereby greatly The delay due to repeated head swings is reduced.
  • the embodiment of the present invention further provides a machine readable medium, where a set of instructions is stored, and when the set of instructions is executed, the machine can perform the disk remapping described in Embodiment 1 or Method Embodiment 2 of the foregoing method. method.
  • FIG. 6 is a schematic structural diagram of Embodiment 3 of a disk remapping apparatus according to the present invention.
  • the embodiment of the present invention further provides a disk remapping apparatus, which may include a memory 601 and a processor 602.
  • the memory 601 is used to store instructions.
  • Processor 602 is coupled to said memory 601, which is configured to execute instructions stored in said memory 601.
  • the processor 602 is configured to: when reading a bad track sector on each disc, acquire a location of the bad track sector according to a logical address of the bad track sector; The track sector is located in the inner track area, and the data in the bad track sector is migrated into the original reserved area, and the physical address corresponding to the logical address of the bad track sector is redirected to the bad track a physical address after the data migration in the sector; if the bad sector is located in the non-inner area, the data in the bad track area of the bad sector that satisfies the preset area mapping condition is migrated to the preset In the new reserved area, the physical address corresponding to the logical address of the data in the bad track area is redirected to the data migration in the bad track area respectively; wherein the inner track area is in the disc a region within a track corresponding to a concentric circle having a radius of R/P, where R is a radius of the disc, P is a preset real number greater than 1 and less than R; the non-inner

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

Les modes de réalisation de l'invention concernent un procédé et un dispositif permettant de remapper un disque, ledit procédé consistant à : lors de la lecture d'un mauvais secteur dans chaque disque, obtenir une position du mauvais secteur en fonction d'une adresse logique du mauvais secteur ; si le mauvais secteur se trouve dans la zone de la piste intérieure, migrer les données depuis le mauvais secteur vers une zone réservée d'origine, et rediriger l'adresse physique correspondant à l'adresse logique du mauvais secteur vers l'adresse physique des données migrées du mauvais secteur ; si le mauvais secteur ne se trouve pas dans la zone de la piste intérieure, migrer les données depuis la mauvais zone de piste, où le mauvais secteur remplit la condition de mappage de zone prédéfinie, vers la nouvelle zone réservée prédéfinie, et rediriger l'adresse physique correspondant à l'adresse logique de la zone de mauvaise piste vers l'adresse physique des données migrées ; selon l'adresse logique des données, lire les données dans la zone correspondant à l'adresse logique. Des modes de réalisation de l'invention concernent également le dispositif permettant de mapper un disque. Les modes de réalisation de l'invention réduisent la latence provoquée par le pivotement d'une tête magnétique.
PCT/CN2013/072036 2012-07-31 2013-03-01 Procédé et dispositif de remappage d'un disque WO2014019360A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210268767.3 2012-07-31
CN201210268767.3A CN103577114B (zh) 2012-07-31 2012-07-31 磁盘重映射方法和装置

Publications (1)

Publication Number Publication Date
WO2014019360A1 true WO2014019360A1 (fr) 2014-02-06

Family

ID=50027190

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/072036 WO2014019360A1 (fr) 2012-07-31 2013-03-01 Procédé et dispositif de remappage d'un disque

Country Status (2)

Country Link
CN (1) CN103577114B (fr)
WO (1) WO2014019360A1 (fr)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105320467B (zh) * 2014-08-05 2018-11-06 株式会社东芝 盘装置及盘装置的数据读方法
CN104794011B (zh) * 2015-02-04 2017-12-12 深圳神州数码云科数据技术有限公司 基于虚拟磁盘的坏块重定向方法及装置
CN108762685B (zh) * 2018-06-04 2021-06-22 平安科技(深圳)有限公司 Io挂死识别方法、装置、计算机装置及存储介质
CN112558859A (zh) * 2019-09-26 2021-03-26 杭州海康威视数字技术股份有限公司 硬盘、存储系统及硬盘容量标记方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1117637A (zh) * 1993-12-23 1996-02-28 国际商业机器公司 用于固定块磁盘驱动器的扇区结构
US5822142A (en) * 1996-07-26 1998-10-13 Western Digital Corporation Method of mapping logical sectors to physical sectors in a disk drive sparing partition
CN102306128A (zh) * 2011-09-16 2012-01-04 北京星网锐捷网络技术有限公司 磁盘管理方法、装置及网络设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6581167B1 (en) * 1999-02-01 2003-06-17 Matsushita Electric Industrial Co., Ltd. Information recording medium, information recording method and information recording/reproduction system
WO2006000947A1 (fr) * 2004-06-21 2006-01-05 Koninklijke Philips Electronics N.V. Gestions des defauts pour information en temps reel
CN102222033B (zh) * 2011-06-20 2017-07-11 中兴通讯股份有限公司 一种保存小型计算机系统接口访问错误的方法及装置
CN102508724B (zh) * 2011-10-25 2013-12-18 北京同有飞骥科技股份有限公司 一种基于软raid的磁盘坏块处理方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1117637A (zh) * 1993-12-23 1996-02-28 国际商业机器公司 用于固定块磁盘驱动器的扇区结构
US5822142A (en) * 1996-07-26 1998-10-13 Western Digital Corporation Method of mapping logical sectors to physical sectors in a disk drive sparing partition
CN102306128A (zh) * 2011-09-16 2012-01-04 北京星网锐捷网络技术有限公司 磁盘管理方法、装置及网络设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LI, YE ET AL.: "The disk failure management stragety of SATA Host Controller based on the whole hardware structure", 28 December 2011 (2011-12-28), pages 4 - 7, Retrieved from the Internet <URL:http://www.paper.edu.cn/releasepaper/content/201112-798> [retrieved on 20130521] *

Also Published As

Publication number Publication date
CN103577114A (zh) 2014-02-12
CN103577114B (zh) 2016-08-10

Similar Documents

Publication Publication Date Title
US9805762B2 (en) Band rewrite optimization
KR101086857B1 (ko) 데이터 머지를 수행하는 반도체 스토리지 시스템의 제어 방법
US9720860B2 (en) System and method for efficient processing of queued read commands in a memory system
JP4219602B2 (ja) 記憶制御装置および記憶制御装置の制御方法
US9317436B2 (en) Cache node processing
JP5786611B2 (ja) ストレージ装置およびストレージシステム
US7373477B2 (en) Fragmentation executing method and storage device
TWI531963B (zh) Data storage systems and their specific instruction enforcement methods
CN105280197A (zh) 使用区段重定位对数据存储装置进行数据管理
US6502178B1 (en) Method, system, and program for mapping logical addresses to high performance zones on a storage medium
WO2014019360A1 (fr) Procédé et dispositif de remappage d&#39;un disque
US10346051B2 (en) Storage media performance management
JP6089844B2 (ja) 制御装置,ストレージ装置,及び制御プログラム
KR20160055886A (ko) 동적 밴드 경계들
JP6065695B2 (ja) ストレージ制御方法、ストレージシステム、およびストレージ制御プログラム
JP2020004186A (ja) 情報処理システム、管理装置および制御方法
US10268394B2 (en) Data storage device performance optimization method and apparatus
US11682428B2 (en) Hard disk format conversion method and apparatus, and storage device
US7200771B2 (en) Relocation batch processing for disk drives
JP7404988B2 (ja) ストレージ制御装置、ストレージシステムおよびストレージ制御プログラム
JP6003364B2 (ja) 制御装置,ストレージ装置,制御方法,及び制御プログラム
JP3190546B2 (ja) ブロックアドレスの変換方法および回転型記憶サブシステムの制御方法ならびにディスクサブシステム
KR20110103142A (ko) 비휘발성 메모리 장치의 데이터 접근 방법 및 이를 수행하는 프로그램을 기록한 기록매체
US7669007B2 (en) Mirrored redundant array of independent disks (RAID) random access performance enhancement
US11301164B1 (en) Multi-actuator storage device with actuator selection

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13825677

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13825677

Country of ref document: EP

Kind code of ref document: A1