VIRTUAL STORAGE MIGRATION METHOD, VIRTUAL STORAGE MIGRATION SYSTEM AND VIRTUAL MACHINE MONITOR
First Claim
1. A virtual storage migration method, comprising:
- starting a data migration process, and copying, from a source storage device to a destination storage device, a data block in a virtual disk to be migrated;
during the data migration process, 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 if 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;
if the migration data block that corresponds to the virtual machine front-end I/O write request is not being migrated, executing the write operation that corresponds to the virtual machine front-end I/O write request; 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.
1 Assignment
0 Petitions
Accused Products
Abstract
A virtual storage migration method is provided, including: starting a data migration process, and copying, from a source storage device to a destination storage device, a data block in a virtual disk to be migrated; when a VM front-end I/O read request is received, directly reading, corresponding data from the source storage device; when a VM front-end I/O write request is received, determining whether a migration data block that corresponds to the write request is being migrated, if yes, executing a write operation that corresponds to the write request after the migration of the migration data block is completed, if no, executing a write operation that corresponds to the write request; and after all the data blocks in the virtual disk to be migrated are copied to the destination storage device, stopping the data migration, and switching the virtual disk from the source storage device to the destination storage device.
121 Citations
17 Claims
-
1. A virtual storage migration method, comprising:
-
starting a data migration process, and copying, from a source storage device to a destination storage device, a data block in a virtual disk to be migrated; during the data migration process, 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 if 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;
if the migration data block that corresponds to the virtual machine front-end I/O write request is not being migrated, executing the write operation that corresponds to the virtual machine front-end I/O write request; andafter 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. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A virtual machine monitor, comprising:
-
a migration module, configured to start data migration, and copy, from a source storage device to a destination storage device, a data block in a virtual disk to be migrated; a request processing module, configured to, during a data migration process, directly read, from the source storage device, data that corresponds to a virtual machine (VM) front-end input/output (I/O) read request when the virtual machine front-end input/output (I/O) read request is received; and
determine whether a migration data block that corresponds to a virtual machine front-end I/O write request is being migrated when the VM front-end I/O write request is received, and if the migration data block that corresponds to the virtual machine front-end I/O write request is being migrated, execute 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;
if the migration data block that corresponds to the virtual machine front-end I/O write request is not being migrated, execute the write operation that corresponds to the virtual machine front-end I/O write request; anda switch module, configured to stop the data migration after all data blocks in the virtual disk to be migrated are copied to the destination storage device, and switch the virtual disk managed by a virtual machine manager from the source storage device to the destination storage device. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A virtual storage migration system, comprising at least one virtual machine, a source storage device, a destination storage device and a virtual machine monitor, wherein the virtual machine monitor is configured to:
-
start a data migration process, and copy, from the source storage device to the destination storage device, a data block in a virtual disk to be migrated; during the data migration process, 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, determine whether a migration data block that corresponds to the virtual machine front-end I/O write request is being migrated, and if the migration data block that corresponds to the virtual machine front-end I/O write request is being migrated, execute 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;
if the migration data block that corresponds to the virtual machine front-end I/O write request is not being migrated, execute the write operation that corresponds to the virtual machine front-end I/O write request; andafter all data blocks in the virtual disk to be migrated are copied to the destination storage device, stop the data migration process, and switch the Virtual disk managed by a virtual machine manager from the source storage device to the destination storage device. - View Dependent Claims (14, 15, 16)
-
-
17. A computer-readable medium having computer executable instructions for performing a virtual storage migration method comprising:
-
starting a data migration process, and copying, from a source storage device to a destination storage device, a data block in a virtual disk to be migrated; during the data migration process, 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 if 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;
if the migration data block that corresponds to the virtual machine front-end I/O write request is not being migrated, executing the write operation that corresponds to the virtual machine front-end I/O write request; andafter 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.
-
Specification