CN105760251A - Data backup method and device - Google Patents

Data backup method and device Download PDF

Info

Publication number
CN105760251A
CN105760251A CN201410779452.4A CN201410779452A CN105760251A CN 105760251 A CN105760251 A CN 105760251A CN 201410779452 A CN201410779452 A CN 201410779452A CN 105760251 A CN105760251 A CN 105760251A
Authority
CN
China
Prior art keywords
subregion
lun
backed
determined
amount
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
Application number
CN201410779452.4A
Other languages
Chinese (zh)
Other versions
CN105760251B (en
Inventor
卢强
赵万
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Huawei Technology Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410779452.4A priority Critical patent/CN105760251B/en
Publication of CN105760251A publication Critical patent/CN105760251A/en
Application granted granted Critical
Publication of CN105760251B publication Critical patent/CN105760251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a data backup method and device, and belongs to the computer field; the method comprises the following steps: a disk storage system receives a backup request sent by a terminal, wherein the request carries a subarea identification and a logic unit number LUN equipment identification corresponding to a first to-be backup subarea; the disk storage system determines the storage content of the first to-be backup subarea according to the subarea identification and the LUN equipment identification corresponding to the first to-be backup subarea; determines the subareas with the storage content bigger than that of the first to-be backup subarea among local subareas, and sends a check message, carrying the subarea identification and the LUN equipment identification corresponding to the determined subareas, to the terminal; receives a selected message sent by the terminal, wherein the message carries out the subarea identification and the LUN equipment identification corresponding to the first target subarea of the determined subareas, and copies the data in the first to-be backup subarea to the first target subarea. The data backup method and device can save storage resources of the storage system.

Description

A kind of method and apparatus of Backup Data
Technical field
The present invention relates to field of computer technology, particularly to the method and apparatus of a kind of Backup Data.
Background technology
Along with the development of computer technology, the needs that data are stored by people get more and more, it is necessary to memory space also increasing, for this, operator provides a user with memory space by disk storage system, so that user can store more data.
Using disk to store data in disk storage system, disk can be packaged into multiple LUN (LogicalUnitNumber, LUN) equipment by technical staff.In the use procedure of disk storage system, it is often necessary to the data stored are backed-up, therefore, it is desirable to the data of storage in certain the LUN equipment in disk being backed-up, storage is in other LUN equipment.
In the process realizing the present invention, inventor have found that prior art at least there is problems in that
When data are backed-up, it is necessary to whole LUN device backup, therefore, when needing the part data in LUN equipment are backed-up, it is still to, to the whole LUN device backup belonging to this subregion, so to take substantial amounts of storage resource.
Summary of the invention
In order to solve problem of the prior art, the method and apparatus embodiments providing a kind of Backup Data.Described technical scheme is as follows:
First aspect, it is provided that a kind of method of Backup Data, described method includes:
Disk storage system receives the backup request carrying partition identification corresponding to the first subregion to be backed up and LUN LUN device identification that terminal sends;
Disk storage system is according to partition identification corresponding to described first subregion to be backed up and LUN device identification, it is determined that the amount of storage of described first subregion to be backed up;
In local each subregion, it is determined that amount of storage, more than or equal to the subregion of the amount of storage of described first subregion to be backed up, sends the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal;
Receive that described terminal sends carry described in the selection message of partition identification corresponding to first object subregion in the subregion determined and LUN device identification, the data of described first subregion to be backed up are backuped in described first object subregion.
In conjunction with first aspect, in the first possible implementation of this first aspect, described in local each subregion, determine the amount of storage subregion more than or equal to the amount of storage of described first subregion to be backed up, the query messages carrying partition identification corresponding to the subregion determined and LUN device identification is sent to terminal, including:
In local each subregion, it is determined that amount of storage, more than or equal to all subregions of the amount of storage of described first subregion to be backed up, sends the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal.
In conjunction with first aspect, the second in this first aspect is likely in implementation, described in local each subregion, determine the amount of storage subregion more than or equal to the amount of storage of described first subregion to be backed up, the query messages carrying partition identification corresponding to the subregion determined and LUN device identification is sent to terminal, including:
In local each subregion, it is determined that do not store the subregion of data;
Do not store amount of storage in the subregion of data described in determining and, more than or equal to the subregion of the amount of storage of described first subregion to be backed up, send the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal.
In conjunction with first aspect, in the third possible implementation of this first aspect, before described disk storage system receives the backup request carrying partition identification corresponding to the first subregion to be backed up and LUN LUN device identification that terminal sends, described method also includes:
Determine initial address and end address that each subregion in each LUN equipment of disk storage system is corresponding in disk.
In conjunction with first aspect, in the 4th kind of possible implementation of this first aspect, described method also includes:
When reaching predetermined period, the data of the pre-set second subregion to be backed up are backuped in the second target partition.
In conjunction with first aspect, in the 5th kind of possible implementation of this first aspect, after the described data by described first subregion to be backed up backup in described first object subregion, described method also includes:
When the corrupted data detected in described first subregion to be backed up, the data in described first object subregion are copied in described first subregion to be backed up.
In conjunction with first aspect, in the 6th kind of possible implementation of this first aspect, described in local each subregion, determine the amount of storage subregion more than or equal to the amount of storage of described first subregion to be backed up, the query messages carrying partition identification corresponding to the subregion determined and LUN device identification is sent to terminal, including:
In local each subregion and each LUN equipment, determine that amount of storage is more than or equal to the subregion of the amount of storage of described first subregion to be backed up or LUN equipment, send to terminal and carry partition identification corresponding to the subregion determined and LUN device identification, and the query messages of LUN device identification corresponding to the LUN equipment determined;
The data of described first subregion to be backed up are backuped in described first object subregion by partition identification that first object subregion in the subregion determined described in what the described terminal of described reception sent carry is corresponding and the selection message of LUN device identification, including:
Receive that described terminal sends carry described in the subregion the determined partition identification corresponding with the first object subregion in LUN equipment and LUN device identification, or the data of described first subregion to be backed up are backuped in described first object subregion or described first object LUN equipment by the selection message of the LUN device identification that first object LUN equipment is corresponding.
Second aspect, it is provided that the device of a kind of Backup Data, described device includes:
Receiver module, for receiving the backup request carrying partition identification corresponding to the first subregion to be backed up and LUN LUN device identification that terminal sends;
Determine module, for the partition identification corresponding according to described first subregion to be backed up and LUN device identification, it is determined that the amount of storage of described first subregion to be backed up;
Sending module, in local each subregion, it is determined that amount of storage, more than or equal to the subregion of the amount of storage of described first subregion to be backed up, sends the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal;
Backup module, for receive that described terminal sends carry described in the selection message of partition identification corresponding to first object subregion in the subregion determined and LUN device identification, the data of described first subregion to be backed up are backuped in described first object subregion.
In conjunction with second aspect, in the first possible implementation of this second aspect, described sending module, it is used for:
In local each subregion, it is determined that amount of storage, more than or equal to all subregions of the amount of storage of described first subregion to be backed up, sends the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal.
In conjunction with second aspect, the second in this second aspect is likely in implementation, and described sending module is used for:
In local each subregion, it is determined that do not store the subregion of data;
Do not store amount of storage in the subregion of data described in determining and, more than or equal to the subregion of the amount of storage of described first subregion to be backed up, send the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal.
In conjunction with second aspect, it is likely in implementation at the third of this second aspect, described determines module, be additionally operable to:
Determine initial address and end address that each subregion in each LUN equipment of disk storage system is corresponding in disk.
In conjunction with second aspect, in the 4th kind of possible implementation of this second aspect, described backup module, it is additionally operable to:
When reaching predetermined period, the data of the pre-set second subregion to be backed up are backuped in the second target partition.
In conjunction with second aspect, in the 5th kind of possible implementation of this second aspect, described backup module, it is additionally operable to:
When the corrupted data detected in described first subregion to be backed up, the data in described first object subregion are copied in described first subregion to be backed up.
In conjunction with second aspect, in the 6th kind of possible implementation of this second aspect, described sending module, it is used for:
In local each subregion and each LUN equipment, determine that amount of storage is more than or equal to the subregion of the amount of storage of described first subregion to be backed up and LUN equipment, send to terminal and carry partition identification corresponding to the subregion determined and LUN device identification, and the query messages of LUN device identification corresponding to the LUN equipment determined;
Described backup module, is used for:
Receive that described terminal sends carry described in the subregion the determined partition identification corresponding with the first object subregion in LUN equipment and LUN device identification, or the data of described first subregion to be backed up are backuped in described first object subregion or first object LUN equipment by the selection message of the LUN device identification that first object LUN equipment is corresponding.
The technical scheme that the embodiment of the present invention provides has the benefit that
nullIn the embodiment of the present invention,Disk storage system receives the backup request carrying partition identification corresponding to the first subregion to be backed up and LUN LUN device identification that terminal sends,Disk storage system is according to partition identification corresponding to the first subregion to be backed up and LUN device identification,Determine the amount of storage of the first subregion to be backed up,In local each subregion,Determine the amount of storage subregion more than or equal to the amount of storage of the first subregion to be backed up,The query messages carrying partition identification corresponding to the subregion determined and LUN device identification is sent to terminal,Receive the selection message of partition identification corresponding to the first object subregion carried in the subregion determined that terminal sends and LUN device identification,The data of the first subregion to be backed up are backuped in first object subregion,So,Only the data in the first subregion to be backed up can be backed-up,Such that it is able to save the storage resource of storage system.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme in the embodiment of the present invention, below the accompanying drawing used required during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow diagram of a kind of Backup Data that the embodiment of the present invention provides;
Fig. 2 is a kind of system framework figure that the embodiment of the present invention provides;
Fig. 3 is the apparatus structure schematic diagram of a kind of Backup Data that the embodiment of the present invention provides.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
A kind of method embodiments providing Backup Data, as it is shown in figure 1, the handling process of the method can comprise the following steps that
Step 101, disk storage system receives the backup request carrying partition identification corresponding to the first subregion to be backed up and LUN LUN device identification that terminal sends.
Step 102, disk storage system is according to partition identification corresponding to the first subregion to be backed up and LUN device identification, it is determined that the amount of storage of the first subregion to be backed up.
Step 103, in local each subregion, it is determined that amount of storage, more than or equal to the subregion of the amount of storage of the first subregion to be backed up, sends the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal.
Step 104, receives the selection message of partition identification corresponding to the first object subregion carried in the subregion determined that terminal sends and LUN device identification, the data of the first subregion to be backed up is backuped in first object subregion.
nullIn the embodiment of the present invention,Disk storage system receives the backup request carrying partition identification corresponding to the first subregion to be backed up and LUN LUN device identification that terminal sends,Disk storage system is according to partition identification corresponding to the first subregion to be backed up and LUN device identification,Determine the amount of storage of the first subregion to be backed up,In local each subregion,Determine the amount of storage subregion more than or equal to the amount of storage of the first subregion to be backed up,The query messages carrying partition identification corresponding to the subregion determined and LUN device identification is sent to terminal,Receive the selection message of partition identification corresponding to the first object subregion carried in the subregion determined that terminal sends and LUN device identification,The data of the first subregion to be backed up are backuped in first object subregion,So,Only the data in the first subregion to be backed up can be backed-up,Such that it is able to save the storage resource of storage system.
Embodiment two
A kind of method embodiments providing Backup Data, the executive agent of the method is server.Wherein, server can be the server of disk storage system.As in figure 2 it is shown, be the system framework figure of the embodiment of the present invention, including disk storage system and terminal.
Below in conjunction with detailed description of the invention, the handling process shown in Fig. 1 being described in detail, content can be such that
Step 101, disk storage system receives the backup request carrying partition identification corresponding to the first subregion to be backed up and LUN LUN device identification that terminal sends.
In force, user can install for hyperdisk storage systematic difference program in terminal, the memory space that terminal is corresponding in disk storage system can be carried out subregion by this application program by user, it is also possible to by this application program, the subregion in disk storage system is backed-up.When user needs to be backed-up certain subregion (i.e. the first subregion to be backed up) in disk storage system of terminal, this application program can be opened in terminal, then in this application program, select this subregion, terminal then can receive should the selection instruction of subregion, then backup request is sent to disk storage system, this backup request carries partition identification corresponding to this subregion and LUN (LogicalUnitNumber, LUN) device identification, disk storage system then can receive this backup request, and this backup request is resolved, obtain partition identification corresponding to this subregion carried in this backup request and LUN device identification.
Optionally, it is possible to first determine initial address and end address that each subregion in each LUN equipment of disk storage system is corresponding in disk.
In force, being previously stored with the partition information of each subregion in each LUN equipment, partition information can include two or multinomial in each subregion disk in disk storage system in the amount of storage of the initial address of correspondence, end address and subregion.The partition identification of each subregion and partition information corresponding to these subregions can store with the form of sub-domains display.When user opens and stores systematic difference program in terminal for hyperdisk, this application program can send inquiry request to disk storage system, disk storage system then can receive this inquiry request, then may determine that initial address and end address that each subregion in each LUN equipment of disk storage system is corresponding in disk.In disk storage system, the zoned format of subregion can be various, if zoned format can be MBR (MasterBootRecord, MBR) zoned format and GPT (GloballyUniqueIdentifierPartitionTableFormat, globally unique identifier zoned format) zoned format.Disk storage system can first obtain the zoned format of each LUN equipment, then can according to the sub-domains display of different zoned formats and this LUN equipment, parse the initial address corresponding in disk of each subregion in each LUN equipment and end address, then initial address corresponding in disk for each subregion in each LUN equipment parsed and end address are sent to terminal, in order to user selects subregion to be backed up.
Such as, it is MBR zoned format that disk storage system obtains the zoned format of the subregion of certain LUN equipment, then can first judging whether have subregion on this LUN equipment, if there is subregion on this LUN equipment, then disk storage system can determine whether whether this LUN equipment includes extension subregion.Specifically, disk storage system may determine that in each sub-domains display, whether the identifier of 04H position is 0x0F or 0x05, if, then illustrate that this LUN equipment comprises extension subregion, then the zoned format of extension subregion can be obtained, and then the sub-domains display of extension subregion can be obtained, zoned format is in the subregion of MBR zoned format, in sub-domains display, storage has the subregion initial address of all subregions in this LUN equipment and the amount of storage of subregion, disk storage system can according to the amount of storage of subregion initial address and subregion, calculate the end address of each subregion, the zoned format got and partition information can also be stored by disk storage system, so as follow-up use.If it addition, the identifier of 04H position is the identifier beyond 0x0F and 0x05 in sub-domains display, then illustrates this LUN equipment is absent from extension subregion, then can carry out above-mentioned computing.
And for example, it is GPT zoned format that disk storage system obtains the zoned format of the subregion of certain LUN equipment, zoned format is in the subregion of GPT zoned format, in sub-domains display, storage has initial address and the end address of all subregions in this LUN equipment, disk storage system obtains initial address and the end address of each subregion, then store, in order to follow-up use.
Step 102, disk storage system is according to partition identification corresponding to the first subregion to be backed up and LUN device identification, it is determined that the amount of storage of the first subregion to be backed up.
In force, after disk storage system gets partition identification corresponding to the subregion to be backed up of first in backup request and LUN device identification, can according to LUN device identification corresponding to the first subregion to be backed up, determine the LUN equipment that the first subregion to be backed up is corresponding, and then can according to partition identification corresponding to the first subregion to be backed up, the sub-domains display of this LUN equipment is inquired about, determine initial address and end address that the first subregion to be backed up is corresponding, and then may determine that the amount of storage of the first subregion to be backed up.
Step 103, in local each subregion, it is determined that amount of storage, more than or equal to the subregion of the amount of storage of the first subregion to be backed up, sends the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal.
nullIn force,After disk storage system determines the amount of storage of the first subregion to be backed up,Can inquire about in local each subregion,Determine the amount of storage subregion more than or equal to the amount of storage of the first subregion to be backed up,And then partition identification corresponding to these subregions and LUN device identification can be obtained,Then query messages can be sent to terminal,Query messages carries partition identification corresponding to these subregions and LUN device identification,Terminal then can receive this query messages,Then can enter resolve to this query messages,Obtain partition identification corresponding to the subregion in this query messages and LUN device identification,And the partition identification got and LUN device identification are displayed,User can according to self need select subregion (i.e. first object subregion),Terminal then can receive should the selection instruction of subregion,Then send to disk storage system and select message,This selection message carries partition identification corresponding to first object subregion and LUN device identification.Additionally, disk storage system is it may also be determined that in other storage systems of establishing business relationship with self, amount of storage, more than or equal to the subregion of the amount of storage of the first subregion to be backed up, sends the query messages carrying partition identification corresponding to these subregions and LUN device identification to terminal.User can according to self need select other subregions in this storage system or LUN equipment as first object subregion, it is also possible to select the subregion in other storage systems and LUN equipment as first object subregion.
Optionally, may determine that the amount of storage all subregions more than or equal to the amount of storage of the first subregion to be backed up, accordingly, the processing procedure of step 103 can be such that in local each subregion, determine the amount of storage all subregions more than or equal to the amount of storage of the first subregion to be backed up, send the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal.
In force, disk storage system can be inquired about in local each subregion, determine the amount of storage all subregions more than or equal to the amount of storage of the first subregion to be backed up, and then partition identification corresponding to these subregions and LUN device identification can be obtained, then can send query messages to terminal, query messages carries partition identification corresponding to these subregions and LUN device identification.
Optionally, it may be determined that do not store data and the amount of storage subregion more than or equal to the amount of storage of the first subregion to be backed up, accordingly, the processing procedure of step 103 can be such that in local each subregion, it is determined that does not store the subregion of data;Determine that in the subregion not storing data, amount of storage, more than or equal to the subregion of the amount of storage of the first subregion to be backed up, sends the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal.
In force, disk storage system can be inquired about in local each subregion, determine the subregion not storing data, and then can in the subregion not storing data, determine the amount of storage subregion more than or equal to the amount of storage of the first subregion to be backed up, then can obtain partition identification corresponding to these subregions and LUN device identification, send query messages to terminal, query messages carries partition identification corresponding to the above-mentioned subregion determined and LUN device identification.
Optionally, may determine that amount of storage is more than or equal to the subregion of the amount of storage of the first subregion to be backed up and LUN equipment, accordingly, the processing procedure of step 103 can be such that in local each subregion and each LUN equipment, determine that amount of storage is more than or equal to the subregion of the amount of storage of the first subregion to be backed up or LUN equipment, send to terminal and carry partition identification corresponding to the subregion determined and LUN device identification, and the query messages of LUN device identification corresponding to the LUN equipment determined.
In force, after disk storage system determines the amount of storage of the first subregion to be backed up, inquiry amount of storage can be carried out more than or equal to the subregion of the amount of storage of the first subregion to be backed up or LUN equipment in local each subregion, and then partition identification corresponding to the subregion inquired and LUN device identification can be obtained, and the LUN device identification that the LUN equipment that inquires is corresponding, then query messages can be sent to terminal, query messages carries partition identification corresponding to the subregion inquired and LUN device identification, and the LUN device identification that the LUN equipment that inquires is corresponding.
Step 104, receives the selection message of partition identification corresponding to the first object subregion carried in the subregion determined that terminal sends and LUN device identification, the data of the first subregion to be backed up is backuped in first object subregion.
In force, after disk storage system receives the selection message that terminal sends, this selection message can be resolved, obtain partition identification corresponding to the first object subregion in this selection message and LUN device identification, may then pass through the LUN device identification that first object subregion is corresponding, determine the LUN equipment belonging to first object subregion, and then can according to partition identification corresponding to first object subregion, partition information at this LUN equipment identifies, inquire about initial address corresponding to first object subregion and end address, namely may determine that position corresponding in first object subregion disk in disk storage system.Disk storage system can also according to partition identification corresponding to above-mentioned the first subregion to be backed up got and LUN device identification, determining position corresponding in first subregion to be backed up disk in disk storage system, then the data in above-mentioned first subregion to be backed up can be backuped in first object subregion by disk storage system.The method being backed-up can be diversified, it is possible to adopts any of existing LUN device backup technology, as the full dose of LUN is copied, increment copy, splitter mirror picture, synchronize remote copy, asynchronous remote copy etc..
Additionally, when above-mentioned disk storage system judges whether there is subregion on certain LUN equipment, if disk storage system is after judging, it is determined that there is not subregion on certain LUN equipment, then this LUN can be carried out data backup with LUN for object by disk storage system.
Optionally, for above-mentioned determine amount of storage more than or equal to the subregion of the amount of storage of the first subregion to be backed up and LUN equipment in the case of, accordingly, the processing procedure of step 104 can be such that receive terminal send carry the subregion the determined partition identification corresponding with the first object subregion in LUN equipment and LUN device identification, or the data of the first subregion to be backed up are backuped in first object subregion or first object LUN equipment by the selection message of the LUN device identification that first object LUN equipment is corresponding.
In force, after disk storage system receives the selection message that terminal sends, this selection message can be resolved, obtain the information carried in this selection message, if the information that disk storage system gets is the partition identification and LUN device identification that first object subregion is corresponding, then can process according to above-mentioned processing method, if the information that disk storage system gets is the LUN device identification that first object LUN equipment is corresponding, then may determine that the LUN equipment (i.e. first object LUN equipment) that this LUN device identification is corresponding.If this LUN equipment does not exist subregion, then the data in above-mentioned first subregion to be backed up are backuped in this LUN equipment;If there is subregion in this LUN equipment, then cancelling the subregion in LUN equipment, the data in above-mentioned first subregion to be backed up are backuped in this LUN equipment by this.
Optionally, when reaching predetermined period, it is possible to the data of the pre-set second subregion to be backed up are backuped in the second target partition.
In force, disk storage system can pre-set the predetermined period of backup, when reaching predetermined period, the data of certain subregion to be backed up (i.e. the second subregion to be backed up) can be backed-up by disk storage system automatically, namely the data of this subregion is backuped in other subregions (i.e. the second target partition) by above-mentioned backup method.As such, it is possible to timely the data stored be backed-up and preserve, even if the subregion (i.e. the second subregion to be backed up) preserving these data is damaged, other subregion still can preserve complete data.
Optionally, after the data of the first subregion to be backed up are backuped in first object subregion, data in first object subregion can be copied in the first subregion to be backed up, corresponding processing procedure can be such that when the corrupted data detected in the first subregion to be backed up, the data in first object subregion is copied in the first subregion to be backed up.
In force, subregion to store data can be detected by disk storage system, if be detected that the data in the first subregion to be backed up are damaged, then may determine that the first object subregion that this first subregion to be backed up is corresponding, then the data in first object subregion can be copied in the first subregion to be backed up, to repair the data in the first subregion to be backed up.
nullIn the embodiment of the present invention,Disk storage system receives the backup request carrying partition identification corresponding to the first subregion to be backed up and LUN LUN device identification that terminal sends,Disk storage system is according to partition identification corresponding to the first subregion to be backed up and LUN device identification,Determine the amount of storage of the first subregion to be backed up,In local each subregion,Determine the amount of storage subregion more than or equal to the amount of storage of the first subregion to be backed up,The query messages carrying partition identification corresponding to the subregion determined and LUN device identification is sent to terminal,Receive the selection message of partition identification corresponding to the first object subregion carried in the subregion determined that terminal sends and LUN device identification,The data of the first subregion to be backed up are backuped in first object subregion,So,Only the data in the first subregion to be backed up can be backed-up,Such that it is able to save the storage resource of storage system.
Embodiment three
Based on identical technology design, the embodiment of the present invention additionally provides the device of a kind of Backup Data, as it is shown on figure 3, this device includes:
Receiver module 310, for receiving the backup request carrying partition identification corresponding to the first subregion to be backed up and LUN LUN device identification that terminal sends;
Determine module 320, for the partition identification corresponding according to described first subregion to be backed up and LUN device identification, it is determined that the amount of storage of described first subregion to be backed up;
Sending module 330, in local each subregion, it is determined that amount of storage, more than or equal to the subregion of the amount of storage of described first subregion to be backed up, sends the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal;
Backup module 340, for receive that described terminal sends carry described in the selection message of partition identification corresponding to first object subregion in the subregion determined and LUN device identification, the data of described first subregion to be backed up are backuped in described first object subregion.
Optionally, described sending module 330, it is used for:
In local each subregion, it is determined that amount of storage, more than or equal to all subregions of the amount of storage of described first subregion to be backed up, sends the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal.
Optionally, described sending module 330, it is used for:
In local each subregion, it is determined that do not store the subregion of data;
Do not store amount of storage in the subregion of data described in determining and, more than or equal to the subregion of the amount of storage of described first subregion to be backed up, send the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal.
Optionally, described determine module 320, be additionally operable to:
Determine initial address and end address that each subregion in each LUN equipment of disk storage system is corresponding in disk.
Optionally, described backup module 340, it is additionally operable to:
When reaching predetermined period, the data of the pre-set second subregion to be backed up are backuped in the second target partition.
Optionally, described backup module 340, it is additionally operable to:
When the corrupted data detected in described first subregion to be backed up, the data in described first object subregion are copied in described first subregion to be backed up.
nullIn the embodiment of the present invention,Disk storage system receives the backup request carrying partition identification corresponding to the first subregion to be backed up and LUN LUN device identification that terminal sends,Disk storage system is according to partition identification corresponding to the first subregion to be backed up and LUN device identification,Determine the amount of storage of the first subregion to be backed up,In local each subregion,Determine the amount of storage subregion more than or equal to the amount of storage of the first subregion to be backed up,The query messages carrying partition identification corresponding to the subregion determined and LUN device identification is sent to terminal,Receive the selection message of partition identification corresponding to the first object subregion carried in the subregion determined that terminal sends and LUN device identification,The data of the first subregion to be backed up are backuped in first object subregion,So,Only the data in the first subregion to be backed up can be backed-up,Such that it is able to save the storage resource of storage system.
It should be understood that the device of the Backup Data of above-described embodiment offer is when Backup Data, only it is illustrated with the division of above-mentioned each functional module, in practical application, as desired above-mentioned functions distribution can be completed by different functional modules, it is divided into different functional modules, to complete all or part of function described above by the internal structure of equipment.It addition, the device of Backup Data that above-described embodiment provides belongs to same design with the embodiment of the method for Backup Data, it implements process and refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can be completed by hardware, can also be completed by the hardware that program carrys out instruction relevant, described program can be stored in a kind of computer-readable recording medium, storage medium mentioned above can be read only memory, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within protection scope of the present invention.

Claims (14)

1. the method for a Backup Data, it is characterised in that described method includes:
Disk storage system receives the backup request carrying partition identification corresponding to the first subregion to be backed up and LUN LUN device identification that terminal sends;
Disk storage system is according to partition identification corresponding to described first subregion to be backed up and LUN device identification, it is determined that the amount of storage of described first subregion to be backed up;
In local each subregion, it is determined that amount of storage, more than or equal to the subregion of the amount of storage of described first subregion to be backed up, sends the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal;
Receive that described terminal sends carry described in the selection message of partition identification corresponding to first object subregion in the subregion determined and LUN device identification, the data of described first subregion to be backed up are backuped in described first object subregion.
2. method according to claim 1, it is characterized in that, described in local each subregion, determine the amount of storage subregion more than or equal to the amount of storage of described first subregion to be backed up, the query messages carrying partition identification corresponding to the subregion determined and LUN device identification is sent to terminal, including:
In local each subregion, it is determined that amount of storage, more than or equal to all subregions of the amount of storage of described first subregion to be backed up, sends the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal.
3. method according to claim 1, it is characterized in that, described in local each subregion, determine the amount of storage subregion more than or equal to the amount of storage of described first subregion to be backed up, the query messages carrying partition identification corresponding to the subregion determined and LUN device identification is sent to terminal, including:
In local each subregion, it is determined that do not store the subregion of data;
Do not store amount of storage in the subregion of data described in determining and, more than or equal to the subregion of the amount of storage of described first subregion to be backed up, send the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal.
4. method according to claim 1, it is characterised in that before described disk storage system receives the backup request carrying partition identification corresponding to the first subregion to be backed up and LUN LUN device identification that terminal sends, described method also includes:
Determine initial address and end address that each subregion in each LUN equipment of disk storage system is corresponding in disk.
5. method according to claim 1, it is characterised in that described method also includes:
When reaching predetermined period, the data of the pre-set second subregion to be backed up are backuped in the second target partition.
6. method according to claim 1, it is characterised in that after the described data by described first subregion to be backed up backup in described first object subregion, described method also includes:
When the corrupted data detected in described first subregion to be backed up, the data in described first object subregion are copied in described subregion to be backed up.
7. method according to claim 1, it is characterized in that, described in local each subregion, determine the amount of storage subregion more than or equal to the amount of storage of described first subregion to be backed up, the query messages carrying partition identification corresponding to the subregion determined and LUN device identification is sent to terminal, including:
In local each subregion and each LUN equipment, determine that amount of storage is more than or equal to the subregion of the amount of storage of described first subregion to be backed up or LUN equipment, send to terminal and carry partition identification corresponding to the subregion determined and LUN device identification, and the query messages of LUN device identification corresponding to the LUN equipment determined;
The data of described first subregion to be backed up are backuped in described first object subregion by partition identification that first object subregion in the subregion determined described in what the described terminal of described reception sent carry is corresponding and the selection message of LUN device identification, including:
Receive that described terminal sends carry described in the subregion the determined partition identification corresponding with the first object subregion in LUN equipment and LUN device identification, or the data of described first subregion to be backed up are backuped in described first object subregion or described first object LUN equipment by the selection message of the LUN device identification that first object LUN equipment is corresponding.
8. the device of a Backup Data, it is characterised in that described device includes:
Receiver module, for receiving the backup request carrying partition identification corresponding to the first subregion to be backed up and LUN LUN device identification that terminal sends;
Determine module, for the partition identification corresponding according to described first subregion to be backed up and LUN device identification, it is determined that the amount of storage of described first subregion to be backed up;
Sending module, in local each subregion, it is determined that amount of storage, more than or equal to the subregion of the amount of storage of described first subregion to be backed up, sends the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal;
Backup module, for receive that described terminal sends carry described in the selection message of partition identification corresponding to first object subregion in the subregion determined and LUN device identification, the data of described first subregion to be backed up are backuped in described first object subregion.
9. device according to claim 8, it is characterised in that described sending module, is used for:
In local each subregion, it is determined that amount of storage, more than or equal to all subregions of the amount of storage of described first subregion to be backed up, sends the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal.
10. device according to claim 8, it is characterised in that described sending module, is used for:
In local each subregion, it is determined that do not store the subregion of data;
Do not store amount of storage in the subregion of data described in determining and, more than or equal to the subregion of the amount of storage of described first subregion to be backed up, send the query messages carrying partition identification corresponding to the subregion determined and LUN device identification to terminal.
11. device according to claim 8, it is characterised in that described determine module, it is additionally operable to:
Determine initial address and end address that each subregion in each LUN equipment of disk storage system is corresponding in disk.
12. device according to claim 8, it is characterised in that described backup module, it is additionally operable to:
When reaching predetermined period, the data of the pre-set second subregion to be backed up are backuped in the second target partition.
13. device according to claim 8, it is characterised in that described backup module, it is additionally operable to:
When the corrupted data detected in described first subregion to be backed up, the data in described first object subregion are copied in described first subregion to be backed up.
14. method according to claim 8, it is characterised in that described sending module, it is used for:
In local each subregion and each LUN equipment, determine that amount of storage is more than or equal to the subregion of the amount of storage of described first subregion to be backed up and LUN equipment, send to terminal and carry partition identification corresponding to the subregion determined and LUN device identification, and the query messages of LUN device identification corresponding to the LUN equipment determined;
Described backup module, is used for:
Receive that described terminal sends carry described in the subregion the determined partition identification corresponding with the first object subregion in LUN equipment and LUN device identification, or the data of described first subregion to be backed up are backuped in described first object subregion or first object LUN equipment by the selection message of the LUN device identification that first object LUN equipment is corresponding.
CN201410779452.4A 2014-12-15 2014-12-15 A kind of method and apparatus of Backup Data Active CN105760251B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410779452.4A CN105760251B (en) 2014-12-15 2014-12-15 A kind of method and apparatus of Backup Data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410779452.4A CN105760251B (en) 2014-12-15 2014-12-15 A kind of method and apparatus of Backup Data

Publications (2)

Publication Number Publication Date
CN105760251A true CN105760251A (en) 2016-07-13
CN105760251B CN105760251B (en) 2019-04-19

Family

ID=56336817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410779452.4A Active CN105760251B (en) 2014-12-15 2014-12-15 A kind of method and apparatus of Backup Data

Country Status (1)

Country Link
CN (1) CN105760251B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733509A (en) * 2017-04-17 2018-11-02 伊姆西Ip控股有限责任公司 Method and system for data to be backed up and restored in group system
CN108984335A (en) * 2017-06-02 2018-12-11 伊姆西Ip控股有限责任公司 Backup and the method and system for restoring data
CN110389857A (en) * 2018-04-20 2019-10-29 伊姆西Ip控股有限责任公司 Method, equipment and the computer program product of data backup
CN111930566A (en) * 2020-07-28 2020-11-13 友谊时光科技股份有限公司 Data backup method and device, electronic equipment and storage medium
CN112925673A (en) * 2021-02-18 2021-06-08 北京九贺科技有限公司 Big data storage management method and system for power monitoring

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436152A (en) * 2008-12-02 2009-05-20 成都市华为赛门铁克科技有限公司 Method and device for data backup
CN102929748A (en) * 2012-11-08 2013-02-13 华为技术有限公司 Method and device for data backup
CN103559091A (en) * 2013-11-12 2014-02-05 宇龙计算机通信科技(深圳)有限公司 Data scheduling method and split type terminal system
US20140279913A1 (en) * 2013-03-15 2014-09-18 Geoffrey Ray Wehrman File system replication

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436152A (en) * 2008-12-02 2009-05-20 成都市华为赛门铁克科技有限公司 Method and device for data backup
CN102929748A (en) * 2012-11-08 2013-02-13 华为技术有限公司 Method and device for data backup
US20140279913A1 (en) * 2013-03-15 2014-09-18 Geoffrey Ray Wehrman File system replication
CN103559091A (en) * 2013-11-12 2014-02-05 宇龙计算机通信科技(深圳)有限公司 Data scheduling method and split type terminal system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733509A (en) * 2017-04-17 2018-11-02 伊姆西Ip控股有限责任公司 Method and system for data to be backed up and restored in group system
CN108733509B (en) * 2017-04-17 2021-12-10 伊姆西Ip控股有限责任公司 Method and system for backing up and restoring data in cluster system
CN108984335A (en) * 2017-06-02 2018-12-11 伊姆西Ip控股有限责任公司 Backup and the method and system for restoring data
CN108984335B (en) * 2017-06-02 2022-04-29 伊姆西Ip控股有限责任公司 Method and system for backing up and restoring data
US11489917B2 (en) 2017-06-02 2022-11-01 EMC IP Holding Company LLC Method and system for backing up and restoring data
CN110389857A (en) * 2018-04-20 2019-10-29 伊姆西Ip控股有限责任公司 Method, equipment and the computer program product of data backup
CN111930566A (en) * 2020-07-28 2020-11-13 友谊时光科技股份有限公司 Data backup method and device, electronic equipment and storage medium
CN112925673A (en) * 2021-02-18 2021-06-08 北京九贺科技有限公司 Big data storage management method and system for power monitoring

Also Published As

Publication number Publication date
CN105760251B (en) 2019-04-19

Similar Documents

Publication Publication Date Title
CN102629268B (en) Data synchronization method, system and date access device
US9753954B2 (en) Data node fencing in a distributed file system
US8738883B2 (en) Snapshot creation from block lists
US10067692B2 (en) Method and apparatus for backing up and restoring cross-virtual machine application
CN105760251A (en) Data backup method and device
CN105528368A (en) A database migration method and device
CN102368222A (en) Online repairing method of multiple-copy storage system
CN104932955A (en) Method for backing up data during factory setting restoring of mobile terminal, and mobile terminal
JP6987340B2 (en) Database data change request processing method and equipment
CN105786405A (en) Online upgrading method, device and system
CN103281798A (en) Method, device and system for achieving modification synchronization
CN110555150B (en) Data monitoring method, device, equipment and storage medium
CN107864209B (en) Data writing method and device and server
CN104517067A (en) Method, device and system for data access
CN103019847A (en) Method and system for migrating data of virtual machine
CN107623705B (en) Storage mode upgrading method, device and system based on video cloud storage system
CN111130856A (en) Server configuration method, system, equipment and computer readable storage medium
CN110958287B (en) Operation object data synchronization method, device and system
CN111475334A (en) TiDB database maintenance method and device, computer equipment and storage medium
CN105786650A (en) Data management method and device
CN109241110A (en) Order management method and system, electronic equipment, storage medium
US9223513B2 (en) Accessing data in a dual volume data storage system using virtual identifiers
CN107491363A (en) A kind of Snapshot Method and device of the storage volume based on linux kernel
CN110704249A (en) Method, device and system for ensuring application consistency
CN109710377B (en) Method for recovering kvm virtual machine from faulty distributed storage

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220909

Address after: No.1899 Xiyuan Avenue, high tech Zone (West District), Chengdu, Sichuan, 611730

Patentee after: Chengdu Huawei Technologies Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.