Processing a read request to a logical volume while relocating a logical volume from a first storage location to a second storage location using a copy relationship
First Claim
1. A method, comprising:
- initiating an operation to move a logical volume from a first storage location to a second storage location;
establishing a relationship between the first and second storage locations to copy data in the logical volume from the first storage location to the second storage location to implement the move of the logical volume from the first to the second storage locations;
receiving a read request to data in the logical volume while moving the data in the logical volume from the first storage location to the second storage location;
determining, in response to the read request, whether the requested data is at a first copy of the logical volume in the first storage location or a second copy of the logical volume at the second storage location;
returning the requested data from the determined first or second copy of the logical volume while the logical volume is being copied from the first storage location to the second storage location;
receiving a request to write data to the logical volume while copying the data in the logical volume from the first copy to the second copy, wherein once the relationship indicates that the requested data has been copied from the first copy of the logical volume to the second copy, all reads to the requested data are directed to the second copy;
writing the write data to the second copy of the logical volume at the second storage location;
removing indication of the relationship between the first and second storage locations in response to copying all the data indicated in the relationship from the first storage location to the second storage location resulting in the relocation of the logical volume to the second copy; and
freeing space in the first storage location for data copied from the first storage location to the second storage location pursuant to the relationship established between the first and second storage locations to relocate the logical volume.
1 Assignment
0 Petitions
Accused Products
Abstract
Provided are a method, system, and article of manufacture for relocating a logical volume from a first storage location to a second storage location using a copy relationship. An operation is initiated to move a logical volume from a first storage location to a second storage location. A relationship is established between the first and second storage locations to copy data in the logical volume from the first storage location to the second storage location. A read request is received to data in the logical volume while copying the data in the logical volume from the first storage location to the second storage location. A determination is made, in response to the read request, whether the requested data is at a first copy of the logical volume in the first storage location or a second copy of the logical volume at the second storage location. The requested data is returned from the determined first or second copy of the logical volume while the logical volume is being copied from the first storage location to the second storage location.
31 Citations
21 Claims
-
1. A method, comprising:
-
initiating an operation to move a logical volume from a first storage location to a second storage location; establishing a relationship between the first and second storage locations to copy data in the logical volume from the first storage location to the second storage location to implement the move of the logical volume from the first to the second storage locations; receiving a read request to data in the logical volume while moving the data in the logical volume from the first storage location to the second storage location; determining, in response to the read request, whether the requested data is at a first copy of the logical volume in the first storage location or a second copy of the logical volume at the second storage location; returning the requested data from the determined first or second copy of the logical volume while the logical volume is being copied from the first storage location to the second storage location; receiving a request to write data to the logical volume while copying the data in the logical volume from the first copy to the second copy, wherein once the relationship indicates that the requested data has been copied from the first copy of the logical volume to the second copy, all reads to the requested data are directed to the second copy; writing the write data to the second copy of the logical volume at the second storage location; removing indication of the relationship between the first and second storage locations in response to copying all the data indicated in the relationship from the first storage location to the second storage location resulting in the relocation of the logical volume to the second copy; and freeing space in the first storage location for data copied from the first storage location to the second storage location pursuant to the relationship established between the first and second storage locations to relocate the logical volume. - View Dependent Claims (2)
-
-
3. A method, comprising:
-
initiating an operation to move a logical volume from a first storage location to a second storage location to relocate the logical volume to the second storage location; establishing a relationship between the first and second storage locations to copy data in the logical volume from the first storage location to the second storage location to implement the move of the logical volume from the first to the second storage locations, wherein the relationship indicates whether data in the first storage location was copied to the second storage location as part of the move operation; receiving a read request to data in the logical volume while moving the data in the logical volume from the first storage location to the second storage location; determining, in response to the read request, whether the relationship indicates that the requested data has been copied from a first copy of the logical volume in the first storage location to a second copy of the logical volume at the second storage location; returning the requested data from the first copy in response to determining that the requested data has not been copied to the second copy; returning the requested data from the second copy of the logical volume in response to determining that the requested data has been copied to the second copy, wherein the requested data is returned from the first or second copy while the logical volume is being copied from the first storage location to the second storage location, wherein once the relationship indicates that the requested data has been copied from the first copy of the logical volume to the second copy, all reads to the requested data are directed to the second copy; removing indication of the relationship between the first and second storage locations in response to copying all the data indicated in the relationship from the first storage location to the second storage location resulting in the relocation of the logical volume to the second copy; and freeing space in the first storage location for data copied from the first storage location to the second storage location pursuant to the relationship established between the first and second storage locations to relocate the logical volume. - View Dependent Claims (4, 5, 6, 7, 8, 9)
-
-
10. A system in communication with a first and second storage locations, comprising:
-
a processor; and a computer readable storage medium having a program executed by the processor to perform operations, the operations comprising; initiating an operation to move a logical volume from a first storage location to a second storage location; establishing a relationship between the first and second storage locations to copy data in the logical volume from the first storage location to the second storage location to implement the move of the logical volume from the first to the second storage locations, wherein the logical volume comprises data units, wherein the relationship indicates for data units in the logical volume whether the data unit in the first storage location of the logical volume was copied to the second storage location of the logical volume; receiving a read request to data in the logical volume while moving the data in the logical volume from the first storage location to the second storage location; determining, in response to the read request, whether the requested data is at a first copy of the logical volume in the first storage location or a second copy of the logical volume at the second storage location; returning the requested data from the determined first or second copy of the logical volume while the logical volume is being copied from the first storage location to the second storage location; receiving a request to write data to the logical volume while copying the data in the logical volume from the first copy to the second copy, wherein once the relationship indicates that the requested data has been copied from the first copy of the logical volume to the second copy, all reads to the requested data are directed to the second copy; writing the write data to the second copy of the logical volume at the second storage location; removing indication of the relationship between the first and second storage locations in response to copying all the data indicated in the relationship from the first storage location to the second storage location resulting in the relocation of the logical volume to the second copy; and freeing space in the first storage location for data copied from the first storage location to the second storage location pursuant to the relationship established between the first and second storage locations to relocate the logical volume. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. An article of manufacture comprising a computer readable storage medium having code executed to perform operations with respect to a first and second storage locations and to perform further operations comprising:
-
initiating an operation to move a logical volume from a first storage location to a second storage location; establishing a relationship between the first and second storage locations to copy data in the logical volume from the first storage location to the second storage location to implement the move of the logical volume from the first to the second storage locations; receiving a read request to data in the logical volume while moving the data in the logical volume from the first storage location to the second storage location; determining, in response to the read request, whether the requested data is at a first copy of the logical volume in the first storage location or a second copy of the logical volume at the second storage location; returning the requested data from the determined first or second copy of the logical volume while the logical volume is being copied from the first storage location to the second storage location; receiving a request to write data to the logical volume while copying the data in the logical volume from the first copy to the second copy, wherein once the relationship indicates that the requested data has been copied from the first copy of the logical volume to the second copy, all reads to the requested data are directed to the second copy; writing the write data to the second copy of the logical volume at the second storage location; removing indication of the relationship between the first and second storage locations in response to copying all the data indicated in the relationship from the first storage location to the second storage location resulting in the relocation of the logical volume to the second copy; and freeing space in the first storage location for data copied from the first storage location to the second storage location pursuant to the relationship established between the first and second storage locations to relocate the logical volume. - View Dependent Claims (17, 18, 19, 20, 21)
-
Specification