主权项 |
1. A method for migrating data across storages with dissimilar allocation sizes, the method comprising:
determining, by a processor at a first data processing system, a minimum allocation unit size used for allocating space to a data at a source data storage device; computing, by a processor at a first data processing system, a number of first minimum allocation units of a first minimum allocation unit size at a target data storage device, wherein the number of first minimum allocation units can be completely occupied by a portion of the data; computing, by a processor at a first data processing system, an amount of data left over after excluding the portion of the data from the data; migrating, by a processor at a first data processing system, the portion of the data to the number of first minimum allocation units at the target; and migrating, by a processor at a first data processing system, the amount of data left over to a second number of second minimum allocation units of a second minimum allocation unit size at the target. |