CN105760251B - A kind of method and apparatus of Backup Data - Google Patents
A kind of method and apparatus of Backup Data Download PDFInfo
- Publication number
- CN105760251B CN105760251B CN201410779452.4A CN201410779452A CN105760251B CN 105760251 B CN105760251 B CN 105760251B CN 201410779452 A CN201410779452 A CN 201410779452A CN 105760251 B CN105760251 B CN 105760251B
- Authority
- CN
- China
- Prior art keywords
- subregion
- backed
- lun
- amount
- 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.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of method and apparatus of Backup Data, belong to computer field.The described method includes: disk storage system receives the backup request for carrying the first subregion to be backed up corresponding partition identification and logical unit number LUN device identification that terminal is sent;Disk storage system determines the amount of storage of the described first subregion to be backed up according to the corresponding partition identification of the described first subregion to be backed up and LUN device identification;In local each subregion, determines that amount of storage is greater than or equal to the subregion of the amount of storage of the described first subregion to be backed up, the query messages for carrying the subregion corresponding partition identification and LUN device identification determined are sent to terminal;The selection message for carrying the corresponding partition identification of first object subregion in the subregion determined and LUN device identification that the terminal is sent is received, the data of the described first subregion to be backed up are backuped in the first object subregion.Using the present invention, the storage resource of storage system can be saved.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of method and apparatus of Backup Data.
Background technique
With the development of computer technology, the needs that people store data are more and more, and the memory space needed is also got over
Come it is bigger, for this purpose, operator provides a user memory space by disk storage system, so that user can store more numbers
According to.
Carry out storing data using disk in disk storage system, disk can be packaged into multiple LUN by technical staff
(Logical Unit Number, logical unit number) equipment.In the use process of disk storage system, it is often necessary to
The data of storage are backed up, therefore, it is desirable to be backed up the data stored in some LUN equipment in disk, storage is arrived
In other LUN equipment.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
It when backing up data, needs to back up entire LUN equipment, therefore, when needing in LUN equipment
When partial data is backed up, it is still to back up entire LUN equipment belonging to the subregion, a large amount of storage can be occupied in this way
Resource.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of method and apparatus of Backup Data.Institute
It is as follows to state technical solution:
In a first aspect, providing a kind of method of Backup Data, which comprises
What disk storage system received that terminal sends carries the corresponding partition identification of the first subregion to be backed up and logic list
The backup request of member LUN device identification;
Disk storage system determines institute according to the corresponding partition identification of the described first subregion to be backed up and LUN device identification
State the amount of storage of the first subregion to be backed up;
In local each subregion, determine that amount of storage is greater than or equal to point of the amount of storage of the described first subregion to be backed up
Area sends the query messages for carrying the subregion corresponding partition identification and LUN device identification determined to terminal;
Receive the corresponding subregion mark of first object subregion carried in the subregion determined that the terminal is sent
Know the selection message with LUN device identification, the data of the described first subregion to be backed up are backuped in the first object subregion.
It is with reference to first aspect, described in local each subregion in the first possible implementation of the first aspect,
It determines that amount of storage is greater than or equal to the subregion of the amount of storage of described first subregion to be backed up, sends to carry to terminal and determine
The query messages of subregion corresponding partition identification and LUN device identification, comprising:
In local each subregion, determine that amount of storage is greater than or equal to all of the amount of storage of the described first subregion to be backed up
Subregion sends the query messages for carrying the subregion corresponding partition identification and LUN device identification determined to terminal.
It is with reference to first aspect, described in local each subregion in second of possible implementation of the first aspect,
It determines that amount of storage is greater than or equal to the subregion of the amount of storage of described first subregion to be backed up, sends to carry to terminal and determine
The query messages of subregion corresponding partition identification and LUN device identification, comprising:
In local each subregion, the subregion of not stored data is determined;
Determine that amount of storage is more than or equal to the amount of storage of the described first subregion to be backed up in the subregion of the not stored data
Subregion, sent to terminal and carry the query messages of the subregion corresponding partition identification and LUN device identification determined.
With reference to first aspect, in the third possible implementation of the first aspect, the disk storage system is received
What terminal was sent carries the backup request of the first subregion to be backed up corresponding partition identification and logical unit number LUN device identification
Before, the method also includes:
Determine each subregion in each LUN equipment of disk storage system corresponding initial address and end ground in disk
Location.
With reference to first aspect, in the 4th kind of possible implementation of the first aspect, the method also includes:
When reaching predetermined period, the data of the pre-set second subregion to be backed up are backuped into the second target partition
In.
With reference to first aspect, described to be backed up by described first in the 5th kind of possible implementation of the first aspect
After the data of subregion backup in the first object subregion, the method also includes:
When detecting the corrupted data in the described first subregion to be backed up, the data in the first object subregion are answered
It makes in the described first subregion to be backed up.
It is with reference to first aspect, described in local each subregion in the 6th kind of possible implementation of the first aspect,
It determines that amount of storage is greater than or equal to the subregion of the amount of storage of described first subregion to be backed up, sends to carry to terminal and determine
The query messages of subregion corresponding partition identification and LUN device identification, comprising:
In local each subregion and each LUN equipment, determine that amount of storage is greater than or equal to the described first subregion to be backed up
The subregion or LUN equipment of amount of storage carry the corresponding partition identification of subregion and LUN equipment mark determined to terminal transmission
Know, and the query messages for the corresponding LUN device identification of LUN equipment determined;
Corresponding point of first object subregion carried in the subregion determined for receiving the terminal and sending
The data of described first subregion to be backed up are backuped to the first object point by the selection message of area mark and LUN device identification
Qu Zhong, comprising:
It is corresponding to receive the first object subregion carried in the subregion and LUN equipment determined that the terminal is sent
Partition identification and LUN device identification or the corresponding LUN device identification of first object LUN equipment selection message, will be described
The data of first subregion to be backed up backup in the first object subregion or the first object LUN equipment.
Second aspect, provides a kind of device of Backup Data, and described device includes:
Receiving module carries the corresponding partition identification of the first subregion to be backed up and logic list for receive terminal transmission
The backup request of member LUN device identification;
Determining module, for determining institute according to the corresponding partition identification of the described first subregion to be backed up and LUN device identification
State the amount of storage of the first subregion to be backed up;
Sending module, in local each subregion, determining that amount of storage is greater than or equal to the described first subregion to be backed up
Amount of storage subregion, sent to terminal and carry the inquiry of the subregion corresponding partition identification and LUN device identification determined
Message;
Backup module, the first object subregion carried in the subregion determined sent for receiving the terminal
The data of described first subregion to be backed up are backuped to described by the selection message of corresponding partition identification and LUN device identification
In one target partition.
In conjunction with second aspect, in the first possible implementation of the second aspect, the sending module is used for:
In local each subregion, determine that amount of storage is greater than or equal to all of the amount of storage of the described first subregion to be backed up
Subregion sends the query messages for carrying the subregion corresponding partition identification and LUN device identification determined to terminal.
In conjunction with second aspect, in second of possible implementation of the second aspect, the sending module is used for:
In local each subregion, the subregion of not stored data is determined;
Determine that amount of storage is more than or equal to the amount of storage of the described first subregion to be backed up in the subregion of the not stored data
Subregion, sent to terminal and carry the query messages of the subregion corresponding partition identification and LUN device identification determined.
In conjunction with second aspect, in the third possible implementation of the second aspect, the determining module is also used to:
Determine each subregion in each LUN equipment of disk storage system corresponding initial address and end ground in disk
Location.
In conjunction with second aspect, in the 4th kind of possible implementation of the second aspect, the backup module is also used to:
When reaching predetermined period, the data of the pre-set second subregion to be backed up are backuped into the second target partition
In.
In conjunction with second aspect, in the 5th kind of possible implementation of the second aspect, the backup module is also used to:
When detecting the corrupted data in the described first subregion to be backed up, the data in the first object subregion are answered
It makes in the described first subregion to be backed up.
In conjunction with second aspect, in the 6th kind of possible implementation of the second aspect, the sending module is used for:
In local each subregion and each LUN equipment, determine that amount of storage is greater than or equal to the described first subregion to be backed up
The subregion and LUN equipment of amount of storage carry the corresponding partition identification of subregion and LUN equipment mark determined to terminal transmission
Know, and the query messages for the corresponding LUN device identification of LUN equipment determined;
The backup module, is used for:
It is corresponding to receive the first object subregion carried in the subregion and LUN equipment determined that the terminal is sent
Partition identification and LUN device identification or the corresponding LUN device identification of first object LUN equipment selection message, will be described
The data of first subregion to be backed up backup in the first object subregion or first object LUN equipment.
Technical solution provided in an embodiment of the present invention has the benefit that
In the embodiment of the present invention, what disk storage system reception terminal was sent carries first corresponding point of subregion to be backed up
The backup request of area mark and logical unit number LUN device identification, disk storage system are corresponding according to the first subregion to be backed up
Partition identification and LUN device identification determine the amount of storage of the first subregion to be backed up, in local each subregion, determine amount of storage
More than or equal to the subregion of the amount of storage of the first subregion to be backed up, the corresponding subregion of subregion determined is carried to terminal transmission
The query messages of mark and LUN device identification receive the first object subregion carried in the subregion determined that terminal is sent
The data of first subregion to be backed up are backuped to first object point by the selection message of corresponding partition identification and LUN device identification
Qu Zhong, in this way, can only be backed up to the data in the first subregion to be backed up, so as to save the storage money of storage system
Source.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of method flow diagram of Backup Data provided in an embodiment of the present invention;
Fig. 2 is a kind of system framework figure provided in an embodiment of the present invention;
Fig. 3 is a kind of apparatus structure schematic diagram of Backup Data provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Embodiment one
The embodiment of the invention provides a kind of methods of Backup Data, as shown in Figure 1, the process flow of this method can wrap
Include following step:
Step 101, what disk storage system received that terminal sends carries the corresponding partition identification of the first subregion to be backed up
With the backup request of logical unit number LUN device identification.
Step 102, disk storage system is according to the corresponding partition identification of the first subregion to be backed up and LUN device identification, really
The amount of storage of fixed first subregion to be backed up.
Step 103, in local each subregion, determine that amount of storage is greater than or equal to the amount of storage of the first subregion to be backed up
Subregion sends the query messages for carrying the subregion corresponding partition identification and LUN device identification determined to terminal.
Step 104, the corresponding subregion mark of the first object subregion carried in the subregion determined that terminal is sent is received
Know the selection message with LUN device identification, the data of the first subregion to be backed up are backuped in first object subregion.
In the embodiment of the present invention, what disk storage system reception terminal was sent carries first corresponding point of subregion to be backed up
The backup request of area mark and logical unit number LUN device identification, disk storage system are corresponding according to the first subregion to be backed up
Partition identification and LUN device identification determine the amount of storage of the first subregion to be backed up, in local each subregion, determine amount of storage
More than or equal to the subregion of the amount of storage of the first subregion to be backed up, the corresponding subregion of subregion determined is carried to terminal transmission
The query messages of mark and LUN device identification receive the first object subregion carried in the subregion determined that terminal is sent
The data of first subregion to be backed up are backuped to first object point by the selection message of corresponding partition identification and LUN device identification
Qu Zhong, in this way, can only be backed up to the data in the first subregion to be backed up, so as to save the storage money of storage system
Source.
Embodiment two
The embodiment of the invention provides a kind of method of Backup Data, the executing subject of this method is server.Wherein, it takes
Business device can be the server of disk storage system.As shown in Fig. 2, be the system framework figure of the embodiment of the present invention, including
Disk storage system and terminal.
Below in conjunction with specific embodiment, process flow shown in FIG. 1 is described in detail, content can be as
Under:
Step 101, what disk storage system received that terminal sends carries the corresponding partition identification of the first subregion to be backed up
With the backup request of logical unit number LUN device identification.
In an implementation, user can install the application program for hyperdisk storage system in terminal, and user can lead to
Crossing the application program, the corresponding memory space in disk storage system carries out subregion to terminal, can also pass through the application program
Subregion in disk storage system is backed up.When user needs certain subregion (i.e. by terminal in disk storage system
One subregion to be backed up) when being backed up, the application program can be opened in terminal, this point is then selected in the application program
Area, terminal can then receive the selection instruction of the corresponding subregion, then send backup request to disk storage system, which asks
The corresponding partition identification of the subregion and LUN (Logical Unit Number, logical unit number) device identification are carried in asking,
Disk storage system can then receive the backup request, and parse to the backup request, obtain and carry in the backup request
The corresponding partition identification of the subregion and LUN device identification.
Optionally, each subregion corresponding starting in disk in each LUN equipment of disk storage system can be first determined
Address and end address.
In an implementation, the partition information of each subregion is previously stored in each LUN equipment, partition information may include each subregion
Two or multinomial in disk in disk storage system in the amount of storage of corresponding initial address, end address and subregion.
The partition identification of each subregion and the corresponding partition information of these subregions can be stored in the form of sub-domains display.Work as user
When terminal opens the application program for being used for hyperdisk storage system, which can send to disk storage system and look into
Request is ask, disk storage system can then receive the inquiry request, then can determine in each LUN equipment of disk storage system
Each subregion in disk corresponding initial address and end address.The zoned format of subregion can be more in disk storage system
Sample, if zoned format can be MBR (Master Boot Record, master boot record) zoned format and GPT (Globally
Unique Identifier Partition Table Format, globally unique identifier zoned format) zoned format.Disk
Storage system can first obtain the zoned format of each LUN equipment, then can be according to different zoned formats and the LUN equipment
Sub-domains display, parse each subregion in each LUN equipment corresponding initial address and end address in disk, then will
Each subregion in each LUN equipment parsed is sent to terminal in corresponding initial address and end address in disk, so as to
Family selects subregion to be backed up.
For example, the zoned format that disk storage system obtains the subregion of certain LUN equipment is MBR zoned format, then it can be first
Judge whether there is subregion in the LUN equipment, if there are subregion in the LUN equipment, disk storage system can further be sentenced
Whether the LUN equipment of breaking includes extension subregion.Specifically, disk storage system may determine that the position 04H in each sub-domains display
Identifier whether be 0x0F or 0x05, if it is, illustrate the LUN equipment include extension subregion, then available expansion
The zoned format of subregion is opened up, and then the sub-domains display of available extension subregion, zoned format are the subregion of MBR zoned format
In, the subregion initial address of all subregions and the amount of storage of subregion, disk storage in the LUN equipment are stored in sub-domains display
System can calculate the end address of each subregion, disk storage system is also according to the amount of storage of subregion initial address and subregion
The zoned format and partition information got can be stored, so as to subsequent use.In addition, if in sub-domains display
The identifier of the position 04H is the identifier other than 0x0F and 0x05, then illustrates that there is no extension subregions in the LUN equipment, then
It can carry out above-mentioned calculation processing.
For another example, it is GPT zoned format, zoned format that disk storage system, which obtains the zoned format of the subregion of certain LUN equipment,
It is stored with the initial address of all subregions in the LUN equipment in subregion for GPT zoned format, in sub-domains display and terminates ground
Location, disk storage system obtains initial address and the end address of each subregion, is then stored, so as to subsequent use.
Step 102, disk storage system is according to the corresponding partition identification of the first subregion to be backed up and LUN device identification, really
The amount of storage of fixed first subregion to be backed up.
In an implementation, disk storage system get the corresponding partition identification of the first subregion to be backed up in backup request and
After LUN device identification, it can determine that the first subregion to be backed up is corresponding according to the corresponding LUN device identification of the first subregion to be backed up
LUN equipment, and then can be according to the corresponding partition identification of the first subregion to be backed up, in the sub-domains display of the LUN equipment
It is inquired, determines the corresponding initial address of the first subregion to be backed up and end address, and then can determine first to be backed up point
The amount of storage in area.
Step 103, in local each subregion, determine that amount of storage is greater than or equal to the amount of storage of the first subregion to be backed up
Subregion sends the query messages for carrying the subregion corresponding partition identification and LUN device identification determined to terminal.
It in an implementation, can be in local each subregion after disk storage system determines the amount of storage of the first subregion to be backed up
In inquired, determine amount of storage be greater than or equal to the first subregion to be backed up amount of storage subregion, and then it is available these
Then the corresponding partition identification of subregion and LUN device identification can send query messages to terminal, carry this in query messages
A little corresponding partition identifications of subregion and LUN device identification, terminal can then receive the query messages, then can disappear to the inquiry
The corresponding partition identification of subregion and the LUN device identification obtained in the query messages into parsing is ceased, and to the subregion mark got
Know and LUN device identification is shown that user can need to select subregion (i.e. first object subregion) according to itself, and terminal is then
The selection instruction of the corresponding subregion can be received, then selection message is sent to disk storage system, is carried in the selection message
There are the corresponding partition identification of first object subregion and LUN device identification.It is built in addition, disk storage system can also be determined with itself
In other storage systems of vertical business relations, amount of storage is greater than or equal to the subregion of the amount of storage of the first subregion to be backed up, to end
End sends the query messages for carrying these subregions corresponding partition identification and LUN device identification.User can according to itself
It needs to select other subregions in this storage system or LUN equipment as first object subregion, also can choose other storages
Subregion and LUN equipment in system is as first object subregion.
Optionally, it can determine that amount of storage is greater than or equal to all subregions of the amount of storage of the first subregion to be backed up, accordingly
, the treatment process of step 103 can be such that in local each subregion, and it is to be backed up to determine that amount of storage is greater than or equal to first
All subregions of the amount of storage of subregion carry the corresponding partition identification of subregion and LUN equipment mark determined to terminal transmission
The query messages of knowledge.
In an implementation, disk storage system can be inquired in local each subregion, determine that amount of storage is greater than or waits
In all subregions of the amount of storage of the first subregion to be backed up, and then the corresponding partition identification of these available subregions and LUN are set
Then standby mark can send query messages to terminal, carry the corresponding partition identification of these subregions and LUN in query messages
Device identification.
Optionally, it can determine that not stored data and amount of storage are greater than or equal to point of the amount of storage of the first subregion to be backed up
Area determines the subregion of not stored data correspondingly, the treatment process of step 103 can be such that in local each subregion;Really
Amount of storage is greater than or equal to the subregion of the amount of storage of the first subregion to be backed up in the subregion of fixed not stored data, takes to terminal transmission
Query messages with the subregion corresponding partition identification and LUN device identification determined.
In an implementation, disk storage system can be inquired in local each subregion, determine point of not stored data
Area, and then can determine that amount of storage is greater than or equal to the amount of storage of the first subregion to be backed up in the subregion of not stored data
Subregion, the then corresponding partition identification of these available subregions and LUN device identification send query messages, inquiry to terminal
The corresponding partition identification of the above-mentioned subregion determined and LUN device identification are carried in message.
Optionally, it can determine that amount of storage is greater than or equal to the subregion and LUN equipment of the amount of storage of the first subregion to be backed up,
Correspondingly, the treatment process of step 103 can be such that in local each subregion and each LUN equipment, determine amount of storage be greater than or
Equal to the subregion or LUN equipment of the amount of storage of the first subregion to be backed up, it is corresponding that the subregion for carrying and determining is sent to terminal
Partition identification and LUN device identification, and the query messages of the corresponding LUN device identification of LUN equipment determined.
It in an implementation, can be in local each subregion after disk storage system determines the amount of storage of the first subregion to be backed up
The middle subregion or LUN equipment for carrying out inquiry amount of storage and being greater than or equal to the amount of storage of the first subregion to be backed up, so it is available
The corresponding partition identification of the subregion inquired and LUN device identification, and the corresponding LUN device identification of LUN equipment inquired,
Then query messages can be sent to terminal, carry the corresponding partition identification of the subregion inquired in query messages and LUN is set
Standby mark, and the corresponding LUN device identification of LUN equipment inquired.
Step 104, the corresponding subregion mark of the first object subregion carried in the subregion determined that terminal is sent is received
Know the selection message with LUN device identification, the data of the first subregion to be backed up are backuped in first object subregion.
In an implementation, after disk storage system receives the selection message that terminal is sent, which can be carried out
Parsing, obtains the corresponding partition identification of first object subregion and the LUN device identification in the selection message, may then pass through the
The corresponding LUN device identification of one target partition determines LUN equipment belonging to first object subregion, and then can be according to the first mesh
The corresponding partition identification of subregion is marked, is identified in the partition information of the LUN equipment, the corresponding initial address of inquiry first object subregion
The end address and, it can determine first object subregion corresponding position in the disk in disk storage system.Disk storage
System can also determine first according to the above-mentioned corresponding partition identification of the first subregion to be backed up got and LUN device identification
Subregion to be backed up corresponding position in the disk in disk storage system, then disk storage system can by above-mentioned first to
Data in backup subregion backup in first object subregion.The method backed up can be diversified, can use
Any one of existing LUN device backup technology such as copies full dose copy, the increment of LUN, division mirror image, synchronizes remotely again
System, asynchronous remote copy etc..
In addition, the case where judging in certain LUN equipment above-mentioned disk storage system with the presence or absence of subregion, if disk is deposited
Storage system determines in certain LUN equipment not there is no subregion, then disk storage system can be object to this using LUN after judgement
LUN carries out data backup.
Optionally, the subregion and LUN of the amount of storage of the first subregion to be backed up are greater than or equal to for above-mentioned determining amount of storage
The case where equipment, correspondingly, the treatment process of step 104 can be such that receive terminal send carry the subregion determined
Partition identification corresponding with the first object subregion in LUN equipment and LUN device identification or first object LUN equipment are corresponding
LUN device identification selection message, the data of the first subregion to be backed up are backuped into first object subregion or first object
In LUN equipment.
In an implementation, after disk storage system receives the selection message that terminal is sent, which can be carried out
Parsing, obtains the information carried in the selection message, if the information that disk storage system is got is first object subregion pair
The partition identification answered and LUN device identification can then be handled according to above-mentioned processing method, if disk storage system obtains
The information arrived is the corresponding LUN device identification of first object LUN equipment, then can determine that the corresponding LUN of the LUN device identification is set
Standby (i.e. first object LUN equipment).If not there is no subregion in the LUN equipment, by the number in the above-mentioned first subregion to be backed up
According to backuping in the LUN equipment;If there are subregions in the LUN equipment, cancel the subregion in LUN equipment, this is by above-mentioned
Data in one subregion to be backed up backup in the LUN equipment.
Optionally, when reaching predetermined period, the data of the pre-set second subregion to be backed up can be backuped to
In two target partitions.
In an implementation, the predetermined period that backup can be preset in disk storage system, when reaching predetermined period, magnetic
Disc storaging system can the data automatically to certain subregion (the i.e. second subregion to be backed up) to be backed up back up, i.e., by above-mentioned
Backup method backups to the data of the subregion in other subregions (i.e. the second target partition).In this way, can be timely to having deposited
The data of storage are backed up and are saved, even if the subregion (the i.e. second subregion to be backed up) for saving the data is damaged, other
Subregion can still preserve complete data.
It optionally, can be by first object after the data of the first subregion to be backed up being backuped in first object subregion
Data in subregion copy in the first subregion to be backed up, and corresponding treatment process, which can be such that work as, detects that first is to be backed up
When corrupted data in subregion, the data in first object subregion are copied in the first subregion to be backed up.
In an implementation, disk storage system can be detected to the subregion of storing data, if detect first to
Data in backup subregion are damaged, then can determine the corresponding first object subregion of the first subregion to be backed up, then may be used
To copy to the data in first object subregion in the first subregion to be backed up, to repair the data in the first subregion to be backed up.
In the embodiment of the present invention, what disk storage system reception terminal was sent carries first corresponding point of subregion to be backed up
The backup request of area mark and logical unit number LUN device identification, disk storage system are corresponding according to the first subregion to be backed up
Partition identification and LUN device identification determine the amount of storage of the first subregion to be backed up, in local each subregion, determine amount of storage
More than or equal to the subregion of the amount of storage of the first subregion to be backed up, the corresponding subregion of subregion determined is carried to terminal transmission
The query messages of mark and LUN device identification receive the first object subregion carried in the subregion determined that terminal is sent
The data of first subregion to be backed up are backuped to first object point by the selection message of corresponding partition identification and LUN device identification
Qu Zhong, in this way, can only be backed up to the data in the first subregion to be backed up, so as to save the storage money of storage system
Source.
Embodiment three
Based on the same technical idea, the embodiment of the invention also provides a kind of devices of Backup Data, as shown in figure 3,
The device includes:
Receiving module 310, for receiving carrying the corresponding partition identification of the first subregion to be backed up and patrolling for terminal transmission
Collect the backup request of unit number LUN device identification;
Determining module 320, for according to the corresponding partition identification of the described first subregion to be backed up and LUN device identification, really
The amount of storage of fixed first subregion to be backed up;
Sending module 330, in local each subregion, determining that amount of storage is greater than or equal to described first to be backed up point
The subregion of the amount of storage in area carries looking into for the corresponding partition identification of subregion and LUN device identification determined to terminal transmission
Ask message;
Backup module 340, the first object carried in the subregion determined sent for receiving the terminal
The data of described first subregion to be backed up are backuped to institute by the selection message of the corresponding partition identification of subregion and LUN device identification
It states in first object subregion.
Optionally, the sending module 330, is used for:
In local each subregion, determine that amount of storage is greater than or equal to all of the amount of storage of the described first subregion to be backed up
Subregion sends the query messages for carrying the subregion corresponding partition identification and LUN device identification determined to terminal.
Optionally, the sending module 330, is used for:
In local each subregion, the subregion of not stored data is determined;
Determine that amount of storage is more than or equal to the amount of storage of the described first subregion to be backed up in the subregion of the not stored data
Subregion, sent to terminal and carry the query messages of the subregion corresponding partition identification and LUN device identification determined.
Optionally, the determining module 320, is also used to:
Determine each subregion in each LUN equipment of disk storage system corresponding initial address and end ground in disk
Location.
Optionally, the backup module 340, is also used to:
When reaching predetermined period, the data of the pre-set second subregion to be backed up are backuped into the second target partition
In.
Optionally, the backup module 340, is also used to:
When detecting the corrupted data in the described first subregion to be backed up, the data in the first object subregion are answered
It makes in the described first subregion to be backed up.
In the embodiment of the present invention, what disk storage system reception terminal was sent carries first corresponding point of subregion to be backed up
The backup request of area mark and logical unit number LUN device identification, disk storage system are corresponding according to the first subregion to be backed up
Partition identification and LUN device identification determine the amount of storage of the first subregion to be backed up, in local each subregion, determine amount of storage
More than or equal to the subregion of the amount of storage of the first subregion to be backed up, the corresponding subregion of subregion determined is carried to terminal transmission
The query messages of mark and LUN device identification receive the first object subregion carried in the subregion determined that terminal is sent
The data of first subregion to be backed up are backuped to first object point by the selection message of corresponding partition identification and LUN device identification
Qu Zhong, in this way, can only be backed up to the data in the first subregion to be backed up, so as to save the storage money of storage system
Source.
It should be understood that the device of Backup Data provided by the above embodiment is in Backup Data, only with above-mentioned each function
Can module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different functions
Module is completed, i.e., the internal structure of equipment is divided into different functional modules, described above all or part of to complete
Function.In addition, the device of Backup Data provided by the above embodiment and the embodiment of the method for Backup Data belong to same design,
Specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (13)
1. a kind of method of Backup Data, which is characterized in that the described method includes:
What disk storage system received that terminal sends carries the corresponding partition identification of the first subregion to be backed up and logical unit number
The backup request of LUN device identification;
Disk storage system determines described according to the corresponding partition identification of the described first subregion to be backed up and LUN device identification
The amount of storage of one subregion to be backed up;
In local each subregion, determine that amount of storage is greater than or equal to the subregion of the amount of storage of the described first subregion to be backed up, to
Terminal sends the query messages for carrying the subregion corresponding partition identification and LUN device identification determined;
Receive the corresponding partition identification of first object subregion carried in the subregion determined that the terminal is sent and
The selection message of LUN device identification backups to the data of the described first subregion to be backed up in the first object subregion.
2. determining that amount of storage is greater than the method according to claim 1, wherein described in local each subregion
Or the subregion of the amount of storage equal to the described first subregion to be backed up, the corresponding subregion of subregion determined is carried to terminal transmission
The query messages of mark and LUN device identification, comprising:
In local each subregion, determine that amount of storage is greater than or equal to all points of the amount of storage of the described first subregion to be backed up
Area sends the query messages for carrying the subregion corresponding partition identification and LUN device identification determined to terminal.
3. determining that amount of storage is greater than the method according to claim 1, wherein described in local each subregion
Or the subregion of the amount of storage equal to the described first subregion to be backed up, the corresponding subregion of subregion determined is carried to terminal transmission
The query messages of mark and LUN device identification, comprising:
In local each subregion, the subregion of not stored data is determined;
Determine that amount of storage is more than or equal to point of the amount of storage of the described first subregion to be backed up in the subregion of the not stored data
Area sends the query messages for carrying the subregion corresponding partition identification and LUN device identification determined to terminal.
4. the method according to claim 1, wherein the disk storage system receives carrying for terminal transmission
Before the corresponding partition identification of first subregion to be backed up and the backup request of logical unit number LUN device identification, the method is also
Include:
Determine each subregion in each LUN equipment of disk storage system corresponding initial address and end address in disk.
5. the method according to claim 1, wherein the data by the described first subregion to be backed up backup to
After in the first object subregion, the method also includes:
When detecting the corrupted data in the described first subregion to be backed up, the data in the first object subregion are copied to
In first subregion to be backed up.
6. determining that amount of storage is greater than the method according to claim 1, wherein described in local each subregion
Or the subregion of the amount of storage equal to the described first subregion to be backed up, the corresponding subregion of subregion determined is carried to terminal transmission
The query messages of mark and LUN device identification, comprising:
In local each subregion and each LUN equipment, determine that amount of storage is greater than or equal to the storage of the described first subregion to be backed up
The subregion or LUN equipment of amount carry the corresponding partition identification of subregion determined and LUN device identification to terminal transmission, with
And the query messages for the corresponding LUN device identification of LUN equipment determined;
The corresponding subregion mark of first object subregion carried in the subregion determined for receiving the terminal and sending
Know the selection message with LUN device identification, the data of the described first subregion to be backed up backuped in the first object subregion,
Include:
Receive corresponding point of first object subregion carried in the subregion and LUN equipment determined that the terminal is sent
The selection message of area mark and LUN device identification or the corresponding LUN device identification of first object LUN equipment, by described first
The data of subregion to be backed up backup in the first object subregion or the first object LUN equipment.
7. a kind of device of Backup Data, which is characterized in that described device includes:
Receiving module carries the corresponding partition identification of the first subregion to be backed up and logical unit number for receive terminal transmission
The backup request of LUN device identification;
Determining module, for according to the corresponding partition identification of the described first subregion to be backed up and LUN device identification, determining described the
The amount of storage of one subregion to be backed up;
Sending module, in local each subregion, determining that amount of storage is greater than or equal to depositing for the described first subregion to be backed up
The subregion of reserves sends the query messages for carrying the subregion corresponding partition identification and LUN device identification determined to terminal;
Backup module, it is corresponding for receiving the first object subregion carried in the subregion determined that the terminal is sent
Partition identification and LUN device identification selection message, the data of the described first subregion to be backed up are backuped into first mesh
It marks in subregion.
8. device according to claim 7, which is characterized in that the sending module is used for:
In local each subregion, determine that amount of storage is greater than or equal to all points of the amount of storage of the described first subregion to be backed up
Area sends the query messages for carrying the subregion corresponding partition identification and LUN device identification determined to terminal.
9. device according to claim 7, which is characterized in that the sending module is used for:
In local each subregion, the subregion of not stored data is determined;
Determine that amount of storage is more than or equal to point of the amount of storage of the described first subregion to be backed up in the subregion of the not stored data
Area sends the query messages for carrying the subregion corresponding partition identification and LUN device identification determined to terminal.
10. device according to claim 7, which is characterized in that the determining module is also used to:
Determine each subregion in each LUN equipment of disk storage system corresponding initial address and end address in disk.
11. device according to claim 7, which is characterized in that the backup module is also used to:
When reaching predetermined period, the data of the pre-set second subregion to be backed up are backuped in the second target partition.
12. device according to claim 7, which is characterized in that the backup module is also used to:
When detecting the corrupted data in the described first subregion to be backed up, the data in the first object subregion are copied to
In first subregion to be backed up.
13. device according to claim 7, which is characterized in that the sending module is used for:
In local each subregion and each LUN equipment, determine that amount of storage is greater than or equal to the storage of the described first subregion to be backed up
The subregion and LUN equipment of amount carry the corresponding partition identification of subregion determined and LUN device identification to terminal transmission, with
And the query messages for the corresponding LUN device identification of LUN equipment determined;
The backup module, is used for:
Receive corresponding point of first object subregion carried in the subregion and LUN equipment determined that the terminal is sent
The selection message of area mark and LUN device identification or the corresponding LUN device identification of first object LUN equipment, by described first
The data of subregion to be backed up backup in the first object subregion or first object LUN equipment.
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 CN105760251A (en) | 2016-07-13 |
CN105760251B true 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) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108733509B (en) * | 2017-04-17 | 2021-12-10 | 伊姆西Ip控股有限责任公司 | Method and system for backing up and restoring data in cluster system |
CN108984335B (en) * | 2017-06-02 | 2022-04-29 | 伊姆西Ip控股有限责任公司 | Method and system for backing up and restoring data |
CN110389857B (en) * | 2018-04-20 | 2023-04-21 | 伊姆西Ip控股有限责任公司 | Method, apparatus and non-transitory computer storage medium for data backup |
CN111930566A (en) * | 2020-07-28 | 2020-11-13 | 友谊时光科技股份有限公司 | Data backup method and device, electronic equipment and storage medium |
CN112925673B (en) * | 2021-02-18 | 2022-06-17 | 深圳市腾云数据系统有限公司 | Big data storage management method and system for power monitoring |
Citations (3)
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140279913A1 (en) * | 2013-03-15 | 2014-09-18 | Geoffrey Ray Wehrman | File system replication |
-
2014
- 2014-12-15 CN CN201410779452.4A patent/CN105760251B/en active Active
Patent Citations (3)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105760251A (en) | 2016-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105760251B (en) | A kind of method and apparatus of Backup Data | |
CN102043686B (en) | Disaster tolerance method, backup server and system of memory database | |
CN104216793B (en) | Application Backup, the method and apparatus recovered | |
CN103458086B (en) | A kind of smart mobile phone and fault detection method thereof | |
CN107391294A (en) | A kind of method for building up and device of IPSAN disaster tolerance systems | |
CN104715001A (en) | Method and system performing wirite operation on shared resource in cluster of data processing system | |
CN102238093A (en) | Service interruption prevention method and device | |
WO2014060882A1 (en) | Consistency group management | |
CN107480014A (en) | A kind of High Availabitity equipment switching method and device | |
CN103259688A (en) | Failure diagnosis method and device of distributed storage system | |
CN105516300A (en) | Equipment version upgrading method and system | |
CN103369660A (en) | Network-element data synchronization method and network-element device | |
CN110399171A (en) | A kind of hard disk management method, system and associated component | |
CN103905441A (en) | Data acquisition method and device | |
CN103870319B (en) | Information processing method, device and electronic equipment | |
CN103986779A (en) | Application data transmission method, device and terminal equipment | |
CN106294387A (en) | Data migration method and device | |
CN104903853A (en) | Dynamic firmware updating | |
CN108182128A (en) | Based on XEN without Agent virtual back-up restoring method | |
CN108460160B (en) | Off-line method, device, terminal and storage medium of database instance | |
EP3896571A1 (en) | Data backup method, apparatus and system | |
CN104517067A (en) | Method, device and system for data access | |
CN112269543B (en) | Storage logical volume management method, device and related components | |
CN109324765A (en) | A kind of Disk State detection method, device, equipment and storage medium | |
CN117130871A (en) | Parallel playback method and device for database logs and nonvolatile storage medium |
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 |
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. |
|
TR01 | Transfer of patent right |