CN112527193B - Cloud hard disk data migration method, device, equipment and storage medium - Google Patents

Cloud hard disk data migration method, device, equipment and storage medium Download PDF

Info

Publication number
CN112527193B
CN112527193B CN202011401250.8A CN202011401250A CN112527193B CN 112527193 B CN112527193 B CN 112527193B CN 202011401250 A CN202011401250 A CN 202011401250A CN 112527193 B CN112527193 B CN 112527193B
Authority
CN
China
Prior art keywords
hard disk
storage
target
back end
data
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
CN202011401250.8A
Other languages
Chinese (zh)
Other versions
CN112527193A (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.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data 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 Beijing Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN202011401250.8A priority Critical patent/CN112527193B/en
Publication of CN112527193A publication Critical patent/CN112527193A/en
Application granted granted Critical
Publication of CN112527193B publication Critical patent/CN112527193B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • 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/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a cloud hard disk data migration method, device, equipment and storage medium. The method comprises the following steps: acquiring a source storage protocol of a source storage back end in a cloud platform and a target storage protocol of a target storage back end in the cloud platform; reading cloud hard disk data to be migrated from a source storage back end; converting cloud hard disk data to be migrated into source data based on source data drive corresponding to a source storage protocol; calling a target data driver corresponding to a target storage protocol to convert source data into target cloud hard disk data; and storing the target cloud hard disk data to a target storage back end. The method avoids the situation that the sending data is lost or unavailable when the data of the cloud hard disk is migrated because the storage protocols used when the data is stored between the storage back ends are often different, and further ensures the reliability of the data migration of the cloud hard disk. In addition, the application also provides a cloud hard disk data migration device, equipment and a storage medium, and the beneficial effects are the same as those described above.

Description

Cloud hard disk data migration method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of cloud computing, and in particular, to a method, an apparatus, a device, and a storage medium for cloud hard disk data migration.
Background
Cloud computing platforms, also referred to as cloud platforms, refer to services that provide computing, networking, and storage capabilities based on hardware resources and software resources.
The cloud hard disk is a module for providing the cloud platform with the capacity, and the cloud platform needs to be in butt joint with the underlying storage system to normally provide online data storage service for users, namely the cloud hard disk corresponds to the storage back end.
In the current application scenario of the user to the cloud platform, there is often a scenario that the user migrates data of the cloud hard disk through the cloud platform, and because migrating data in the cloud hard disk often involves data migration between storage back ends of a bottom layer of the cloud platform, and storage protocols used when storing data between the storage back ends are often different, when the cloud platform migrates data of the cloud hard disk, the situation that the data is lost or unavailable occurs may be caused, and reliability of data migration of the cloud hard disk is difficult to ensure.
Therefore, the cloud hard disk data migration method is provided to relatively ensure the reliability of the cloud hard disk data migration, and is a problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a cloud hard disk data migration method, device, equipment and storage medium, so as to relatively ensure the reliability of cloud hard disk data migration.
In order to solve the above technical problems, the present application provides a cloud hard disk data migration method, including:
acquiring a source storage protocol of a source storage back end in a cloud platform and a target storage protocol of a target storage back end in the cloud platform;
reading cloud hard disk data to be migrated from a source storage back end;
converting cloud hard disk data to be migrated into source data based on source data drive corresponding to a source storage protocol;
calling a target data driver corresponding to a target storage protocol to convert source data into target cloud hard disk data;
and storing the target cloud hard disk data to a target storage back end.
Preferably, storing the target cloud hard disk data to the target storage backend includes:
creating a target storage volume at the destination storage back end;
and storing the target cloud hard disk data to a target storage volume.
Preferably, before the cloud hard disk data to be migrated is read in the source storage backend, the method further comprises:
mounting the source storage back end and the destination storage back end to a host;
correspondingly, the method for reading the cloud hard disk data to be migrated from the source storage back end comprises the following steps:
reading cloud hard disk data to be migrated from a source storage back end based on a host;
correspondingly, storing the target cloud hard disk data to the target storage back end comprises:
and storing the target cloud hard disk data to the target storage back end by using the host.
Preferably, after storing the target cloud hard disk data to the target storage backend with the host, the method further comprises:
and unloading the source storage back end and the destination storage back end in the host.
Preferably, acquiring a source storage protocol of a source storage back end in a cloud platform and a target storage protocol of a target storage back end in the cloud platform includes:
and acquiring a source storage protocol of a source storage back end in the OpenStack cloud platform and a target storage protocol of a target storage back end in the OpenStack cloud platform.
Preferably, obtaining a source storage protocol of a source storage back end in an OpenStack cloud platform and a target storage protocol of a target storage back end in the OpenStack cloud platform includes:
and acquiring a source storage protocol of a source storage back end in the OpenStack cloud platform and a target storage protocol of a target storage back end in the OpenStack cloud platform based on the Cinder module.
In addition, the application also provides a cloud hard disk data migration device, which comprises:
the protocol acquisition module is used for acquiring a source storage protocol of a source storage rear end in the cloud platform and a target storage protocol of a target storage rear end in the cloud platform;
the data reading module is used for reading cloud hard disk data to be migrated from the source storage back end;
the source data conversion module is used for converting cloud hard disk data to be migrated into source data based on source data driving corresponding to a source storage protocol;
the hard disk data conversion module is used for calling a target data drive corresponding to the target storage protocol to convert the source data into target cloud hard disk data;
and the data storage module is used for storing the target cloud hard disk data to the target storage back end.
Preferably, the data storage module comprises:
the storage volume creation module is used for creating a target storage volume at the destination storage back end;
and the storage volume storage module is used for storing the target cloud hard disk data to the target storage volume.
In addition, the application further provides cloud hard disk data migration equipment, which comprises:
a memory for storing a computer program;
and the processor is used for realizing the steps of the cloud hard disk data migration method when executing the computer program.
In addition, the application further provides a computer readable storage medium, and a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the cloud hard disk data migration method are realized.
According to the cloud hard disk data migration method, firstly, a source storage protocol of a source storage back end in a cloud platform is obtained, a target storage protocol of a target storage back end in the cloud platform is obtained, cloud hard disk data to be migrated is read in the source storage back end, the cloud hard disk data to be migrated is converted into source data based on a source data drive corresponding to the source storage protocol, and then a target data drive corresponding to the target storage protocol is called to convert the source data into target cloud hard disk data and is stored in the target storage back end. According to the method, data conversion from the source storage back end to the destination storage back end is carried out on cloud hard disk data to be migrated according to the data driving respectively corresponding to the source storage protocol and the destination storage protocol between the storage back ends, so that the situation that data are lost or unavailable when the cloud hard disk data are migrated due to the fact that the storage protocols used when the data are stored between the storage back ends are often different is avoided, and further the reliability of cloud hard disk data migration is ensured. In addition, the application also provides a cloud hard disk data migration device, equipment and a storage medium, and the beneficial effects are the same as those described above.
Drawings
For a clearer description of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a cloud hard disk data migration method disclosed in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a cloud hard disk data migration device disclosed in an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments herein without making any inventive effort are intended to fall within the scope of the present application.
The cloud hard disk is a module for providing the cloud platform with the capacity, and the cloud platform needs to be in butt joint with the underlying storage system to normally provide online data storage service for users, namely the cloud hard disk corresponds to the storage back end.
In the current application scenario of the user to the cloud platform, there is often a scenario that the user migrates data of the cloud hard disk through the cloud platform, and because migrating data in the cloud hard disk often involves data migration between storage back ends of a bottom layer of the cloud platform, and storage protocols used when storing data between the storage back ends are often different, when the cloud platform migrates data of the cloud hard disk, the situation that the data is lost or unavailable occurs may be caused, and reliability of data migration of the cloud hard disk is difficult to ensure.
Therefore, the core of the application is to provide a cloud hard disk data migration method so as to relatively ensure the reliability of cloud hard disk data migration.
In order to provide a better understanding of the present application, those skilled in the art will now make further details of the present application with reference to the drawings and detailed description.
Referring to fig. 1, an embodiment of the present application discloses a cloud hard disk data migration method, including:
step S10: and acquiring a source storage protocol of a source storage back end in the cloud platform and a target storage protocol of a target storage back end in the cloud platform.
It should be noted that, in this embodiment, the source storage back end and the destination storage back end are two storage back ends relatively, the source storage back end is a data initiating end when performing cloud hard disk data migration, the destination storage back end is a data receiving end when performing cloud hard disk data suggestion, the source storage back end and the destination storage back end both belong to a cloud platform, and storage protocols used when storing data are different between the source storage back end and the destination storage back end, that is, data types of data stored between the source storage back end and the destination storage back end are different. In addition, the storage protocols involved in the source storage protocol and the target storage protocol in this embodiment include, but are not limited to, ISCSI (internet small computer system interface ) storage protocol and storage protocol of a distributed storage system such as CEPH.
Step S11: and reading cloud hard disk data to be migrated from the source storage back end.
After the source storage protocol of the source storage back end in the cloud platform and the target storage protocol of the target storage back end in the cloud platform are obtained, the cloud hard disk data to be migrated is further read in the source storage back end in the step, and the purpose is to convert the cloud hard disk data to be migrated into data conforming to the type of the target storage protocol in the subsequent steps.
Step S12: and converting the cloud hard disk data to be migrated into source data based on source data driving corresponding to the source storage protocol.
After the cloud hard disk data to be migrated is read in the back end of the source storage, the cloud hard disk data to be migrated is further converted into source data based on source data driving corresponding to the source storage protocol. The source data can be understood as original data which is not subjected to data encapsulation requirement of a storage protocol and encapsulates the data, and the purpose of converting the cloud hard disk data to be migrated into the source data in the step is to further convert the source data into target cloud hard disk data of a data type which meets the requirement of a target storage protocol in the subsequent step, so that normal storage to the target storage back end is ensured.
Step S13: and calling a target data driver corresponding to the target storage protocol to convert the source data into target cloud hard disk data.
After the cloud hard disk data to be migrated is converted into the source data based on the source data drive corresponding to the source storage protocol, the target data drive corresponding to the target storage protocol further converts the source data into target cloud hard disk data, wherein the target cloud hard disk data is the data meeting the data type in the target storage back end.
Step S14: and storing the target cloud hard disk data to a target storage back end.
After the target data drive corresponding to the target storage protocol is called to convert the source data into target cloud hard disk data, the target cloud hard disk data are further stored to the target storage back end, and therefore the cloud hard disk data to be migrated in the source storage back end are migrated to the target storage back end.
According to the cloud hard disk data migration method, firstly, a source storage protocol of a source storage back end in a cloud platform is obtained, a target storage protocol of a target storage back end in the cloud platform is obtained, cloud hard disk data to be migrated is read in the source storage back end, the cloud hard disk data to be migrated is converted into source data based on a source data drive corresponding to the source storage protocol, and then a target data drive corresponding to the target storage protocol is called to convert the source data into target cloud hard disk data and is stored in the target storage back end. According to the method, data conversion from the source storage back end to the destination storage back end is carried out on cloud hard disk data to be migrated according to the data driving respectively corresponding to the source storage protocol and the destination storage protocol between the storage back ends, so that the situation that data are lost or unavailable when the cloud hard disk data are migrated due to the fact that the storage protocols used when the data are stored between the storage back ends are often different is avoided, and further the reliability of cloud hard disk data migration is ensured.
On the basis of the foregoing embodiment, as a preferred implementation manner, storing the target cloud hard disk data to the target storage backend, includes:
creating a target storage volume at the destination storage back end;
and storing the target cloud hard disk data to a target storage volume.
It should be noted that, when storing the target cloud hard disk data to the target storage backend, the present embodiment focuses on creating a target storage volume in the target storage backend, where the target storage volume is a storage space for storing the cloud hard disk data migrated by the source storage backend, and after creating the target storage volume in the target storage backend, further storing the target cloud hard disk data to the target storage volume, so as to store the target cloud hard disk data to the target storage backend. The embodiment further ensures the reliability of the process of storing the target cloud hard disk data to the target storage back end.
On the basis of the foregoing embodiment, as a preferred implementation manner, before the cloud hard disk data to be migrated is read in the source storage backend, the method further includes:
mounting the source storage back end and the destination storage back end to a host;
correspondingly, the method for reading the cloud hard disk data to be migrated from the source storage back end comprises the following steps:
reading cloud hard disk data to be migrated from a source storage back end based on a host;
correspondingly, storing the target cloud hard disk data to the target storage back end comprises:
and storing the target cloud hard disk data to the target storage back end by using the host.
It should be noted that, before the cloud hard disk data to be migrated is read in the source storage back end, the host is firstly utilized as an intermediate device, and the source storage back end and the destination storage back end are mounted at the same time, so that when the cloud hard disk data to be migrated is read in the source storage back end, the operation of reading the cloud hard disk data to be migrated in the source storage back end is specifically executed based on the host, and when the target cloud hard disk data is stored in the destination storage back end, the operation of storing the target cloud hard disk data in the destination storage back end is executed based on the host. According to the cloud hard disk data migration method and device, when cloud hard disk data migration between the source storage back end and the destination storage back end is performed, the data transmission relation between the source storage back end and the destination storage back end is established based on the host, and therefore reliability in the process of performing cloud hard disk data migration between the source storage back end and the destination storage back end can be further ensured.
Further, as a preferred embodiment, after storing the target cloud hard disk data to the target storage backend by using the host, the method further includes:
and unloading the source storage back end and the destination storage back end in the host.
It should be noted that, the key point of this embodiment is that after the host is used to store the target cloud hard disk data to the destination storage back end, the source storage back end and the destination storage back end are further unloaded in the host, so as to reduce the resource load of the host, and further ensure that the host has higher stability when subsequently mounting other source storage back ends and other destination storage back ends, and further ensure the overall reliability of the cloud hard disk data migration process.
Based on the above series of embodiments, as a preferred implementation manner, the obtaining a source storage protocol of a source storage back end in a cloud platform and a target storage protocol of a target storage back end in the cloud platform includes:
and acquiring a source storage protocol of a source storage back end in the OpenStack cloud platform and a target storage protocol of a target storage back end in the OpenStack cloud platform.
It should be noted that OpenStack is an open-source cloud computing management platform project, which is a project that combines several main components to complete some specific tasks, and OpenStack is an open-source project that aims to provide software for the construction and management of public and private clouds, and provides extensible and elastic cloud computing services for private clouds and public clouds. The key point of the embodiment is to realize the cloud hard disk data migration from the source storage back end to the destination storage back end in the OpenStack cloud platform, so that the reliability of cloud hard disk data migration between the storage back ends running different storage protocols under the OpenStack cloud platform is relatively ensured.
Further, as a preferred embodiment, the obtaining a source storage protocol of a source storage back end in the OpenStack cloud platform and a target storage protocol of a target storage back end in the OpenStack cloud platform includes:
and acquiring a source storage protocol of a source storage back end in the OpenStack cloud platform and a target storage protocol of a target storage back end in the OpenStack cloud platform based on the Cinder module.
It should be noted that, the key point of this embodiment is to implement a source storage protocol of a source storage back end in the OpenStack cloud platform based on a Cinder module in the OpenStack cloud platform, and obtain a target storage protocol of a destination storage back end in the OpenStack cloud platform, and execute subsequent migration of cloud hard disk data according to the source storage protocol and the target storage protocol. Because the Cinder module is a module for providing cloud hard disk management service in the OpenStack cloud platform, the embodiment obtains the source storage protocol of the source storage back end in the OpenStack cloud platform and the target storage protocol of the target storage back end in the OpenStack cloud platform through the Cinder module, and executes the subsequent migration of cloud hard disk data according to the source storage protocol and the target storage protocol, so that the reliability of cloud hard disk data migration can be further ensured.
In a specific scenario of implementing cloud hard disk data migration, component functions and flows in a cander module of OpenStack are as follows:
a cander-api component: firstly, a user initiates a request for copying cloud hard disk data in a cross-storage mode through a UI interface, the issued request transmits information to a client-api through a Rest-api, and in a client-api component, the information is correspondingly modified, including verification of source volume state, verification of whether snapshot information exists or not and the like.
A CInder-scheduler component: the component mainly realizes the selective scheduling of the storage back end, and when the storage volume needs to be established by the specified back end, connection is established with the corresponding storage back end through the client-scheduler component.
A cander-volume component: the component enables management of storage volumes, including creation, mounting, dismounting, copying of data, and other management of lifecycles of storage volumes. The component accesses and operates different storage back ends through the driving of the different storage back ends, and meanwhile, the component is connected with a mysql database to update and maintain the storage volume state, quota and other information, so that the work about storage volume management in the cloud computing platform is completed.
And 4. The module connects the CInder-api and the CInder-scheduler, cinder-volume components together, thereby achieving the function of asynchronous call of copying cloud hard disk data at the storage back end of a cross-storage protocol and improving the performance of cloud hard disk data migration.
Referring to fig. 2, an embodiment of the present application provides a cloud hard disk data migration apparatus, including:
the protocol acquisition module 10 is configured to acquire a source storage protocol of a source storage back end in the cloud platform and a target storage protocol of a target storage back end in the cloud platform;
the data reading module 11 is used for reading cloud hard disk data to be migrated in the source storage back end;
the source data conversion module 12 is configured to convert cloud hard disk data to be migrated into source data based on a source data driver corresponding to a source storage protocol;
the hard disk data conversion module 13 is used for calling a target data drive corresponding to a target storage protocol to convert source data into target cloud hard disk data;
the data storage module 14 is configured to store the target cloud hard disk data to the destination storage backend.
Further, as a preferred embodiment, the data storage module includes:
the storage volume creation module is used for creating a target storage volume at the destination storage back end;
and the storage volume storage module is used for storing the target cloud hard disk data to the target storage volume.
According to the cloud hard disk data migration device, firstly, a source storage protocol of a source storage rear end in a cloud platform is obtained, a target storage protocol of a target storage rear end in the cloud platform is obtained, cloud hard disk data to be migrated is read in the source storage rear end, the cloud hard disk data to be migrated is converted into source data based on a source data drive corresponding to the source storage protocol, and then a target data drive corresponding to the target storage protocol is called to convert the source data into target cloud hard disk data and is stored in the target storage rear end. According to the data driving method and the device, the data conversion from the source storage back end to the destination storage back end is carried out on the cloud hard disk data to be migrated according to the data driving corresponding to the source storage protocol and the destination storage protocol between the storage back ends, so that the situation that the data is lost or unavailable when the cloud hard disk data are migrated due to the fact that the storage protocols used for storing the data between the storage back ends are often different is avoided, and further the reliability of the cloud hard disk data migration is ensured.
In addition, the application further provides cloud hard disk data migration equipment, which comprises:
a memory for storing a computer program;
and the processor is used for realizing the steps of the cloud hard disk data migration method when executing the computer program.
According to the cloud hard disk data migration equipment, firstly, a source storage protocol of a source storage back end in a cloud platform is obtained, a target storage protocol of a target storage back end in the cloud platform is obtained, cloud hard disk data to be migrated is read in the source storage back end, the cloud hard disk data to be migrated is converted into source data based on a source data drive corresponding to the source storage protocol, and then a target data drive corresponding to the target storage protocol is called to convert the source data into target cloud hard disk data and is stored in the target storage back end. According to the data driving method, the device and the system, the data conversion from the source storage back end to the destination storage back end is carried out on the cloud hard disk data to be migrated according to the data driving corresponding to the source storage protocol and the destination storage protocol between the storage back ends, the situation that the data is lost or unavailable when the cloud hard disk data are migrated due to the fact that the storage protocols used when the data are stored between the storage back ends are often different is avoided, and further the reliability of the cloud hard disk data migration is guaranteed.
In addition, the application further provides a computer readable storage medium, and a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the cloud hard disk data migration method are realized.
The computer readable storage medium comprises a source storage protocol of a source storage back end in a cloud platform, a target storage protocol of a target storage back end in the cloud platform, cloud hard disk data to be migrated is read in the source storage back end, the cloud hard disk data to be migrated is converted into the source data based on a source data drive corresponding to the source storage protocol, and the target data drive corresponding to the target storage protocol is called to convert the source data into target cloud hard disk data and is stored in the target storage back end. According to the computer readable storage medium, data conversion from the source storage back end to the destination storage back end is carried out on cloud hard disk data to be migrated according to data driving respectively corresponding to the source storage protocol and the destination storage protocol between the storage back ends, so that the situation that data transmitted by the cloud hard disk are lost or unavailable when the data are migrated due to the fact that the storage protocols used for storing the data between the storage back ends are often different is avoided, and further the reliability of cloud hard disk data migration is ensured.
The method, the device, the equipment and the storage medium for cloud hard disk data migration provided by the application are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (8)

1. The cloud hard disk data migration method is characterized by comprising the following steps of:
acquiring a source storage protocol of a source storage back end in a cloud platform and a target storage protocol of a target storage back end in the cloud platform;
reading cloud hard disk data to be migrated from the source storage back end;
converting the cloud hard disk data to be migrated into source data based on source data drive corresponding to the source storage protocol;
calling a target data driver corresponding to the target storage protocol to convert the source data into target cloud hard disk data;
storing the target cloud hard disk data to the target storage back end;
the obtaining a source storage protocol of a source storage back end in a cloud platform and a target storage protocol of a target storage back end in the cloud platform includes:
and acquiring the source storage protocol of the source storage back end in the OpenStack cloud platform and the target storage protocol of the target storage back end in the OpenStack cloud platform based on a Cinder module.
2. The cloud hard disk data migration method according to claim 1, wherein the storing the target cloud hard disk data to the target storage backend includes:
creating a target storage volume at the destination storage back end;
and storing the target cloud hard disk data to the target storage volume.
3. The cloud hard disk data migration method according to claim 1, wherein before the cloud hard disk data to be migrated is read in the source storage backend, the method further comprises:
the source storage back end and the destination storage back end are mounted to a host;
correspondingly, the reading the cloud hard disk data to be migrated in the source storage back end includes:
reading the cloud hard disk data to be migrated in the source storage back end based on the host;
correspondingly, the storing the target cloud hard disk data to the target storage back end includes:
and storing the target cloud hard disk data to the target storage back end by using the host.
4. The cloud hard disk data migration method of claim 3, wherein after said storing of said target cloud hard disk data to said destination storage backend with said host, said method further comprises:
and unloading the source storage back end and the destination storage back end in the host.
5. The cloud hard disk data migration device is characterized by comprising:
the protocol acquisition module is used for acquiring a source storage protocol of a source storage rear end in the cloud platform and a target storage protocol of a target storage rear end in the cloud platform;
the data reading module is used for reading cloud hard disk data to be migrated from the source storage back end;
the source data conversion module is used for converting the cloud hard disk data to be migrated into source data based on source data drive corresponding to the source storage protocol;
the hard disk data conversion module is used for calling a target data drive corresponding to the target storage protocol to convert the source data into target cloud hard disk data;
the data storage module is used for storing the target cloud hard disk data to the target storage back end;
the obtaining a source storage protocol of a source storage back end in a cloud platform and a target storage protocol of a target storage back end in the cloud platform includes:
and acquiring the source storage protocol of the source storage back end in the OpenStack cloud platform and the target storage protocol of the target storage back end in the OpenStack cloud platform based on a Cinder module.
6. The cloud hard disk data migration apparatus of claim 5, wherein said data storage module comprises:
the storage volume creation module is used for creating a target storage volume at the destination storage back end;
and the storage volume storage module is used for storing the target cloud hard disk data to the target storage volume.
7. A cloud hard disk data migration apparatus, characterized by comprising:
a memory for storing a computer program;
a processor for implementing the steps of the cloud hard disk data migration method according to any one of claims 1 to 4 when executing the computer program.
8. A computer readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, implements the steps of the cloud hard disk data migration method according to any one of claims 1 to 4.
CN202011401250.8A 2020-12-04 2020-12-04 Cloud hard disk data migration method, device, equipment and storage medium Active CN112527193B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011401250.8A CN112527193B (en) 2020-12-04 2020-12-04 Cloud hard disk data migration method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011401250.8A CN112527193B (en) 2020-12-04 2020-12-04 Cloud hard disk data migration method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112527193A CN112527193A (en) 2021-03-19
CN112527193B true CN112527193B (en) 2023-12-22

Family

ID=74997378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011401250.8A Active CN112527193B (en) 2020-12-04 2020-12-04 Cloud hard disk data migration method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112527193B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114281246B (en) * 2021-11-26 2023-08-25 苏州浪潮智能科技有限公司 Cloud hard disk online migration method, device and equipment based on cloud management platform
CN116301593B (en) * 2023-02-09 2024-02-02 安超云软件有限公司 Method and application for cross-cluster and cross-storage copy block data under cloud platform

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9058119B1 (en) * 2010-01-11 2015-06-16 Netapp, Inc. Efficient data migration
CN106603632A (en) * 2016-11-25 2017-04-26 国云科技股份有限公司 Virtual machine management method for reducing boot storm of cloud platform
CN106688217A (en) * 2014-03-08 2017-05-17 狄亚曼提公司 Methods and systems for converged networking and storage
CN109388478A (en) * 2018-11-01 2019-02-26 郑州云海信息技术有限公司 Method and apparatus for migrating virtual machine in OpenStack environment
CN109995814A (en) * 2017-12-29 2019-07-09 中移(苏州)软件技术有限公司 Moving method and device, communication equipment, the storage medium of cloud host resource
CN111181929A (en) * 2019-12-16 2020-05-19 中国电子科技网络信息安全有限公司 Heterogeneous hybrid cloud architecture based on shared virtual machine files and management method
CN111427659A (en) * 2020-03-08 2020-07-17 苏州浪潮智能科技有限公司 Method and device for live migration of SSD (solid State disk) direct-connection virtual machine
CN111913663A (en) * 2020-07-29 2020-11-10 星辰天合(北京)数据科技有限公司 Storage volume online migration method and device and storage volume online migration system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10013491B2 (en) * 2014-08-29 2018-07-03 Aditya Vasudevan Methods and systems of workload mobility across divergent platforms
US10552191B2 (en) * 2017-01-26 2020-02-04 Cisco Technology, Inc. Distributed hybrid cloud orchestration model

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9058119B1 (en) * 2010-01-11 2015-06-16 Netapp, Inc. Efficient data migration
CN106688217A (en) * 2014-03-08 2017-05-17 狄亚曼提公司 Methods and systems for converged networking and storage
CN106603632A (en) * 2016-11-25 2017-04-26 国云科技股份有限公司 Virtual machine management method for reducing boot storm of cloud platform
CN109995814A (en) * 2017-12-29 2019-07-09 中移(苏州)软件技术有限公司 Moving method and device, communication equipment, the storage medium of cloud host resource
CN109388478A (en) * 2018-11-01 2019-02-26 郑州云海信息技术有限公司 Method and apparatus for migrating virtual machine in OpenStack environment
CN111181929A (en) * 2019-12-16 2020-05-19 中国电子科技网络信息安全有限公司 Heterogeneous hybrid cloud architecture based on shared virtual machine files and management method
CN111427659A (en) * 2020-03-08 2020-07-17 苏州浪潮智能科技有限公司 Method and device for live migration of SSD (solid State disk) direct-connection virtual machine
CN111913663A (en) * 2020-07-29 2020-11-10 星辰天合(北京)数据科技有限公司 Storage volume online migration method and device and storage volume online migration system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A System for Supporting Migration to Overlay OpenFlow Network Using OpenStack;Nomura K 等;International Conference on Complex;全文 *
OpenStack在云实验平台构建上的应用研究;钟原;;电子设计工程(08);全文 *

Also Published As

Publication number Publication date
CN112527193A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN103038788B (en) Providing multiple network resources
US10248415B2 (en) Dynamic code generation and memory management for component object model data constructs
WO2018059222A1 (en) File slice uploading method and apparatus, and cloud storage system
CN112527193B (en) Cloud hard disk data migration method, device, equipment and storage medium
JP5627187B2 (en) Information processing apparatus, information processing method, and program
CN110557433B (en) Resource management method, platform, cloud gateway, system and storage medium
CN110083455B (en) Graph calculation processing method, graph calculation processing device, graph calculation processing medium and electronic equipment
CN110289983B (en) Load balancing application creation method and device, computer equipment and storage medium
US11249794B2 (en) Client controlled transaction processing involving a plurality of participants
CN109857723B (en) Dynamic data migration method based on expandable database cluster and related equipment
CN110493028A (en) A kind of clustered deploy(ment) method, system, device and computer readable storage medium
CN109561165A (en) Domain name system configuration method and relevant apparatus
CN114281263B (en) Storage resource processing method, system and equipment of container cluster management system
CN111736915A (en) Management method, device, equipment and medium for cloud host instance hardware acceleration equipment
CN110620721A (en) Gateway equipment, application method and service system
CN111984849A (en) Information query method, device, equipment and medium
US20200285527A1 (en) Determination method, information processing apparatus, and storage medium
CN111338829B (en) Calling method and device for remote procedure call service
CN114328026B (en) Virtual disk backup method, device, equipment and medium
US10795747B2 (en) File synchronizing service status monitoring and error handling
CN113256360B (en) Invoice processing control method, device, equipment and storage medium based on Ukey cabinet
CN110703996B (en) Method, system and device for managing cluster handle based on tgt and readable storage medium
CN114579061A (en) Data storage method, device, equipment and medium
CN108733805B (en) File interaction method, system, computer equipment and storage medium
CN113641641A (en) Switching method, switching system, equipment and storage medium of file storage service

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