CN106383667A - Method and apparatus for LUN migration in business operation - Google Patents
Method and apparatus for LUN migration in business operation Download PDFInfo
- Publication number
- CN106383667A CN106383667A CN201610826254.8A CN201610826254A CN106383667A CN 106383667 A CN106383667 A CN 106383667A CN 201610826254 A CN201610826254 A CN 201610826254A CN 106383667 A CN106383667 A CN 106383667A
- Authority
- CN
- China
- Prior art keywords
- lun
- data
- write
- written
- request message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
- G06F3/0611—Improving I/O performance in relation to response time
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0647—Migration mechanisms
Abstract
Embodiments of the invention provide a method and an apparatus for LUN (Logic Unit Number) migration in business operation. The method comprises the steps of receiving a first write request message of a host, wherein the first write request message is used for requesting to write first to-be-written data; writing the first to-be-written data in a source LUN according to the first write request message; sending a first write completion message to the host, wherein the first write completion message is used for indicating that the writing of the first to-be-written data is finished; recording a first DCL (Data Changed Log) according to the first write request message; and copying the first to-be-written data in the source LUN to a target LUN according to the first DCL. The writing, in the LUN migration process, of the to-be-written data in the business operation process is realized; and the write completion message is sent to the host after the to-be-written data is written in the source LUN, so that the processing time delay of the write operation of the host is shortened and the host performance is improved.
Description
Technical field
The present embodiments relate to technical field of memory, the method for LUN migration and dress in more particularly, to a kind of service operation
Put.
Background technology
With the continuous progress of memory technology, create and carry out business and move because of storage system upgrading or resource allocation adjustment
The demand moved.Some key businesses especially for user are in addition it is also necessary to realize business in the case of not interrupting host service
Migration.In actual applications, the demand of business migration is likely to occur in same set of or different storage systems.Wherein, logic list
Unit number (English:Logical Unit Number, referred to as:LUN) migration is the key technology realizing business migration, can be not
The business realized on the LUN of source in the case of interrupting host service intactly moves in target LUN, and makes mesh after duplication terminates
Mark complete alternate source LUN of LUN to carry business.In service operation, the detailed process of current LUN migration is:In Receiving Host
Write request after, and according to this write request record difference bitmap (English:Date Changed Log, referred to as:), then will treat DCL
Write data to be respectively written in source LUN and target LUN, then remove the DCL of record, finally return to main frame and write complete.But, existing skill
The scheme of art increased the processing delay of host write operation, reduces host performance.
Content of the invention
The method and apparatus that the embodiment of the present invention provides LUN migration in a kind of service operation, for reducing host write operation
Processing delay, improve host performance.
In a first aspect, the method that the embodiment of the present invention provides LUN migration in a kind of service operation, including:
First write request message of Receiving Host, described first write request message is used for request write the first data to be written;
According to described first write request message, by the described first data write source LUN to be written;
Send to described main frame and first write complete message, described first write complete message for instruction completed described in write
First data to be written;
According to described first write request message, record a DCL;
According to a described DCL, by the described first data copy to be written in described source LUN to target LUN.
Alternatively, described according to a described DCL, by the described first data copy to be written in described source LUN to target
In LUN, including:
According to a described DCL, within N number of copy cycle by the described first data copy to be written in described source LUN extremely
In described target LUN;Described N is the integer more than or equal to 1;
When the difference value of the data determining in described target LUN and described source LUN is less than preset data value, determine described
First data to be written has been copied to described target LUN.
Alternatively, the described difference value determining the data in described target LUN and described source LUN be less than preset data value it
Afterwards, also include:
Receive the second write request message of described main frame, described second write request message is used for request write the second number to be written
According to;
According to described second write request message, record the 2nd DCL;
According to described second write request message and described 2nd DCL, the described second data to be written is respectively written into described source
In LUN and target LUN;
Send to described main frame and second write complete message, described second write complete message for instruction completed described in write
Second data to be written.
Alternatively, the described difference value determining the data in described target LUN and described source LUN is less than preset data value,
Including:
When described N is more than or equal to preset times, determine the difference of the data in described target LUN and described source LUN
Value is less than preset data value.
Alternatively, the described difference value determining the data in described target LUN and described source LUN is less than preset data value,
Including:
According to a described DCL, determine the data not writing in described target LUN in described source LUN;
According to the described data not write in described target LUN, determine the data in described target LUN and described source LUN
Difference value be less than preset data value.
Second aspect, the embodiment of the present invention provides a kind of device of LUN migration in service operation, including:
Receiver module, for the first write request message of Receiving Host, described first write request message is used for request write
First data to be written;
Writing module, for according to described first write request message, by the described first data write source LUN to be written;
Sending module, writes complete message for sending first to described main frame, described first writes complete message is used for indicating
Complete to write the described first data to be written;
Logging modle, for according to described first write request message, recording a DCL;
Copy module, for according to a described DCL, by the described first data copy to be written in described source LUN to mesh
In mark LUN.
Alternatively, described copy module, specifically for:
According to a described DCL, within N number of copy cycle by the described first data copy to be written in described source LUN extremely
In described target LUN;Described N is the integer more than or equal to 1;
When the difference value of the data determining in described target LUN and described source LUN is less than preset data value, determine described
First data to be written has been copied to described target LUN.
Alternatively, described receiver module, is additionally operable to described copy module in determining described target LUN and described source LUN
Data difference value be less than preset data value after, receive described main frame the second write request message, described second write request
Message is used for request write the second data to be written;
Described logging modle, is additionally operable to, according to described second write request message, record the 2nd DCL;
Said write module, is additionally operable to according to described second write request message and described 2nd DCL, to be written by described second
Data is respectively written in described source LUN and target LUN;
Described sending module, is additionally operable to write complete message to described main frame transmission second, and described second writes complete message uses
Complete to write the described second data to be written in instruction.
Alternatively, the difference value of data in determining described target LUN and described source LUN for the described copy module is less than in advance
If during data value, specifically for:
When described N is more than or equal to preset times, determine the difference of the data in described target LUN and described source LUN
Value is less than preset data value.
Alternatively, the difference value of data in determining described target LUN and described source LUN for the described copy module is less than in advance
If during data value, specifically for:
According to a described DCL, determine the data not writing in described target LUN in described source LUN;
According to the described data not write in described target LUN, determine the data in described target LUN and described source LUN
Difference value be less than preset data value.
The method and apparatus that the embodiment of the present invention provides LUN migration in a kind of service operation, by the first of Receiving Host
Write request message, described first write request message is used for request write the first data to be written;According to described first write request message,
By in the described first data write source LUN to be written;Send first to described main frame and write complete message, described first writes complete message
Complete to write the described first data to be written for instruction;According to described first write request message, record a DCL;According to institute
State a DCL, by the described first data copy to be written in described source LUN to target LUN it is achieved that during service operation
Write in the LUN transition process of data to be written, due in the present embodiment by data to be written after being written to source LUN just to main frame
Feedback writes complete message, therefore, reduces the processing delay of host write operation, improves host performance.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description are these
Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also root
Obtain other accompanying drawings according to these accompanying drawings.
The flow chart of the method for LUN migration in the service operation that Fig. 1 provides for the embodiment of the present invention one;
The flow chart of the method for LUN migration in the service operation that Fig. 2 provides for the embodiment of the present invention two;
The structural representation of the device of LUN migration in the service operation that Fig. 3 provides for the embodiment of the present invention one;
The structural representation of the device of LUN migration in the service operation that Fig. 4 provides for the embodiment of the present invention two.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described it is clear that described embodiment is
The a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment being obtained under the premise of not making creative work, broadly falls into the scope of protection of the invention.
The flow chart of the method for LUN migration in the service operation that Fig. 1 provides for the embodiment of the present invention one, as shown in figure 1, this
The method of embodiment can include:
S101, the first write request message of Receiving Host, it is to be written that described first write request message is used for request write first
Data.
S102, according to described first write request message, by the described first data write source LUN to be written.
S103, send to described main frame and first write complete message, described first write complete message for instruction complete to write
Enter the described first data to be written.
S104, according to described first write request message, record a DCL.
S105, according to a described DCL, by the described first data copy to be written in described source LUN to target LUN.
In the present embodiment, LUN migration refers to by the Data Migration on the LUN of source in target LUN, and LUN transition process
Some business are still being run, and therefore, can there is the situation that main frame writes data to source LUN, for this situation, the present embodiment can
The first write request message being sent with Receiving Host, this first write request message is used for request write the first data to be written;Then
Write according to first and ask message for instructions, the first data to be written is write to the LUN of source, then send first to main frame and write complete message, lead to
Cross first and write complete message and complete to write the first data to be written to host notification, for main frame, this first data to be written
Write operation completes.Then the present embodiment is according to the first write request message record the DCL, further according to a DCL by the LUN of source
The first data copy to be written to target LUN so that first data to be written that is all stored with source LUN and target LUN, phase
When migrating from source LUN to the process of target LUN in achieving the first data to be written.
The method of LUN migration in the service operation that the present embodiment provides, by the first write request message of Receiving Host, institute
State the first write request message for request write the first data to be written;According to described first write request message, described first is treated
Write in data write source LUN;Send to described main frame and first write complete message, described first write complete message for indicate complete
Become write the described first data to be written;According to described first write request message, record a DCL;According to a described DCL, will
The data to be written to target LUN it is achieved that during service operation of the described first data copy to be written in described source LUN
Write in LUN transition process, due to just writing complete data to be written to main frame feedback after being written to source LUN in the present embodiment
Message, therefore, reduces the processing delay of host write operation, improves host performance.
The flow chart of the method for LUN migration in the service operation that Fig. 2 provides for the embodiment of the present invention two, as shown in Fig. 2 this
The method of embodiment can include:
S201, the first write request message of Receiving Host, it is to be written that described first write request message is used for request write first
Data.
S202, according to described first write request message, by the described first data write source LUN to be written.
S203, send to described main frame and first write complete message, described first write complete message for instruction complete to write
Enter the described first data to be written.
S204, according to described first write request message, record a DCL.
In the present embodiment, S201-S204 implements the associated description that process may refer in embodiment illustrated in fig. 1,
Here is omitted.
S205, according to a described DCL, within N number of copy cycle, the described first data to be written in described source LUN is copied
Shellfish is to described target LUN.
S206, when the difference value of the data determining in described target LUN and described source LUN is less than preset data value, really
Fixed described first data to be written has been copied to described target LUN.
In the present embodiment, according to a DCL, by N number of copy cycle by data copy to be written for first in the LUN of source to mesh
In mark LUN;Described N is the integer more than or equal to 1;Namely within each copy cycle, according to a DCL, by the LUN of source
The first data copy to be written to target LUN;And the data in the LUN of source is copied according to a DCL in each copy cycle
After shellfish is to target LUN, determine whether the difference value of the data in target LUN and source LUN is less than preset data value, work as determination
When the difference value of the data in target LUN and source LUN is not less than preset data value, when reaching next copy cycle, still
According to a DCL by the data copy in the LUN of source to target LUN;Difference when the data determining in target LUN and source LUN
During less than preset data value, determine that data has been copied to target LUN.
Above-mentioned preset data value can be default setting, such as 100MB it is also possible to be set according to service conditions
Fixed.Maximum copy cycle, determined by the difference value and preset data value of the data of business, acquiescence can be arranged according to service conditions
Maximum copy cycle, such as 50 cycles.Then actual N copy cycle is less than or equal to maximum copy cycle.
Alternatively, determine in S206 that the difference value of the data in described target LUN and described source LUN is less than preset data value
A kind of feasible implementation include:When described N is more than or equal to preset times, determine described target LUN and described source
The difference value of the data in LUN is less than preset data value.When namely copy cycle has reached maximum copy cycle, then stop continuing
Continuous copy procedure.
Alternatively, determine in S206 that the difference value of the data in described target LUN and described source LUN is less than preset data value
A kind of feasible implementation include:According to a described DCL, determine in described source LUN and do not write in described target LUN
Data;According to the described data not write in described target LUN, determine the difference of the data in described target LUN and described source LUN
Different value is less than preset data value.It is, according to the data volume of the data not write in target LUN, this data volume is exactly target
The difference value of the data in LUN and source LUN, thus judging whether this data volume is less than preset data value, if less than determination institute
The difference value stating the data in target LUN and described source LUN is less than preset data value.
Alternatively, before execution S204, the present embodiment also records the corresponding timeslice of described first write request message and compiles
Number (English:Time Period Number, referred to as:TPN);Correspondingly, a kind of feasible implementation of S204 includes:According to
Described write request message and described TPN, record a described DCL.
Alternatively, the method for the present embodiment can also include:
S207, the second write request message of the described main frame of reception, described second write request message is used for asking write second
Data to be written.
S208, according to described second write request message, record the 2nd DCL.
S209, according to described second write request message and described 2nd DCL, the described second data to be written is respectively written into institute
State in source LUN and target LUN.
S210, send to described main frame and second write complete message, described second write complete message for instruction complete to write
Enter the described second data to be written.
In the present embodiment, if after execution S206, also receiving write request message, the referred to as second write request message, then
Execution S207-S210 as above, wherein, the scheme of S207-S210 achieves main frame and source LUN and the execution of target LUN is write simultaneously
Operation, and after the completion of the write operation to source LUN and target LUN, then writing complete message to main frame transmission, this writes complete message and is referred to as
Second writes complete message, thus completing source LUN to the data migration process of target LUN.
In the service operation that the present embodiment provides, the method for LUN migration, realizes source LUN by N+1 copy procedure and arrives
The Data Migration of target LUN, wherein, n times copy procedure is that data to be written first writes source LUN, then writes target LUN, and last
Copy procedure is to be simultaneously written source LUN and target LUN, due in the present embodiment by data to be written after being written to source LUN
Just write complete message to main frame feedback, therefore, reduce the processing delay of host write operation, improve host performance.
The method being provided based on the various embodiments described above of the present invention, includes local terminal Cache and source book, target LUN bag with source LUN
As a example including target Cache and target volume, the solution of the present invention is described, and when data write by main frame, a handwritten copy end Cache just returns
Return main frame to write complete, local terminal Cache is data brush to record difference bitmap (singly writing) during the LUN of source.Data is from source LUN to target
The duplication of LUN, by background copy input/output (English:Input Output, referred to as:IO) N number of replicative cycle is divided to complete, often
Individual replicative cycle, according to difference bitmap the newly-increased data duplication of source LUN to target LUN.Through N number of replicative cycle, Zhi Daoyuan
Volume and target volume in difference very little (less than the preset data value) of data when main frame IO more double write and complete migrate.Flow process is as follows
Shown:
1st, in the transition process of LUN, source LUN receives main frame write request it is only necessary to write source LUN, and IO is write local terminal by main frame
Cache returns main frame and writes complete, and by the corresponding TPN of this IO affix.
2nd, when local terminal Cache data brush is to source LUN, then to writing IO process, the time point according to IO records to this IO
Difference bitmap, IO write source LUN after the completion of process.
3rd, according to difference bitmap newly-increased data duplication on the LUN of source to target LUN, this process replicates IO by background copy
Complete and circulate execution, the data difference on source LUN and target LUN is less and less.
4th, through N number of replicative cycle, when difference is less than preset data value, main frame IO is double again to be write and completes to migrate.
Explanation:In transition process, source LUN receives main frame write request, according to synchronous progress:Data block to writing position
Not yet copy target LUN to, only write source LUN, after a while by background copy task by data syn-chronization to target LUN;To write
The data block of position has copied, same only write source LUNN, waits next replicative cycle to be synchronized to target LUN;To write position
The data block put copies, and writes source LUN, wait next replicative cycle to be synchronized to mesh after the completion of needing to wait this data block copy
Mark LUN.
The scheme of various embodiments of the present invention is applied not only to storage area network (English:Storage Area Network, letter
Claim:SAN) storage array is it can also be used to realize the Network storage technology (English of shift function:Network Storage
Technologies, referred to as:) etc. NAS storage network is it is adaptable to the initial synchronisation scene of the characteristic such as clone, synchronous remote copy.
The structural representation of the device of LUN migration in the service operation that Fig. 3 provides for the embodiment of the present invention one, as Fig. 3 institute
Show, the device of the present embodiment can include:Receiver module 11, writing module 12, sending module 13, logging modle 14 and copy mould
Block 15, wherein,
Receiver module 11, for the first write request message of Receiving Host, described first write request message is write for request
Enter the first data to be written;
Writing module 12, for according to described first write request message, by the described first data write source LUN to be written;
Sending module 13, writes complete message for sending first to described main frame, described first writes complete message is used for referring to
Show and complete to write the described first data to be written;
Logging modle 14, for according to described first write request message, recording the first difference bitmap DCL;
Copy module 15, for according to a described DCL, by the described first data copy to be written in described source LUN extremely
In target LUN.
Alternatively, described copy module 15, specifically for:
According to a described DCL, within N number of copy cycle by the described first data copy to be written in described source LUN extremely
In described target LUN;Described N is the integer more than or equal to 1;
When the difference value of the data determining in described target LUN and described source LUN is less than preset data value, determine described
First data to be written has been copied to described target LUN.
Alternatively, described receiver module 11, is additionally operable to described copy module 15 and is determining described target LUN and described source
After the difference value of the data in LUN is less than preset data value, receive the second write request message of described main frame, described second writes
Request message is used for request write the second data to be written;
Described logging modle 14, is additionally operable to, according to described second write request message, record the 2nd DCL;
Said write module 12, is additionally operable to, according to described second write request message and described 2nd DCL, described second be treated
Write data to be respectively written in described source LUN and target LUN;
Described sending module 13, is additionally operable to write complete message to described main frame transmission second, described second writes complete message
Complete to write the described second data to be written for instruction.
Alternatively, the difference value of data in determining described target LUN and described source LUN for the described copy module 15 is less than
During preset data value, specifically for:
When described N is more than or equal to preset times, determine the difference of the data in described target LUN and described source LUN
Value is less than preset data value.
Alternatively, the difference value of data in determining described target LUN and described source LUN for the described copy module 15 is less than
During preset data value, specifically for:
According to a described DCL, determine the data not writing in described target LUN in described source LUN;
According to the described data not write in described target LUN, determine the data in described target LUN and described source LUN
Difference value be less than preset data value.
The device of the present embodiment, can be used for executing the technical scheme of the present invention above-mentioned each method embodiment, it realizes former
Reason is similar with technique effect, and here is omitted.
The structural representation of the device of LUN migration in the service operation that Fig. 4 provides for the embodiment of the present invention two, as Fig. 4 institute
Show, the device of the present embodiment can include:Memorizer 21, processor 22 and communication interface 23;Wherein, memorizer 21 is used for storing
The code of the method for LUN migration in execution service operation, processor 22 is used for calling the described code execution of memorizer 21 storage:
By the first write request message of communication interface 23 Receiving Host, described first write request message is used for request write
First data to be written;
According to described first write request message, by the described first data write source LUN to be written;
Send first by communication interface 23 to described main frame and write complete message, described first writes complete message is used for indicating
Complete to write the described first data to be written;
According to described first write request message, record the first difference bitmap DCL;
According to a described DCL, by the described first data copy to be written in described source LUN to target LUN.
Alternatively, described processor 22 is according to a described DCL, by the described first data to be written in described source LUN
When being copied in target LUN, specifically for:
According to a described DCL, within N number of copy cycle by the described first data copy to be written in described source LUN extremely
In described target LUN;Described N is the integer more than or equal to 1;
When the difference value of the data determining in described target LUN and described source LUN is less than preset data value, determine described
First data to be written has been copied to described target LUN.
Alternatively, described processor 22 is additionally operable to the difference value of the data in determining described target LUN and described source LUN
The second write request message of described main frame, described second write request after preset data value, is received by communication interface 23
Message is used for request write the second data to be written;According to described second write request message, record the 2nd DCL;According to described second
Write request message and described 2nd DCL, the described second data to be written is respectively written in described source LUN and target LUN;By logical
Letter interface 23 sends to described main frame and second writes complete message, described second write complete message for instruction completed described in write
Second data to be written.
Alternatively, the difference value of data in determining described target LUN and described source LUN for the described processor 22 is less than in advance
If during data value, specifically for:When described N is more than or equal to preset times, determine in described target LUN and described source LUN
Data difference value be less than preset data value.
Alternatively, the difference value of data in determining described target LUN and described source LUN for the described processor 22 is less than in advance
If during data value, specifically for:According to a described DCL, determine the data not writing in described target LUN in described source LUN;
According to the described data not write in described target LUN, determine the difference value of the data in described target LUN and described source LUN
Less than preset data value.
The device of the present embodiment, can be used for executing the technical scheme of the above-mentioned each shown embodiment of the method for the present invention, in fact
Existing principle is similar with technique effect, and here is omitted.
One of ordinary skill in the art will appreciate that:The all or part of step realizing above-mentioned each method embodiment can be led to
Cross the related hardware of programmed instruction to complete.Aforesaid program can be stored in a computer read/write memory medium.This journey
Sequence upon execution, executes the step including above-mentioned each method embodiment;And aforesaid storage medium includes:Read-only memory (English:
Read-Only Memory, referred to as:ROM), random access memory (English:Random Access Memory, referred to as:
RAM), magnetic disc or CD etc. are various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above only in order to technical scheme to be described, is not intended to limit;To the greatest extent
Pipe has been described in detail to the present invention with reference to foregoing embodiments, it will be understood by those within the art that:Its according to
So the technical scheme described in foregoing embodiments can be modified, or wherein some or all of technical characteristic is entered
Row equivalent;And these modifications or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention technology
The scope of scheme.
Claims (10)
1. a kind of method that in service operation, LUN LUN migrates is it is characterised in that include:
First write request message of Receiving Host, described first write request message is used for request write the first data to be written;
According to described first write request message, by the described first data write source LUN to be written;
Send to described main frame and first write complete message, described first write complete message for instruction complete to write described first
Data to be written;
According to described first write request message, record the first difference bitmap DCL;
According to a described DCL, by the described first data copy to be written in described source LUN to target LUN.
2. method according to claim 1 it is characterised in that described according to a described DCL, by described source LUN
Described first data copy to be written to target LUN, including:
According to a described DCL, within N number of copy cycle, the described first data copy to be written in described source LUN is extremely described
In target LUN;Described N is the integer more than or equal to 1;
When the difference value of the data determining in described target LUN and described source LUN is less than preset data value, determine described first
Data to be written has been copied to described target LUN.
3. method according to claim 2 is it is characterised in that number in described target LUN of described determination and described source LUN
According to difference value be less than preset data value after, also include:
Receive the second write request message of described main frame, described second write request message is used for request write the second data to be written;
According to described second write request message, record the 2nd DCL;
According to described second write request message and described 2nd DCL, by the described second data to be written be respectively written into described source LUN and
In target LUN;
Send to described main frame and second write complete message, described second write complete message for instruction complete to write described second
Data to be written.
4. according to the method in claim 2 or 3 it is characterised in that described determine in described target LUN and described source LUN
Data difference value be less than preset data value, including:
When described N is more than or equal to preset times, determine that the difference value of data in described target LUN and described source LUN is little
In preset data value.
5. according to the method in claim 2 or 3 it is characterised in that described determine in described target LUN and described source LUN
Data difference value be less than preset data value, including:
According to a described DCL, determine the data not writing in described target LUN in described source LUN;
According to the described data not write in described target LUN, determine the difference of the data in described target LUN and described source LUN
Different value is less than preset data value.
6. the device that in a kind of service operation, LUN LUN migrates is it is characterised in that include:
Receiver module, for the first write request message of Receiving Host, described first write request message is used for asking write first
Data to be written;
Writing module, for according to described first write request message, by the described first data write source LUN to be written;
Sending module, first writes complete message for sending to described main frame, described first write complete message for indicate complete
Become write the described first data to be written;
Logging modle, for according to described first write request message, recording the first difference bitmap DCL;
Copy module, for according to a described DCL, by the described first data copy to be written in described source LUN to target LUN
In.
7. device according to claim 6 is it is characterised in that described copy module, specifically for:
According to a described DCL, within N number of copy cycle, the described first data copy to be written in described source LUN is extremely described
In target LUN;Described N is the integer more than or equal to 1;
When the difference value of the data determining in described target LUN and described source LUN is less than preset data value, determine described first
Data to be written has been copied to described target LUN.
8. device according to claim 7, it is characterised in that described receiver module, is additionally operable to described copy module true
After the difference value of the data in fixed described target LUN and described source LUN is less than preset data value, receive the second of described main frame
Write request message, described second write request message is used for request write the second data to be written;
Described logging modle, is additionally operable to, according to described second write request message, record the 2nd DCL;
Said write module, is additionally operable to according to described second write request message and described 2nd DCL, by the described second data to be written
It is respectively written in described source LUN and target LUN;
Described sending module, is additionally operable to write complete message to described main frame transmission second, described second writes complete message is used for referring to
Show and complete to write the described second data to be written.
9. the device according to claim 7 or 8 is it is characterised in that described copy module is determining described target LUN and institute
When stating the difference value of data in the LUN of source and being less than preset data value, specifically for:
When described N is more than or equal to preset times, determine that the difference value of data in described target LUN and described source LUN is little
In preset data value.
10. the device according to claim 7 or 8 it is characterised in that described copy module determine described target LUN with
When the difference value of the data in described source LUN is less than preset data value, specifically for:
According to a described DCL, determine the data not writing in described target LUN in described source LUN;
According to the described data not write in described target LUN, determine the difference of the data in described target LUN and described source LUN
Different value is less than preset data value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610826254.8A CN106383667B (en) | 2016-09-18 | 2016-09-18 | The method and apparatus that LUN is migrated in service operation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610826254.8A CN106383667B (en) | 2016-09-18 | 2016-09-18 | The method and apparatus that LUN is migrated in service operation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106383667A true CN106383667A (en) | 2017-02-08 |
CN106383667B CN106383667B (en) | 2019-06-21 |
Family
ID=57935756
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610826254.8A Active CN106383667B (en) | 2016-09-18 | 2016-09-18 | The method and apparatus that LUN is migrated in service operation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106383667B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018142174A (en) * | 2017-02-28 | 2018-09-13 | 日本電気株式会社 | Storage system |
CN110162376A (en) * | 2018-02-12 | 2019-08-23 | 杭州宏杉科技股份有限公司 | A kind of data read-write method and device |
CN114442941A (en) * | 2022-01-05 | 2022-05-06 | 杭州宏杉科技股份有限公司 | Data migration method, system, storage medium and equipment |
CN114442943A (en) * | 2022-01-05 | 2022-05-06 | 杭州宏杉科技股份有限公司 | Data migration method, system and equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102096616A (en) * | 2011-02-15 | 2011-06-15 | 成都市华为赛门铁克科技有限公司 | Logical object data duplication method and related device |
CN102103629A (en) * | 2010-12-14 | 2011-06-22 | 西北工业大学 | Online data migration method |
CN103106045A (en) * | 2012-12-20 | 2013-05-15 | 华为技术有限公司 | Data migration method, system and device at host machine end |
CN104407936A (en) * | 2014-11-18 | 2015-03-11 | 华为数字技术(成都)有限公司 | Data snapshot method and device |
US20150350315A1 (en) * | 2014-05-29 | 2015-12-03 | Netapp, Inc. | Zero copy volume reconstruction |
-
2016
- 2016-09-18 CN CN201610826254.8A patent/CN106383667B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102103629A (en) * | 2010-12-14 | 2011-06-22 | 西北工业大学 | Online data migration method |
CN102096616A (en) * | 2011-02-15 | 2011-06-15 | 成都市华为赛门铁克科技有限公司 | Logical object data duplication method and related device |
CN103106045A (en) * | 2012-12-20 | 2013-05-15 | 华为技术有限公司 | Data migration method, system and device at host machine end |
US20150350315A1 (en) * | 2014-05-29 | 2015-12-03 | Netapp, Inc. | Zero copy volume reconstruction |
CN104407936A (en) * | 2014-11-18 | 2015-03-11 | 华为数字技术(成都)有限公司 | Data snapshot method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018142174A (en) * | 2017-02-28 | 2018-09-13 | 日本電気株式会社 | Storage system |
CN110162376A (en) * | 2018-02-12 | 2019-08-23 | 杭州宏杉科技股份有限公司 | A kind of data read-write method and device |
CN114442941A (en) * | 2022-01-05 | 2022-05-06 | 杭州宏杉科技股份有限公司 | Data migration method, system, storage medium and equipment |
CN114442943A (en) * | 2022-01-05 | 2022-05-06 | 杭州宏杉科技股份有限公司 | Data migration method, system and equipment |
CN114442943B (en) * | 2022-01-05 | 2023-04-25 | 杭州宏杉科技股份有限公司 | Data migration method, system and equipment |
CN114442941B (en) * | 2022-01-05 | 2023-05-12 | 杭州宏杉科技股份有限公司 | Data migration method, system, storage medium and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106383667B (en) | 2019-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106687911B (en) | Online data movement without compromising data integrity | |
US8924353B1 (en) | Systems and methods for copying database files | |
CN106569738B (en) | A kind of method and device for deleting cascade snapshot | |
CN106383667A (en) | Method and apparatus for LUN migration in business operation | |
WO2010040768A2 (en) | Method for optimizing cleaning of maps in flashcopy cascades containing incremental maps | |
CN110389905B (en) | Resource release method, resource allocation method, device and computer program product | |
CN106776147B (en) | Differential data backup method and differential data backup device | |
US8572338B1 (en) | Systems and methods for creating space-saving snapshots | |
CN110737402B (en) | Method, apparatus and computer storage medium for managing storage system | |
CN104040512A (en) | Method and device for processing storage space and non-volatile computer readable storage medium | |
CN104035728A (en) | Hard disk hot plug handling method, device and node | |
CN114237519A (en) | Method, device, equipment and medium for migrating object storage data | |
CN113806300A (en) | Data storage method, system, device, equipment and storage medium | |
KR102166185B1 (en) | Data processing apparatus for pipeline execution acceleration and method thereof | |
US9619336B2 (en) | Managing production data | |
CN107193693A (en) | A kind of online data storage optimization method based on storage system | |
CN109522281A (en) | A kind of method of Distributed File System Data rapid copy | |
CN105302501A (en) | Control method and device for disk sectors | |
CN105677248A (en) | Data access method and device | |
US10275468B2 (en) | Replication of data in a distributed file system using an arbiter | |
CN103559103A (en) | Data replication method and device | |
US8656124B2 (en) | Managing backup relationships in a data storage system | |
US11138122B2 (en) | System and method for dual node parallel flush | |
CN106202262A (en) | A kind of information processing method and electronic equipment | |
CN107944010A (en) | The method and apparatus of reading and writing of files in a kind of distributed file system |
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: 20220905 Address after: No. 1899 Xiyuan Avenue, high tech Zone (West District), Chengdu, Sichuan 610041 Patentee after: Chengdu Huawei Technologies Co.,Ltd. Address before: 611731 Qingshui River District, Chengdu hi tech Zone, Sichuan, China Patentee before: HUAWEI DIGITAL TECHNOLOGIES (CHENG DU) Co.,Ltd. |