CN116166478A - Backup method and equipment of cloud host - Google Patents

Backup method and equipment of cloud host Download PDF

Info

Publication number
CN116166478A
CN116166478A CN202211579163.0A CN202211579163A CN116166478A CN 116166478 A CN116166478 A CN 116166478A CN 202211579163 A CN202211579163 A CN 202211579163A CN 116166478 A CN116166478 A CN 116166478A
Authority
CN
China
Prior art keywords
disk block
block device
backed
target disk
format
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.)
Pending
Application number
CN202211579163.0A
Other languages
Chinese (zh)
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.)
CLP Cloud Digital Intelligence Technology Co Ltd
Original Assignee
CLP Cloud Digital Intelligence 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 CLP Cloud Digital Intelligence Technology Co Ltd filed Critical CLP Cloud Digital Intelligence Technology Co Ltd
Priority to CN202211579163.0A priority Critical patent/CN116166478A/en
Publication of CN116166478A publication Critical patent/CN116166478A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/2053Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant
    • 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

Landscapes

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

Abstract

The application discloses a backup method and equipment of a cloud host, which are used for backing up a raw disk in a raw format, and comprise the following steps: creating a target disk block device for the disk block device to be backed up in a raw format in a storage pool, wherein the storage pool comprises the disk block device to be backed up and the target disk block device, and the capacity of the created target disk block device is at least not smaller than the capacity of the disk block device to be backed up; converting the target disk block device into qcow2 format; mounting the target disk block equipment converted into qcow2 format to a corresponding virtual machine; and executing backup on the disk block equipment to be backed up based on the corresponding qemu of the virtual machine. The embodiment of the application provides a backup method for a raw-format original disk, which is characterized in that a target disk block device is created in a storage pool, format conversion is executed, and backup is completed directly based on the block device after the format conversion, so that no new device is added in the backup process, and a distributed file system is not needed.

Description

Backup method and equipment of cloud host
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for backing up a cloud host.
Background
The cloud host backup is divided into the following technical implementations: backup based on operating system agent, backup based on virtualization layer, and backup based on storage layer. The backup implementation method based on the virtualization layer is mostly based on the backup of the qcow2 format file of the disk of the cloud host, and the research is more completed by adopting a storage interface or the backup based on the operating system agent under the scene that the disk of the cloud host is the raw format block device.
Some existing block backup schemes based on the raw format of the virtualization layer need to rely on a distributed file system to temporarily store the backup files, and especially when the backup cloud disk is large, the temporary storage space must use the distributed file system.
Disclosure of Invention
The embodiment of the application provides a backup method and equipment of a cloud host, which are used for realizing a backup scheme of a cloud host Yun Pan in a raw format by a virtualization layer.
The embodiment of the application provides a backup method of a cloud host, which is used for backing up a raw disk in a raw format, and comprises the following steps:
creating a target disk block device for the disk block device to be backed up in a raw format in a storage pool, wherein the storage pool comprises the disk block device to be backed up and the target disk block device, and the capacity of the created target disk block device is at least not smaller than the capacity of the disk block device to be backed up;
converting the target disk block device into qcow2 format;
mounting the target disk block equipment converted into qcow2 format to a corresponding virtual machine;
and executing backup on the disk block equipment to be backed up based on the corresponding qemu of the virtual machine.
Optionally, performing backup on the disk block device to be backed up based on the qemu corresponding to the virtual machine includes:
copying the disk block device to be backed up to the target disk block device converted into qcow2 format based on qemu dirty bitmap.
Optionally, the method further comprises copying the data backed up by the target disk block device after copying is completed, and storing the data in a lasting mode.
Optionally, creating a target disk block device in the storage pool includes creating a target disk block device in the storage pool that is the same size as the capacity of the disk block device to be backed up.
The embodiment of the application also provides a computer device for backing up a raw disk in a raw format, including a processor configured to:
creating a target disk block device for the disk block device to be backed up in a raw format in a storage pool, wherein the storage pool comprises the disk block device to be backed up and the target disk block device, and the capacity of the created target disk block device is at least not smaller than the capacity of the disk block device to be backed up;
converting the target disk block device into qcow2 format;
mounting the target disk block equipment converted into qcow2 format to a corresponding virtual machine;
and executing backup on the disk block equipment to be backed up based on the corresponding qemu of the virtual machine.
Optionally, the processor is configured to:
copying the disk block device to be backed up to the target disk block device converted into qcow2 format based on qemu dirty bitmap.
Optionally, the processor is further configured to copy the data backed up by the target disk block device after the copying is completed, and persist the data.
Optionally, the processor is further configured to create a target disk block device in the same size as the capacity of the disk block device to be backed up in the storage pool.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps of the cloud host backup method when being executed by a processor.
The embodiment of the application provides a backup method for a raw-format original disk, which is characterized in that a target disk block device is created in a storage pool, format conversion is executed, and backup is completed directly based on the block device after the format conversion, so that no new device is added in the backup process, and a distributed file system is not needed.
The foregoing description is only an overview of the technical solutions of the present application, and may be implemented according to the content of the specification in order to make the technical means of the present application more clearly understood, and in order to make the above-mentioned and other objects, features and advantages of the present application more clearly understood, the following detailed description of the present application will be given.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a basic flowchart of a backup method according to an embodiment of the present application;
fig. 2 is a backup flow example of an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The existing raw format backup needs to rely on distributed files, and a specific raw format backup virtual machine is internally provided with an agent, relies on a storage interface, relies on a virtualization layer and virtualizes a layer distributed file system.
The embodiment of the application provides a backup method of a cloud host, which is used for backing up a raw disk in a raw format, as shown in fig. 1, and includes:
in step S101, a target disk block device is created for a disk block device to be backed up in a raw format in a storage pool, where the storage pool includes the disk block device to be backed up and the target disk block device, and the capacity of the created target disk block device is at least not smaller than the capacity of the disk block device to be backed up.
In step S102, the target disk block device is converted into qcow2 format. The specific conversion method may not be described herein.
In step S103, the target disk block device converted into qcow2 format is mounted to a corresponding virtual machine, and the mounted target disk block device is invisible to the guests os user.
In step S104, backup is performed on the disc block device to be backed up based on qemu corresponding to the virtual machine. Specifically, as shown in fig. 2, the disk block device to be backed up may be copied to the target disk block device converted into qcow2 format based on qemu dirty bitmap.
The embodiment of the application provides a backup method for a raw-format original disk, which is characterized in that a target disk block device is created in a storage pool, format conversion is executed, and backup is completed directly based on the block device after the format conversion, so that no new device is added in the backup process, and a distributed file system is not needed.
As shown in FIG. 2, in some embodiments, the method further comprises copying the data backed up by the target disk block device after copying is completed, and persisting.
In some embodiments, creating a target disk block device in the storage pool includes creating a target disk block device in the storage pool that is the same size as the capacity of the disk block device to be backed up. The backup of the block equipment can be ensured and the storage space can be saved at the same time when the backup of the block equipment is ensured.
The application provides a backup mode that a cloud host Yun Pan is in a raw format (original disk) through a virtualization layer, and meanwhile, an isomorphic cloud disk is adopted as a backup disk for cloud host backup, so that backup files can be stored without depending on a file system.
The embodiment of the application also provides a computer device for backing up a raw disk in a raw format, including a processor configured to:
creating a target disk block device for the disk block device to be backed up in a raw format in a storage pool, wherein the storage pool comprises the disk block device to be backed up and the target disk block device, and the capacity of the created target disk block device is at least not smaller than the capacity of the disk block device to be backed up;
converting the target disk block device into qcow2 format;
mounting the target disk block equipment converted into qcow2 format to a corresponding virtual machine;
and executing backup on the disk block equipment to be backed up based on the corresponding qemu of the virtual machine.
In some embodiments, the processor is configured to:
copying the disk block device to be backed up to the target disk block device converted into qcow2 format based on qemu dirty bitmap.
In some embodiments, the processor is further configured to replicate the data backed up by the target disk block device, after copying is complete, for persistent storage.
In some embodiments, the processor is further configured to create a target disk block device in the same size as the capacity of the disk block device to be backed up in the storage pool.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps of the cloud host backup method when being executed by a processor.
It should be noted that, in this document, 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.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server or a network device, etc.) to perform the method described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the protection of the claims, which fall within the protection of the present application.

Claims (9)

1. The backup method for the cloud host is characterized by being used for backing up the original disk in the raw format and comprising the following steps:
creating a target disk block device for the disk block device to be backed up in a raw format in a storage pool, wherein the storage pool comprises the disk block device to be backed up and the target disk block device, and the capacity of the created target disk block device is at least not smaller than the capacity of the disk block device to be backed up;
converting the target disk block device into qcow2 format;
mounting the target disk block equipment converted into qcow2 format to a corresponding virtual machine;
and executing backup on the disk block equipment to be backed up based on the corresponding qemu of the virtual machine.
2. The method of backing up a cloud host according to claim 1, wherein performing backup on the disk block device to be backed up based on qemu corresponding to a virtual machine comprises:
copying the disk block device to be backed up to the target disk block device converted into qcow2 format based on qemu dirty bitmap.
3. The method of backing up a cloud host of claim 1, further comprising copying data backed up by the target disk block device after copying is completed, and persisting the data.
4. The method of backing up a cloud host of claim 1, wherein creating a target disk block device in the storage pool comprises creating a target disk block device in the storage pool that is the same size as the capacity of the disk block device to be backed up.
5. A computer device for backing up raw discs in raw format, comprising a processor configured to:
creating a target disk block device for the disk block device to be backed up in a raw format in a storage pool, wherein the storage pool comprises the disk block device to be backed up and the target disk block device, and the capacity of the created target disk block device is at least not smaller than the capacity of the disk block device to be backed up;
converting the target disk block device into qcow2 format;
mounting the target disk block equipment converted into qcow2 format to a corresponding virtual machine;
and executing backup on the disk block equipment to be backed up based on the corresponding qemu of the virtual machine.
6. The computer device of claim 5, wherein the processor is configured to:
copying the disk block device to be backed up to the target disk block device converted into qcow2 format based on qemu dirty bitmap.
7. The computer device of claim 5, wherein the processor is further configured to replicate the data backed up by the target disk block device, persistent storage, after copying is complete.
8. The computer device of claim 5, wherein the processor is further configured to create a target disk block device in a storage pool that is the same size as the capacity of the disk block device to be backed up.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the cloud host backup method according to any of claims 1 to 4.
CN202211579163.0A 2022-12-08 2022-12-08 Backup method and equipment of cloud host Pending CN116166478A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211579163.0A CN116166478A (en) 2022-12-08 2022-12-08 Backup method and equipment of cloud host

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211579163.0A CN116166478A (en) 2022-12-08 2022-12-08 Backup method and equipment of cloud host

Publications (1)

Publication Number Publication Date
CN116166478A true CN116166478A (en) 2023-05-26

Family

ID=86415320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211579163.0A Pending CN116166478A (en) 2022-12-08 2022-12-08 Backup method and equipment of cloud host

Country Status (1)

Country Link
CN (1) CN116166478A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117033085A (en) * 2023-10-09 2023-11-10 武汉吧哒科技股份有限公司 kvm virtual machine backup method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117033085A (en) * 2023-10-09 2023-11-10 武汉吧哒科技股份有限公司 kvm virtual machine backup method and device, computer equipment and storage medium
CN117033085B (en) * 2023-10-09 2024-01-19 武汉吧哒科技股份有限公司 kvm virtual machine backup method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102594849B (en) Data backup and recovery method and device, virtual machine snapshot deleting and rollback method and device
US8473462B1 (en) Change tracking for shared disks
US9684473B2 (en) Virtual machine disaster recovery
EP2042993B1 (en) Techniques for virtual archiving
US8832029B2 (en) Incremental virtual machine backup supporting migration
CN103890708B (en) Data access during data recovery
US10572184B2 (en) Garbage collection in data storage systems
KR101781447B1 (en) System reset
US8156375B1 (en) Techniques for efficient restoration of granular application data
CN108804189B (en) Cloud desktop management method and system
WO2010038558A1 (en) Information backup/restoring apparatus and information backup/restoring system
US10241870B1 (en) Discovery operations using backup data
US10275315B2 (en) Efficient backup of virtual data
US8738870B1 (en) Block based backup
CN103119551B (en) The recovery optimized
CN102938784A (en) Method and system used for data storage and used in distributed storage system
CN103761168B (en) It is a kind of that the method for carrying backup virtual machine is wrapping with based on nfs
US9424113B2 (en) Virtual appliance deployment
CN116166478A (en) Backup method and equipment of cloud host
US20190155534A1 (en) Methods and systems for improving efficiency in cloud-as-backup tier
CN101996109A (en) Computer system, control method thereof and recording medium storing computer program thereof
US8671075B1 (en) Change tracking indices in virtual machines
US8898407B1 (en) Incremental block based backup
US8738571B1 (en) Extended recycle bin
US20150089118A1 (en) Methods, systems, and computer readable media for partition and cache restore

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