CN105760109B - Data migration method and storage array - Google Patents
Data migration method and storage array Download PDFInfo
- Publication number
- CN105760109B CN105760109B CN201410784848.8A CN201410784848A CN105760109B CN 105760109 B CN105760109 B CN 105760109B CN 201410784848 A CN201410784848 A CN 201410784848A CN 105760109 B CN105760109 B CN 105760109B
- Authority
- CN
- China
- Prior art keywords
- lun
- migration
- source
- host
- storage array
- 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 embodiment of the present invention provides a kind of data migration method and storage array, and the method includes: the corresponding relationship that the first storage array is established between source migration LUN and purpose migration LUN, and it is any LUN to be migrated in the second storage array that source, which migrates LUN,;Creation virtual LUN corresponding with purpose migration LUN, and establish the corresponding relationship between virtual LUN and host;Wherein, virtual LUN concentrates the corresponding processing result of same scsi command identical with the scsi command of the non-read-write of source migration LUN;Source is migrated into the Data Migration in LUN to purpose and migrates LUN;After in source, migration LUN is removed, the first scsi command of receiving host transmission;The corresponding processing result of the first scsi command of virtual LUN is returned to host.To which during Data Migration, the business of host is not interrupted, and ensure that the continuity of business.
Description
Technical field
The present embodiments relate to technical field of memory more particularly to a kind of data migration methods and storage array.
Background technique
Currently, a storage array (hereinafter referred to as the first storage array) is replaced other storage arrays (hereinafter referred to as
Second storage array) when will necessarily use Data Migration.The detailed process of Data Migration are as follows: in the preceding memory block of Data Migration
It include host and the second storage array, second storage in domain network (English: Storage Area Network, abbreviation: SAN)
Array includes logical unit number to be migrated (English: Logical Unit Number, referred to as: LUN), and network administrator is by the
One storage array is put into SAN, then by the LUN to be migrated in the second storage array, maps to first by way of external LUN
Storage array, a then mirror image LUN is created inside the first storage array establishes mirror image the LUN to be migrated and mirror image LUN pass
System;Then LUN to be migrated is mapped to host by the first storage array, host can obtain the road Duo Yitiao by multi-path software
Diameter;The path priority for reducing the second storage array is set by multi-path software again, or directly extracts the second storage array
Cable;The input and output (English: Input/Output, referred to as: I/O) of host can be sent to the by the first storage array at this time
In two storage arrays;Log-on data migrates task simultaneously;After Data Migration, business is disconnected, removes the second storage array,
Mirror image LUN is directly mapped to host as main LUN to use.
However, needing to disconnect and stop the business of host in above scheme after the completion of Data Migration, business not can guarantee
Continuity.
Summary of the invention
The embodiment of the present invention provides a kind of data migration method and storage array, for guaranteeing the continuity of business.
In a first aspect, the embodiment of the present invention provides a kind of data migration method, comprising: the first storage array is established second and deposited
The corresponding relationship between the source migration LUN of array and the purpose migration LUN of first storage array is stored up, the source migrates LUN
For any LUN to be migrated in second storage array;The first storage array creation is corresponding with purpose migration LUN
Virtual LUN, and the corresponding relationship between the virtual LUN and host is established, so that the host is by the host and institute
The path between virtual LUN is stated as the path between the host and source migration LUN;Wherein, the virtual LUN and institute
The scsi command for stating the non-read-write of source migration LUN concentrates the corresponding processing result of same scsi command identical;Described first
The source is migrated the Data Migration in LUN to the purpose and migrates LUN by storage array;After in the source, migration LUN is removed, institute
It states the first storage array and receives the first SCSI life that the host is sent by the path between the host and the virtual LUN
Enable, first scsi command be the non-read-write scsi command concentrate any scsi command or SCSI read command or
SCSI write command;First scsi command that first storage array returns to the virtual LUN to the host is corresponding
Processing result.
In the first possible implementation of the first aspect, the first storage array creation is migrated with the purpose
After the corresponding virtual LUN of LUN, further includes: first storage array sends the second scsi command to source migration LUN,
Second scsi command is any scsi command that the scsi command of the non-read-write is concentrated;First storage array receives
The corresponding processing result of second scsi command that the source migration LUN is sent, and using the processing result as the void
Processing result corresponding with second scsi command in quasi- LUN, so that the institute of the virtual LUN and source migration LUN
It is identical to state the corresponding processing result of the second scsi command.
In the second possible implementation of the first aspect, first storage array establish the virtual LUN with
After corresponding relationship between host, further includes: first storage array receive the host by the host with it is described
The second scsi command that path between virtual LUN is sent, second scsi command are the scsi command of the non-read-write
In any scsi command;Second scsi command is forwarded to the source and migrates LUN by first storage array;Described
One storage array receives the corresponding processing result of second scsi command that the source migration LUN is returned;First storage
The processing result is transmitted to the host by array, and using the processing result as in the virtual LUN with described
The corresponding processing result of two scsi commands, so that the virtual LUN is corresponding with source migration second scsi command of LUN
Processing result it is identical.
With reference to first aspect or second of the first possible implementation of first aspect or first aspect possible
Implementation, in a third possible implementation of the first aspect, before migration LUN is removed in the source, further includes: institute
State the first storage array and receive the SCSI write command that the host is sent, the SCSI write command be used to be written data to be written to
The source migrates LUN;The data to be written are written to the purpose according to the SCSI write command for first storage array
LUN is migrated, and the SCSI write command is forwarded to the source and migrates LUN, so that the source migrates LUN for the number to be written
LUN is migrated according to write-in to the source.
With reference to first aspect or the first any one into the third possible implementation of first aspect,
In 4th kind of possible implementation of one side, Data Migration to the purpose by source migration LUN is migrated
After LUN, further includes: in source migration LUN removal and the communication link between the host and first storage array
After connecing disconnection, first storage array deletes the virtual LUN.
Second aspect, the embodiment of the present invention provide a kind of storage array, comprising: processing unit, for establishing the second storage
Corresponding relationship between the source migration LUN of array and the purpose migration LUN of first storage array, the source migration LUN are
Any LUN to be migrated in second storage array;Creation virtual LUN corresponding with purpose migration LUN, and establish
Corresponding relationship between the virtual LUN and host, so that the host is by the path between the host and the virtual LUN
As the path between the host and source migration LUN;Wherein, the virtual LUN and source migration LUN's is described non-
The scsi command of read-write concentrates the corresponding processing result of same scsi command identical;Migration units, for the source to be migrated LUN
In Data Migration to the purpose migrate LUN;Receiving unit, for receiving the host after source migration LUN is removed
The first scsi command sent by the path between the host and the virtual LUN, first scsi command is described
Any scsi command or SCSI read command or SCSI write command that the scsi command of non-read-write is concentrated;Transmission unit is used for
The corresponding processing result of first scsi command of the virtual LUN is returned to the host.
In the first possible implementation of the second aspect, the transmission unit is also used to create in the processing unit
It builds after virtual LUN corresponding with purpose migration LUN, the source Xiang Suoshu migration LUN the second scsi command of transmission, described second
Scsi command is any scsi command that the scsi command of the non-read-write is concentrated;The receiving unit is also used to receive described
Source migrates the corresponding processing result of second scsi command that LUN is sent;The processing unit is also used to, and the reception is single
The received processing result of member as the processing result corresponding with second scsi command in the virtual LUN so that
The virtual LUN is identical as the source migration corresponding processing result of second scsi command of LUN.
In a second possible implementation of the second aspect, the receiving unit is also used in the processing unit
It establishes after the corresponding relationship between the virtual LUN and host, receives the host and pass through the host and the virtual LUN
Between path send the second scsi command, second scsi command be the non-read-write scsi command concentrate any
Scsi command;The transmission unit is also used to for second scsi command being forwarded to the source migration LUN;The reception is single
Member is also used to receive the corresponding processing result of second scsi command that the source migration LUN is returned;The transmission unit,
It is also used to the processing result being transmitted to the host;The processing unit is also used to the received institute of the receiving unit
Processing result is stated as the processing result corresponding with second scsi command in the virtual LUN, so that the virtual LUN
It is identical as the source migration corresponding processing result of second scsi command of LUN.
Second in conjunction with the possible implementation of the first of second aspect or second aspect or second aspect is possible
Implementation, in the third possible implementation of the second aspect, the receiving unit is also used to migrate in the source
Before LUN is removed, the SCSI write command that the host is sent is received, the SCSI write command is for being written data to be written to institute
State source migration LUN;The processing unit is also used to, and the data to be written are written to the purpose according to the SCSI write command
LUN is migrated, and the SCSI write command is forwarded to the source and migrates LUN, so that the source migrates LUN for the number to be written
LUN is migrated according to write-in to the source.
In conjunction with any one of the first of second aspect or second aspect into the third possible implementation,
In 4th kind of possible implementation of two aspects, the processing unit is also used to the migration units and the source is migrated LUN
In Data Migration migrate LUN to the purpose after, in the source, migration LUN is removed and the host is deposited with described first
After storing up the communication connection disconnection between array, the virtual LUN is deleted.
The embodiment of the present invention provides a kind of data migration method and storage array, passes through the creation of the first storage array and purpose
The corresponding virtual LUN of LUN is migrated, and establishes the corresponding relationship between the virtual LUN and host, wherein the virtual LUN
Concentrate the corresponding processing result of same scsi command identical with the scsi command of the non-read-write of source migration LUN;Source is migrated in LUN
Data Migration to the purpose migrate LUN;LUN is migrated after removing in SAN in the source, receives the host described in
The first scsi command that path between host and the virtual LUN is sent;It is returned in the virtual LUN to the host again
The corresponding processing result of first scsi command.Due to the same scsi command pair of the virtual LUN and source migration LUN
The processing result answered is identical, and therefore, the processing result corresponding with first scsi command that host receives is still that the source is moved
The corresponding processing result of the first scsi command of LUN is moved, such host will be considered that the processing result is that source migration LUN is sent
, so that the business of host is not interrupted during Data Migration, it ensure that the continuity of business.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart of data migration method embodiment one of the present invention;
Fig. 2 is a kind of schematic diagram that the first storage array provided by the invention accesses SAN before SAN;
Fig. 3 is the first schematic diagram that the first storage array provided by the invention accesses SAN after SAN;
Fig. 4 is second of schematic diagram that the first storage array provided by the invention accesses SAN after SAN;
Fig. 5 is the flow chart of data migration method embodiment two of the present invention;
Fig. 6 is the flow chart of data migration method embodiment three of the present invention;
Fig. 7 is the structural schematic diagram of storage array embodiment one of the present invention;
Fig. 8 is the structural schematic diagram of storage array embodiment two of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is the flow chart of data migration method embodiment one of the present invention, as shown in Figure 1, the method for the present embodiment can be with
Include:
S101, the first storage array establish the mesh in the source migration LUN and first storage array of the second storage array
Migration LUN between corresponding relationship, source migration LUN is any LUN to be migrated in second storage array.
At least one LUN that the present embodiment can be applied to storage array needs to migrate or entire second storage array needs
It replaces, is illustrated by taking a LUN to be migrated in storage array as an example below, other LUN to be migrated are similar, herein will be to
The LUN of migration is known as source migration LUN, and the storage array for carrying source migration LUN is known as the second storage array, for storing the source
The LUN for the data that migration LUN migration comes is known as purpose migration LUN, and the storage array for carrying purpose migration LUN is known as first and deposits
Store up array.Source migration LUN and first storage array in the first storage array access SAN and in the second storage array
Between corresponding relationship establish after, first storage array establish the source migration LUN and first storage array in purpose
Migrate the corresponding relationship between LUN.
Specifically, when needing the second storage array in the purpose migration LUN replacement SAN by first storage array
When source migrates LUN, if the first storage array is not moved into SAN also, the first storage array is first accessed SAN by network administrator
In.It should be noted that the first storage array and the second storage array may belong to same manufacturer, it also may belong to different factories
Quotient.Before network administrator accesses the first storage array in SAN, SAN can be as shown in Fig. 2, include host and the in SAN
Two storage arrays, are shown here only second storage array, and also only showing second storage array includes a source migration
LUN。
After accessing to the first storage array in SAN, network administrator can also establish the source and move network administrator
The corresponding relationship between LUN and first storage array is moved, specifically, network administrator can build by way of external LUN
Found the corresponding relationship between source migration LUN and first storage array.Then, the first storage array can determine a LUN,
The LUN is known as purpose migration LUN, and then first storage array establishes pair between source migration LUN and purpose migration LUN
It should be related to, indicate to need by the Data Migration of source migration LUN into purpose migration LUN.
S102, first storage array creation virtual LUN corresponding with purpose migration LUN, and described in foundation
Corresponding relationship between virtual LUN and host so that the host using the path between the host and the virtual LUN as
Path between the host and source migration LUN;Wherein, the non-read-write of the virtual LUN and the source migration LUN is small
It is same in type computer system interface (English: Small Computer System Interface, abbreviation: SCSI) command set
The corresponding processing result of scsi command is identical.
In the present embodiment, which establishes the migration LUN of the source in the second storage array and the first storage battle array
After the corresponding relationship between purpose migration LUN in column, first storage array creation void corresponding with purpose migration LUN
Quasi- LUN is creating the void since the corresponding relationship between source migration LUN and purpose migration LUN has been established in the first storage array
After quasi- LUN, also correspond to establish the corresponding relationship between the source migration LUN and virtual LUN;And in first storage
After the Creating virtual LUN, the corresponding relationship between the virtual LUN and host is also set up, so that the host is virtual with this
Path between LUN is established.Wherein, the scsi command that the scsi command set representations of the non-read-write scsi command is concentrated both was not used in
Data are read without writing data;And the scsi command of the non-read-write of the virtual LUN and source migration LUN concentrates same SCSI to order
It enables corresponding processing result identical, is for the same scsi command that the scsi command of the non-read-write is concentrated, which returns
The processing result returned is identical as the processing result that source migration LUN is returned;Therefore, which can simulate source migration
LUN, so that host can migrate the path between LUN for the path between the host and virtual LUN as the host and the source,
I.e. the host is using the path between the host and the virtual LUN as in multiple paths between the host and source migration LUN
One of path, and then host will be considered that migration LUN is being communicated with the source for it during communicating with the virtual LUN.
After executing S102, SAN can be shown in Fig. 3.
The source is migrated the Data Migration in LUN to the purpose and migrates LUN by S103, first storage array.
In the present embodiment, the source migrate the service switching between LUN and the host be the purpose migrate LUN with
After business between the host, which migrates Data Migration to the purpose in LUN for the source and moves
Move LUN.That is, after the first storage array establishes the corresponding relationship between the virtual LUN and host, network administrator can be with
It is that the business between purpose migration LUN and the host specifically should that source, which is migrated the service switching between LUN and the host,
The priority modification in the path of the host and source migration LUN is lower than the host to the road of the virtual LUN by network administrator
The priority of diameter, so that the host will extremely should to the business of source migration LUN by the path transmission of the host to the virtual LUN
Source migrates LUN;Alternatively, the network administrator disconnects the path that host to source migrates LUN, arrived so that only depositing the host in SAN
This paths of the virtual LUN, thus the host can only by the business of source migration LUN by host to the virtual LUN's
Path transmission to the source migrates LUN.It is the purpose that the source, which is migrated the service switching between LUN and the host, in network administrator
After migrating the business between LUN and the host, SAN is as shown in Figure 4.
It is that the purpose migrates LUN and the master that the source, which is migrated the service switching between LUN and the host, in network administrator
After business between machine, which migrates the Data Migration in LUN to the purpose for the source and migrates LUN.
S104, after source migration LUN is removed, first storage array receive the host by the host with
The first scsi command that path between the virtual LUN is sent, first scsi command are that the SCSI of the non-read-write is ordered
Enable any scsi command concentrated or SCSI read command or SCSI write command.
First scsi command that S105, first storage array return to the virtual LUN to the host is corresponding
Processing result.
After source is migrated the Data Migration to purpose migration LUN in LUN by the first storage array, network administrator will
The source migrates LUN and removes, i.e., the source is migrated LUN from the SAN locating for first storage array and second storage array
It removes (such as can remove the second storage array from the SAN), since, there are above-mentioned virtual LUN, host should in the SAN
Host migrates the path of LUN to the path of the virtual LUN as the host to source, and therefore, host thinks that the host is migrated to source
The path of LUN be it is logical, thus host will need to be sent to source migration LUN the first scsi command, pass through the host to the void
The path of quasi- LUN is sent, since first scsi command is transmitted by the path between the host and the virtual LUN
, so first storage array can receive first scsi command;Due to first scsi command be by the host with
Path between the virtual LUN is received, therefore first storage array can determine that the virtual LUN is ordered according to the first SCSI
Processing result obtained is enabled, then first storage array ties the corresponding processing of first scsi command of the virtual LUN
Fruit returns to the host;When any scsi command that the scsi command that the first scsi command is non-read-write is concentrated, due to the void
Quasi- LUN simulates the corresponding processing result of the first scsi command of the source migration LUN, the virtual LUN and the source migrates LUN's
The corresponding processing result of first scsi command is identical, therefore, for host, after first scsi command that host issues,
The processing result received is still the corresponding processing result of the first scsi command in source migration LUN, in this way in data
During migration, the business of host is not interrupted, and ensure that the continuity of business.
When migrating LUN since source is migrated the Data Migration in LUN to purpose, when first scsi command is SCSI
Read command or SCSI write command, first storage array return to the corresponding processing result of the first scsi command of host with
It is identical to the corresponding processing result of the first scsi command of the host that source migrates LUN.Therefore, for host, host hair
After first scsi command out, the processing result received is still that first scsi command in source migration LUN is corresponding
Processing result, in this way during Data Migration, the business of host is not interrupted, and ensure that the continuity of business.
In the embodiment of the present invention, pass through the creation of the first storage array virtual LUN, Yi Jijian corresponding with purpose migration LUN
Found the corresponding relationship between the virtual LUN and host, wherein the SCSI of the non-read-write of the virtual LUN and source migration LUN is ordered
It enables and concentrates the corresponding processing result of same scsi command identical;Source is migrated Data Migration to the purpose in LUN to migrate
LUN;LUN is migrated after removing in SAN in the source, is received the host and is passed through between the host and the virtual LUN
The first scsi command that path is sent;It is corresponding that first scsi command in the virtual LUN is returned to the host again
Processing result.Since the virtual LUN is identical as the source migration corresponding processing result of same scsi command of LUN,
The processing result corresponding with first scsi command that host receives is still first scsi command pair of source migration LUN
The processing result answered, such host will be considered that the processing result is that source migration LUN is sent, thus in the process of Data Migration
In, the business of host is not interrupted, and ensure that the continuity of business.
Fig. 5 is the flow chart of data migration method embodiment two of the present invention, as shown in figure 5, the method for the present embodiment can be with
Include:
S201, the first storage array establish the mesh in the source migration LUN and first storage array of the second storage array
Migration LUN between corresponding relationship, source migration LUN is any LUN to be migrated in second storage array.
S202, first storage array creation virtual LUN corresponding with purpose migration LUN.
In the present embodiment, the specific implementation of S201 and S202 may refer to embodiment of the present invention method S101 and S102
In it is related record, details are not described herein again.
S203, first storage array send the second scsi command, second scsi command to source migration LUN
Any scsi command concentrated for the scsi command of non-read-write.
S204, first storage array receive the corresponding place of second scsi command that the source migration LUN is sent
Reason as a result, and using the processing result as the corresponding processing result of second scsi command of the virtual LUN so that institute
It is identical as the source migration corresponding processing result of the 2nd SCSI of LUN to state virtual LUN.
In the present embodiment, in first storage array creation virtual LUN corresponding with purpose migration LUN, in order to realize
The virtual LUN simulates source migration LUN, which sends the second scsi command, source migration to source migration LUN
LUN according to second scsi command, return to that source migration LUN obtains to first storage array with second scsi command pair
The processing result answered, first storage array receive processing corresponding with second scsi command knot that source migration LUN is returned
After fruit, the processing result which returns to source migration LUN is as second scsi command of the virtual LUN
Corresponding processing result.If subsequent first storage array, which receives host, passes through the path between the host and the virtual LUN
After the second scsi command sent, which returns to the host for the source migration LUN processing result returned.It will
Mode of the other scsi commands that the scsi command of non-read-write is concentrated also all in accordance with above-mentioned S203 and S204 is handled, and can be made
Obtain virtual LUN processing result corresponding with the scsi command same scsi command of concentration of non-read-write of source migration LUN
It is identical, realize the process that the virtual LUN simulates source migration LUN.
S205, first storage array establish the corresponding relationship between the virtual LUN and host, so that the host
Using the path between the host and the virtual LUN as the path between the host and source migration LUN.
The source is migrated the Data Migration in LUN to the purpose and migrates LUN by S206, first storage array.
S207, after source migration LUN is removed, first storage array receive the host by the host with
The first scsi command that path between the virtual LUN is sent, first scsi command are that the SCSI of the non-read-write is ordered
Enable any scsi command concentrated or SCSI read command or SCSI write command.
S208, first storage array return to first scsi command pair in the virtual LUN to the host
The processing result answered.
In the present embodiment, the specific implementation process of S205-S208 may refer to one S102-S105 of embodiment of the present invention method
Specific implementation process, details are not described herein again.
In the embodiment of the present invention, by the creation of the first storage array and the purpose migration corresponding virtual LUN of LUN, then to
The source migration LUN sends the second scsi command, and second scsi command is any that the scsi command of non-read-write is concentrated
Scsi command, and receive the corresponding processing result of second scsi command that source migration LUN is sent, and by the processing
As a result as the corresponding processing result of second scsi command of the virtual LUN, so that the virtual LUN is moved with the source
The corresponding processing result of same scsi command for moving the scsi command concentration of the non-read-write of LUN is identical, realizes virtual LUN simulation
The source migrates LUN;Then the corresponding relationship between the virtual LUN and host is established, then the source is migrated into the number in LUN
LUN is migrated according to migrating to the purpose;The source migration LUN remove after, receive the host by the host with it is described
The first scsi command that path between virtual LUN is sent;The first SCSI in the virtual LUN is returned to the host
Order corresponding processing result.Due to virtual LUN processing result corresponding with the source migration same scsi command of LUN
It is identical, therefore, the processing result corresponding with first scsi command that host receives be still the source migration LUN this first
The corresponding processing result of scsi command, such host will be considered that the processing result is that source migration LUN is sent, to move in data
During shifting, the business of host is not interrupted, and ensure that the continuity of business.
Fig. 6 is the flow chart of data migration method embodiment three of the present invention, as shown in fig. 6, the method for the present embodiment can be with
Include:
S301, the first storage array establish the mesh in the source migration LUN and first storage array of the second storage array
Migration LUN between corresponding relationship, source migration LUN is any LUN to be migrated in second storage array.
S302, first storage array creation virtual LUN corresponding with purpose migration LUN, and described in foundation
Corresponding relationship between virtual LUN and host so that the host using the path between the host and the virtual LUN as
Path between the host and source migration LUN.
S303, first storage array receive the host and send out the path between the host and the virtual LUN
The second scsi command sent, second scsi command are any scsi command that the scsi command of non-read-write is concentrated.
Second scsi command is forwarded to the source and migrates LUN by S304, first storage array.
S305, first storage array receive the corresponding place of second scsi command that the source migration LUN is returned
Manage result.
The processing result is transmitted to the host by S306, first storage array, and the processing result is made
For the corresponding processing result of second scsi command of the virtual LUN, so that the virtual LUN and the source migrate LUN
The corresponding processing result of the second scsi command it is identical.
In the present embodiment, after first storage array establishes the corresponding relationship between the virtual LUN and the host, it is
Realize that the virtual LUN simulates source migration LUN, the host by the path between the host and the virtual LUN to this first
Storage array sends the first scsi command, which is forwarded to first scsi command corresponding with the virtual LUN
The second storage array the source migrate LUN, the source migrate LUN according to second scsi command to first storage array return
The source migrates the processing result corresponding with second scsi command that LUN is obtained, which receives source migration LUN
After the processing result corresponding with second scsi command returned, which migrates the source at the place that LUN is returned
It manages result and is transmitted to host as the processing result with second scsi command in the virtual LUN, and by the processing result.
If subsequent first storage array receives the 2nd SCSI that host is sent by the path between the host and the virtual LUN
After order, which returns to the host for the source migration LUN processing result returned.The SCSI of non-read-write is ordered
Enable mode of other scsi commands also all in accordance with above-mentioned S303-S306 concentrated be handled, can make the virtual LUN with
The scsi command of the non-read-write of the source migration LUN concentrates the corresponding processing result of same scsi command identical, realizes the void
Quasi- LUN simulates the process of source migration LUN.
The source is migrated the Data Migration in LUN to the purpose and migrates LUN by S307, first storage array.
S308, after source migration LUN is removed, first storage array receive the host by the host with
The first scsi command that path between the virtual LUN is sent, first scsi command are that the SCSI of the non-read-write is ordered
Enable any scsi command concentrated or SCSI read command or SCSI write command.
First scsi command that S309, first storage array return to the virtual LUN to the host is corresponding
Processing result.
In the present embodiment, the specific implementation process of S307-S309 may refer to one S103-S105 of embodiment of the present invention method
Specific implementation process, details are not described herein again.
In the embodiment of the present invention, pass through the first storage array creation virtual LUN corresponding with purpose migration LUN;Establish institute
State the corresponding relationship between virtual LUN and host;Receive the second scsi command that the host is sent, second scsi command
Any scsi command concentrated for the scsi command of the non-read-write;Second scsi command is forwarded to the source migration
LUN;Receive the corresponding processing result of second scsi command that the source migration LUN is returned;The processing result is forwarded
To the host, and using the processing result as the corresponding processing result of second scsi command of the virtual LUN, make
Obtain virtual LUN processing result corresponding with the source migration same scsi command of scsi command of non-read-write of LUN
It is identical, realize that the virtual LUN simulates source migration LUN;Then the source is migrated into the Data Migration in LUN to the purpose
Migrate LUN;After migration LUN is removed in the source, receives the host and pass through the path between the host and the virtual LUN
The first scsi command sent;The corresponding processing knot of first scsi command in the virtual LUN is returned to the host
Fruit.Since the virtual LUN is identical as the source migration corresponding processing result of same scsi command of LUN, host connects
The processing result corresponding with first scsi command received is still the corresponding place of the first scsi command of source migration LUN
Reason is as a result, host will be considered that the processing result is that source migration LUN is sent in this way, thus during Data Migration, host
Business do not interrupt, ensure that the continuity of business.
On the basis of above-mentioned each method embodiment of the invention, optionally, network administrator by the source migrate LUN from this
Before being removed in SAN, the method also includes: first storage array receives the SCSI write command that the host is sent, institute
It states SCSI write command and migrates LUN for being written data to be written to the source;First storage array is write according to the SCSI
The data to be written are written to the purpose and migrate LUN by order, and the SCSI write command is forwarded to the source and is migrated
LUN, so that the source migrates LUN and the data to be written are written to source migration LUN.Specific implementation process and the prior art
Similar, details are not described herein again.
On the basis of above-mentioned each method embodiment of the invention, optionally, the data by source migration LUN are moved
It moves to after purpose migration LUN, further includes: in the source, migration LUN is removed and the host and institute from the SAN
After stating the communication connection disconnection between the first storage array, first storage array deletes the virtual LUN.In network management
Source is migrated LUN after removing in the SAN and after the host restarts by member, which deletes (or destruction), and this is virtual
LUN.Alternatively, source is migrated LUN after removing in the SAN and after first storage array restarts in network administrator, this
One storage array deletes (or destruction) the virtual LUN.Alternatively, network administrator by source migrate LUN from the SAN remove after simultaneously
And after the communications cable between the host and first storage array disconnects, after the first storage array deletes the virtual LUN,
The host can migrate path access purpose between LUN by the host and the purpose and migrate LUN.
Fig. 7 is the structural schematic diagram of storage array embodiment one of the present invention, as shown in fig. 7, the storage array of the present embodiment
It may include: processing unit 11, migration units 12, receiving unit 13 and transmission unit 14 as the first storage array;Wherein,
Processing unit 11, the source for establishing the second storage array migrate between LUN and the purpose migration LUN of first storage array
Corresponding relationship, source migration LUN is any LUN to be migrated in second storage array;Creation is moved with the purpose
The corresponding virtual LUN of LUN is moved, and establishes the corresponding relationship between the virtual LUN and host, so that the host will be described
Path between host and the virtual LUN is as the path between the host and source migration LUN;Wherein, the void
Quasi- LUN concentrates the corresponding processing result of same scsi command identical with the scsi command of the non-read-write of source migration LUN;
Migration units 12 migrate LUN for the source to be migrated to the Data Migration in LUN to the purpose;
Receiving unit 13, for receiving the host and passing through the host and the void after source migration LUN is removed
The first scsi command that path between quasi- LUN is sent, first scsi command are that the scsi command of the non-read-write is concentrated
Any scsi command or SCSI read command or SCSI write command;
Transmission unit 14, for returning to the corresponding processing of first scsi command of the virtual LUN to the host
As a result.
Optionally, transmission unit 14 is also used to create virtual LUN corresponding with purpose migration LUN in processing unit 11
Later, migration LUN in the source Xiang Suoshu sends the second scsi command, and second scsi command is the scsi command of the non-read-write
In any scsi command;It is corresponding to be also used to receive second scsi command that the source migration LUN is sent for receiving unit 13
Processing result;Processing unit 11 is also used to, using the received processing result of receiving unit 13 as in the virtual LUN
Processing result corresponding with second scsi command, so that the 2nd SCSI of the virtual LUN and source migration LUN
Order corresponding processing result identical.
Optionally, receiving unit 13 are also used to establish the corresponding pass between the virtual LUN and host in processing unit 11
After system, the second scsi command that the host is sent by the path between the host and the virtual LUN is received, it is described
Second scsi command is any scsi command that the scsi command of the non-read-write is concentrated;Transmission unit 14, being also used to will be described
Second scsi command is forwarded to the source migration LUN;Receiving unit 13 is also used to receive the described of the source migration LUN return
The corresponding processing result of second scsi command;Transmission unit 14 is also used to the processing result being transmitted to the host;Processing
Unit 11, be also used to using the receiving unit 13 received processing result as in the virtual LUN with the 2nd SCSI
Corresponding processing result is ordered, so that virtual LUN processing corresponding with source migration second scsi command of LUN
As a result identical.
Optionally, receiving unit 13 are also used to before the source migrates LUN removal, receive what the host was sent
SCSI write command, the SCSI write command, which is used to data to be written be written to the source, migrates LUN;Processing unit 11 is also used to,
The data to be written are written to the purpose according to the SCSI write command and migrate LUN, and the SCSI write command is turned
It is sent to the source migration LUN, so that the source migrates LUN and the data to be written are written to source migration LUN.
Optionally, processing unit 11 is also used to migration units 12 for the Data Migration in source migration LUN to the mesh
Migration LUN after, in the source, migration LUN is removed and communication connection between the host and first storage array
After disconnection, the virtual LUN is deleted.
The storage equipment of the present embodiment can be used for executing the technical solution of the above-mentioned each method embodiment of the present invention, in fact
Existing principle is similar with technical effect, and details are not described herein again.
Fig. 8 is the structural schematic diagram of storage array embodiment two of the present invention, as shown in figure 8, the storage array of the present embodiment
It may include: processor 21, the first communication interface 22, the second communication interface 23 and memory 24 as the first storage array,
In, it is communicated to connect between said modules, such as can be attached and communicate with bus between said modules, and first communication
Interface 22 and the second communication interface 23 are connected and communicated with external equipment (such as host, the second storage array);Memory 24 is used
In storing the code for executing data migration method.Processor 21, the first communication interface 22, the second communication interface 23 are for adjusting
With the code to perform the following operations:
Processor 21, the source for establishing the second storage array migrates LUN and the purpose of first storage array migrates
Corresponding relationship between LUN, the source migration LUN are any LUN to be migrated in second storage array;Creation with it is described
Purpose migrates the corresponding virtual LUN of LUN, and establishes the corresponding relationship between the virtual LUN and host, so that the host
Using the path between the host and the virtual LUN as the path between the host and source migration LUN;Wherein,
Virtual LUN processing corresponding with the scsi command same scsi command of concentration of the non-read-write of source migration LUN is tied
Fruit is identical;The source is migrated into the Data Migration in LUN to the purpose and migrates LUN;
First communication interface 22, for receiving the host and passing through the host and institute after source migration LUN is removed
The first scsi command that the path between virtual LUN is sent is stated, first scsi command is the scsi command of the non-read-write
Any scsi command or SCSI read command or SCSI write command concentrated;
Second communication interface 23, first scsi command for returning to the virtual LUN to the host are corresponding
Processing result.
Optionally, the second communication interface 23 is also used to create in processor 21 corresponding with purpose migration LUN virtual
After LUN, the source Xiang Suoshu migrates LUN and sends the second scsi command, and second scsi command is that the SCSI of the non-read-write is ordered
Enable any scsi command concentrated;
First communication interface 22 is also used to receive the corresponding place of second scsi command that the source migration LUN is sent
Manage result;Processor 21 is also used to, using the first communication interface 22 received processing result as in the virtual LUN with
The corresponding processing result of second scsi command, so that the 2nd SCSI of the virtual LUN and source migration LUN are ordered
Enable corresponding processing result identical.
Optionally, the first communication interface 22 is also used to establish in processor 21 corresponding between the virtual LUN and host
After relationship, the second scsi command that the host is sent by the path between the host and the virtual LUN, institute are received
State any scsi command that the scsi command that the second scsi command is the non-read-write is concentrated;Second communication interface 23, is also used to
Second scsi command is forwarded to the source migration LUN;First communication interface 22 is also used to receive the source migration LUN
The corresponding processing result of second scsi command returned;Second communication interface 23 is also used to forward the processing result
To the host;Processor 21 is also used to using the received processing result of the first communication interface 22 as in the virtual LUN
Processing result corresponding with second scsi command so that the virtual LUN and the source migration LUN described second
The corresponding processing result of scsi command is identical.
Optionally, the first communication interface 22 is also used to before the source migrates LUN removal, is received the host and is sent
SCSI write command, the SCSI write command be used for by data to be written be written to the source migrate LUN;Processor 21 is also used to,
The data to be written are written to the purpose according to the SCSI write command and migrate LUN, and the SCSI write command is turned
It is sent to the source migration LUN, so that the source migrates LUN and the data to be written are written to source migration LUN.
Optionally, processor 21 be also used to by the source migrate LUN in Data Migration to the purpose migration LUN it
Afterwards, in the source, migration LUN is removed and after the communication connection disconnection between the host and first storage array, is deleted
The virtual LUN.
The storage equipment of the present embodiment can be used for executing the technical solution of the above-mentioned each method embodiment of the present invention, in fact
Existing principle is similar with technical effect, and details are not described herein again.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: read-only memory (English:
Read-Only Memory, referred to as: ROM), random access memory (English: Random Access Memory, referred to as:
RAM), the various media that can store program code such as magnetic or disk.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (10)
1. a kind of data migration method characterized by comprising
First storage array establishes the purpose of source migration the logical unit number LUN and first storage array of the second storage array
The corresponding relationship between LUN is migrated, the source migration LUN is any LUN to be migrated in second storage array;
First storage array creation virtual LUN corresponding with purpose migration LUN, and establish the virtual LUN and
Corresponding relationship between host, so that the host is using the path between the host and the virtual LUN as the host
With the path between source migration LUN;Wherein, the minicomputer of the non-read-write of the virtual LUN and source migration LUN
System interface scsi command concentrates the corresponding processing result of same scsi command identical;
The source is migrated the Data Migration in LUN to the purpose and migrates LUN by first storage array;
After in the source, migration LUN is removed, first storage array receives the host and passes through the host and described virtual
The first scsi command that path between LUN is sent, first scsi command are that the scsi command of the non-read-write is concentrated
Any scsi command or SCSI read command or SCSI write command;
The corresponding processing knot of first scsi command that first storage array returns to the virtual LUN to the host
Fruit.
2. the method according to claim 1, wherein first storage array creation is migrated with the purpose
After the corresponding virtual LUN of LUN, further includes:
First storage array sends the second scsi command to source migration LUN, and second scsi command is described non-
Any scsi command that the scsi command of read-write is concentrated;
First storage array receives the corresponding processing result of second scsi command that the source migration LUN is sent, and
Using the processing result as the processing result corresponding with second scsi command in the virtual LUN, so that the void
Quasi- LUN is identical as the source migration corresponding processing result of second scsi command of LUN.
3. the method according to claim 1, wherein first storage array establishes the virtual LUN and master
After corresponding relationship between machine, further includes:
First storage array receives second that the host is sent by the path between the host and the virtual LUN
Scsi command, second scsi command are any scsi command that the scsi command of the non-read-write is concentrated;
Second scsi command is forwarded to the source and migrates LUN by first storage array;
First storage array receives the corresponding processing result of second scsi command that the source migration LUN is returned;
The processing result is transmitted to the host by first storage array, and using the processing result as described virtual
Processing result corresponding with second scsi command in LUN, so that the virtual LUN and source migration LUN's is described
The corresponding processing result of second scsi command is identical.
4. method according to claim 1 to 3, which is characterized in that before in the source, migration LUN is removed, also
Include:
First storage array receives the SCSI write command that the host is sent, and the SCSI write command is used for data to be written
Write-in to the source migrates LUN;
The data to be written are written to the purpose according to the SCSI write command and migrate LUN by first storage array, with
And the SCSI write command is forwarded to the source and migrates LUN, so that the data to be written are written to institute source migration LUN
State source migration LUN.
5. method according to claim 1 to 3, which is characterized in that the number migrated the source in LUN
According to migrate to the purpose migrate LUN after, further includes:
In the source, migration LUN is removed and after the communication connection disconnection between the host and first storage array, institute
It states the first storage array and deletes the virtual LUN.
6. a kind of storage array, which is characterized in that the storage array is as the first storage array, comprising:
Processing unit, the source for establishing the second storage array migrate the mesh of logical unit number LUN and first storage array
Migration LUN between corresponding relationship, source migration LUN is any LUN to be migrated in second storage array;Creation
Virtual LUN corresponding with purpose migration LUN, and the corresponding relationship between the virtual LUN and host is established, so that institute
Host is stated using the path between the host and the virtual LUN as the path between the host and source migration LUN;
Wherein, the virtual LUN and the small computer system interface scsi command of the non-read-write of source migration LUN are concentrated same
The corresponding processing result of scsi command is identical;
Migration units migrate LUN for the source to be migrated to the Data Migration in LUN to the purpose;
Receiving unit, for receiving the host and passing through the host and the virtual LUN after source migration LUN is removed
Between path send the first scsi command, first scsi command be the non-read-write scsi command concentrate any
Scsi command or SCSI read command or SCSI write command;
Transmission unit, for returning to the corresponding processing result of first scsi command of the virtual LUN to the host.
7. storage array according to claim 6, which is characterized in that the transmission unit is also used in the processing unit
With after the corresponding virtual LUN of purpose migration LUN, the source Xiang Suoshu migrates LUN the second scsi command of transmission for creation, and described the
Two scsi commands are any scsi command that the scsi command of the non-read-write is concentrated;
The receiving unit is also used to receive the corresponding processing result of second scsi command that the source migration LUN is sent;
The processing unit is also used to, using the receiving unit received processing result as in the virtual LUN with
The corresponding processing result of second scsi command, so that the 2nd SCSI of the virtual LUN and source migration LUN are ordered
Enable corresponding processing result identical.
8. storage array according to claim 6, which is characterized in that the receiving unit is also used to single in the processing
Member is established after the corresponding relationship between the virtual LUN and host, is received the host and is passed through the host and described virtual
The second scsi command that path between LUN is sent, second scsi command are that the scsi command of the non-read-write is concentrated
Any scsi command;
The transmission unit is also used to for second scsi command being forwarded to the source migration LUN;
The receiving unit is also used to receive the corresponding processing result of second scsi command that the source migration LUN is returned;
The transmission unit is also used to the processing result being transmitted to the host;
The processing unit, be also used to using the receiving unit received processing result as in the virtual LUN with
The corresponding processing result of second scsi command, so that the 2nd SCSI of the virtual LUN and source migration LUN are ordered
Enable corresponding processing result identical.
9. according to storage array described in claim 6-8 any one, which is characterized in that the receiving unit is also used to
Before the source migration LUN is removed, the SCSI write command that the host is sent is received, the SCSI write command is used for number to be written
LUN is migrated according to write-in to the source;
The processing unit is also used to, and the data to be written are written to the purpose according to the SCSI write command and migrate LUN,
And the SCSI write command is forwarded to the source and migrates LUN so that the source migrate LUN by the data to be written be written to
The source migrates LUN.
10. according to storage array described in claim 6-8 any one, which is characterized in that the processing unit is also used to institute
After stating the Data Migration to purpose migration LUN that migration units migrate the source in LUN, in the source, migration LUN is moved
It removes and after communication connection between the host and first storage array disconnects, deletes the virtual LUN.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410784848.8A CN105760109B (en) | 2014-12-16 | 2014-12-16 | Data migration method and storage array |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410784848.8A CN105760109B (en) | 2014-12-16 | 2014-12-16 | Data migration method and storage array |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105760109A CN105760109A (en) | 2016-07-13 |
CN105760109B true CN105760109B (en) | 2019-03-01 |
Family
ID=56340004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410784848.8A Active CN105760109B (en) | 2014-12-16 | 2014-12-16 | Data migration method and storage array |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105760109B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107402722B (en) * | 2017-07-04 | 2020-09-01 | 杭州宏杉科技股份有限公司 | Data migration method and storage device |
CN107704206B (en) * | 2017-10-09 | 2020-09-18 | 苏州浪潮智能科技有限公司 | Method, device, equipment and storage medium for online migration of heterogeneous system data |
CN107656705B (en) * | 2017-10-25 | 2020-10-23 | 苏州浪潮智能科技有限公司 | Computer storage medium and data migration method, device and system |
CN110413213B (en) * | 2018-04-28 | 2023-06-27 | 伊姆西Ip控股有限责任公司 | Seamless migration of storage volumes between storage arrays |
CN110166558B (en) * | 2019-05-24 | 2020-03-06 | 苏州浪潮智能科技有限公司 | Communication method, device and equipment of multi-control storage cluster |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7484057B1 (en) * | 2006-06-29 | 2009-01-27 | Emc Corporation | Consolidating N-storage arrays into one storage array using full array non-disruptive data migration |
CN102103629A (en) * | 2010-12-14 | 2011-06-22 | 西北工业大学 | Online data migration method |
CN103052938A (en) * | 2010-10-14 | 2013-04-17 | 株式会社日立制作所 | Data migration system and data migration method |
CN103229135A (en) * | 2011-03-02 | 2013-07-31 | 株式会社日立制作所 | Computer system and data migration method |
CN104335188A (en) * | 2012-05-29 | 2015-02-04 | 国际商业机器公司 | Application-controlled sub-LUN level data migration |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7149859B2 (en) * | 2004-03-01 | 2006-12-12 | Hitachi, Ltd. | Method and apparatus for data migration with the efficient use of old assets |
US9405628B2 (en) * | 2013-09-23 | 2016-08-02 | International Business Machines Corporation | Data migration using multi-storage volume swap |
-
2014
- 2014-12-16 CN CN201410784848.8A patent/CN105760109B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7484057B1 (en) * | 2006-06-29 | 2009-01-27 | Emc Corporation | Consolidating N-storage arrays into one storage array using full array non-disruptive data migration |
CN103052938A (en) * | 2010-10-14 | 2013-04-17 | 株式会社日立制作所 | Data migration system and data migration method |
CN102103629A (en) * | 2010-12-14 | 2011-06-22 | 西北工业大学 | Online data migration method |
CN103229135A (en) * | 2011-03-02 | 2013-07-31 | 株式会社日立制作所 | Computer system and data migration method |
CN104335188A (en) * | 2012-05-29 | 2015-02-04 | 国际商业机器公司 | Application-controlled sub-LUN level data migration |
Non-Patent Citations (2)
Title |
---|
"Unifying Buffer Replacement and Prefetching Data Migration for Heterogeneous Storage Devices";LEE S等;《International Conference on Parallel and Distributed Systems》;20110120;第330-337页 |
"一种SAN上的数据迁移算法设计与实现";曾雷杰等;《计算机工程》;20090227;第35卷(第4期);第53-55页 |
Also Published As
Publication number | Publication date |
---|---|
CN105760109A (en) | 2016-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105760109B (en) | Data migration method and storage array | |
US9003145B2 (en) | Management server and data migration method | |
CN103503414B (en) | A kind of group system calculating storage and merge | |
US9213500B2 (en) | Data processing method and device | |
CN107526534B (en) | Method and apparatus for managing input/output (I/O) of storage device | |
CN106569738B (en) | A kind of method and device for deleting cascade snapshot | |
CN106201659B (en) | A kind of method and host of live migration of virtual machine | |
CN105612498B (en) | Method, virtual machine memory data processing method, server and the dummy machine system of live migration of virtual machine | |
CN101639811B (en) | Data writing method, controller and multi-controller system | |
CN106484327B (en) | A kind of data processing method and associated storage device | |
CN105281949B (en) | Mix the partition method and isolating device of host in memory module | |
CN102316043A (en) | Port virtualization method, switch and communication system | |
CN111026510A (en) | Cross-storage thermal migration method for virtual machine in cloud environment | |
CN104601711A (en) | FPGA-based data storage method and system used for cloud server | |
CN105808374A (en) | Snapshot processing method and associated equipment | |
CN104994135B (en) | The method and device of SAN and NAS storage architectures is merged in storage system | |
CN109388347A (en) | A kind of data migration method and device | |
CN104104705A (en) | Access method and device of distributed storage system | |
US11347414B2 (en) | Using telemetry data from different storage systems to predict response time | |
US9804903B2 (en) | Data processing apparatus for pipeline execution acceleration and method thereof | |
CN105988901A (en) | Data copying method and storage system | |
CN107704206A (en) | Method, apparatus, equipment and the storage medium of online migration heterogeneous system data | |
CN106383667A (en) | Method and apparatus for LUN migration in business operation | |
CN104951528B (en) | A kind of method and terminal of Data Migration | |
CN104199716A (en) | Virtual machine thermal migration method, physical host and 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 |