CN106844094A - A kind of Ile repair method and device - Google Patents
A kind of Ile repair method and device Download PDFInfo
- Publication number
- CN106844094A CN106844094A CN201611209586.8A CN201611209586A CN106844094A CN 106844094 A CN106844094 A CN 106844094A CN 201611209586 A CN201611209586 A CN 201611209586A CN 106844094 A CN106844094 A CN 106844094A
- Authority
- CN
- China
- Prior art keywords
- production system
- file
- data block
- block
- storage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1435—Saving, restoring, recovering or retrying at system level using file system or storage system metadata
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1469—Backup restoration techniques
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A kind of Ile repair method and device, are used to solve the problems, such as that the file system traffic existed when being repaired to the file in file system in the prior art is interrupted.Method includes:The first read requests that production system receiving terminal apparatus send, first read requests are used for the specified file for asking to read production system storage;Production system determines there is at least one bad block in the specified file that production system is stored;Production system sends the second read requests to standby system, wherein, the standby system and production system are stored with identical file, and second read requests are used to asking at least one data block corresponding with above-mentioned at least one bad block in the specified file for reading standby system storage;Production system is repaired according at least one data block to the specified file that production system is stored.
Description
Technical field
The present invention relates to technical field of memory, more particularly to a kind of Ile repair method and device.
Background technology
With continuing to develop for internet and information technology, the file such as local file system and distributed file system
Be stored with increasing file in system.The file stored in file system is made full use of, first have to ensure file can
By property.File reliability is improved in addition to carrying out redundancy backup to file, in addition it is also necessary to which the file to damaging is repaired.
Need to be operated manually by user when in the prior art repairing file.Such as, when by disaster tolerance side
When formula carries out redundancy backup to file system, the process that file is repaired can be as shown in Figure 1.Terminal device sends to production system to be read
The request of specified file is taken, when there is bad block in specified file and lead to not read specified file, production system is to terminal
Equipment reports an error, and reads service disconnection;After the reporting an error of production system is received, user is manually switched to and produces system to terminal device
System is stored with the disaster recovery and backup systems of same file, and the corresponding data block of bad block is returned to terminal device, terminal device by disaster recovery and backup systems
The data block is sent to production system, production system is repaired using the data block to the specified file that itself is stored.
As can be seen here, this file repair procedures need user's manual switching file system, and repair process can cause the industry of file system
Business is interrupted.
To sum up, there is asking for file system traffic interruption when being repaired to the file in file system in the prior art
Topic.
The content of the invention
The embodiment of the present invention provides a kind of Ile repair method and device, is used to solve in the prior art in file system
The problem interrupted of the file system traffic that exists when being repaired of file.
In a first aspect, the embodiment of the present invention provides a kind of Ile repair method, the method includes:Production system receiving terminal
The first read requests that equipment sends, the first read requests are used for the specified file for asking to read production system storage;Production system
After system determines to there is at least one bad block in the specified file that production system is stored, the second read requests are sent to standby system,
The standby system and production system are stored with identical file, and second read requests are used to ask to read standby system storage
At least one data block corresponding with least one bad block in specified file;Production system receives at least that standby system sends
After individual data block, the specified file that production system is stored can be repaired according at least one data block.
Using such scheme, because it is determined that there is at least one bad block in the specified file of itself storage in production system
Afterwards, the specified file that at least one data block corresponding with least one bad block for being sent according to standby system is stored to itself
Repaired, thus when the specified file of production system storage needs to repair, it is not necessary to by production system as prior art
Reported an error to terminal device, and interrupt reading business, be then manually switched to disaster recovery and backup systems by user to store production system
Specified file repaired.The Ile repair method provided using first aspect, production system can be sent according to standby system
At least one data block the specified file that itself is stored is repaired, because repair process is by production system and backup
What the interaction of system was realized, terminal device is not engaged in repair process, would not also perceive the execution of the repair process, therefore,
The repair process will not cause the reading service disconnection of terminal device, thus improve system for terminal device provides file read-write
The efficiency of service, it is to avoid the service disconnection of system;Additionally, production system is manual without user to the repair process of specified file
Participate in, simplify repair process, improve Consumer's Experience.
In above-mentioned first aspect, standby system and production system are stored with identical file can be by synchronous duplication, different
Step is replicated and three kinds of modes of backup are realized.Using different implementations, the specific of the specified file that production system is stored is repaired
Process can be different.
When wherein, using synchronous reproduction mode, standby system is completely the same with the file of storage in production system;Using different
Step is replicated or during backup mode, the file that standby system is periodically stored in synchronous production system, and standby system is with production
The data block included in the file stored in system is not necessarily completely the same.
When standby system is synchronously replicated with the file of production system storage, production system is according at least one data block pair
The specified file of production system storage is repaired, and can be realized by following process:Production system is receiving at least one number
After according to block, at least one data block is write under the storage address of at least one bad block, you can complete to store production system
Specified file repair process.
The file of production system storage, thus standby system and storage in production system are synchronously replicated with due to standby system
File it is completely the same.When production system is repaired to the specified file that itself is stored, can directly at least one bad block
At least one data block that standby system sends is write under storage address.Using such scheme, synchronously it is replicated with standby system
During the file of production system storage, there is provided a kind of method of the specified file of reparation production system storage.
When standby system asynchronous replication or backup have the file that production system is stored, production system is according at least one number
The specified file that production system is stored is repaired according to block, can be realized by following process:Production system is being received at least
At least one can be used after one data block based on the situation that whether at least one bad block is recorded in the difference bitmap of itself storage
Individual data block is repaired at least one bad block.
Wherein, production system uses at least one based on the situation that whether at least one bad block is recorded in difference bitmap
Data block is repaired at least one bad block, can specifically be realized in the following way:Do not recorded at least in dystopy of being on duty figure
During one bad block, production system writes at least one data block under the storage address of at least one bad block;Or dystopy of being on duty
When record has at least one bad block in figure, the modification mode of at least one bad block that production system is stored according to itself, at least
One data block is modified;Production system writes amended at least one data under the storage address of at least one bad block
Block.
There are the file of production system storage, thus standby system and production system due to standby system asynchronous replication or backup
The data block that the file of middle storage is included might not be completely the same.Production system is repaiied to the specified file that itself is stored
When multiple, it is necessary to be based on difference bitmap in whether record the situation of at least one bad block and repaired.Using such scheme, standby
When the system asynchronous duplication of part or backup have the file that production system is stored, there is provided a kind of specified text of reparation production system storage
The method of part.
Additionally, carrying out reparation to the specified file that production system is stored according at least one data block in production system
Afterwards, the specified file that production system is stored can be sent to terminal device by production system;Or, receive backup system in production system
Before at least one data block for sending of uniting, production system can also be by other numbers in specified file in addition at least one bad block
Terminal device is sent to according to block;After production system receives at least one data block that standby system sends, production system will
At least one data block is sent to terminal device.
Using such scheme, production system can not only repair the specified file of itself storage, can also be by said process
It is embodied as terminal device and the service for reading specified file is provided.
Second aspect, the embodiment of the present invention provides a kind of Ile repair method, and the method includes:Standby system receives production
The second read requests that system sends, the standby system and production system are stored with identical file, and production system storage
There is at least one bad block in specified file, second read requests are used in the specified file for ask reading standby system storage
At least one data block corresponding with least one bad block, at least one data block can be used for production system according to this at least one
Individual data block is repaired to the specified file that production system is stored;At least one data block is sent to production by standby system
System.
Using such scheme, in production system after it is determined that there is at least one bad block in the specified file of itself storage,
The finger that at least one data block corresponding with least one bad block that production system can send according to standby system is stored to itself
Determine file to be repaired, thus when the specified file of production system storage needs to repair, it is not necessary to by giving birth to as prior art
Product system reports an error to terminal device, and interrupts reading business, is then manually switched to disaster recovery and backup systems by user to be to production
The specified file for storing of uniting is repaired.The Ile repair method provided using second aspect, production system can be according to backup system
At least one data block for sending of uniting is repaired to the specified file that itself is stored, because repair process is by production system
With the interaction realization of standby system, terminal device is not engaged in repair process, would not also perceive the execution of the repair process,
Therefore, the repair process will not cause the reading service disconnection of terminal device, thus improve system for terminal device provides text
The efficiency of part read-write service, it is to avoid the service disconnection of system;Additionally, production system need not be used the repair process of specified file
Family participates in manually, simplifies repair process, improves Consumer's Experience.
The third aspect, the embodiment of the present invention provides a kind of file prosthetic device, and the device includes transceiver module, memory module
And repair module.Wherein, transceiver module is used for the first read requests that receiving terminal apparatus send, and the first read requests are used for please
Seek reading specified file;Memory module is used to store specified file;Repair module is used to determine the specified text of memory module storage
There is at least one bad block in part;Transceiver module is additionally operable to send the second read requests to standby system, and receives backup system
Unite at least one data block for sending, the standby system and production system are stored with identical file, second read requests are used
At least one data block corresponding with least one bad block in the specified file of standby system storage is read in request;Repair mould
Block, at least one data block for being additionally operable to be sent according to standby system is repaired to the specified file that memory module is stored.
Wherein, the file prosthetic device that the third aspect is provided can be considered the dress in the production system in the embodiment of the present invention
Put, the device can be used to repair the specified file of production system storage.
Using such scheme, because repair module is it is determined that bad in the presence of at least one in the specified file of memory module storage
After block, the specified file that memory module is stored is repaired according at least one data block that standby system sends, thus
When the specified file of memory module storage needs to repair, it is not necessary to reported an error to terminal device as prior art, and interrupt reading
Business, is then manually switched to disaster recovery and backup systems to repair the specified file that memory module is stored by user.The 3rd
In the file prosthetic device that aspect is provided, at least one data block that repair module can send according to standby system is to memory module
The specified file of storage is repaired, because repair process is the file prosthetic device and standby system by third aspect offer
Interaction realize, terminal device is not engaged in repair process, would not also perceive the execution of the repair process, therefore, this is repaiied
Multiple process will not cause the reading service disconnection of terminal device, thus improve file prosthetic device for terminal device provides file
Read and write the efficiency of service, it is to avoid the service disconnection of system;Additionally, repair module to the repair process of specified file without user
Participate in manually, simplify repair process, improve Consumer's Experience.
In the above-mentioned third aspect, standby system and memory module are stored with identical file can be by synchronous duplication, different
Step is replicated and three kinds of modes of backup are realized.Using different implementations, the specific of the specified file that memory module is stored is repaired
Process can be different.
When wherein, using synchronous reproduction mode, standby system is completely the same with the file of storage in memory module;Using different
Step is replicated or during backup mode, the file that standby system is periodically stored in synchronous memory module, standby system and storage mould
The data block included in the file stored in block is not necessarily completely the same.
When standby system is synchronously replicated with the file of memory module storage, repair module is according at least one data block
When specified file to memory module storage is repaired, transceiver module can be write under the storage address of at least one bad block and connect
At least one data block for receiving.
The file of memory module storage, thus standby system and storage in memory module are synchronously replicated with due to standby system
File it is completely the same.When repair module is repaired to the specified file that memory module is stored, can be directly bad at least one
At least one data block that standby system sends is write under the storage address of block.It is synchronously multiple in standby system using such scheme
When being formed with the file of memory module storage, there is provided a kind of method of the specified file of reparation memory module storage.
When standby system asynchronous replication or backup have the file that memory module is stored, repair module is according at least one
When data block repairs the specified file that memory module is stored, can be based on whether remembering in the difference bitmap of memory module storage
Record has the situation of at least one bad block, and at least one bad block is repaired using at least one data block.Wherein, difference bitmap
For carrying out modification in record storage module and standby system did not carried out the data block of corresponding modification.
Whether repair module records the situation of at least one bad block in based on difference bitmap, uses at least one data
When block is repaired at least one bad block, can specifically be realized by following process:At least one has not been recorded in dystopy of being on duty figure
During individual bad block, at least one data block is write under the storage address of at least one bad block;Or recorded in dystopy figure of being on duty and have
During at least one bad block, the modification mode according at least one bad block is modified at least one data block;At least one
Amended at least one data block is write under the storage address of bad block.Wherein, the modification mode of at least one bad block is stored
In memory module.
There are the file of memory module storage, thus standby system and memory module due to standby system asynchronous replication or backup
The data block that the file of middle storage is included might not be completely the same.Repair module is entered to the specified file that memory module is stored
Row when repairing, it is necessary to be based on difference bitmap in whether record the situation of at least one bad block and repaired.Using such scheme,
When standby system asynchronous replication or backup have the file that memory module is stored, there is provided a kind of finger of reparation memory module storage
The method for determining file.
Additionally, the specified file that transceiver module can also be stored according at least one data block in repair module to memory module
After being repaired, the specified file that memory module is stored is sent to terminal device;Or transceiver module can also receive standby
Before at least one data block that part system sends, other data blocks in specified file in addition at least one bad block are sent
To terminal device, then after at least one data block that standby system sends is received, at least one data block is sent to
Terminal device.
Using such scheme, the specified file that file prosthetic device can not only be stored by repair module to memory module
Repaired, the transceiver module of file prosthetic device can also provide the service for reading specified file for terminal device.
Fourth aspect, the embodiment of the present invention provides a kind of file prosthetic device, and the device includes memory module and transmitting-receiving mould
Block.
Memory module is used to store specified file;Transceiver module is used to receive the second read requests of production system transmission,
And at least one data block is sent to production system.Wherein, memory module and production system are stored with identical file, and
There is at least one bad block in the specified file of production system storage, second read requests are used to ask reading memory module to be deposited
At least one data block corresponding with least one bad block in the specified file of storage, at least one data block is used for production system
The specified file that production system is stored is repaired according at least one data block.
In production system after it is determined that there is at least one bad block in the specified file of itself storage, production system can basis
At least one data block corresponding with least one bad block that transceiver module sends is repaiied to the specified file that itself is stored
It is multiple, thus when the specified file of production system storage needs to repair, it is not necessary to from production system to terminal as prior art
Equipment reports an error, and interrupts reading business, is then manually switched to disaster recovery and backup systems by user to specify production system storage
File is repaired.The file prosthetic device provided using fourth aspect, production system can be sent at least according to transceiver module
One data block is repaired to the specified file that itself is stored, because repair process is carried by production system and fourth aspect
What the interaction of the file prosthetic device of confession was realized, terminal device is not engaged in repair process, would not also perceive the repair process
Execution, therefore, the repair process will not cause the reading service disconnection of terminal device, thus improve system for terminal device
There is provided the efficiency of file read-write service, it is to avoid the service disconnection of system;Additionally, repair process of the production system to specified file
Participated in manually without user, simplify repair process, improve Consumer's Experience.
5th aspect, the embodiment of the present invention provides a kind of computer-readable recording medium, in computer-readable recording medium
Be stored with computer executed instructions, when at least one computing device of the calculate node computer executed instructions, calculates section
Point perform above-mentioned first aspect or first aspect it is various may the methods that provide of design, or perform above-mentioned second aspect or
The various of person's second aspect may design the method for providing.
6th aspect, the embodiment of the present invention provides a kind of computer program product, and the computer program product includes calculating
Machine execute instruction, the computer executed instructions are stored in a computer-readable storage medium.At least one treatment of calculate node
Device can read the computer executed instructions, the computer execution of at least one computing device from computer-readable recording medium
Instruction causes that calculate node implements above-mentioned first aspect or the various of first aspect and may design the method for providing, or implements
Above-mentioned second aspect or the various of second aspect may design the method for providing.
Brief description of the drawings
The schematic flow sheet of the process of the file reparation that Fig. 1 is provided for prior art;
Fig. 2 is the schematic flow sheet of the first file writing process provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of second file writing process provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the third file writing process provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic flow sheet of Ile repair method provided in an embodiment of the present invention;
Fig. 6 is the structural representation of the first file prosthetic device provided in an embodiment of the present invention;
Fig. 7 is the structural representation of second file prosthetic device provided in an embodiment of the present invention;
Fig. 8 is the structural representation of the third file prosthetic device provided in an embodiment of the present invention;
Fig. 9 is the structural representation of the 4th kind of file prosthetic device provided in an embodiment of the present invention;
Figure 10 is a kind of structural representation of file system provided in an embodiment of the present invention.
Specific embodiment
The above-mentioned purpose of embodiment, scheme and advantage for a better understanding of the present invention, provided hereinafter detailed description.Should
Describe in detail by using the accompanying drawings such as block diagram, flow chart and/or example, illustrate the various implementation methods of device and/or method.
In these block diagrams, flow chart and/or example, comprising one or more functions and/or operation.It will be appreciated by those skilled in the art that
Arrive:Each function and/or operation in these block diagrams, flow chart or example, can be by various hardware, software, solid
Part is separately or cooperatively implemented, or any combination implementation for passing through hardware, software and firmware.
The present embodiments relate to be repaired to specified file, wherein, specified file is to be carried using the embodiment of the present invention
The file that the Ile repair method of confession is repaired, the file type in the embodiment of the present invention to specified file is not limited, only
Wanting certain file in production system can be repaired using Ile repair method provided in an embodiment of the present invention, this document
It is considered as specified file.It is related to two file system, i.e. production system and standby system when being repaired to specified file.
Wherein, production system is used to provide file read-write service for terminal device, and standby system is stored with production system
Identical file.That is, when the specified file stored in production system is not damaged, production system can be carried for terminal device
For file read-write service;When partial data block is damaged in the specified file stored in production system, production system can be according to standby
The specified file stored in part system is repaired to the specified file that itself is stored, and after the completion of reparation, production system can continue
For terminal device provides file read-write service;When the file stored in production system cannot be repaired, user can be set by terminal
It is standby that standby system is switched to the file system for providing file read-write service.
Standby system and production system are stored with identical file, can be realized by following three kinds of modes:
First way:It is synchronous to replicate
The file that standby system is synchronously replicated with production system storage can be realized by the file writing process shown in Fig. 2.
In Fig. 2, it is assumed that terminal device will include this five data blocks of A, B, C, D and E to the file 1 write in production system, then eventually
End equipment in production system write file 1 when, it is necessary to be respectively written into five data blocks of A, B, C, D and E to production system.To write
As a example by entering data block A, terminal device writing data blocks A first in production system, then production system sent to standby system
The instruction of writing data blocks A, after standby system is successfully written data block A, standby system sends to production system and writes successfully
Instruction message, it is successful that production system sends write-in after confirming that standby system is successfully written into data block A, to terminal device
Indicate message.Data block B, C, D are identical with the ablation process of data block A with the ablation process of E, and here is omitted.Work as data
After block A, B, C, D and E complete ablation process, that is, complete the ablation process of file 1.
Additionally, when standby system is synchronously replicated with the file of production system storage, if terminal device will be to production system
The data block of middle storage is modified, it is also desirable to while the respective data blocks to being stored in standby system are modified.
The second way:Asynchronous replication
The file that standby system asynchronous replication has production system storage can be realized by the file writing process shown in Fig. 3.
In figure 3, need to configure synchronizing cycle between standby system and production system, when not arriving synchronizing cycle, for terminal device
To the data block that production system writes, production system only need to record the data block in the difference bitmap of itself storage, and nothing
The data block need to be write standby system;When arriving synchronizing cycle, production system writes the data block recorded in difference bitmap
Enter standby system.Such as, terminal device will include this five data blocks of A, B, C, D and E to the file 1 write in production system,
Assuming that at the end of a upper synchronizing cycle, A, B, C these three data blocks were had been written into production system and standby system.
When this synchronizing cycle does not arrive, terminal device is recorded to production system writing data blocks D, production system in difference bitmap
Data block D, then to production system writing data blocks E, production system records data block E to terminal device in difference bitmap;
When arriving this synchronizing cycle, data block D and data block E the write-in standby system that production system will be recorded in difference bitmap.
Additionally, when the file that standby system asynchronous replication has production system to store, if terminal device will be to production system
The data block of middle storage is modified, and production system need to be recorded in difference bitmap when not arriving synchronizing cycle and repaiied
The data block for changing.When arriving synchronizing cycle, the data block that production system will be recorded in difference bitmap writes standby system.
Especially, when standby system is synchronously replicated or asynchronous replication has the file that production system is stored, standby system is again
It is properly termed as disaster recovery and backup systems.Production system can not only be carried out according to the file stored in disaster recovery and backup systems to the file for itself storing
Repair, and when production system is stopped because of unexpected (such as fire, earthquake), user can be by terminal device by the standby system of calamity
System switches to the file system for providing file read-write service, and it is literary that disaster recovery and backup systems can continue as terminal device offer instead of production system
Part read-write service.
The third mode:Backup
The file that standby system backup has production system storage can be realized by the file writing process shown in Fig. 4.With it is standby
The system asynchronous process for replicating the file in production system of part is similar to, and backup has the file stored in production system in standby system
Process standby system can be write by the data block that will periodically record in difference bitmap and realize.With asynchronous replication process
Unlike, for certain file, multiple copies may be backed up in standby system.Such as, terminal device will be to production
The file 1 write in system includes this five data blocks of A, B, C, D and E, it is assumed that at the end of a upper synchronizing cycle, production system
With A, B, C these three data blocks have been had been written into standby system, the copy 1 of file 1 is by data block A, B, C groups in standby system
Into.When not arriving this synchronizing cycle, to production system writing data blocks D, production system is in difference bitmap for terminal device
Data block D is recorded, then to production system writing data blocks E, production system records number to terminal device in difference bitmap
According to block E;When arriving this synchronizing cycle, production system backups to the data block D and data block E that are recorded in difference bitmap standby
In part system, the copy 2 of file 1 is made up of data block A, B, C, D, E in standby system.Wherein, copy 2 is the pair of latest edition
This.
Additionally, when standby system backup has the file that production system is stored, if terminal device will be in production system
Data block is modified, and production system need to be recorded in difference bitmap when not arriving synchronizing cycle and carry out the data of modification
Block.When arriving synchronizing cycle, the data block that production system will be recorded in difference bitmap writes standby system, forms another secondary
This.
In above-mentioned three kinds of modes, during using synchronous reproduction mode, standby system is complete with the file of storage in production system
It is complete consistent;During using asynchronous replication or backup mode, the file that standby system is periodically stored in synchronous production system, backup
The data block included in the file stored in system and production system is not necessarily completely the same.Deposited in standby system and production system
The not necessarily completely the same concrete meaning of the data block included in the file of storage is:The text stored in standby system and production system
Part is identical, but for identical file, when not arriving synchronizing cycle, production system may be to some of this document data block
It is modified, and the data block that will be changed is recorded in difference bitmap, but because the time that the modification occurs is synchronizing cycle
Before arrival, therefore data block in standby system in this document does not make corresponding modification.
In the prior art, it is necessary to be operated manually by user when being repaired to the file stored in production system.
When production system determines that some data blocks have been damaged in the file of itself storage, production system reports an error to terminal device, reads
Service disconnection;After the reporting an error of production system is received, user is manually switched to standby system to terminal device, and standby system will be bad
The corresponding data block of block returns to terminal device, and the data block is sent to production system by terminal device, and production system is available
The data block is repaired to the data block damaged in corresponding document.This file repair procedures need user's manual switching file
System, repair process can cause production system to stop as terminal device provides file read-write service, that is, cause the industry of file system
Business is interrupted.
In order to the file system traffic existed when solving and being repaired to the file in file system in the prior art is interrupted
Problem, the embodiment of the present invention provides a kind of Ile repair method.As shown in figure 5, the method comprises the following steps:
S501:The first read requests that production system receiving terminal apparatus send.
First read requests are used for the specified file for asking to read production system storage.
In the embodiment of the present invention, terminal device includes but is not limited to smart mobile phone, intelligent watch, panel computer, virtual existing
It is real (Virtual Reality, VR) equipment, augmented reality (Augmented Reality, AR) equipment, personal computer, hand-held
Formula computer, personal digital assistant.
S502:Production system determines there is at least one bad block in the specified file that production system is stored.
S503:Production system sends the second read requests to standby system.
Wherein, standby system and production system are stored with identical file, and the second read requests are used to ask to read backup
At least one data block corresponding with least one bad block in the specified file of system storage.
Wherein, at least one data block is data block corresponding with least one bad block.Assuming that stored in production system
File 1 includes five data blocks of A, B, C, D, E, and data block C therein and data block D is two bad blocks, then in standby system
The file 1 of storage also includes five data blocks of A, B, C, D, E, is with one-to-one two data blocks of at least the above two bad blocks
It is the data block C and data block D that are stored in standby system.
S504:Standby system sends at least one data block to production system.
S505:Production system is repaired according at least one data block to the specified file that production system is stored.
In the embodiment of the present invention, standby system is stored with identical file with production system can be by above-mentioned three kinds of mode realities
It is existing, i.e., synchronous duplication, asynchronous replication and backup, here is omitted.
Alternatively, production system, can be by after reparation after execution S505 is repaired to the specified file that itself is stored
Specified file is sent to terminal device, so as to after the completion of specified file reparation, realize that production system provides reading for terminal device
Take the service of specified file.
Alternatively, production system, can also be in specified file except extremely before S504 at least one data blocks of reception are performed
Other data blocks outside a few bad block are sent to terminal device;After performing S504 and receiving at least one data block, also
At least one data block can be sent to terminal device, so that, production system can be real while being repaired to specified file
Now for terminal device provides file read-write service.
Standby system and production system are stored with identical file when being realized by above-mentioned three kinds of modes, using different realities
Existing mode, the specific implementation for repairing the specified file of production system storage can be different.
When standby system is synchronously replicated with the file of production system storage, in S505, production system is according at least one
Data block is repaired to the specified file that production system is stored, and can be realized in the following way:Production system receive to
After a few data block, at least one data block is write under the storage address of at least one bad block, you can complete to production
The repair process of the specified file of system storage.
The file of production system storage, thus standby system and storage in production system are synchronously replicated with due to standby system
File it is completely the same.When production system is repaired to the specified file that itself is stored, can directly at least one bad block
At least one data block that standby system sends is write under storage address.Using such scheme, synchronously it is replicated with standby system
During the file of production system storage, there is provided a kind of method of the specified file of reparation production system storage.
When standby system asynchronous replication or backup have the file that production system is stored, in S505, production system is according to standby
At least one data block that part system sends is repaired to the specified file that production system is stored, can be real in the following way
It is existing:Whether production system has recorded at least one in it can be based on the difference bitmap of itself storage after receiving at least one data block
The situation of individual bad block, is repaired using at least one data block at least one bad block.Wherein, difference bitmap is used to record life
Modification was carried out in product system and standby system did not carried out the data block of corresponding modification.
There are the file of production system storage, thus standby system and production system due to standby system asynchronous replication or backup
The data block that the file of middle storage is included might not be completely the same.Production system is repaiied to the specified file that itself is stored
When multiple, it is necessary to be based on difference bitmap in whether record the situation of at least one bad block and repaired.Using such scheme, standby
When the system asynchronous duplication of part or backup have the file that production system is stored, there is provided a kind of specified text of reparation production system storage
The method of part.
Specifically, whether production system records the situation of at least one bad block to specified file in based on difference bitmap
When being repaired, there are following two situations:
The first situation
When not recorded at least one bad block in dystopy of being on duty figure, production system is under the storage address of at least one bad block
Write at least one data block, you can complete the repair process of the specified file to production system storage;
Second situation
Record is when having at least one bad block in dystopy of being on duty figure, production system stored according to itself at least one bad block
The modification mode modified, is accordingly changed at least one data block, and at least one bad block after the completion of modification
Storage address under write amended at least one data block.
When standby system asynchronous replication or backup have the specified file that production system is stored, because standby system is only same
Step period carries out the synchronous of data block when arriving with production system, therefore, need to store variant bitmap in production system, for remembering
Which data block is recorded to carry out not carrying out the corresponding data block changed in modification, standby system in production system.Additionally, raw
The modification mode of the data block recorded in variant bitmap can be also stored in product system, so that production system itself is deposited in reparation
During the specified file of storage, the modification mode according at least one bad block makes corresponding modification at least one data block.
It should be noted that when record has the partial data block at least one bad block in dystopy figure of being on duty, production system
After at least one data block is received, the modification mode of the partial data block that can be stored according to itself is entered to partial data block
Row modification, and at least one data block of partial data block will be changed as amended at least one data block, then will
Amended at least one data block writes on the storage address of at least one bad block, you can completion is specified to production system storage
The repair process of file.
Such as, four bad block A, B, C, D are included in the specified file of production system storage, then corresponding with four bad blocks
Four data blocks are that tetra- data blocks of A, B, C, D in the specified file of standby system storage, i.e. production system send the second reading
After taking request, tetra- data blocks of A, B, C, D can be sent to production system by standby system.If record has A and B two in difference bitmap
Individual data block, i.e. A and B carried out modification in production system, corresponding modification were not carried out in standby system, then production system
Unite after tetra- data blocks of A, B, C, D for receiving standby system transmission, can be according to the A and the modification mode pair of B for itself storing
Data block A and data block B in tetra- data blocks of A, B, C, D that standby system sends modify, and will change A's and B
Then amended four data blocks are write on four storages of bad block by four data blocks as amended four data blocks
Location.
Using the Ile repair method shown in Fig. 5, because production system in the specified file of itself storage it is determined that exist
After at least one bad block, itself is deposited according at least one data block corresponding with least one bad block that standby system sends
The specified file of storage is repaired, thus production system storage specified file need repair when, it is not necessary to as prior art that
Sample is reported an error from production system to terminal device, and interrupts reading business, is then manually switched to disaster recovery and backup systems come right by user
The specified file of production system storage is repaired.Using Ile repair method provided in an embodiment of the present invention, production system can
The specified file that itself is stored is repaired according at least one data block that standby system sends, because repair process is logical
The interaction realization of production system and standby system is crossed, terminal device is not engaged in repair process, would not also perceive the reparation
The execution of process, therefore, the repair process will not cause the reading service disconnection of terminal device, thus improve system for terminal
Equipment provides the efficiency of file read-write service, it is to avoid the service disconnection of system;Additionally, reparation of the production system to specified file
Process is participated in manually without user, simplifies repair process, improves Consumer's Experience.
The embodiment of the present invention provides a kind of file prosthetic device, and the device can be used to perform the file reparation side shown in Fig. 5
Operation in method performed by production system.As shown in fig. 6, the device 600 includes transceiver module 601, memory module 602 and repairs
Module 603.
Wherein, transceiver module 601 is used for the first read requests that receiving terminal apparatus send, and first read requests are used for
Specified file is read in request;Memory module 602, for storing specified file;Repair module 603, for determining memory module 602
There is at least one bad block in the specified file of storage;Transceiver module 601 is additionally operable to send the second read requests to standby system,
And receiving at least one data block that standby system sends, the standby system and production system are stored with identical file, should
Second read requests are used to ask to read corresponding with least one bad block at least one in the specified file that standby system is stored
Data block;Repair module 603, is additionally operable to memory module 602 is stored according at least one data block of standby system transmission
Specified file is repaired.
Alternatively, standby system and memory module 602 are stored with identical file, specially:Standby system is synchronously replicated
There is the file that memory module 602 is stored.
Alternatively, repair module 603 is stored at least one data block sent according to standby system to memory module 602
Specified file when being repaired, specifically for:At least one data block is write under the storage address of at least one bad block.
Alternatively, standby system and memory module 602 are stored with identical file, specially:Standby system asynchronous replication
Or backup has the file that memory module 602 is stored.
Alternatively, memory module 602 is additionally operable to:Storage difference bitmap, difference bitmap is used to enter in record storage module 602
Went modification and standby system did not carried out the data block of corresponding modification;Repair module 603 according to standby system send to
When a few data block is repaired to the specified file that memory module 602 is stored, specifically for:Based in difference bitmap whether
Record has the situation of at least one bad block, and at least one bad block is repaired using at least one data block.
Alternatively, memory module 602 is additionally operable to store the modification mode of at least one bad block;Repair module 603 is being based on
Whether the situation of at least one bad block is recorded in difference bitmap, at least one bad block is repaiied using at least one data block
When multiple, specifically for:When not recorded at least one bad block in dystopy of being on duty figure, write under the storage address of at least one bad block
Enter at least one data block;Or record when having at least one bad block in dystopy figure of being on duty, according to the modification of at least one bad block
Mode, modifies at least one data block;Amended at least one is write under the storage address of at least one bad block
Data block.
Alternatively, transceiver module 601 is additionally operable at least one data block sent according to standby system in repair module 603
After being repaired to the specified file that memory module 602 is stored, the specified file that memory module 602 is stored can be sent to end
End equipment;Or, transceiver module 601 will be removed before at least one data block that standby system sends is received in specified file
Other data blocks outside at least one bad block are sent to terminal device, and are receiving at least one data that standby system sends
After block, at least one data block is sent to terminal device.
In file prosthetic device 600, because repair module 603 is it is determined that in the specified file of the storage of memory module 602
After in the presence of at least one bad block, the specified text that at least one data block sent according to standby system is stored to memory module 602
Part is repaired, thus when the specified file of the storage of memory module 602 needs to repair, it is not necessary to terminal as prior art
Equipment reports an error, and interrupts reading business, the finger for being then manually switched to disaster recovery and backup systems by user to store memory module 602
Determine file to be repaired.In file prosthetic device 600, at least one number that repair module 603 can send according to standby system
The specified file that memory module 602 is stored is repaired according to block, because repair process is by file prosthetic device 600 and standby
What the interaction of part system was realized, terminal device is not engaged in repair process, would not also perceive the execution of the repair process, because
This, the repair process will not cause the reading service disconnection of terminal device, thus improve file prosthetic device for terminal device
There is provided the efficiency of file read-write service, it is to avoid the service disconnection of system;Additionally, reparation of the repair module 603 to specified file
Process is participated in manually without user, simplifies repair process, improves Consumer's Experience.
It should be noted that file prosthetic device 600 provided in an embodiment of the present invention can be used to perform the file shown in Fig. 5
The operation that production system is performed in restorative procedure, file prosthetic device 600 is not explained in detail and the implementation that describes is referred to
The associated description in Ile repair method shown in Fig. 5.
It should be noted that the division in the embodiment of the present invention to module is schematical, only a kind of logic function
Divide, there can be other dividing mode when actually realizing.In addition, each functional module in the application each embodiment can be with
It is integrated in a processing module, or modules is individually physically present, it is also possible to two or more module collection
In Cheng Yi module.Above-mentioned integrated module can both be realized in the form of hardware, it would however also be possible to employ software function module
Form realize.
Based on above example, the embodiment of the present invention additionally provides a kind of file prosthetic device, and this document prosthetic device can
To perform the method that the corresponding embodiments of Fig. 5 are provided, can be identical with the file prosthetic device 600 shown in Fig. 6.
Referring to Fig. 7, file prosthetic device 700 includes at least one processor 701, memory 702 and communication interface 703;
At least one processor 701, the memory 702 and the communication interface 703 are connected by bus 704;
The memory 702, for storing computer executed instructions;
At least one processor 701, the computer executed instructions for performing the storage of the memory 702 so that
The file prosthetic device 700 is carried out by the communication interface 703 with miscellaneous equipment (such as terminal device and standby system)
Data interaction come perform above-described embodiment offer Ile repair method.
At least one processor 701, can include different types of processor 701, or the treatment including same type
Device 701;Processor 701 can be any one following:Central processing unit (Central Processing Unit, referred to as
CPU), arm processor, field programmable gate array (Field Programmable Gate Array, abbreviation FPGA), special
Processor etc. is with the device for calculating disposal ability.A kind of optional embodiment, at least one processor 701 can also collect
As many-core processor.
Memory 702 can be any one following or any one combination:Random access memory (Random Access
Memory, abbreviation RAM), read-only storage (read only memory, abbreviation ROM), nonvolatile memory (non-
Volatile memory, abbreviation NVM), solid state hard disc (Solid State Drives, abbreviation SSD), mechanical hard disk, disk,
The storage mediums such as disk array.
Communication interface 703 is carried out for file prosthetic device 700 with other equipment (such as terminal device and standby system)
Data interaction.Communication interface 703 can be any one following or any one combination:Network interface (such as Ethernet interface),
The device with network access facility such as wireless network card.
The bus 704 can be including address bus, data/address bus, controlling bus etc., for ease of representing, Fig. 7 is thick with one
Line represents the bus.Bus 704 can be any one following or any one combination:Industry standard architecture (Industry
Standard Architecture, abbreviation ISA) bus, peripheral component interconnection (Peripheral Component
Interconnect, abbreviation PCI) bus, EISA (Extended Industry Standard
Architecture, abbreviation EISA) wired data transfer such as bus device.
The embodiment of the present invention provides a kind of file prosthetic device, and the device can be used to perform the file reparation side shown in Fig. 5
Operation in method performed by standby system.As shown in figure 8, the device 800 includes memory module 801 and transceiver module 802.
Memory module 801, for storing specified file;
Transceiver module 802, the second read requests for receiving production system transmission, and will at least one data block hair
Give production system.Wherein, the memory module 801 and production system are stored with identical file, and production system storage is specified
There is at least one bad block in file, second read requests are used in the specified file for ask the reading storage of memory module 801
At least one data block corresponding with least one bad block, at least one data block be used for production system according to this at least one
Data block is repaired to the specified file that production system is stored.
In production system after it is determined that there is at least one bad block in the specified file of itself storage, production system can basis
At least one data block corresponding with least one bad block that transceiver module 802 sends is carried out to the specified file for itself storing
Repair, thus when the specified file of production system storage needs to repair, it is not necessary to from production system to end as prior art
End equipment reports an error, and interrupts reading business, the finger for being then manually switched to disaster recovery and backup systems by user to store production system
Determine file to be repaired.The file prosthetic device provided using fourth aspect, what production system can send according to transceiver module 802
At least one data block is repaired to the specified file that itself is stored, because repair process is repaiied by production system and file
What the interaction of apparatus for coating 800 was realized, terminal device is not engaged in repair process, would not also perceive the execution of the repair process,
Therefore, the repair process will not cause to read service disconnection, thus improve system for terminal device provides file read-write service
Efficiency, it is to avoid the service disconnection of system;Additionally, production system is joined manually to the repair process of specified file without user
With, repair process is simplified, improve Consumer's Experience.
It should be noted that file prosthetic device 800 provided in an embodiment of the present invention can be used to perform the file shown in Fig. 5
The operation that standby system is performed in restorative procedure, file prosthetic device 800 is not explained in detail and the implementation that describes is referred to
The associated description in Ile repair method shown in Fig. 5.
Based on above example, the embodiment of the present invention additionally provides a kind of file prosthetic device, and this document prosthetic device can
To perform the method that the corresponding embodiments of Fig. 5 are provided, can be identical with the file prosthetic device 800 shown in Fig. 8.
Referring to Fig. 9, file prosthetic device 900 includes at least one processor 901, memory 902 and communication interface 903;
At least one processor 901, the memory 902 and the communication interface 903 are connected by bus 904;
The memory 902, for storing computer executed instructions;
At least one processor 901, the computer executed instructions for performing the storage of the memory 902 so that
The file prosthetic device 900 is carried out by the communication interface 903 with miscellaneous equipment (such as terminal device and production system)
Data interaction come perform above-described embodiment offer Ile repair method.
At least one processor 901, can include different types of processor 901, or the treatment including same type
Device 901;Processor 901 can be that following any one CPU, arm processor, FPGA, application specific processor etc. is processed with calculating
The device of ability.A kind of optional embodiment, at least one processor 901 can also be integrated into many-core processor.
Memory 902 can be any one following or any one combination:RAM, ROM, NVM, SSD, mechanical hard disk, magnetic
The storage mediums such as disk, disk array.
Communication interface 903 is carried out for file prosthetic device 900 with other equipment (such as terminal device and production system)
Data interaction.Communication interface 903 can be any one following or any one combination:Network interface (such as Ethernet interface),
The device with network access facility such as wireless network card.
The bus 904 can be including address bus, data/address bus, controlling bus etc., for ease of representing, Fig. 9 is thick with one
Line represents the bus.Bus 904 can be any one following or any one combination:Isa bus, pci bus, eisa bus etc.
The device of wired data transfer.
The embodiment of the present invention also provides a kind of file system.As shown in Figure 10, this document system 1000 is comprising shown in Fig. 6
File prosthetic device 800 shown in file prosthetic device 600 and Fig. 8, the He of file prosthetic device 600 in this document system 1000
File prosthetic device 800 can be interacted, so as to complete the Ile repair method shown in Fig. 5.
To sum up, using Ile repair method provided in an embodiment of the present invention and device, production system can be according to standby system
Send at least one data block the specified file that itself store is repaired, due to repair process be by production system with
What the interaction of standby system was realized, terminal device is not engaged in repair process, would not also perceive the execution of the repair process, because
This, the repair process will not cause the reading service disconnection of terminal device, thus improve system for terminal device provides file
Read and write the efficiency of service, it is to avoid the service disconnection of system;Additionally, production system to the repair process of specified file without user
Participate in manually, simplify repair process, improve Consumer's Experience.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.And, the present invention can be used and wherein include the computer of computer usable program code at one or more
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) is produced
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions
The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger
Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described
Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without deviating from this hair to the embodiment of the present invention
The spirit and scope of bright embodiment.So, if these modifications of the embodiment of the present invention and modification belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to comprising these changes and modification.
Claims (16)
1. a kind of Ile repair method, it is characterised in that including:
The first read requests that production system receiving terminal apparatus send, first read requests are used to ask to read the life
The specified file of product system storage;
The production system determines there is at least one bad block in the specified file that the production system is stored;
The production system sends the second read requests to standby system, and the standby system and the production system are stored with phase
With file, second read requests are used to asking in the specified file for reading standby system storage and described at least one
Corresponding at least one data block of individual bad block;
The production system receives at least one data block that the standby system sends;
The production system is repaired according at least one data block to the specified file that the production system is stored.
2. the method for claim 1, it is characterised in that the standby system and the production system are stored with identical
File, specially:The standby system is synchronously replicated with the file of the production system storage.
3. method as claimed in claim 2, it is characterised in that the production system is according at least one data block to institute
The specified file for stating production system storage is repaired, including:
The production system writes at least one data block under the storage address of at least one bad block.
4. the method for claim 1, it is characterised in that the standby system and the production system are stored with identical
File, specially:The standby system asynchronous replication or backup have the file of the production system storage.
5. method as claimed in claim 4, it is characterised in that the production system is according at least one data block to institute
The specified file for stating production system storage is repaired, including:
Whether the production system records the situation of at least one bad block in the difference bitmap based on itself storage, use
At least one data block is repaired at least one bad block, and the difference bitmap is used to record the production system
In do not carried out in modification and the standby system data block of corresponding modification.
6. method as claimed in claim 5, it is characterised in that whether the production system is based on being recorded in difference bitmap
The situation of at least one bad block is stated, at least one bad block is repaired using at least one data block, including:
When at least one bad block has not been recorded in the difference bitmap, the production system is at least one bad block
Storage address under write at least one data block;Or
When in the difference bitmap record have at least one bad block when, the production system according to itself storage described in extremely
A few modification mode for bad block, modifies at least one data block;The production system is described at least one
Amended at least one data block is write under the storage address of bad block.
7. the method as described in any one of claim 1~6, it is characterised in that in the production system at least according to
After individual data block is repaired to the specified file that the production system is stored, also include:The production system is by the life
The specified file of product system storage is sent to the terminal device;Or
Before the production system receives at least one data block that the standby system sends, also include:The life
Other data blocks in the specified file in addition at least one bad block are sent to the terminal device by product system;
The production system is received after at least one data block that the standby system sends, and is also included:The production system
At least one data block is sent to the terminal device.
8. a kind of Ile repair method, it is characterised in that including:
Standby system receives the second read requests that production system sends, and the standby system and the production system are stored with phase
, there is at least one bad block in same file, second read requests are used for please in the specified file of the production system storage
At least one data block corresponding with least one bad block in the specified file for reading the standby system storage is sought, it is described
At least one data block is specified according at least one data block for the production system to the production system storage
File is repaired;
At least one data block is sent to the production system by the standby system.
9. a kind of file prosthetic device, it is characterised in that including:
Transceiver module, for the first read requests that receiving terminal apparatus send, first read requests are used to ask to read
Specified file;
Memory module, for storing the specified file;
Repair module, for there is at least one bad block in the specified file for determining the memory module storage;
The transceiver module, is additionally operable to send the second read requests, the standby system and the production system to standby system
The identical that is stored with file, second read requests are used in the specified file for ask the reading standby system storage and institute
State corresponding at least one data block of at least one bad block;Receive at least one data block that the standby system sends;
The repair module, is additionally operable to carry out the specified file that the memory module is stored according at least one data block
Repair, the standby system and the memory module are stored with identical file.
10. device as claimed in claim 9, it is characterised in that the standby system is stored with identical with the memory module
File, specially:The standby system is synchronously replicated with the file of the memory module storage.
11. devices as claimed in claim 10, it is characterised in that the repair module is according at least one data block
When specified file to memory module storage is repaired, specifically for:In the storage address of at least one bad block
Lower write-in at least one data block.
12. devices as claimed in claim 9, it is characterised in that the standby system is stored with identical with the memory module
File, specially:The standby system asynchronous replication or backup have the file of the memory module storage.
13. devices as claimed in claim 12, it is characterised in that the memory module is additionally operable to:Storage difference bitmap, it is described
Difference bitmap is used to recording to carry out in the memory module not carrying out the number of corresponding modification in modification and the standby system
According to block;
The repair module is repaired according at least one data block to the specified file that the memory module is stored
When, specifically for:Based on the situation that whether at least one bad block is recorded in the difference bitmap, described at least one is used
Individual data block is repaired at least one bad block.
14. devices as claimed in claim 13, it is characterised in that the memory module is additionally operable to:Store described at least one
The modification mode of bad block;
Whether the repair module records the situation of at least one bad block in based on the difference bitmap, using described
When at least one data block is repaired at least one bad block, specifically for:Do not recorded when in the difference bitmap
During at least one bad block, at least one data block is write under the storage address of at least one bad block;Or
When record has at least one bad block in the difference bitmap, according to the modification mode of at least one bad block,
At least one data block is modified;Write under the storage address of at least one bad block it is amended it is described extremely
A few data block.
15. device as described in any one of claim 9~14, it is characterised in that the transceiver module is additionally operable to:
The specified file that the memory module is stored is repaired according at least one data block in the repair module
Afterwards, the specified file that the memory module is stored is sent to the terminal device;Or
Before at least one data block that the standby system sends is received, will in the specified file except it is described at least
Other data blocks outside one bad block are sent to the terminal device;Receiving at least one described in the standby system transmission
After individual data block, at least one data block is sent to the terminal device.
A kind of 16. file prosthetic devices, it is characterised in that including:
Memory module, for storing specified file;
Transceiver module, the second read requests for receiving production system transmission, the memory module is deposited with the production system
Identical file is contained, there is at least one bad block, second read requests in the specified file of the production system storage
For at least one data corresponding with least one bad block in the specified file for asking to read the memory module storage
Block, at least one data block is stored according at least one data block for the production system to the production system
Specified file repaired;At least one data block is sent to the production system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611209586.8A CN106844094B (en) | 2016-12-23 | 2016-12-23 | File repair method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611209586.8A CN106844094B (en) | 2016-12-23 | 2016-12-23 | File repair method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106844094A true CN106844094A (en) | 2017-06-13 |
CN106844094B CN106844094B (en) | 2021-01-29 |
Family
ID=59136685
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611209586.8A Active CN106844094B (en) | 2016-12-23 | 2016-12-23 | File repair method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106844094B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020151002A1 (en) * | 2019-01-25 | 2020-07-30 | 华为技术有限公司 | Data repair method and device |
WO2024040919A1 (en) * | 2022-08-24 | 2024-02-29 | 华为技术有限公司 | Data recovery method and storage device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1801107A (en) * | 2006-01-12 | 2006-07-12 | 上海洲信信息技术有限公司 | Data recovery method |
CN101777013A (en) * | 2009-01-12 | 2010-07-14 | 成都市华为赛门铁克科技有限公司 | Solid state disk and data read-write method |
CN102880530A (en) * | 2012-09-25 | 2013-01-16 | 东莞宇龙通信科技有限公司 | Terminal and terminal backup and recovery method |
CN103617097A (en) * | 2013-11-19 | 2014-03-05 | 华为技术有限公司 | File recovery method and file recovery device |
CN103873503A (en) * | 2012-12-12 | 2014-06-18 | 鸿富锦精密工业(深圳)有限公司 | Data block backup system and method |
-
2016
- 2016-12-23 CN CN201611209586.8A patent/CN106844094B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1801107A (en) * | 2006-01-12 | 2006-07-12 | 上海洲信信息技术有限公司 | Data recovery method |
CN101777013A (en) * | 2009-01-12 | 2010-07-14 | 成都市华为赛门铁克科技有限公司 | Solid state disk and data read-write method |
CN102880530A (en) * | 2012-09-25 | 2013-01-16 | 东莞宇龙通信科技有限公司 | Terminal and terminal backup and recovery method |
CN103873503A (en) * | 2012-12-12 | 2014-06-18 | 鸿富锦精密工业(深圳)有限公司 | Data block backup system and method |
CN103617097A (en) * | 2013-11-19 | 2014-03-05 | 华为技术有限公司 | File recovery method and file recovery device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020151002A1 (en) * | 2019-01-25 | 2020-07-30 | 华为技术有限公司 | Data repair method and device |
WO2024040919A1 (en) * | 2022-08-24 | 2024-02-29 | 华为技术有限公司 | Data recovery method and storage device |
Also Published As
Publication number | Publication date |
---|---|
CN106844094B (en) | 2021-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106201338B (en) | Date storage method and device | |
CN102891849B (en) | Service data synchronization method, data recovery method, data recovery device and network device | |
CN104040515B (en) | The storage device being directly accessed is presented under logical drive model | |
CN108073656A (en) | A kind of method of data synchronization and relevant device | |
CN101561773B (en) | Method for recovering disk data and device thereof | |
CN105577776A (en) | Distributed storage system and method based on data arbiter copy | |
CN107544871A (en) | A kind of disk backup method of virtue machine and device | |
US20190324875A1 (en) | Method and apparatus for failure recovery of storage device | |
CN103617096A (en) | Storage data copying method, equipment and system | |
CN105808374B (en) | A kind of snap processing method and relevant device | |
CN106557143A (en) | For the apparatus and method of data storage device | |
CN105960635A (en) | Creating restore copy from copy of source data in repository having source data at different point-in-times | |
US20190052709A1 (en) | Clustered storage system synchronization | |
CN103544057A (en) | Switching method and switching system for data service systems | |
CN106844094A (en) | A kind of Ile repair method and device | |
CN116501259A (en) | Disk group dual-activity synchronization method and device, computer equipment and storage medium | |
CN103677660B (en) | Information processing apparatus and area release control method | |
CN104407806B (en) | The amending method and device of RAID group hard disc information | |
CN104461784A (en) | Single progress bitmap based clone copying method and system | |
CN104298609B (en) | Data copying method and device | |
CN102163164B (en) | Processing method and processor for critical data in shared memory | |
CN110413686B (en) | Data writing method, device, equipment and storage medium | |
US20160077743A1 (en) | Shared-bandwidth multiple target remote copy | |
JP5825655B2 (en) | Replication system | |
CN110704239B (en) | Data copying method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |