CN107340974B - Virtual disk migration method and virtual disk migration device - Google Patents

Virtual disk migration method and virtual disk migration device Download PDF

Info

Publication number
CN107340974B
CN107340974B CN201710551215.6A CN201710551215A CN107340974B CN 107340974 B CN107340974 B CN 107340974B CN 201710551215 A CN201710551215 A CN 201710551215A CN 107340974 B CN107340974 B CN 107340974B
Authority
CN
China
Prior art keywords
storage
storage space
ith
migrated
spaces
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
Application number
CN201710551215.6A
Other languages
Chinese (zh)
Other versions
CN107340974A (en
Inventor
栗丽霞
闫冬冬
张百林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710551215.6A priority Critical patent/CN107340974B/en
Publication of CN107340974A publication Critical patent/CN107340974A/en
Application granted granted Critical
Publication of CN107340974B publication Critical patent/CN107340974B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0647Migration mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0665Virtualisation aspects at area level, e.g. provisioning of virtual or logical volumes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a migration method and a migration device of a virtual disk, which comprises the steps of judging whether the virtual disk to be migrated can move or not; if the virtual disk to be migrated can move, acquiring a storage list containing all alternative storage spaces capable of storing the virtual disk to be migrated; sending a storage list to a user; receiving an alternative storage space selected by a user in a storage list as a target storage space; and migrating the virtual disk to be migrated to the target storage space. According to the technical scheme provided by the invention, whether the virtual disk to be migrated can be moved is judged in advance, and the storage list containing all the alternative storage spaces capable of storing the virtual disk to be migrated is obtained after the virtual disk to be migrated is determined to be moved, so that when a user selects any one alternative storage space in the storage list as a new storage space of the virtual disk to be migrated, the virtual disk to be migrated can be successfully migrated into the storage space, the migration success rate of the virtual disk is ensured, and the user experience is improved.

Description

Virtual disk migration method and virtual disk migration device
Technical Field
The present invention relates to the field of virtual disk management, and in particular, to a virtual disk migration method and a virtual disk migration apparatus.
Background
The server virtualization product is designed and developed aiming at the problems of low utilization rate of infrastructure, rising physical cost, increasing management cost, incapability of timely repairing key application faults, insufficient disaster protection and the like of the traditional data center, and can convert a static and complex Internet Technology (IT) environment into a dynamic and easily-managed virtual environment, so that the problems are solved.
A Virtual Disk (VD) is a server virtualization product, and its migration function is the most basic function.
In the related art, most of the migration of the virtual disk is to select the virtual disk and directly execute the operation of moving the virtual disk, and in a real virtualization environment, the movement of the virtual disk has many limitations, so that the method often causes the migration failure of the virtual disk and reduces the user experience.
Disclosure of Invention
In order to solve the above technical problems, the present invention provides a migration method and a migration apparatus for a virtual disk, which can ensure successful migration of the virtual disk through a predetermined manner.
In order to achieve the purpose of the present invention, the present invention provides a migration method of a virtual disk, comprising:
judging whether the virtual disk to be migrated can be moved or not;
if the virtual disk to be migrated can move, acquiring a storage list containing all alternative storage spaces capable of storing the virtual disk to be migrated;
sending the storage list to a user;
receiving a candidate storage space selected by the user in the storage list as a target storage space;
and migrating the virtual disk to be migrated to the target storage space.
The judging whether the virtual disk to be migrated can be moved includes:
judging whether the virtual disk to be migrated is empty or not;
judging whether the virtual disk to be migrated is in a locked state or not;
judging whether the virtual disk to be migrated is a snapshot or not;
judging whether the virtual disk to be migrated is a high-availability disk or not;
judging whether the virtual disk to be migrated stores metadata or not;
judging whether the virtual disk to be migrated is a tool installation disk or not;
judging whether the type of the storage space for storing the virtual disk to be migrated is a bottom storage type or not;
and if the virtual disk to be migrated is not empty, is in an unlocked state, is not the snapshot, is not used as the high-availability disk, does not store the metadata, is not used as a tool-mounted disk, and stores the type of the storage space of the virtual disk to be migrated, which is not the underlying storage type, determining that the virtual disk to be migrated can be moved.
The obtaining of the storage list including all the alternative storage spaces capable of storing the virtual disk to be migrated includes:
acquiring all M storage spaces in a resource pool;
sequentially judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated; wherein, i is 1, 2 … M;
if the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated, determining the ith storage space in the M storage spaces as the alternative storage space;
and generating the storage list according to all the determined alternative storage spaces.
The sequentially judging whether the ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored includes:
judging whether a mapping relation exists between the current storage space for storing the virtual disk to be migrated and the virtual machine;
if the mapping relationship does not exist between the current storage space and the virtual machine, judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated or not according to the state of the ith storage space in the M storage spaces and the relationship between the ith storage space in the M storage spaces and the current storage space;
if the mapping relationship exists between the current storage space and the virtual machine, judging whether the ith storage space in the M storage spaces is a storage space which can store the virtual disk to be migrated or not according to the storage type of the current storage space, the state of the ith storage space in the M storage spaces and the storage type of the ith storage space in the M storage spaces.
If the mapping relationship does not exist between the current storage space and the virtual machine, judging whether the ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored according to the state of the ith storage space in the M storage spaces and the relationship between the ith storage space in the M storage spaces and the current storage space, including:
if the mapping relation does not exist between the current storage space and the virtual machine, judging whether the state of the ith storage space in the M storage spaces is normal or not;
judging whether the ith storage space in the M storage spaces and the current storage space are the same storage space;
and if the state of the ith storage space in the M storage spaces is normal and the ith storage space is not the same as the current storage space, determining the ith storage space in the M storage spaces as a storage space capable of storing the virtual disk to be migrated.
If a mapping relationship exists between the current storage space and the virtual machine, judging whether the ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored according to the storage type of the current storage space, the state of the ith storage space in the M storage spaces and the storage type of the ith storage space in the M storage spaces, including:
if a mapping relation exists between the current storage space and the virtual machine, acquiring the storage type of the current storage space;
if the storage type of the current storage space is a local storage type, judging that the ith storage space in the M storage spaces is a storage space which can store the virtual disk to be migrated according to the state of the ith storage space in the M storage spaces and the storage type of the ith storage space in the M storage spaces;
if the storage type of the current storage space is a shared storage type, judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated according to the storage type of the ith storage space in the M storage spaces.
If the storage type of the current storage space is a local storage type, judging that the ith storage space in the M storage spaces is a storage space which can store the virtual disk to be migrated according to the state of the ith storage space in the M storage spaces and the storage type of the ith storage space in the M storage spaces, and the method comprises the following steps:
if the storage type of the current storage space is a local storage type, judging whether the state of the ith storage space in the M storage spaces is normal or not;
judging whether the storage type of the ith storage space in the M storage spaces is a shared storage type or not;
and if the state of the ith storage space in the M storage spaces is normal and the storage space is the shared storage type, determining that the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated.
If the storage type of the current storage space is a shared storage type, judging whether the ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored according to the storage type of the ith storage space in the M storage spaces, including:
if the storage type of the current storage space is a shared storage type, acquiring the storage type of the ith storage space in the M storage spaces;
if the storage type of the ith storage space in the M storage spaces is a shared storage type, judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated according to the state of the ith storage space in the M storage spaces and the relation between the ith storage space in the M storage spaces and the current storage space;
if the storage type of the ith storage space in the M storage spaces is a local storage type, judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated according to the state of the ith storage space in the M storage spaces and the relation between the ith storage space in the M storage spaces and the storage space to be determined; and the storage space to be determined is the storage space of the virtual machine which has a mapping relation with the current storage space.
If the storage type of the ith storage space in the M storage spaces is a shared storage type, determining whether the ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored according to the state of the ith storage space in the M storage spaces and the relationship between the ith storage space in the M storage spaces and the current storage space, including:
if the storage type of the ith storage space in the M storage spaces is a shared storage type, judging whether the state of the ith storage space in the M storage spaces is normal or not;
judging whether the ith storage space in the M storage spaces and the current storage space are the same storage space;
if the state of the ith storage space in the M storage spaces is normal and the ith storage space is not the same as the current storage space, determining the ith storage space in the M storage spaces as a storage space capable of storing the virtual disk to be migrated;
if the storage type of the ith storage space in the M storage spaces is a local storage type, determining whether the ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored according to the state of the ith storage space in the M storage spaces and the relationship between the ith storage space in the M storage spaces and the storage space to be determined, including:
if the storage type of the ith storage space in the M storage spaces is a local storage type, acquiring the storage space of the virtual machine which has a mapping relation with the current storage space, and obtaining a storage space to be determined;
judging whether the state of the ith storage space in the M storage spaces is normal or not;
judging whether the ith storage space in the M storage spaces and the storage space to be determined are the same storage space;
and if the state of the ith storage space in the M storage spaces is normal and the ith storage space is not the same as the storage space to be determined, determining the ith storage space in the M storage spaces as a storage space capable of storing the virtual disk to be migrated.
The invention also provides a virtual disk migration device, which comprises:
the judging module is used for judging whether the virtual disk to be migrated can move or not;
the acquisition module is used for acquiring a storage list containing all the alternative storage spaces capable of storing the virtual disk to be migrated if the virtual disk to be migrated can move;
the sending module is used for sending the storage list to a user;
a receiving module, configured to receive, as a target storage space, one alternative storage space selected by the user in the storage list;
and the processing module is used for migrating the virtual disk to be migrated to the target storage space.
Compared with the prior art, the method at least comprises the steps of judging whether the virtual disk to be migrated can be moved or not; if the virtual disk to be migrated can move, acquiring a storage list containing all alternative storage spaces capable of storing the virtual disk to be migrated; sending a storage list to a user; receiving an alternative storage space selected by a user in a storage list as a target storage space; and migrating the virtual disk to be migrated to the target storage space. According to the technical scheme provided by the invention, whether the virtual disk to be migrated can be moved is judged in advance, and the storage list containing all the alternative storage spaces capable of storing the virtual disk to be migrated is obtained after the virtual disk to be migrated is determined to be moved, so that when a user selects any one alternative storage space in the storage list as a new storage space of the virtual disk to be migrated, the virtual disk to be migrated can be successfully migrated into the storage space, the migration success rate of the virtual disk is ensured, and the user experience is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a schematic flowchart of a migration method of a virtual disk according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another virtual disk migration method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another virtual disk migration method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a virtual disk migration apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another virtual disk migration apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
An embodiment of the present invention provides a migration method of a virtual disk, as shown in fig. 1, the method includes:
step 101, judging whether the virtual disk to be migrated can be moved.
Specifically, since there are many restrictions on the movement of the virtual disk, it is necessary to determine whether the virtual disk to be migrated can be moved in advance.
And 102, if the virtual disk to be migrated can move, acquiring a storage list containing all the alternative storage spaces capable of storing the virtual disk to be migrated.
Specifically, the alternative storage space is a determined storage space capable of storing the virtual disk to be migrated, and the storage list is a list of all alternative storage spaces capable of storing the virtual disk to be migrated.
Step 103, sending the storage list to the user.
And 104, receiving a candidate storage space selected by the user in the storage list as a target storage space.
Specifically, one of the alternative storage spaces selected by the user in the storage list is a new storage space to which the user wishes to migrate the virtual disk to be migrated, and therefore, the alternative storage space is a target storage space.
And 105, migrating the virtual disk to be migrated to the target storage space.
It should be noted that, because the target storage space is one of the candidate storage spaces in the storage list, and all the candidate storage spaces in the storage list are storage spaces in which the virtual disk to be migrated can be stored, migrating the virtual disk to be migrated to the target storage space can be successfully performed.
The virtual disk migration method provided by the embodiment of the invention judges whether the virtual disk to be migrated can move; if the virtual disk to be migrated can move, acquiring a storage list containing all alternative storage spaces capable of storing the virtual disk to be migrated; sending a storage list to a user; receiving an alternative storage space selected by a user in a storage list as a target storage space; and migrating the virtual disk to be migrated to the target storage space. According to the technical scheme provided by the invention, whether the virtual disk to be migrated can be moved is judged in advance, and the storage list containing all the alternative storage spaces capable of storing the virtual disk to be migrated is obtained after the virtual disk to be migrated is determined to be moved, so that when a user selects any one alternative storage space in the storage list as a new storage space of the virtual disk to be migrated, the virtual disk to be migrated can be successfully migrated into the storage space, the migration success rate of the virtual disk is ensured, and the user experience is improved.
An embodiment of the present invention provides another virtual disk migration method, as shown in fig. 2, the method includes:
step 201, judging whether the virtual disk to be migrated is empty.
It should be noted that when the virtual disk to be migrated is empty, the virtual disk to be migrated cannot be migrated, and only when data is stored in the disk to be migrated, the disk to be migrated can be migrated.
Step 202, judging whether the virtual disk to be migrated is in a locked state.
Step 203, judging whether the virtual disk to be migrated is a snapshot.
It should be noted that a "snapshot" of a disk is a copy of a disk file of a virtual machine at a certain point in time. A system crash or system exception may be used to maintain disk file systems and system storage by using a restore to snapshot.
And step 204, judging whether the virtual disk to be migrated is a high-availability disk.
Step 205, judging whether the virtual disk to be migrated stores metadata.
And step 206, judging whether the virtual disk to be migrated is a tool-mounted disk.
It should be noted that, if the virtual disk to be migrated is a tool Tools installed disk, the virtual disk to be migrated cannot be moved.
Step 207, judging whether the type of the storage space storing the virtual disk to be migrated is the bottom storage type.
Specifically, the rawhba is an underlying storage type, and if the type of the storage space storing the virtual disk to be migrated is the type, the virtual disk to be migrated cannot be moved.
And 208, if the virtual disk to be migrated is not empty, is in an unlocked state, is not a snapshot, is not a high-availability disk, does not store metadata, is not a tool-mounted disk, and is not an underlying storage type, determining that the virtual disk to be migrated can be moved.
And step 209, acquiring all M storage spaces in the resource pool.
And step 210, sequentially judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated.
Wherein, i is 1, 2 … M.
Specifically, sequentially judging whether the ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored means: whether the 1 st storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored, and whether the 2 nd storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored … M storage spaces is sequentially judged.
Specifically, step 210 can be implemented by steps 210a, 210b, and 210 c:
210a, judging whether a mapping relation exists between the current storage space for storing the virtual disk to be migrated and the virtual machine.
210b, if no mapping relation exists between the current storage space and the virtual machine, judging whether the ith storage space in the M storage spaces is the storage space capable of storing the virtual disk to be migrated according to the state of the ith storage space in the M storage spaces and the relation between the ith storage space in the M storage spaces and the current storage space.
210c, if a mapping relationship exists between the current storage space and the virtual machine, judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated according to the storage type of the current storage space, the state of the ith storage space in the M storage spaces and the storage type of the ith storage space in the M storage spaces.
Specifically, step 210b may be implemented by steps 210b1, 210b2, and 210b 3:
step 210b1, if there is no mapping relationship between the current storage space and the virtual machine, determining whether the state of the ith storage space in the M storage spaces is normal.
Step 210b2, determining whether the ith storage space and the current storage space in the M storage spaces are the same storage space.
Step 210b3, if the state of the ith storage space in the M storage spaces is normal and is not the same as the current storage space, determining that the ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored.
Step 210c may be implemented by steps 210c1, 210c2, and 210c 3:
and step 210c1, if a mapping relation exists between the current storage space and the virtual machine, acquiring the storage type of the current storage space.
Step 210c2, if the storage type of the current storage space is the local storage type, determining that the ith storage space in the M storage spaces is the storage space enough to store the virtual disk to be migrated according to the state of the ith storage space in the M storage spaces and the storage type of the ith storage space in the M storage spaces.
Step 210c3, if the storage type of the current storage space is the shared storage type, determining whether the ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored according to the storage type of the ith storage space in the M storage spaces.
Specifically, step 210c2 may be implemented by steps 210c21, 210c22, and 210c 23:
and step 210c21, if the storage type of the current storage space is the local storage type, determining whether the state of the ith storage space in the M storage spaces is normal.
And step 210c22, judging whether the storage type of the ith storage space in the M storage spaces is a shared storage type.
Step 210c23, if the state of the ith storage space in the M storage spaces is normal and is the shared storage type, determining that the ith storage space in the M storage spaces is a storage space enough to store the virtual disk to be migrated.
Step 210c3 may be implemented by steps 210c31, 210c32 and 210c 33:
step 210c31, if the storage type of the current storage space is the shared storage type, obtaining the storage type of the ith storage space in the M storage spaces.
Step 210c32, if the storage type of the ith storage space in the M storage spaces is the shared storage type, determining whether the ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored according to the state of the ith storage space in the M storage spaces and the relationship between the ith storage space in the M storage spaces and the current storage space.
Specifically, step 210c32 is implemented by the following steps:
and if the storage type of the ith storage space in the M storage spaces is the shared storage type, judging whether the state of the ith storage space in the M storage spaces is normal or not.
And judging whether the ith storage space in the M storage spaces and the current storage space are the same storage space.
And if the ith storage space in the M storage spaces is normal and is not the same as the current storage space, determining the ith storage space in the M storage spaces as a storage space capable of storing the virtual disk to be migrated.
Step 210c33, if the storage type of the ith storage space in the M storage spaces is a local storage type, determining whether the ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored according to the state of the ith storage space in the M storage spaces and the relationship between the ith storage space in the M storage spaces and the storage space to be determined; the storage space to be determined is a storage space to which the virtual machine with the mapping relation with the current storage space belongs.
Specifically, step 210c33 is implemented by the following steps:
if the storage type of the ith storage space in the M storage spaces is a local storage type, obtaining the storage space of the virtual machine which has a mapping relation with the current storage space, and obtaining the storage space to be determined.
And judging whether the state of the ith storage space in the M storage spaces is normal or not.
And judging whether the ith storage space in the M storage spaces and the storage space to be determined are the same storage space.
And if the state of the ith storage space in the M storage spaces is normal and the ith storage space is not the same as the storage space to be determined, determining the ith storage space in the M storage spaces as a storage space capable of storing the virtual disk to be migrated.
Step 211, if the ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored, determining that the ith storage space in the M storage spaces is a candidate storage space.
Step 212, a storage list is generated according to all the determined alternative storage spaces.
Step 213, send the stored list to the user.
And step 214, receiving a candidate storage space selected by the user in the storage list as a target storage space.
And 215, migrating the virtual disk to be migrated to the target storage space.
Specifically, in practical application, two interfaces may be arranged on the virtual disk, wherein steps 201 to 208 are implemented in one interface in a calling manner, and steps 209 to 215 are implemented in the other interface in a calling manner.
It should be noted that, for the explanation of the same steps or concepts in the present embodiment as in the other embodiments, reference may be made to the description in the other embodiments.
The virtual disk migration method provided by the embodiment of the invention judges whether the virtual disk to be migrated can move; if the virtual disk to be migrated can move, acquiring a storage list containing all alternative storage spaces capable of storing the virtual disk to be migrated; sending a storage list to a user; receiving an alternative storage space selected by a user in a storage list as a target storage space; and migrating the virtual disk to be migrated to the target storage space. According to the technical scheme provided by the invention, whether the virtual disk to be migrated can be moved is judged in advance, and the storage list containing all the alternative storage spaces capable of storing the virtual disk to be migrated is obtained after the virtual disk to be migrated is determined to be moved, so that when a user selects any one alternative storage space in the storage list as a new storage space of the virtual disk to be migrated, the virtual disk to be migrated can be successfully migrated into the storage space, the migration success rate of the virtual disk is ensured, and the user experience is improved.
An embodiment of the present invention provides another virtual disk migration method, as shown in fig. 3, where the method includes:
whether the virtual disk can be moved is determined (the specific determination method is the same as steps 201 to 208).
And if the virtual disk can move, acquiring all M storage spaces in the resource pool.
And traversing M storage spaces, and performing the following process on each storage space (denoted as ith storage space):
and judging whether a mapping relation exists between the current storage space for storing the virtual disk to be migrated and the virtual machine.
If the mapping relation does not exist between the current storage space and the virtual machine, judging whether the ith storage Space (SRi) is normal and is not the same storage space as the current storage Space (SR); if one is not, continuing to judge the next storage space; if both are true, the ith storage Space (SRi) is added to the storage list.
If a mapping relation exists between the current storage Space (SR) and the virtual machine, acquiring the storage type of the current storage Space (SR); if the storage type of the current storage Space (SR) is a local storage type, judging whether the ith storage Space (SRi) is normal and is a shared storage type, and if one storage Space (SRi) is not the shared storage type, continuing to judge the next storage space; if both are true, the ith storage Space (SRi) is added to the storage list. If the storage type of the current storage space is a shared storage type, judging the storage type of the ith storage Space (SRi); if the storage type of the ith storage Space (SRi) is a shared storage type, judging whether the state of the ith storage Space (SRi) is normal and is not the same storage space as the current storage Space (SR) or not, and if one storage space is not the same storage space, continuing to judge the next storage space; adding the ith storage Space (SRi) to the storage list if both are true; if the storage type of the ith storage Space (SRi) is a local storage type, obtaining the storage space which the virtual machine which has a mapping relation with the current storage space belongs to obtain a storage space to be determined (SRv), judging whether the state of the ith storage Space (SRi) is normal and whether the state of the ith storage Space (SRi) is not the same as the storage space to be determined (SRv), and if one of the storage spaces is not the same as the storage space to be determined, continuing to judge the next storage space; if both are true, the ith storage Space (SRi) is added to the storage list.
An embodiment of the present invention provides a virtual disk migration apparatus, as shown in fig. 4, where the apparatus 3 includes:
the determining module 31 is configured to determine whether the virtual disk to be migrated can move.
The obtaining module 32 is configured to obtain a storage list including all candidate storage spaces where the virtual disk to be migrated can be stored, if the virtual disk to be migrated can move.
A sending module 33, configured to send the storage list to the user.
And a receiving module 34, configured to receive, as the target storage space, one candidate storage space selected by the user in the storage list.
And the processing module 35 is configured to migrate the virtual disk to be migrated to the target storage space.
Further, the determining module 31 is specifically configured to:
and judging whether the virtual disk to be migrated is empty or not.
And judging whether the virtual disk to be migrated is in a locked state or not.
And judging whether the virtual disk to be migrated is a snapshot or not.
And judging whether the virtual disk to be migrated is a high-availability disk or not.
And judging whether the virtual disk to be migrated stores metadata or not.
And judging whether the virtual disk to be migrated is a tool installation disk or not.
And judging whether the type of the storage space for storing the virtual disk to be migrated is a bottom storage type.
If the virtual disk to be migrated is not empty, is in an unlocked state, is not a snapshot, is not used as a high availability disk, is not stored with metadata, is not used as a tool-mounted disk, and is not of an underlying storage type, determining that the virtual disk to be migrated is capable of being moved.
Further, the obtaining module 32 includes:
an obtaining unit 321, configured to obtain all M storage spaces in the resource pool.
A determining unit 322, configured to sequentially determine whether an ith storage space in the M storage spaces is a storage space in which a virtual disk to be migrated can be stored; wherein, i is 1, 2 … M.
The determining unit 323 is configured to determine, if the ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored, that the ith storage space in the M storage spaces is an alternative storage space.
The processing unit 324 generates a storage list according to all the determined candidate storage spaces.
Further, the determining unit 322 is specifically configured to:
and judging whether a mapping relation exists between the current storage space for storing the virtual disk to be migrated and the virtual machine.
If the mapping relation does not exist between the current storage space and the virtual machine, judging whether the ith storage space in the M storage spaces is the storage space capable of storing the virtual disk to be migrated or not according to the state of the ith storage space in the M storage spaces and the relation between the ith storage space in the M storage spaces and the current storage space.
If a mapping relation exists between the current storage space and the virtual machine, judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated or not according to the storage type of the current storage space, the state of the ith storage space in the M storage spaces and the storage type of the ith storage space in the M storage spaces.
Further, the determining unit 322 is further specifically configured to:
and if the mapping relation does not exist between the current storage space and the virtual machine, judging whether the state of the ith storage space in the M storage spaces is normal or not.
And judging whether the ith storage space in the M storage spaces and the current storage space are the same storage space.
And if the ith storage space in the M storage spaces is normal and is not the same as the current storage space, determining the ith storage space in the M storage spaces as a storage space capable of storing the virtual disk to be migrated.
And if the mapping relation exists between the current storage space and the virtual machine, acquiring the storage type of the current storage space.
And if the storage type of the current storage space is a local storage type, judging that the ith storage space in the M storage spaces is a storage space which can store the virtual disk to be migrated according to the state of the ith storage space in the M storage spaces and the storage type of the ith storage space in the M storage spaces.
If the storage type of the current storage space is a shared storage type, judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated according to the storage type of the ith storage space in the M storage spaces.
Further, the determining unit 322 is further specifically configured to:
and if the storage type of the current storage space is the local storage type, judging whether the state of the ith storage space in the M storage spaces is normal.
And judging whether the storage type of the ith storage space in the M storage spaces is a shared storage type.
And if the state of the ith storage space in the M storage spaces is normal and the storage space is a shared storage type, determining that the ith storage space in the M storage spaces is a storage space which can store the virtual disk to be migrated.
And if the storage type of the current storage space is the shared storage type, acquiring the storage type of the ith storage space in the M storage spaces.
If the storage type of the ith storage space in the M storage spaces is a shared storage type, judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated according to the state of the ith storage space in the M storage spaces and the relation between the ith storage space in the M storage spaces and the current storage space.
If the storage type of the ith storage space in the M storage spaces is a local storage type, judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated or not according to the state of the ith storage space in the M storage spaces and the relation between the ith storage space in the M storage spaces and the storage space to be determined; the storage space to be determined is a storage space to which the virtual machine with the mapping relation with the current storage space belongs.
Further, the determining unit 322 is further specifically configured to:
and if the storage type of the ith storage space in the M storage spaces is the shared storage type, judging whether the state of the ith storage space in the M storage spaces is normal or not.
And judging whether the ith storage space in the M storage spaces and the current storage space are the same storage space.
And if the ith storage space in the M storage spaces is normal and is not the same as the current storage space, determining the ith storage space in the M storage spaces as a storage space capable of storing the virtual disk to be migrated.
And if the storage type of the ith storage space in the M storage spaces is the local storage type, acquiring the storage space of the virtual machine which has a mapping relation with the current storage space, and obtaining the storage space to be determined.
And judging whether the state of the ith storage space in the M storage spaces is normal or not.
And judging whether the ith storage space in the M storage spaces and the storage space to be determined are the same storage space.
And if the state of the ith storage space in the M storage spaces is normal and the ith storage space is not the same as the storage space to be determined, determining the ith storage space in the M storage spaces as a storage space capable of storing the virtual disk to be migrated.
The virtual disk migration device provided by the embodiment of the invention judges whether the virtual disk to be migrated can move; if the virtual disk to be migrated can move, acquiring a storage list containing all alternative storage spaces capable of storing the virtual disk to be migrated; sending a storage list to a user; receiving an alternative storage space selected by a user in a storage list as a target storage space; and migrating the virtual disk to be migrated to the target storage space. According to the technical scheme provided by the invention, whether the virtual disk to be migrated can be moved is judged in advance, and the storage list containing all the alternative storage spaces capable of storing the virtual disk to be migrated is obtained after the virtual disk to be migrated is determined to be moved, so that when a user selects any one alternative storage space in the storage list as a new storage space of the virtual disk to be migrated, the virtual disk to be migrated can be successfully migrated into the storage space, the migration success rate of the virtual disk is ensured, and the user experience is improved.
In practical applications, the determining module 31, the obtaining module 32, the obtaining Unit 321, the determining Unit 322, the determining Unit 323, the Processing Unit 324, the sending module 33, the receiving module 34, and the Processing module 35 may be implemented by a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like, which are located in a migration device of the virtual disk.
The embodiment of the present invention further provides a virtual disk migration apparatus, where the apparatus includes a memory, a processor, and a computer program that is stored in the memory and can run on the processor, and when retrieving an operating system login password, the steps implemented when the processor executes the computer program include:
and judging whether the virtual disk to be migrated can be moved.
And if the virtual disk to be migrated can be moved, acquiring a storage list containing all the alternative storage spaces capable of storing the virtual disk to be migrated.
The stored list is sent to the user.
And receiving one alternative storage space selected by the user in the storage list as a target storage space.
And migrating the virtual disk to be migrated to the target storage space.
Further, the steps implemented when the processor executes the computer program specifically include:
and judging whether the virtual disk to be migrated is empty or not.
And judging whether the virtual disk to be migrated is in a locked state or not.
And judging whether the virtual disk to be migrated is a snapshot or not.
And judging whether the virtual disk to be migrated is a high-availability disk or not.
And judging whether the virtual disk to be migrated stores metadata or not.
And judging whether the virtual disk to be migrated is a tool installation disk or not.
And judging whether the type of the storage space for storing the virtual disk to be migrated is a bottom storage type or not.
If the virtual disk to be migrated is not empty, is in an unlocked state, is not a snapshot, is not used as a high availability disk, is not stored with metadata, is not used as a tool-mounted disk, and is not of an underlying storage type, determining that the virtual disk to be migrated is capable of being moved.
Further, the steps implemented when the processor executes the computer program further include:
acquiring all M storage spaces in a resource pool;
sequentially judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated; wherein, i is 1, 2 … M.
And if the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated, determining the ith storage space in the M storage spaces as an alternative storage space.
And generating a storage list according to all the determined alternative storage spaces.
Further, the steps implemented when the processor executes the computer program further include:
and judging whether a mapping relation exists between the current storage space for storing the virtual disk to be migrated and the virtual machine.
If the mapping relation does not exist between the current storage space and the virtual machine, judging whether the ith storage space in the M storage spaces is the storage space capable of storing the virtual disk to be migrated or not according to the state of the ith storage space in the M storage spaces and the relation between the ith storage space in the M storage spaces and the current storage space.
If a mapping relation exists between the current storage space and the virtual machine, judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated or not according to the storage type of the current storage space, the state of the ith storage space in the M storage spaces and the storage type of the ith storage space in the M storage spaces.
Further, the steps implemented when the processor executes the computer program further include:
and if the mapping relation does not exist between the current storage space and the virtual machine, judging whether the state of the ith storage space in the M storage spaces is normal or not.
And judging whether the ith storage space in the M storage spaces and the current storage space are the same storage space.
And if the ith storage space in the M storage spaces is normal and is not the same as the current storage space, determining the ith storage space in the M storage spaces as a storage space capable of storing the virtual disk to be migrated.
And if the mapping relation exists between the current storage space and the virtual machine, acquiring the storage type of the current storage space.
And if the storage type of the current storage space is a local storage type, judging that the ith storage space in the M storage spaces is a storage space which can store the virtual disk to be migrated according to the state of the ith storage space in the M storage spaces and the storage type of the ith storage space in the M storage spaces.
If the storage type of the current storage space is a shared storage type, judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated according to the storage type of the ith storage space in the M storage spaces.
Further, the steps implemented when the processor executes the computer program further include:
and if the storage type of the current storage space is the local storage type, judging whether the state of the ith storage space in the M storage spaces is normal.
And judging whether the storage type of the ith storage space in the M storage spaces is a shared storage type.
And if the state of the ith storage space in the M storage spaces is normal and the storage space is a shared storage type, determining that the ith storage space in the M storage spaces is a storage space which can store the virtual disk to be migrated.
And if the storage type of the current storage space is the shared storage type, acquiring the storage type of the ith storage space in the M storage spaces.
If the storage type of the ith storage space in the M storage spaces is a shared storage type, judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated according to the state of the ith storage space in the M storage spaces and the relation between the ith storage space in the M storage spaces and the current storage space.
If the storage type of the ith storage space in the M storage spaces is a local storage type, judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated or not according to the state of the ith storage space in the M storage spaces and the relation between the ith storage space in the M storage spaces and the storage space to be determined; the storage space to be determined is a storage space to which the virtual machine with the mapping relation with the current storage space belongs.
Further, the steps implemented when the processor executes the computer program further include:
and if the storage type of the ith storage space in the M storage spaces is the shared storage type, judging whether the state of the ith storage space in the M storage spaces is normal or not.
And judging whether the ith storage space in the M storage spaces and the current storage space are the same storage space.
And if the ith storage space in the M storage spaces is normal and is not the same as the current storage space, determining the ith storage space in the M storage spaces as a storage space capable of storing the virtual disk to be migrated.
And if the storage type of the ith storage space in the M storage spaces is the local storage type, acquiring the storage space of the virtual machine which has a mapping relation with the current storage space, and obtaining the storage space to be determined.
And judging whether the state of the ith storage space in the M storage spaces is normal or not.
And judging whether the ith storage space in the M storage spaces and the storage space to be determined are the same storage space.
And if the state of the ith storage space in the M storage spaces is normal and the ith storage space is not the same as the storage space to be determined, determining the ith storage space in the M storage spaces as a storage space capable of storing the virtual disk to be migrated.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A migration method of a virtual disk is characterized by comprising the following steps:
judging whether the virtual disk to be migrated can be moved or not;
if the virtual disk to be migrated can move, acquiring a storage list containing all alternative storage spaces capable of storing the virtual disk to be migrated;
sending the storage list to a user;
receiving a candidate storage space selected by the user in the storage list as a target storage space;
and migrating the virtual disk to be migrated to the target storage space.
2. The migration method according to claim 1, wherein the determining whether the virtual disk to be migrated can be moved comprises:
judging whether the virtual disk to be migrated is empty or not;
judging whether the virtual disk to be migrated is in a locked state or not;
judging whether the virtual disk to be migrated is a snapshot or not;
judging whether the virtual disk to be migrated is a high-availability disk or not;
judging whether the virtual disk to be migrated stores metadata or not;
judging whether the virtual disk to be migrated is a tool installation disk or not;
judging whether the type of the storage space for storing the virtual disk to be migrated is a bottom storage type or not;
and if the virtual disk to be migrated is not empty, is in an unlocked state, is not the snapshot, is not used as the high-availability disk, does not store the metadata, is not used as a tool-mounted disk, and stores the type of the storage space of the virtual disk to be migrated, which is not the underlying storage type, determining that the virtual disk to be migrated can be moved.
3. The migration method according to claim 1, wherein the obtaining a storage list including all the alternative storage spaces where the virtual disks to be migrated can be stored comprises:
acquiring all M storage spaces in a resource pool;
sequentially judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated; wherein, i is 1, 2 … M;
if the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated, determining the ith storage space in the M storage spaces as the alternative storage space;
and generating the storage list according to all the determined alternative storage spaces.
4. The migration method according to claim 3, wherein the sequentially determining whether the ith storage space of the M storage spaces is a storage space in which the virtual disk to be migrated can be stored comprises:
judging whether a mapping relation exists between the current storage space for storing the virtual disk to be migrated and the virtual machine;
if the mapping relationship does not exist between the current storage space and the virtual machine, judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated or not according to the state of the ith storage space in the M storage spaces and the relationship between the ith storage space in the M storage spaces and the current storage space;
if the mapping relationship exists between the current storage space and the virtual machine, judging whether the ith storage space in the M storage spaces is a storage space which can store the virtual disk to be migrated or not according to the storage type of the current storage space, the state of the ith storage space in the M storage spaces and the storage type of the ith storage space in the M storage spaces.
5. The migration method according to claim 4, wherein if there is no mapping relationship between the current storage space and the virtual machine, determining whether an ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored according to a state of an ith storage space in the M storage spaces and a relationship between the ith storage space in the M storage spaces and the current storage space, includes:
if the mapping relation does not exist between the current storage space and the virtual machine, judging whether the state of the ith storage space in the M storage spaces is normal or not;
judging whether the ith storage space in the M storage spaces and the current storage space are the same storage space;
and if the state of the ith storage space in the M storage spaces is normal and the ith storage space is not the same as the current storage space, determining the ith storage space in the M storage spaces as a storage space capable of storing the virtual disk to be migrated.
6. The migration method according to claim 4, wherein if there is a mapping relationship between the current storage space and the virtual machine, determining whether an ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored according to a storage type of the current storage space, a state of an ith storage space in the M storage spaces, and a storage type of an ith storage space in the M storage spaces, includes:
if a mapping relation exists between the current storage space and the virtual machine, acquiring the storage type of the current storage space;
if the storage type of the current storage space is a local storage type, judging whether the ith storage space in the M storage spaces is a storage space which can store the virtual disk to be migrated according to the state of the ith storage space in the M storage spaces and the storage type of the ith storage space in the M storage spaces;
if the storage type of the current storage space is a shared storage type, judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated according to the storage type of the ith storage space in the M storage spaces.
7. The migration method according to claim 6, wherein, if the storage type of the current storage space is a local storage type, determining whether an ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored according to a state of an ith storage space in the M storage spaces and a storage type of an ith storage space in the M storage spaces, includes:
if the storage type of the current storage space is a local storage type, judging whether the state of the ith storage space in the M storage spaces is normal or not;
judging whether the storage type of the ith storage space in the M storage spaces is a shared storage type or not;
and if the state of the ith storage space in the M storage spaces is normal and the storage space is the shared storage type, determining that the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated.
8. The migration method according to claim 6, wherein, if the storage type of the current storage space is a shared storage type, determining whether an ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored according to a storage type of an ith storage space in the M storage spaces, includes:
if the storage type of the current storage space is a shared storage type, acquiring the storage type of the ith storage space in the M storage spaces;
if the storage type of the ith storage space in the M storage spaces is a shared storage type, judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated according to the state of the ith storage space in the M storage spaces and the relation between the ith storage space in the M storage spaces and the current storage space;
if the storage type of the ith storage space in the M storage spaces is a local storage type, judging whether the ith storage space in the M storage spaces is a storage space capable of storing the virtual disk to be migrated according to the state of the ith storage space in the M storage spaces and the relation between the ith storage space in the M storage spaces and the storage space to be determined; and the storage space to be determined is the storage space of the virtual machine which has a mapping relation with the current storage space.
9. The migration method according to claim 8, wherein if the storage type of the ith storage space in the M storage spaces is a shared storage type, determining whether the ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored according to a state of the ith storage space in the M storage spaces and a relationship between the ith storage space in the M storage spaces and the current storage space, includes:
if the storage type of the ith storage space in the M storage spaces is a shared storage type, judging whether the state of the ith storage space in the M storage spaces is normal or not;
judging whether the ith storage space in the M storage spaces and the current storage space are the same storage space;
if the state of the ith storage space in the M storage spaces is normal and the ith storage space is not the same as the current storage space, determining the ith storage space in the M storage spaces as a storage space capable of storing the virtual disk to be migrated;
if the storage type of the ith storage space in the M storage spaces is a local storage type, determining whether the ith storage space in the M storage spaces is a storage space in which the virtual disk to be migrated can be stored according to the state of the ith storage space in the M storage spaces and the relationship between the ith storage space in the M storage spaces and the storage space to be determined, including:
if the storage type of the ith storage space in the M storage spaces is a local storage type, obtaining the storage space of the virtual machine which has a mapping relation with the current storage space, and obtaining a storage space to be determined;
judging whether the state of the ith storage space in the M storage spaces is normal or not;
judging whether the ith storage space in the M storage spaces and the storage space to be determined are the same storage space;
and if the state of the ith storage space in the M storage spaces is normal and the ith storage space is not the same as the storage space to be determined, determining the ith storage space in the M storage spaces as a storage space capable of storing the virtual disk to be migrated.
10. An apparatus for migrating a virtual disk, the apparatus comprising:
the judging module is used for judging whether the virtual disk to be migrated can move or not;
the acquisition module is used for acquiring a storage list containing all the alternative storage spaces capable of storing the virtual disk to be migrated if the virtual disk to be migrated can move;
the sending module is used for sending the storage list to a user;
a receiving module, configured to receive, as a target storage space, one alternative storage space selected by the user in the storage list;
and the processing module is used for migrating the virtual disk to be migrated to the target storage space.
CN201710551215.6A 2017-07-07 2017-07-07 Virtual disk migration method and virtual disk migration device Active CN107340974B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710551215.6A CN107340974B (en) 2017-07-07 2017-07-07 Virtual disk migration method and virtual disk migration device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710551215.6A CN107340974B (en) 2017-07-07 2017-07-07 Virtual disk migration method and virtual disk migration device

Publications (2)

Publication Number Publication Date
CN107340974A CN107340974A (en) 2017-11-10
CN107340974B true CN107340974B (en) 2020-03-31

Family

ID=60219663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710551215.6A Active CN107340974B (en) 2017-07-07 2017-07-07 Virtual disk migration method and virtual disk migration device

Country Status (1)

Country Link
CN (1) CN107340974B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108363553A (en) * 2018-01-31 2018-08-03 北京兰云科技有限公司 A kind of data processing method, apparatus and system
CN110647507B (en) * 2019-09-12 2022-05-24 苏州浪潮智能科技有限公司 File system writing state determining method and device, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8380674B1 (en) * 2008-01-09 2013-02-19 Netapp, Inc. System and method for migrating lun data between data containers
CN104536816A (en) * 2014-12-17 2015-04-22 中电科华云信息技术有限公司 Method for improving migration efficiency of virtual machine
CN105511816A (en) * 2015-12-14 2016-04-20 浪潮(北京)电子信息产业有限公司 Method and system for migrating virtual machine disk data
CN106201659A (en) * 2016-07-12 2016-12-07 腾讯科技(深圳)有限公司 A kind of method of live migration of virtual machine and host

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8806126B2 (en) * 2012-05-16 2014-08-12 Hitachi, Ltd. Storage apparatus, storage system, and data migration method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8380674B1 (en) * 2008-01-09 2013-02-19 Netapp, Inc. System and method for migrating lun data between data containers
CN104536816A (en) * 2014-12-17 2015-04-22 中电科华云信息技术有限公司 Method for improving migration efficiency of virtual machine
CN105511816A (en) * 2015-12-14 2016-04-20 浪潮(北京)电子信息产业有限公司 Method and system for migrating virtual machine disk data
CN106201659A (en) * 2016-07-12 2016-12-07 腾讯科技(深圳)有限公司 A kind of method of live migration of virtual machine and host

Also Published As

Publication number Publication date
CN107340974A (en) 2017-11-10

Similar Documents

Publication Publication Date Title
US10656877B2 (en) Virtual storage controller
CN110062924B (en) Capacity reservation for virtualized graphics processing
JP6507167B2 (en) Distribute data on a distributed storage system
US9336132B1 (en) Method and system for implementing a distributed operations log
US8856585B2 (en) Hardware failure mitigation
US20170371568A1 (en) Failure resistent volume creation in a shared storage environment
CN108475201B (en) Data acquisition method in virtual machine starting process and cloud computing system
US11409711B2 (en) Barriers for dependent operations among sharded data stores
US20180364948A1 (en) Data Processing Method, Related Device, and Storage System
US10282120B2 (en) Method, apparatus and system for inserting disk
US11886898B2 (en) GPU-remoting latency aware virtual machine migration
CN107861691B (en) Load balancing method and device of multi-control storage system
US20170153909A1 (en) Methods and Devices for Acquiring Data Using Virtual Machine and Host Machine
CN106294387B (en) Data migration method and device
CN109951553B (en) Data processing method, system, electronic device and computer readable storage medium
BR112017001171B1 (en) METHOD PERFORMED ON A COMPUTING DEVICE, COMPUTING DEVICE AND COMPUTER READABLE MEMORY DEVICE TO RECOVER THE OPERABILITY OF A CLOUD-BASED SERVICE
US20180004797A1 (en) Application resiliency management using a database driver
CN110633046A (en) Storage method and device of distributed system, storage equipment and storage medium
CN107340974B (en) Virtual disk migration method and virtual disk migration device
CN110674008B (en) Problem disk log information collection method, device, equipment and medium of SSD
US11157456B2 (en) Replication of data in a distributed file system using an arbiter
CN104517067A (en) Method, device and system for data access
CN112905596A (en) Data processing method and device, computer equipment and storage medium
US8959383B2 (en) Failover estimation using contradiction
CN110471906A (en) Database switching method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant