WO2015018225A1 - 虚拟机磁盘空间的扩展方法、宿主机和平台 - Google Patents

虚拟机磁盘空间的扩展方法、宿主机和平台 Download PDF

Info

Publication number
WO2015018225A1
WO2015018225A1 PCT/CN2014/078642 CN2014078642W WO2015018225A1 WO 2015018225 A1 WO2015018225 A1 WO 2015018225A1 CN 2014078642 W CN2014078642 W CN 2014078642W WO 2015018225 A1 WO2015018225 A1 WO 2015018225A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual machine
partition
lvm
disk space
image file
Prior art date
Application number
PCT/CN2014/078642
Other languages
English (en)
French (fr)
Inventor
朱雪刚
Original Assignee
北京京东尚科信息技术有限公司
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 北京京东尚科信息技术有限公司 filed Critical 北京京东尚科信息技术有限公司
Publication of WO2015018225A1 publication Critical patent/WO2015018225A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45583Memory management, e.g. access or allocation

Definitions

  • the present invention relates to computer technology, and in particular, to a method, an host, and a platform for expanding a virtual machine disk space. Background technique
  • the cloud computing virtualization platform which is the platform for the two new technologies of virtualization and cloud computing, has also been widely used.
  • a cloud computing virtualization platform which integrates various application software on a cloud computing virtualization platform, thereby providing a virtual application and a virtual desktop to users.
  • the cloud computing virtualization platform manages the storage space of the virtual machine by using a separate storage device to manage the storage space of the virtual machine.
  • the cloud computing virtualization platform 10 includes a host 11, a host 12, and a storage device 13, wherein the host 11 includes a virtual machine 111, a virtual machine 112, and a virtual machine 113, and the host 12 includes a virtual machine 121. , virtual machine 122 and virtual machine 123.
  • the cloud computing virtualization platform 10 manages the storage space of the plurality of virtual machines on the host machine 11 and the host machine 12 by separate storage devices 13.
  • the purpose of the embodiments of the present invention is to provide a method, a host, and a platform for expanding a virtual machine disk space, so that when the virtual machine disk space needs to be expanded, the current disk space of the host machine is used to disk space of the virtual machine.
  • the expansion can dynamically manage the virtual machine's disk space, thereby reducing the cost and efficiency of the cloud computing virtualization platform.
  • an embodiment of the present invention provides a method for expanding a virtual machine disk space, where the method includes:
  • the virtual machine's disk space is expanded by using the current disk space of the host.
  • an embodiment of the present invention provides a host, where the host includes: an image file generating unit, configured to install a virtual machine operating system in a first logical volume management LVM partition, and form the first An image file of data in an LVM partition; a virtual machine boot unit, configured to create a second LVM partition of the same size as the image file, transfer the image file to the second LVM partition, and utilize the two
  • the LVM partition starts the virtual machine on the host
  • the virtual machine disk space expansion unit is configured to expand the disk space of the virtual machine by using the current disk space of the host when the virtual machine disk space needs to be expanded.
  • the embodiment of the present invention further provides a cloud computing virtualization platform, including at least one host device as described in the second aspect.
  • the virtual machine operating system is installed in the first logical volume of the logical volume management LVM, and the first logical volume is processed to form an image file; the second logical volume having the same size as the image file is created, and The LVM partition corresponding to the second logical volume, save the image file to the LVM partition, and start the virtual machine on the host with the LVM partition; when the virtual machine disk space needs to be expanded, the current disk space of the host is used to virtualize The disk space of the machine is expanded, so that the host can dynamically manage the disk space of the virtual machine, thereby reducing the cost and efficiency of the cloud computing virtualization platform.
  • FIG. 1 is an architectural diagram of a cloud computing virtualization platform in the prior art
  • FIG. 2 is a flow chart showing a method for expanding a disk space of a virtual machine according to a first embodiment of the present invention
  • Fig. 3 is a schematic structural view of a host machine according to a second embodiment of the present invention. detailed description
  • FIG. 2 is a flow chart showing a method for expanding a disk space of a virtual machine according to a first embodiment of the present invention. As shown in FIG. 2, the method includes:
  • Step 210 Install the virtual machine operating system in a first Logical Volume Manager (LVM) partition and form a mirror file of data in the first LVM partition.
  • LVM Logical Volume Manager
  • LVM is a mechanism for managing disk partitions in a Linux environment. It is a logical layer built on top of hard disks and partitions to improve the flexibility of disk partition management.
  • the virtual machine operating system is installed in the first LVM partition, and the data in the first LVM partition is transmitted by the dd command, and an image file in the form of a block is formed.
  • block is the smallest storage and processing unit in the database
  • dd is a command under Linux/UNIX
  • its function is to copy a file with a block of the specified size, and perform the specified conversion at the same time of copying.
  • Step 220 Create a second LVM partition of the same size as the image file, transfer the image file to the second LVM partition, and boot the virtual machine on the host with the second LVM partition.
  • the foregoing steps 210 and 220 are the process of starting the virtual machine on the host machine, specifically: installing the virtual machine operating system in the first LVM partition, and transmitting the data in the first LVM partition through the dd command, and forming An image file in the form of a block, a second LVM partition of the same size as the image file is created, and the image file is transferred to the second LVM partition by the dd command, and the virtual machine is directly booted by the second LVM partition.
  • Step 230 When the virtual machine disk space needs to be expanded, the virtual machine disk space is expanded by using the current disk space of the host.
  • the LVM command is used on the host to instruct the virtual machine to expand the disk space on the host, and utilize the magnetic on the virtual machine.
  • a disk operation command partitions the expanded disk space. For example, the process of expanding the disk space of a 20G virtual machine is as follows:
  • the LVM commands executed on the host are:
  • +20G means to increase 20G
  • /dev/vgl 000/lvol0 is the partition of the virtual machine on the host.
  • the disk operation commands on the virtual machine are:
  • the method further includes: setting virtual machine parameters, so the data in the first LVM partition further includes the virtual machine parameters obtained after the setting, An image file of the data in the first LVM partition is formed.
  • the method for expanding the disk space of the virtual machine creates the same size as the image file by installing the virtual machine operating system in the first partition and forming an image file of the data in the first LVM partition. a second LVM partition, transferring the image file to a second LVM partition, and booting a virtual machine on the host with the second LVM partition, and using the current disk space of the host to virtualize when the virtual machine disk space needs to be expanded.
  • the disk space of the machine is expanded, so that the host can dynamically manage the disk space of the virtual machine, thereby reducing the cost and efficiency of the cloud computing virtualization platform.
  • FIG. 3 is a schematic structural view of a host machine according to a second embodiment of the present invention.
  • the host machine is used to execute the expansion method of the virtual machine disk space of the first embodiment of the present invention.
  • the host machine 30 includes: an image file generating unit 31, a virtual machine boot unit 32, and a virtual machine disk space expanding unit 33.
  • the image file generating unit 31 is configured to install the virtual machine operating system in the first logical volume management LVM partition and form an image file of the data in the first LVM partition;
  • the virtual machine starting unit 32 is configured to create and The second LVM score of the same image file size And transmitting the image file to the second LVM partition, and booting the virtual machine on the host by using the second LVM partition;
  • the virtual machine disk space expansion unit 33 is configured to expand the virtual machine disk when needed In space, the virtual machine's disk space is expanded by the current disk space of the host.
  • the virtual machine disk space expansion unit 33 is further configured to use an LVM command on the host to indicate that the virtual machine expands disk space on a partition on the host, and utilizes the virtual machine on the virtual machine.
  • a disk operation command partitions the expanded disk space.
  • the image file generating unit 31 is further configured to set a virtual machine parameter, where the data in the first LVM partition further includes the virtual machine parameter.
  • the image file generating unit 31 is further configured to read out data in the first LVM partition by using a dd command, and form an image file of data in the first LVM partition, where the image file is In the form of a block.
  • the virtual machine boot unit 32 is further configured to transmit the image file to the second LVM partition by using a dd command.
  • the host provided by the embodiment of the present invention creates a second LVM partition of the same size as the image file by installing the virtual machine operating system in the first partition and forming an image file of the data in the first LVM partition.
  • the image file is transferred to the second LVM partition, and the virtual machine on the host is booted by using the second LVM partition.
  • the virtual machine's disk space is expanded by using the host's current disk space. , so that the host can dynamically manage the virtual machine's disk space, thereby reducing the cost and efficiency of the cloud computing virtualization platform.
  • the embodiment of the present invention further provides a cloud computing virtualization platform, which includes at least one host of the second embodiment of the present invention. Wherein, at least one virtual machine can be included on each host.
  • the various modules or steps of the present invention described above can be implemented by a communication terminal as described above.
  • the embodiments of the present invention may be implemented by a program executable by a computer device, so that they may be stored in a storage device and executed by a processor, where the program may be stored in a computer readable storage medium.
  • the storage medium mentioned above may be a read only memory, a magnetic disk or an optical disk, etc.; or They are fabricated as individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

本发明公开了一种虚拟机磁盘空间的扩展方法、宿主机和平台,其中,所述虚拟机磁盘空间的扩展方法包括:将虚拟机操作系统安装在第一LVM分区中,并形成所述第一LVM分区中的数据的镜像文件;创建与所述镜像文件大小相同的第二LVM分区,将所述镜像文件传输至所述第二LVM分区,以及利用所述第二LVM分区启动在宿主机上的虚拟机;当需要扩展所述虚拟机磁盘空间时,利用所述宿主机的当前磁盘空间对所述虚拟机的磁盘空间进行扩展。本发明可以动态的管理虚拟机的磁盘空间,从而降低云计算虚拟化平台的成本、提高效率。

Description

虚拟机磁盘空间的扩展方法、 宿主机和平台 技术领域
本发明涉及计算机技术, 尤其涉及一种虚拟机磁盘空间的扩展方 法、 宿主机和平台。 背景技术
随着计算机技术的飞速发展, 涉及到虚拟化和云计算这两项新技 术的平台即云计算虚拟化平台也得到了广泛的使用。
现有技术中的云计算虚拟化平台, 该平台软件将各种应用软件集 中部署在云计算虚拟化平台上, 从而能向用户提供虚拟应用和虚拟桌 面。 其中, 云计算虚拟化平台管理虚拟机的存储空间的方法是利用独 立的存储设备管理虚拟机的存储空间。 如图 1 所示, 云计算虚拟化平 台 10包括宿主机 11、宿主机 12和存储设备 13, 其中, 宿主机 11包括 虚拟机 111、 虚拟机 112和虚拟机 113, 宿主机 12包括虚拟机 121、 虚 拟机 122和虚拟机 123。 该云计算虚拟化平台 10由独立的存储设备 13 来管理宿主机 11和宿主机 12上的多个虚拟机的存储空间。
但是, 上述云计算虚拟化平台需要独立的存储设备、 以及该存储 设备对应的存储管理软件, 使得该平台成本很高, 效率很低。 发明内容
有鉴于此, 本发明实施例的目的在于提出一种虚拟机磁盘空间的 扩展方法、 宿主机和平台, 使得当需要扩展虚拟机磁盘空间时, 利用 宿主机的当前磁盘空间对虚拟机的磁盘空间进行扩展, 可以动态的管 理虚拟机的磁盘空间,从而降低云计算虚拟化平台的成本、提高效率。
第一方面, 本发明实施例提供了一种虚拟机磁盘空间的扩展方 法, 所述方法包括:
将虚拟机操作系统安装在第一逻辑盘卷管理 LVM 分区中, 并形 成所述第一 LVM分区中的数据的镜像文件; 创建与所述镜像文件大小相同的第二 LVM 分区, 将所述镜像文 件传输至所述第二 LVM分区, 以及利用所述第二 LVM分区启动在宿 主机上的虚拟机;
当需要扩展所述虚拟机磁盘空间时,利用所述宿主机的当前磁盘 空间对所述虚拟机的磁盘空间进行扩展。
第二方面, 本发明实施例提供了一种宿主机, 所述宿主机包括: 镜像文件生成单元, 用于将虚拟机操作系统安装在第一逻辑盘卷 管理 LVM分区中, 并形成所述第一 LVM分区中的数据的镜像文件; 虚拟机启动单元, 用于创建与所述镜像文件大小相同的第二 LVM 分区, 将所述镜像文件传输至所述第二 LVM分区, 以及利用所述第二
LVM分区启动在宿主机上的虚拟机;
虚拟机磁盘空间扩展单元, 用于当需要扩展所述虚拟机磁盘空间 时, 利用所述宿主机的当前磁盘空间对所述虚拟机的磁盘空间进行扩 展。
第三方面, 本发明实施例还提供一种云计算虚拟化平台, 其包括 至少一个如第二方面所述的宿主机。
本发明实施例通过将虚拟机操作系统安装在逻辑盘卷管理 LVM 的第一逻辑卷中, 并将第一逻辑卷经过处理形成镜像文件; 创建与镜 像文件大小相同的第二逻辑卷、 以及与第二逻辑卷相对应的 LVM 分 区, 将镜像文件保存至 LVM分区中, 以及利用 LVM分区启动在宿主 机上的虚拟机; 当需要扩展虚拟机磁盘空间时, 利用宿主机的当前磁 盘空间对虚拟机的磁盘空间进行扩展, 使得宿主机可以动态的管理虚 拟机的磁盘空间, 从而降低云计算虚拟化平台的成本、 提高效率。 附图说明
图 1是现有技术中云计算虚拟化平台的架构图;
图 2 是本发明第一实施例的虚拟机磁盘空间的扩展方法的流程 图;
图 3是本发明第二实施例的宿主机的结构示意图。 具体实施方式
下面结合附图和实施例对本发明作进一步的详细说明。 可以理解 的是, 此处所描述的具体实施例仅仅用于解释本发明, 而非对本发明 的限定。 另外还需要说明的是, 为了便于描述, 附图中仅示出了与本 发明相关的部分而非全部内容。
图 2是本发明第一实施例的虚拟机磁盘空间的扩展方法的流程图。 如图 2所示, 所述方法包括:
步骤 210、 将虚拟机操作系统安装在第一逻辑盘卷管理 (Logical Volume Manager, LVM)分区中, 并形成第一 LVM分区中的数据的镜 像文件。
具体地, LVM是 Linux环境下对磁盘分区进行管理的一种机制, 其是建立在硬盘和分区之上的一个逻辑层, 来提高磁盘分区管理的灵 活性。 将虚拟机操作系统安装在第一 LVM分区中, 并通过 dd命令将 第一 LVM分区中的数据传输出来, 并形成一个块(block)形式的镜像 文件。其中, block是数据库中的最小存储和处理单位, dd是 Linux/UNIX 下的一个命令, 其作用是用指定大小的块拷贝一个文件, 并在拷贝的 同时进行指定的转换。
步骤 220、 创建与镜像文件大小相同的第二 LVM分区, 将所述镜 像文件传输至第二 LVM分区, 以及利用第二 LVM分区启动在宿主机 上的虚拟机。
上述步骤 210和步骤 220是启动宿主机上的虚拟机的过程, 具体 为: 将虚拟机操作系统安装在第一 LVM分区中, 并通过 dd命令将第 一 LVM分区中的数据传输出来, 并形成一个 block形式的镜像文件, 再创建一个与镜像文件的大小相同的第二 LVM分区, 并通过 dd命令 将上述镜像文件传输至第二 LVM分区中, 直接利用第二 LVM分区启 动虚拟机。
步骤 230、 当需要扩展虚拟机磁盘空间时,利用宿主机的当前磁盘 空间对虚拟机的磁盘空间进行扩展。
具体地, 当需要扩展虚拟机磁盘空间时, 在宿主机上利用 LVM命 令指示虚拟机在宿主机上的分区扩展磁盘空间, 并在虚拟机上利用磁 盘操作命令将所述扩展后的磁盘空间进行分区。 比如, 需要扩展 20G 的虚拟机磁盘空间的过程如下:
在宿主机上执行的 LVM命令为:
lvresize -L +20G /dev/vg l OOO/lvolO
其中, +20G 表示增加 20G,/dev/vgl 000/lvol0为虚拟机在宿主机上 的分区。
在虚拟机上利用磁盘操作命令分别是:
( 1 ) 使用 fdisk -Ι査看到新扩展的 20G的虚拟机磁盘空间;
( 2 ) 使用 fdisk划分分区;
( 3 ) 使用 mkfs命令 来格式化分区;
( 4 ) 使用 mount 命令来把分区挂载到需要的路径下去, 如 /home/test。
在另一个实施例中, 步骤 210 中当将虚拟机操作系统安装在第一 LVM分区中之后还包括:设置虚拟机参数, 故第一 LVM分区中的数据 还包括设置后得到的虚拟机参数, 再形成第一 LVM分区中的数据的镜 像文件。
因此, 本发明上述实施例提供的虚拟机磁盘空间的扩展方法, 通 过将虚拟机操作系统安装在第一分区中, 并形成第一 LVM分区中的数 据的镜像文件, 创建与镜像文件大小相同的第二 LVM分区, 将所述镜 像文件传输至第二 LVM分区, 以及利用第二 LVM分区启动在宿主机 上的虚拟机, 当需要扩展虚拟机磁盘空间时, 利用宿主机的当前磁盘 空间对虚拟机的磁盘空间进行扩展, 使得宿主机可以动态的管理虚拟 机的磁盘空间, 从而降低云计算虚拟化平台的成本、 提高效率。
图 3是本发明第二实施例的宿主机的结构示意图。 该宿主机用于 执行本发明第一实施例的虚拟机磁盘空间的扩展方法。 如图 3 所示, 所述宿主机 30包括: 镜像文件生成单元 31、 虚拟机启动单元 32和虚 拟机磁盘空间扩展单元 33。
镜像文件生成单元 31用于将虚拟机操作系统安装在第一逻辑盘卷 管理 LVM分区中, 并形成所述第一 LVM分区中的数据的镜像文件; 虚拟机启动单元 32用于创建与所述镜像文件大小相同的第二 LVM分 区, 将所述镜像文件传输至所述第二 LVM 分区, 以及利用所述第二 LVM分区启动在宿主机上的虚拟机; 虚拟机磁盘空间扩展单元 33 用 于当需要扩展所述虚拟机磁盘空间时, 利用所述宿主机的当前磁盘空 间对所述虚拟机的磁盘空间进行扩展。
在一个实施例中,所述虚拟机磁盘空间扩展单元 33还用于在所述 宿主机上利用 LVM命令指示所述虚拟机在宿主机上的分区扩展磁盘空 间, 并在所述虚拟机上利用磁盘操作命令将所述扩展后的磁盘空间进 行分区。
另一个实施例中,所述镜像文件生成单元 31还用于设置虚拟机参 数, 所述第一 LVM分区中的数据还包括所述虚拟机参数。
再一个实施例中, 所述镜像文件生成单元 31还用于通过 dd命令 读出所述第一 LVM分区中的数据, 并形成所述第一 LVM分区中的数 据的镜像文件, 所述镜像文件为 block形式的。
再一个实施例中,所述虚拟机启动单元 32还用于将所述镜像文件 通过 dd命令传输至所述第二 LVM分区。
因此, 本发明实施例提供的宿主机, 通过将虚拟机操作系统安装 在第一分区中, 并形成第一 LVM分区中的数据的镜像文件, 创建与镜 像文件大小相同的第二 LVM分区, 将所述镜像文件传输至第二 LVM 分区, 以及利用第二 LVM分区启动在宿主机上的虚拟机, 当需要扩展 虚拟机磁盘空间时, 利用宿主机的当前磁盘空间对虚拟机的磁盘空间 进行扩展, 使得宿主机可以动态的管理虚拟机的磁盘空间, 从而降低 云计算虚拟化平台的成本、 提高效率。
本发明实施例还提供了一种云计算虚拟化平台, 该平台包括至少 一个本发明第二实施例的宿主机。 其中, 每个宿主机上可以包括至少 一个虚拟机。
显然, 本领域技术人员应该明白, 上述的本发明的各模块或各步 骤可以通过如上所述的通信终端实施。 可选地, 本发明实施例可以用 计算机装置可执行的程序来实现, 从而可以将它们存储在存储装置中 由处理器来执行, 所述的程序可以存储于一种计算机可读存储介质 中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等; 或者将 它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤 制作成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的 硬件和软件的结合。
以上所述仅为本发明的优选实施例, 并不用于限制本发明, 对于 本领域技术人员而言, 本发明可以有各种改动和变化。 凡在本发明的 精神和原理之内所作的任何修改、 等同替换、 改进等, 均应包含在本 发明的保护范围之内。

Claims

权利要求
1. 一种虚拟机磁盘空间的扩展方法, 其特征在于, 包括: 将虚拟机操作系统安装在第一逻辑盘卷管理 LVM 分区中, 并形 成所述第一 LVM分区中的数据的镜像文件;
创建与所述镜像文件大小相同的第二 LVM 分区, 将所述镜像文 件传输至所述第二 LVM分区, 以及利用所述第二 LVM分区启动在宿 主机上的虚拟机;
当需要扩展所述虚拟机磁盘空间时, 利用所述宿主机的当前磁盘 空间对所述虚拟机的磁盘空间进行扩展。
2. 根据权利要求 1所述的虚拟机磁盘空间的扩展方法, 其特征在 于, 所述利用所述宿主机的当前磁盘空间对所述虚拟机磁盘空间进行 扩展, 包括:
在所述宿主机上利用 LVM 命令指示所述虚拟机在宿主机上的分 区扩展磁盘空间, 并在所述虚拟机上利用磁盘操作命令将所述扩展后 的磁盘空间进行分区。
3. 根据权利要求 1或 2所述的虚拟机磁盘空间的扩展方法, 其特 征在于, 所述将虚拟机操作系统安装在第一 LVM 分区中之后, 还包 括:
设置虚拟机参数,所述第一 LVM分区中的数据还包括所述虚拟机 参数。
4. 根据权利要求 1-3任一项所述的虚拟机磁盘空间的扩展方法, 其特征在于, 所述形成所述第一 LVM 分区中的数据的镜像文件具体 为:
通过 dd命令读出所述第一 LVM分区中的数据, 并形成所述第一 LVM分区中的数据的镜像文件, 所述镜像文件为块 block形式的。
5. 根据权利要求 1-4 中任一项所述的虚拟机磁盘空间的扩展方 法, 其特征在于, 所述将所述镜像文件传输至所述第二 LVM分区具体 为: 将所述镜像文件通过 dd命令传输至所述第二 LVM分区。
6. 一种宿主机, 其特征在于, 包括:
镜像文件生成单元, 用于将虚拟机操作系统安装在第一逻辑盘卷 管理 LVM分区中, 并形成所述第一 LVM分区中的数据的镜像文件; 虚拟机启动单元, 用于创建与所述镜像文件大小相同的第二 LVM 分区, 将所述镜像文件传输至所述第二 LVM分区, 以及利用所述第二 LVM分区启动在宿主机上的虚拟机;
虚拟机磁盘空间扩展单元, 用于当需要扩展所述虚拟机磁盘空间 时, 利用所述宿主机的当前磁盘空间对所述虚拟机的磁盘空间进行扩 展。
7. 根据权利要求 6所述的宿主机, 其特征在于, 所述虚拟机磁盘 空间扩展单元还用于在所述宿主机上利用 LVM命令指示所述虚拟机在 宿主机上的分区扩展磁盘空间, 并在所述虚拟机上利用磁盘操作命令 将所述扩展后的磁盘空间进行分区。
8. 根据权利要求 6或 7所述的宿主机, 其特征在于, 所述镜像文 件生成单元还用于设置虚拟机参数, 所述第一 LVM分区中的数据还包 括所述虚拟机参数。
9. 根据权利要求 6-8中任一项所述的宿主机, 其特征在于, 所述 镜像文件生成单元还用于通过 dd命令读出所述第一 LVM分区中的数 据, 并形成所述第一 LVM分区中的数据的镜像文件, 所述镜像文件为 block形式的。
10. 根据权利要求 6-9 中任一项所述的宿主机, 其特征在于, 所 述虚拟机启动单元还用于将所述镜像文件通过 dd命令传输至所述第二 LVM分区。
11. 一种云计算虚拟化平台, 其特征在于, 包括至少一个根据权 利要求 6-10中任一项所述的宿主机。
PCT/CN2014/078642 2013-08-05 2014-05-28 虚拟机磁盘空间的扩展方法、宿主机和平台 WO2015018225A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310337410.0 2013-08-05
CN201310337410.0A CN103440111B (zh) 2013-08-05 2013-08-05 虚拟机磁盘空间的扩展方法、宿主机和平台

Publications (1)

Publication Number Publication Date
WO2015018225A1 true WO2015018225A1 (zh) 2015-02-12

Family

ID=49693802

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/078642 WO2015018225A1 (zh) 2013-08-05 2014-05-28 虚拟机磁盘空间的扩展方法、宿主机和平台

Country Status (2)

Country Link
CN (1) CN103440111B (zh)
WO (1) WO2015018225A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440111B (zh) * 2013-08-05 2016-08-10 北京京东尚科信息技术有限公司 虚拟机磁盘空间的扩展方法、宿主机和平台
CN104850469A (zh) * 2015-05-12 2015-08-19 浪潮电子信息产业股份有限公司 基于LV镜像实现linux系统中数据备份恢复与迁移的方法
CN106528324A (zh) * 2015-09-10 2017-03-22 华为技术有限公司 故障恢复的方法和装置
CN106126115A (zh) * 2016-06-15 2016-11-16 浪潮电子信息产业股份有限公司 一种扩展虚拟机的磁盘的方法及装置
CN107844260A (zh) * 2016-09-19 2018-03-27 深圳市深信服电子科技有限公司 一种虚拟机磁盘空间扩容的方法及装置
CN108255573A (zh) * 2016-12-29 2018-07-06 北京国双科技有限公司 虚拟机启动修复方法及服务器
CN117234411A (zh) * 2022-06-08 2023-12-15 中兴通讯股份有限公司 磁盘的处理方法、装置及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101840308A (zh) * 2009-10-28 2010-09-22 创新科存储技术有限公司 一种分级存储系统及其逻辑卷管理方法
CN101876884A (zh) * 2009-11-30 2010-11-03 英业达股份有限公司 虚拟硬盘的容量扩展方法
EP2291731A1 (en) * 2008-06-25 2011-03-09 Novell, Inc. Copying workload files to a virtual disk
CN102185928A (zh) * 2011-06-01 2011-09-14 广州杰赛科技股份有限公司 一种在云计算系统创建虚拟机的方法及云计算系统
US8195866B2 (en) * 2007-04-26 2012-06-05 Vmware, Inc. Adjusting available persistent storage during execution in a virtual computer system
CN103167003A (zh) * 2011-12-16 2013-06-19 上海博腾信息科技有限公司 云计算应用平台
CN103440111A (zh) * 2013-08-05 2013-12-11 北京京东尚科信息技术有限公司 虚拟机磁盘空间的扩展方法、宿主机和平台

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8195866B2 (en) * 2007-04-26 2012-06-05 Vmware, Inc. Adjusting available persistent storage during execution in a virtual computer system
EP2291731A1 (en) * 2008-06-25 2011-03-09 Novell, Inc. Copying workload files to a virtual disk
CN101840308A (zh) * 2009-10-28 2010-09-22 创新科存储技术有限公司 一种分级存储系统及其逻辑卷管理方法
CN101876884A (zh) * 2009-11-30 2010-11-03 英业达股份有限公司 虚拟硬盘的容量扩展方法
CN102185928A (zh) * 2011-06-01 2011-09-14 广州杰赛科技股份有限公司 一种在云计算系统创建虚拟机的方法及云计算系统
CN103167003A (zh) * 2011-12-16 2013-06-19 上海博腾信息科技有限公司 云计算应用平台
CN103440111A (zh) * 2013-08-05 2013-12-11 北京京东尚科信息技术有限公司 虚拟机磁盘空间的扩展方法、宿主机和平台

Also Published As

Publication number Publication date
CN103440111A (zh) 2013-12-11
CN103440111B (zh) 2016-08-10

Similar Documents

Publication Publication Date Title
WO2015018225A1 (zh) 虚拟机磁盘空间的扩展方法、宿主机和平台
TWI428830B (zh) 將機器轉換至虛擬機器的方法及電腦程式產品
US8458413B2 (en) Supporting virtual input/output (I/O) server (VIOS) active memory sharing in a cluster environment
US8959323B2 (en) Remote restarting client logical partition on a target virtual input/output server using hibernation data in a cluster aware data processing system
EP2965200B1 (en) Method and system for providing a roaming remote desktop
US9104645B2 (en) System and method of replicating virtual machines for live migration between data centers
US8776058B2 (en) Dynamic generation of VM instance at time of invocation
US10922123B2 (en) Container migration in computing systems
US20120144391A1 (en) Provisioning a virtual machine
WO2017113074A1 (zh) 一种资源的分配方法、装置和系统
US20130174151A1 (en) Information processing apparatus and method of controlling virtual machine
WO2015074200A1 (zh) 一种生成快照的方法、系统和装置
JP2009145931A (ja) 仮想計算機と物理計算機との間のマイグレーション方法及びその計算機システム
JP2008287631A (ja) デプロイ対象計算機、デプロイメントシステムおよびデプロイ方法
TW201110024A (en) Apparatus, method and program for processing information
WO2012155555A1 (zh) 一种运行多个虚拟机的方法及系统
WO2019196705A1 (zh) 物理机到虚拟机迁移方法、装置及存储介质
JP2012078893A (ja) 計算機システム、及び管理計算機
CN109002346B (zh) 一种Windows虚拟机引导程序的转换方法
WO2014000497A1 (zh) 一种虚拟系统的平滑关闭方法及系统
TW201322134A (zh) 虛擬機管理系統及方法
WO2016106756A1 (zh) 一种容灾方法、系统和装置
WO2016206378A1 (zh) 一种弹性扩容方法、装置及系统
CN106209445B (zh) 一种通过网络部署的虚拟化数据中心
CN105573803A (zh) 一种物理机部署的方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14834653

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 29.06.2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14834653

Country of ref document: EP

Kind code of ref document: A1