Patent ID: 9411620
Filing Date: 2016-08-09
CPC Classification: G06F

Claim Text:
1. A data migration method for virtual storage migration, comprising: copying, from a source storage device to a destination storage device, a data block in a virtual disk to be migrated; when a virtual machine front-end input/output (I/O) read request is received, directly reading, from the source storage device, data that corresponds to the virtual machine front-end input/output (I/O) read request; and when a virtual machine front-end I/O write request is received, determining whether a migration data block that corresponds to the virtual machine front-end I/O write request is being migrated, and when the migration data block that corresponds to the virtual machine front-end I/O write request is being migrated, executing a write operation that corresponds to the virtual machine front-end I/O write request after the migration of the migration data block is completed; when the migration data block that corresponds to the virtual machine front-end I/O write request is not being migrated, directly executing the write operation that corresponds to the virtual machine front-end I/O write request; wherein when the migration data block that corresponds to the virtual machine front-end I/O write request is not being migrated, directly executing the write operation that corresponds to the virtual machine front-end I/O write request comprises: when queried according to a bitmap table that the migration data block that corresponds to the virtual machine front-end I/O write request is not migrated and the size of the new write request data block carried in the virtual machine front-end I/O write request is equal to the size of the migration data block, directly writing the new write request data block into the source storage device and the destination storage device and setting the chunk that corresponds to the migration data block in the bitmap table to represent that the data block that corresponds to the chunk has been migrated, and after all data blocks in the virtual disk to be migrated are copied to the destination storage device, stopping the data migration process, and switching the virtual disk managed by a virtual machine manager from the source storage device to the destination storage device.