JP2011221597A - Clone disk creation method and program - Google Patents

Clone disk creation method and program Download PDF

Info

Publication number
JP2011221597A
JP2011221597A JP2010086828A JP2010086828A JP2011221597A JP 2011221597 A JP2011221597 A JP 2011221597A JP 2010086828 A JP2010086828 A JP 2010086828A JP 2010086828 A JP2010086828 A JP 2010086828A JP 2011221597 A JP2011221597 A JP 2011221597A
Authority
JP
Japan
Prior art keywords
disk
virtual machine
image
master disk
master
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
JP2010086828A
Other languages
Japanese (ja)
Inventor
Yoshimitsu Aoyanagi
慶光 青柳
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.)
Hitachi Solutions Ltd
Original Assignee
Hitachi Solutions 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 Hitachi Solutions Ltd filed Critical Hitachi Solutions Ltd
Priority to JP2010086828A priority Critical patent/JP2011221597A/en
Publication of JP2011221597A publication Critical patent/JP2011221597A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a method of creating a link clone having a function for converting an already exiting virtual machine image into a link clone format and a function for installing a hot fix and application in a master disk image without using any exclusive I/O appliance or unique data format.SOLUTION: This clone disk creation method comprises: a step of extracting common data from a plurality of virtual machine images, and creating a master disk image; a step of extracting a difference between the created above mentioned master disk image and a virtual machine image, and creating a delta disk, and converting the existing virtual machine image into a link clone format. Furthermore, this clone disk creation method comprises a step of installing a hot fix and application of an OS in the master disk image, and mounting the master disk image and delta disk on an arbitrary host, and executing disk layout rearrangement processing for excluding the write-in of the data in the same sector.

Description

本発明は、仮想化環境におけるリンククローンの作成方法及びプログラムに関するものである。   The present invention relates to a linked clone creation method and program in a virtual environment.

従来、仮想マシンのリンククローンを作成する技術に関して、下記非特許文献1、非特許文献2に記載の技術が知られている。
下記特許文献1に記載のものは、完全クローンとリンククローンに関する技術である。完全クローンでは、仮想マシンのクローンを作成する際にマスタの仮想マシンのディスクイメージ全体をコピーする。一方、リンククローンでは、複数の仮想マシン間で共有するマスタのディスクイメージを持ち、個々の仮想マシン固有のデータをマスタのディスクイメージとの差分(デルタディスク)として保持する。リンククローンを用いれば複数の仮想マシン間でマスタのディスクイメージを共有するため、新規の仮想マシンの作成に必要なディスク容量、作成時間を大幅に削減できる。
また、下記非特許文献2に記載のFlocks技術では、デルタディスクをブロックデータとファイルデータの両方で格納しておき(格納形式は必要に応じて使い分ける)、ブート時に仮想マシンのディスクイメージを構成する。
Conventionally, technologies described in the following Non-Patent Document 1 and Non-Patent Document 2 are known as technologies for creating linked clones of virtual machines.
The thing of the following patent document 1 is the technique regarding a complete clone and a link clone. Full clone copies the entire disk image of the master virtual machine when creating a clone of the virtual machine. On the other hand, a linked clone has a master disk image shared among a plurality of virtual machines, and holds data unique to each virtual machine as a difference (delta disk) from the master disk image. By using linked clones, the master disk image is shared among multiple virtual machines, so the disk capacity and creation time required to create a new virtual machine can be greatly reduced.
In the Flocks technology described in Non-Patent Document 2 below, a delta disk is stored as both block data and file data (the storage format is properly used as necessary), and a disk image of a virtual machine is configured at boot time. .

VMware社ディスククローン機能(完全クローン、リンククローン)http://vmware.com/files/jp/pdf/ws7_manual.pdfVMware disk clone function (complete clone, linked clone) http://vmware.com/files/jp/pdf/ws7_manual.pdf Atlantis Comuting社Flocks技術http://www.atlantiscomputing.com/web/index.php option=com_content&view=article&id=50%3Aatlantis-article-ilio-for-vdi&catid=37%3Aatlantis-ilio&Itemid=28Atlantis Comuting Flocks Technology http://www.atlantiscomputing.com/web/index.php option = com_content & view = article & id = 50% 3Aatlantis-article-ilio-for-vdi & catid = 37% 3Aatlantis-ilio & Itemid = 28

しかしながら、上記非特許文献1、非特許文献2に記載の技術は、マスタの仮想マシンのディスクイメージから新規にリンククローンを作成することを前提としているため、既存の仮想マシンイメージ(非リンククローン)をリンククローン形式に変換することはできない。   However, since the techniques described in Non-Patent Document 1 and Non-Patent Document 2 are based on the premise that a linked clone is newly created from a disk image of a master virtual machine, an existing virtual machine image (non-linked clone) Cannot be converted to linked clone format.

また、リンククローン形式にも幾つかの運用上の制限事項がある。例えば、上記非特許文献1に記載の技術は、マスタのディスクイメージにOSのホットフィックス、アプリケーションをインストールできない。これはユーザデータ(デルタディスク上)と同一のディスクのセクタにOSのホットフィックス、アプリケーションのデータが書き込まれる可能性があるためである。
一方、上記非特許文献2に記載の技術を用いれば、例えば、OSのホットフィックス、アプリケーションをファイルデータとして格納しておき、ブート時に仮想マシンのディスクイメージに組み込む方法でリンククローンの制限事項を取り除くことができる。しかしながら、ファイルI/Oをフィルタリングする専用のアプライアンス装置が必要になるため、I/Oが集中することで性能上のボトルネックとなる。また、Flocksという独自のデータ形式を用いることもシステムの汎用性を確保する上で問題がある。
The linked clone format also has some operational restrictions. For example, the technique described in Non-Patent Document 1 cannot install an OS hot fix or application on a master disk image. This is because the OS hot fix and application data may be written in the same disk sector as the user data (on the delta disk).
On the other hand, if the technique described in Non-Patent Document 2 is used, for example, OS hotfixes and applications are stored as file data, and the restrictions on linked clones are removed by a method of incorporating them into a disk image of a virtual machine at boot time. Can do. However, since a dedicated appliance device for filtering file I / O is required, the concentration of I / O becomes a performance bottleneck. In addition, using a unique data format called Flocks also has a problem in ensuring the versatility of the system.

本発明は、上記の問題点を踏まえ、
(1)既存の仮想マシンイメージ(非リンククローン形式)をリンククローン形式に変換する機能、
(2)専用I/Oアプライアンスや、独自のデータ形式を用いることなく、マスタのディスクイメージにOSのホットフィックス、アプリケーションをインストールする機能、
を持つリンククローンの作成方法およびプログラムを提供することを目的とする。
The present invention is based on the above problems.
(1) A function to convert an existing virtual machine image (unlinked clone format) to a linked clone format,
(2) The ability to install OS hotfixes and applications on the master disk image without using a dedicated I / O appliance or proprietary data format,
It is an object to provide a method and a program for creating a linked clone having

本発明は、上記目的を達成するため、本発明における仮想マシンにおけるリンククローンの作成方法は、前記リンククローンの作成過程が、
複数の仮想マシンイメージから共通のデータを抽出し、マスタのディスクイメージを作成するステップと、作成した前記マスタのディスクイメージと仮想マシンイメージの差分を抽出し、デルタディスクを作成することで、既存の仮想マシンイメージをリンククローン形式に変換するステップとから成ることを特徴とする。
また、前記マスタのディスクイメージにOSのホットフィックス、アプリケーションをインストールした後で、マスタのディスクイメージ、デルタディスクを任意のホストにマウントし、同一セクタへのデータの書き込みを排除するためのディスクレイアウト再配置処理を実行するステップを備え、専用I/Oアプライアンスや独自のデータ形式を用いることなく、マスタのディスクイメージにOSのホットフィックス、アプリケーションをインストールすることを特徴とする。
In order to achieve the above object, the present invention provides a linked clone creation method in a virtual machine according to the present invention, wherein the linked clone creation process includes:
Extracting common data from multiple virtual machine images to create a master disk image, extracting the difference between the created master disk image and virtual machine image, and creating a delta disk, And converting the virtual machine image into a linked clone format.
In addition, after installing the OS hotfix and application on the master disk image, the master disk image and delta disk can be mounted on an arbitrary host, and the disk layout can be rearranged to eliminate data writing to the same sector. It includes a step to execute processing, and installs OS hotfixes and applications on the master disk image without using a dedicated I / O appliance or unique data format.

また、本発明に係るプログラムは、仮想マシンにおけるリンククローンの作成プログラムであって、
前記リンククローンの作成プログラムが、
複数の仮想マシンイメージから共通のデータを抽出し、マスタのディスクイメージを作成するステップと、作成した前記マスタのディスクイメージと仮想マシンイメージの差分を抽出し、デルタディスクを作成することで、既存の仮想マシンイメージをリンククローン形式に変換するステップとを備えることを特徴とする。
また、前記リンククローンの作成プログラムが、
マスタのディスクイメージにOSのホットフィックス、アプリケーションをインストールした後で、マスタのディスクイメージ、デルタディスクを任意のホストにマウントし、同一セクタへのデータの書き込みを排除するためのディスクレイアウト再配置処理を実行するステップを備え、専用I/Oアプライアンスや独自のデータ形式を用いることなく、マスタのディスクイメージにOSのホットフィックス、アプリケーションをインストールすることを特徴とする。
Further, the program according to the present invention is a linked clone creation program in a virtual machine,
The linked clone creation program is
Extracting common data from multiple virtual machine images to create a master disk image, extracting the difference between the created master disk image and virtual machine image, and creating a delta disk, Converting the virtual machine image into a linked clone format.
In addition, the linked clone creation program is
After installing the OS hotfix and application on the master disk image, mount the master disk image and delta disk on any host and execute the disk layout relocation process to eliminate data writing to the same sector. And installing OS hot fixes and applications on the master disk image without using a dedicated I / O appliance or proprietary data format.

本発明によれば、既存の仮想マシンイメージ(非リンククローン形式)をリンククローン形式に変換することができ、専用I/Oアプライアンスや、独自のデータ形式を用いることなく、マスタのディスクイメージにOSのホットフィックス、アプリケーションをインストールできるリンククローンを作成できる。   According to the present invention, an existing virtual machine image (unlinked clone format) can be converted into a linked clone format, and an OS can be applied to a master disk image without using a dedicated I / O appliance or a unique data format. You can create linked clones that can install hotfixes and applications.

本発明の実施の形態を示すシステム構成図である。It is a system configuration figure showing an embodiment of the invention. 本発明におけるリンククローンのディスク構成を示す図である。It is a figure which shows the disk structure of the link clone in this invention. 本発明におけるリンククローンの課題を説明する図である。It is a figure explaining the subject of the link clone in this invention. 本発明の従来技術であるFlocksテクノロジーの概略を説明する図である。It is a figure explaining the outline of Flocks technology which is the prior art of the present invention. 本発明におけるマスタファイルテーブルの構成を示す図である。It is a figure which shows the structure of the master file table in this invention. 本発明におけるリンククローン変換方法を示す図である。It is a figure which shows the link clone conversion method in this invention. 本発明におけるディスクレイアウト再配置方法を示す図である。It is a figure which shows the disk layout rearrangement method in this invention. 本発明におけるディスク構成変更プログラムのリンククローン変換処理のフローチャートである。It is a flowchart of the link clone conversion process of the disk structure change program in this invention. 本発明におけるディスク構成変更プログラムのディスクレイアウト再配置処理のフローチャートである。It is a flowchart of the disk layout rearrangement process of the disk structure change program in this invention. 本 発明における仮想マシンテンプレートのディスクレイアウト再配置処理のフローチャートである。It is a flowchart of the disk layout rearrangement process of the virtual machine template in this invention. 本発明におけるデルタディスクのディスクレイアウト再配置処理のフローチャートである。It is a flowchart of the disk layout rearrangement process of the delta disk in this invention.

以下、本発明を実施する場合の一形態を図面を参照して具体的に説明する。
図1は本発明の実施の形態を示すシステム構成図である。
この実施の形態の仮想マシンモニタ(1)上には仮想マシンテンプレート(20)、仮想マシン1(30)、仮想マシン2(40)、仮想マシン3(50)など複数の仮想マシンが稼動している。個々の仮想マシンにはストレージ装置(10)上のディスク領域が割り当てられている。
仮想マシン1(30)と仮想マシン2(40)はリンククローン、仮想マシン3(50)は通常の仮想マシンであると仮定する。
Hereinafter, an embodiment for carrying out the present invention will be specifically described with reference to the drawings.
FIG. 1 is a system configuration diagram showing an embodiment of the present invention.
On the virtual machine monitor (1) of this embodiment, a plurality of virtual machines such as a virtual machine template (20), a virtual machine 1 (30), a virtual machine 2 (40), and a virtual machine 3 (50) are operated. Yes. A disk area on the storage device (10) is allocated to each virtual machine.
It is assumed that the virtual machine 1 (30) and the virtual machine 2 (40) are linked clones, and the virtual machine 3 (50) is a normal virtual machine.

リンククローンでは、複数の仮想マシン間で共有するOSやアプリケーションの構成ファイルが格納されるマスタのディスクイメージと、個々の仮想マシン固有のデータ(ユーザデータ)が保存されるデルタディスクが管理されており、仮想マシンモニタ(1)がマスタのディスクイメージとデルタディスクへのI/Oの振り分け処理を実行する(デルタディスク、マスタのディスクイメージの順にアクセスし、必要なデータを取得する)。   Linked clones manage master disk images that store OS and application configuration files shared among multiple virtual machines, and delta disks that store individual virtual machine-specific data (user data). The virtual machine monitor (1) executes the I / O distribution process to the master disk image and the delta disk (accesses in the order of the delta disk and the master disk image to acquire necessary data).

マスタのディスクイメージ(101)は仮想マシンテンプレート(20)に対応する仮想ディスクである。また、デルタディスク1(102)とデルタディスク2(103)はマスタのディスクイメージ(101)との差分であり、それぞれ仮想マシン1(30)と仮想マシン2(40)に対応する。また、仮想マシンのディスクイメージ(104)は仮想マシン3(50)に対応する。
ディスク構成変更プログラム(2)は、任意のホストで動作し、マスタのディスクイメージへのOSのホットフィックス、アプリケーションのインストールを可能にするためのディスクレイアウト再配置機能と、仮想マシンのディスクイメージ(104)からマスタのディスクイメージ(101)とデルタディスク(102または103)を作成する機能を持つ専用のプログラムである。
The master disk image (101) is a virtual disk corresponding to the virtual machine template (20). The delta disk 1 (102) and the delta disk 2 (103) are differences between the master disk image (101) and correspond to the virtual machine 1 (30) and the virtual machine 2 (40), respectively. The virtual machine disk image (104) corresponds to the virtual machine 3 (50).
The disk configuration change program (2) runs on an arbitrary host, and performs a hot layout of the OS to the master disk image, a disk layout rearrangement function for enabling application installation, and a virtual machine disk image (104). Is a dedicated program having a function of creating a master disk image (101) and a delta disk (102 or 103).

図2は本発明におけるリンククローンのディスク構成を示す。
デルタディスク1(102)とデルタディスク2(103)では同一セクタへのデータの書き込みは許可される。これは、仮想マシンモニタ(1)がデルタディスク1(102)とデルタディスク2(103)をそれぞれ別のディスクと認識するためである。
FIG. 2 shows a disk configuration of linked clones in the present invention.
In the delta disk 1 (102) and the delta disk 2 (103), data writing to the same sector is permitted. This is because the virtual machine monitor (1) recognizes the delta disk 1 (102) and the delta disk 2 (103) as different disks.

図3は本発明におけるリンククローンの課題を説明する図である。
リンククローンでは、マスタのディスクイメージ(101)にOSのホットフィックス、アプリケーションをインストールできない。仮にマスタのディスクイメージ(101)上に適用したOSのホットフィックス、アプリケーションと、デルタディスク(102、または103)上のユーザデータが同一セクタに書き込まれた場合、仮想マシンモニタ(1)はマスタのディスクイメージとデルタディスクへのI/Oの振り分け処理を正しく実行できなくなるためである。
FIG. 3 is a diagram for explaining the problem of linked clones in the present invention.
With linked clones, you cannot install OS hotfixes and applications on the master disk image (101). If the OS hotfix and application applied on the master disk image (101) and user data on the delta disk (102 or 103) are written to the same sector, the virtual machine monitor (1) This is because the I / O distribution process between the image and the delta disk cannot be executed correctly.

図4は本発明における従来技術として、Flocksテクノロジーの概略を説明する図である。
Flocksテクノロジーでは、マスタのディスクイメージ(101)との差分をFlocks(104、105)という専用のデータ形式で管理する。デルタディスクはブロックデータのみ、Flocksはブロックデータとファイルを組合せたデータである。差分をFlocks形式で保存するため、FlocksテクノロジーではいI/Oフィルタアプライアンス(60)がマスタのディスクイメージ(101)とFlocks(104、105)の振り分け処理を実行する。また、仮想マシン1(30)と仮想マシン2(40)には専用エージェント(31、41)を組み込んでおき、仮想マシン(30、40)内で発生するファイルI/O(Read/Write)をインターセプトし、I/Oフィルタアプライアンス(60)に転送することで、仮想マシンモニタ(1)に先んじて振り分け処理を実行することができるようになる。
FIG. 4 is a diagram for explaining the outline of the Flocks technology as the prior art in the present invention.
In the Flocks technology, the difference from the master disk image (101) is managed in a dedicated data format called Flocks (104, 105). Delta discs are block data only, and Flocks is a combination of block data and files. In order to save the difference in the Flocks format, with the Flocks technology, the Yes I / O filter appliance (60) executes a process of distributing the master disk image (101) and Flocks (104, 105). Also, dedicated agents (31, 41) are incorporated in the virtual machine 1 (30) and the virtual machine 2 (40), and file I / O (Read / Write) generated in the virtual machine (30, 40) is stored. By intercepting and transferring to the I / O filter appliance (60), the distribution process can be executed prior to the virtual machine monitor (1).

図5は本発明におけるマスタファイルテーブルの構成を示す図である。
通常、仮想マシンのディスクイメージにはマスタファイルテーブルが存在する。
マスタファイルテーブルには、ファイルのレイアウト情報(ファイルがディスク上のどのセクタに格納されているかを示すテーブル)が保存されている。
マスタファイルテーブルには2通りのデータの格納方法がある。
レコード1(107)はディスクのクラスタサイズ(通常は4096バイト)を超えるファイルを格納するための格納形式であり、ファイル名、日付、インデックス(インデックス1、インデックス2、…)からなる。ファイル全体を1レコードに含めることができないため、代わりにファイルデータを保持しているセクタの参照情報をインデックス形式で保持する。本例では、インデックス1、インデックス2はそれぞれマスタのディスクイメージのセクタM、セクタNをポイントする例を示している。
一方、レコード2(108)はディスクのクラスタサイズ以下の小さなファイルを格納するための格納形式であり、ファイル名、日付、ファイルデータからなる。レコード1(107)とは異なり、ファイル全体を1レコードに含めることができる。
FIG. 5 shows the structure of the master file table in the present invention.
Usually, a master file table exists in a disk image of a virtual machine.
The master file table stores file layout information (a table indicating in which sector on the disk the file is stored).
There are two ways of storing data in the master file table.
Record 1 (107) is a storage format for storing a file exceeding the cluster size (usually 4096 bytes) of the disk, and includes a file name, a date, and an index (index 1, index 2,...). Since the entire file cannot be included in one record, the reference information of the sector holding the file data is held instead in the index format. In this example, index 1 and index 2 indicate an example of pointing to sector M and sector N of the master disk image, respectively.
On the other hand, record 2 (108) is a storage format for storing a small file that is smaller than the cluster size of the disk, and consists of a file name, date, and file data. Unlike the record 1 (107), the entire file can be included in one record.

図6は本発明におけるリンククローン変換方法を示す図である。
本例では、説明を判りやすくするため、仮想マシンのディスクイメージ(104)がマスタのディスクイメージ(101)の完全クローンである場合について説明する。
本発明のディスク構成変更プログラム(2)はマスタのディスクイメージ(101)と仮想マシンのディスクイメージ(104)のブロック単位の差分データを抽出する。この差分データがそのままデルタディスク(109)になる。仮にマスタのディスクイメージ(101)が存在しない場合は、複数の仮想マシンのディスクイメージから任意のディスクイメージをマスタのディスクイメージ(101)として選択するだけである。
FIG. 6 is a diagram showing a linked clone conversion method according to the present invention.
In this example, for the sake of easy understanding, a case where the disk image (104) of the virtual machine is a complete clone of the master disk image (101) will be described.
The disk configuration change program (2) of the present invention extracts difference data in units of blocks between the master disk image (101) and the virtual machine disk image (104). This difference data becomes the delta disk (109) as it is. If the master disk image (101) does not exist, an arbitrary disk image is simply selected as the master disk image (101) from the disk images of a plurality of virtual machines.

図7は本発明におけるマスタのディスクレイアウト再配置方法を示す図である。
本例は、マスタのディスクイメージ(101)にOSのホットフィックス、アプリケーションをインストールした直後の構成である。
本発明のディスク構成変更プログラム(2)は、マスタのディスクイメージ(101)、デルタディスク1(102)を任意のホストにマウントし、同一セクタへのデータの書き込みを排除するためのディスクレイアウト再配置処理を実行する。こうすることで、専用I/Oアプライアンスや、独自のデータ形式を用いる必要がなくなる。
FIG. 7 is a diagram showing a master disk layout rearrangement method according to the present invention.
This example is a configuration immediately after the OS hot fix and application are installed in the master disk image (101).
The disk configuration change program (2) of the present invention mounts the master disk image (101) and the delta disk 1 (102) on an arbitrary host, and rearranges the disk layout for eliminating data writing to the same sector. Execute the process. This eliminates the need for a dedicated I / O appliance or a unique data format.

本例はディスクレイアウト再配置処理の一実施例である。具体的には、マスタのディスクイメージ(101)のOSのホットフィックス、アプリケーションを格納しているセクタをディスクの前方に再配置する(再配置後のマスタのディスクイメージ(111))。デルタディスク(110)は、データをディスクの後方に再配置する(再配置後のデルタディスク(112))。
セクタ再配置に伴い、マスタファイルテーブルの各レコードの内容を更新する必要があることは言うまでもない。
This example is an embodiment of the disk layout rearrangement process. Specifically, the sector storing the OS hot fix and application of the master disk image (101) is rearranged in front of the disk (master disk image (111) after rearrangement). The delta disk (110) rearranges data behind the disk (delta disk (112) after rearrangement).
It goes without saying that the contents of each record in the master file table must be updated in accordance with the sector rearrangement.

以下、本発明を実施する場合の処理の流れをフローチャートを用いて具体的に説明する。
図8は本発明におけるディスク構成変更プログラム(2)のリンククローン変換処理のフローチャートである。
ディスク構成変更プログラム(2)は、ユーザからリンククローン変換要求を待ち(ステップ801)、リンククローン変換要求を受信すると(ステップ802)、マスタのディスクイメージを選択する(ステップ803)。
仮想マシンテンプレート(マスタのディスクイメージ(101))が存在する場合は仮想マシンテンプレートを選択するが、仮想マシンテンプレートが存在しない場合は任意の仮想マシンのディスクイメージをマスタのディスクイメージとする。
Hereinafter, the flow of processing when the present invention is implemented will be specifically described with reference to flowcharts.
FIG. 8 is a flowchart of the linked clone conversion process of the disk configuration change program (2) in the present invention.
The disk configuration change program (2) waits for a linked clone conversion request from the user (step 801), and receives the linked clone conversion request (step 802), and selects a master disk image (step 803).
When a virtual machine template (master disk image (101)) exists, a virtual machine template is selected. When a virtual machine template does not exist, a disk image of an arbitrary virtual machine is set as a master disk image.

マスタのディスクイメージと仮想マシンの全てのブロックの比較を終了したかチェックし(ステップ804)、チェック済みでないブロックが存在する間はブロックデータの比較を行う(ステップ805)。
ステップ805でマスタのディスクイメージと仮想マシンの対応するブロックデータが異なる場合はデルタディスクに差分ブロックとして追加し(ステップ806)、それ以外の場合はステップ804から繰り返す。
マスタのディスクイメージと仮想マシンの全てのブロックの比較を終了した後で処理を終了する。
It is checked whether the comparison between the master disk image and all the blocks of the virtual machine is completed (step 804), and block data is compared while there are unchecked blocks (step 805).
If the master disk image and the corresponding block data of the virtual machine are different in step 805, they are added to the delta disk as a difference block (step 806). Otherwise, the process is repeated from step 804.
After the comparison of the master disk image and all the blocks of the virtual machine is completed, the process ends.

図9は本発明におけるディスク構成変更プログラム(2)のディスクレイアウト再配置処理のフローチャートである。
ディスク構成変更プログラム(2)は、ユーザが仮想マシンテンプレート(マスタのディスクイメージ(101))にOSのホットフィックス、アプリケーションをインストールした後で実行される。
ユーザからのディスクレイアウト再配置要求を待ち(ステップ901)、ユーザからのディスクレイアウト再配置要求を受信すると(ステップ902)、仮想マシンテンプレート(マスタのディスクイメージ(101))のディスクレイアウト再配置処理(A)を実行する(ステップ903)。
全てのデルタディスクの再配置を終了したかチェックし(ステップ904)、再配置が済みでないデルタディスクが存在する間はデルタディスクのディスクレイアウト再配置処理(B)を実行する(ステップ905)。
全てのデルタディスクを再配置した後で処理を終了する。
FIG. 9 is a flowchart of the disk layout rearrangement process of the disk configuration change program (2) in the present invention.
The disk configuration change program (2) is executed after the user installs the OS hot fix and application in the virtual machine template (master disk image (101)).
Waiting for a disk layout rearrangement request from the user (step 901) and receiving a disk layout rearrangement request from the user (step 902), the disk layout rearrangement process (step 902) of the virtual machine template (master disk image (101)) A) is executed (step 903).
It is checked whether or not the rearrangement of all delta disks has been completed (step 904), and while there is a delta disk that has not been rearranged, the disk layout rearrangement process (B) of the delta disk is executed (step 905).
After all the delta disks are rearranged, the process ends.

図10は本発明における仮想マシンテンプレートのディスクレイアウト再配置処理の一実施形態のフローチャートである。
ディスク構成変更プログラム(2)は仮想マシンテンプレート(マスタのディスクイメージ(101))を任意のホストにマウントし(ステップ911)、マスタファイルテーブルに登録されている全てのファイルの探索が終了したかをチェックする(ステップ912)。
ステップ912でファイルの探索が終了していない間は、ディスクの先頭ブロックに近い空きブロックにファイルを移動し(ステップ913)、マスタファイルテーブルの対応するファイルのレコード情報を書き換える(ステップ914)、ステップ912から繰り返す。全てのファイルの探索が終了した後で処理を終了する。
FIG. 10 is a flowchart of an embodiment of the virtual machine template disk layout rearrangement process according to the present invention.
The disk configuration change program (2) mounts the virtual machine template (master disk image (101)) on an arbitrary host (step 911), and checks whether all files registered in the master file table have been searched. Check (step 912).
While the file search is not completed in step 912, the file is moved to an empty block close to the first block on the disk (step 913), and the record information of the corresponding file in the master file table is rewritten (step 914). Repeat from 912. The process ends after all the files have been searched.

図11は本発明におけるデルタディスクのディスクレイアウト再配置処理の一実施形態のフローチャートである。
ディスク構成変更プログラム(2)はデルタディスク1(102)を任意のホストにマウントし(ステップ921)、マスタファイルテーブルに登録されている全てのファイルの探索が終了したかをチェックする(ステップ922)。ステップ922でファイルの探索が終了していない間は、ディスクの後方ブロックに近い空きブロックにファイルを移動し(ステップ923)。マスタファイルテーブルの対応するファイルのレコード情報を書き換え(ステップ924)、ステップ922から繰り返す。全てのファイルの探索が終了した後で処理を終了する。
FIG. 11 is a flowchart of an embodiment of the disk layout rearrangement process of the delta disk in the present invention.
The disk configuration change program (2) mounts the delta disk 1 (102) on an arbitrary host (step 921), and checks whether all files registered in the master file table have been searched (step 922). . While the file search is not completed in step 922, the file is moved to an empty block close to the rear block of the disk (step 923). The record information of the corresponding file in the master file table is rewritten (step 924), and the process is repeated from step 922. The process ends after all the files have been searched.

1…仮想マシンモニタ
2…ディスク構成変更プログラム
10…ストレージ装置
20…仮想マシンテンプレート
30…仮想マシン1
40…仮想マシン2
50…仮想マシン3
101…マスタのディスクイメージ
102…デルタディスク1
103…デルタディスク2
104…仮想マシンのディスクイメージ
DESCRIPTION OF SYMBOLS 1 ... Virtual machine monitor 2 ... Disk structure change program 10 ... Storage apparatus 20 ... Virtual machine template 30 ... Virtual machine 1
40 ... Virtual machine 2
50 ... Virtual machine 3
101 ... Master disk image 102 ... Delta disk 1
103 ... Delta disk 2
104 ... Virtual machine disk image

Claims (4)

仮想マシンにおけるリンククローンの作成方法であって、
前記リンククローンの作成過程が、
複数の仮想マシンイメージから共通のデータを抽出し、マスタのディスクイメージを作成するステップと、作成した前記マスタのディスクイメージと仮想マシンイメージの差分を抽出し、デルタディスクを作成することで、既存の仮想マシンイメージをリンククローン形式に変換するステップとから成ることを特徴とするリンククローン作成方法。
A method of creating a linked clone in a virtual machine,
The process of creating the linked clone
Extracting common data from multiple virtual machine images to create a master disk image, extracting the difference between the created master disk image and virtual machine image, and creating a delta disk, A linked clone creation method comprising: converting a virtual machine image into a linked clone format.
前記マスタのディスクイメージにOSのホットフィックス、アプリケーションをインストールした後で、マスタのディスクイメージ、デルタディスクを任意のホストにマウントし、同一セクタへのデータの書き込みを排除するためのディスクレイアウト再配置処理を実行するステップを備え、専用I/Oアプライアンスや独自のデータ形式を用いることなく、マスタのディスクイメージにOSのホットフィックス、アプリケーションをインストールすることを特徴とする請求項1に記載のリンククローン作成方法。   After installing the OS hot fix and application on the master disk image, mount the master disk image and delta disk on any host, and perform disk layout relocation processing to eliminate data writing to the same sector The link clone creation method according to claim 1, further comprising the step of: installing an OS hot fix and an application on a master disk image without using a dedicated I / O appliance or a unique data format. 仮想マシンにおけるリンククローンの作成プログラムであって、
前記リンククローンの作成プログラムが、
複数の仮想マシンイメージから共通のデータを抽出し、マスタのディスクイメージを作成するステップと、作成した前記マスタのディスクイメージと仮想マシンイメージの差分を抽出し、デルタディスクを作成することで、既存の仮想マシンイメージをリンククローン形式に変換するステップとを備えることを特徴とするリンククローン作成プログラム。
A linked clone creation program for virtual machines,
The linked clone creation program is
Extracting common data from multiple virtual machine images to create a master disk image, extracting the difference between the created master disk image and virtual machine image, and creating a delta disk, A linked clone creating program comprising: converting a virtual machine image into a linked clone format.
前記リンククローンの作成プログラムが、
マスタのディスクイメージにOSのホットフィックス、アプリケーションをインストールした後で、マスタのディスクイメージ、デルタディスクを任意のホストにマウントし、同一セクタへのデータの書き込みを排除するためのディスクレイアウト再配置処理を実行するステップを備え、専用I/Oアプライアンスや独自のデータ形式を用いることなく、マスタのディスクイメージにOSのホットフィックス、アプリケーションをインストールすることを特徴とする請求項1に記載のリンククローン作成プログラム。
The linked clone creation program is
After installing the OS hotfix and application on the master disk image, mount the master disk image and delta disk on any host and execute the disk layout relocation process to eliminate data writing to the same sector. The link clone creation program according to claim 1, further comprising: installing an OS hot fix and application on a master disk image without using a dedicated I / O appliance or a unique data format.
JP2010086828A 2010-04-05 2010-04-05 Clone disk creation method and program Pending JP2011221597A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010086828A JP2011221597A (en) 2010-04-05 2010-04-05 Clone disk creation method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010086828A JP2011221597A (en) 2010-04-05 2010-04-05 Clone disk creation method and program

Publications (1)

Publication Number Publication Date
JP2011221597A true JP2011221597A (en) 2011-11-04

Family

ID=45038549

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010086828A Pending JP2011221597A (en) 2010-04-05 2010-04-05 Clone disk creation method and program

Country Status (1)

Country Link
JP (1) JP2011221597A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014002421A1 (en) * 2012-06-26 2014-01-03 日本電気株式会社 System construction device and system construction method
WO2014100954A1 (en) * 2012-12-24 2014-07-03 华为技术有限公司 Method and system for data controlling
WO2014155693A1 (en) * 2013-03-29 2014-10-02 株式会社日立製作所 Virtual machine image management server and virtual machine image management method
JP2015509638A (en) * 2012-04-18 2015-03-30 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Method, system, and computer program product for installing an application on a runtime instance, and a computer program (application installation)
JP2015527649A (en) * 2013-03-06 2015-09-17 ヴイエムウェア インコーポレイテッドVMware,Inc. Method and system for providing roaming remote desktop
JP2016526726A (en) * 2013-07-03 2016-09-05 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation How to optimize provisioning time using dynamically generated virtual disk content

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015509638A (en) * 2012-04-18 2015-03-30 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Method, system, and computer program product for installing an application on a runtime instance, and a computer program (application installation)
US9038059B2 (en) 2012-04-18 2015-05-19 International Business Machines Corporation Automatically targeting application modules to individual machines and application framework runtimes instances
WO2014002421A1 (en) * 2012-06-26 2014-01-03 日本電気株式会社 System construction device and system construction method
JPWO2014002421A1 (en) * 2012-06-26 2016-05-30 日本電気株式会社 System construction device and system construction method
WO2014100954A1 (en) * 2012-12-24 2014-07-03 华为技术有限公司 Method and system for data controlling
JP2015527649A (en) * 2013-03-06 2015-09-17 ヴイエムウェア インコーポレイテッドVMware,Inc. Method and system for providing roaming remote desktop
WO2014155693A1 (en) * 2013-03-29 2014-10-02 株式会社日立製作所 Virtual machine image management server and virtual machine image management method
JP5996094B2 (en) * 2013-03-29 2016-09-21 株式会社日立製作所 Virtual machine image management server and virtual machine image management method
JP2016526726A (en) * 2013-07-03 2016-09-05 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation How to optimize provisioning time using dynamically generated virtual disk content

Similar Documents

Publication Publication Date Title
CN106687911B (en) Online data movement without compromising data integrity
US9569457B2 (en) Data processing method and apparatus for distributed systems
US20170131913A1 (en) Managing Data in a Storage System
US9342248B2 (en) Techniques for reducing read I/O latency in virtual machines
US20110154331A1 (en) Cloning virtual machines in a virtual computer environment
JP2011221597A (en) Clone disk creation method and program
US8683111B2 (en) Metadata storage in unused portions of a virtual disk file
US20130282676A1 (en) Garbage collection-driven block thinning
JP2011076605A (en) Method and system for running virtual machine image
US9971783B2 (en) Data de-duplication for disk image files
JP2014513338A5 (en) Method, computer readable storage medium and system for optimal compression of a virtual disk
CN103902347A (en) Deploying method and system of virtual machine system
US8566636B2 (en) Application recovery in a file system
US8732427B2 (en) Systems and methods for collapsing a derivative version of a primary storage volume
CN102033948A (en) Method and device for updating data
US9152552B2 (en) Securing sensitive information in a network cloud
CN103092673A (en) Snapshot processing method and device for virtual machine
US10203879B2 (en) Control device and control method
CN104104705A (en) Access method and device of distributed storage system
CN107528871B (en) Data analysis in storage systems
US20120179885A1 (en) Write control system
US20150026683A1 (en) Data control system for virtual environment
JP4160817B2 (en) Disk subsystem, computer system, storage management method for managing the same, and management program
CN114385069B (en) Method, apparatus and computer program product for storage management
JP5342055B1 (en) Storage device and data backup method