JP5444104B2 - Storage means management method, virtual computer system, and program - Google Patents

Storage means management method, virtual computer system, and program Download PDF

Info

Publication number
JP5444104B2
JP5444104B2 JP2010098035A JP2010098035A JP5444104B2 JP 5444104 B2 JP5444104 B2 JP 5444104B2 JP 2010098035 A JP2010098035 A JP 2010098035A JP 2010098035 A JP2010098035 A JP 2010098035A JP 5444104 B2 JP5444104 B2 JP 5444104B2
Authority
JP
Japan
Prior art keywords
storage device
area
guest
main storage
management table
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.)
Expired - Fee Related
Application number
JP2010098035A
Other languages
Japanese (ja)
Other versions
JP2011227766A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Ltd filed Critical Hitachi Ltd
Priority to JP2010098035A priority Critical patent/JP5444104B2/en
Publication of JP2011227766A publication Critical patent/JP2011227766A/en
Application granted granted Critical
Publication of JP5444104B2 publication Critical patent/JP5444104B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、仮想環境上で稼働するシステムの再起動やその際のシステムのダンプ情報の出力の技術に関する。   The present invention relates to a technique for restarting a system operating in a virtual environment and outputting dump information of the system at that time.

近年、高い信頼性や継続性が要求されるサーバ装置に関して、同一のハードウェア資源上に複数の仮想マシン(VM:Virtual Machine)を稼動させる仮想サーバの技術が多く用いられるようになってきている。   In recent years, with regard to server devices that require high reliability and continuity, the technology of virtual servers that operate multiple virtual machines (VMs) on the same hardware resource has been widely used. .

仮想サーバは、ハイパバイザにより実現される。ハイパバイザは、制御プログラムであり、主記憶装置を論理的に分割する等の方法により、ハードウェア資源を論理的に複数の区画(論理区画)に分割することで情報処理装置を仮想化する。そして、ハイパバイザは、一つの論理区画上で一つのOS(Operating System)を稼動させることができる。以下、ハイパバイザが作成した論理区画上で稼動するOSをゲストOSと称する。   The virtual server is realized by a hypervisor. The hypervisor is a control program, and virtualizes the information processing apparatus by logically dividing hardware resources into a plurality of partitions (logical partitions) by a method such as logically dividing the main storage device. The hypervisor can operate one OS (Operating System) on one logical partition. Hereinafter, an OS operating on a logical partition created by the hypervisor is referred to as a guest OS.

ゲストOSは、割り当てられた論理区画を使用して、あたかも一つのハードウェア資源上で稼動しているように動作することができる。このようにして、複数のサーバ装置の機能を一台の計算機上で実現させることで、複数の業務を一台の計算機で運用することができる。   The guest OS can operate as if it is running on one hardware resource using the assigned logical partition. In this manner, by realizing the functions of a plurality of server devices on one computer, a plurality of tasks can be operated on one computer.

なお、サーバ装置では、サーバ装置がダウンした場合や、デバッグ処理のために一時的にシステムの記憶領域の使用状態を解析する場合などに、再起動に先行して、ダンプ情報(メモリなどに記憶されている情報)を取得する必要がある。例えば、サーバ装置が障害でダウンした場合には、障害原因の分析のためにダンプ情報を取得する必要がある。   Note that the server device stores dump information (stored in memory or the like) prior to restarting when the server device goes down or when the usage status of the system storage area is temporarily analyzed for debugging processing. Need to get information). For example, when the server device is down due to a failure, it is necessary to obtain dump information for analyzing the cause of the failure.

一般的に、サーバ装置は仮想記憶機構を実装しており、サーバ装置が稼動中に使用する仮想記憶領域の情報は、実際には、主記憶装置又は補助記憶装置(特に、ページング利用エリア)上に存在する。サーバ装置では、ダンプ情報を取得するプログラムを動作させることで、主記憶装置又は補助記憶装置に存在する仮想記憶領域上のすべての情報をダンプ情報として外部媒体に出力できるようになっている。   Generally, a server device has a virtual storage mechanism, and information on a virtual storage area used while the server device is operating is actually stored on a main storage device or an auxiliary storage device (especially a paging usage area). Exists. In the server device, by operating a program for obtaining dump information, all information on the virtual storage area existing in the main storage device or the auxiliary storage device can be output to the external medium as dump information.

そして、通常、サーバ装置が使用する仮想記憶部の情報は膨大であるため、ダンプ情報の出力には多くの時間を要する。また、サーバ装置の再起動の際、主記憶装置及び補助記憶装置上に存在するダンプ情報を更新してしまうため、少なくとも、ダンプ情報の出力中は、サーバ装置の再起動や業務再開ができない。   In general, the information in the virtual storage unit used by the server device is enormous, and it takes a long time to output the dump information. Further, since the dump information existing on the main storage device and the auxiliary storage device is updated when the server device is restarted, the server device cannot be restarted or the business can be resumed at least while the dump information is being output.

この点、特許文献1には、ダンプ情報を取得する処理と、システムの再起動処理とを交互に実行することで、再起動処理を実行し始めるまでの時間を短縮する技術が開示されている。   In this regard, Patent Document 1 discloses a technique for shortening the time until the start of the restart process by alternately executing the process of acquiring dump information and the restart process of the system. .

また、特許文献2には、システムが使用する主記憶装置内の領域を二重化し、システムが異常終了した際に二重化を切り離し、片方の領域のみを使用して再起動を行う技術が開示されている。   Patent Document 2 discloses a technique for duplicating an area in the main storage device used by the system, disconnecting the duplication when the system ends abnormally, and restarting using only one area. Yes.

特開2008−242999号公報JP 2008-242999 A 特開平7−234808号公報JP-A-7-234808

しかしながら、特許文献1に開示された技術では、システムの再起動処理が利用する主記憶装置内の領域は、ダンプ情報出力済みの領域としている。そのため、システム再起動処理が主記憶装置内の領域にシステム再起動処理プログラムを読み込むためには、その領域のダンプ情報が出力されるまで待たなければならない。つまり、再起動処理を実行し始めるまでの時間を短縮することはできるが、再起動処理が完了するまでの時間はあまり短縮できないという問題があった。   However, in the technique disclosed in Patent Document 1, the area in the main storage device used by the system restart process is an area where dump information has already been output. Therefore, in order for the system restart processing to read the system restart processing program into an area in the main storage device, it is necessary to wait until dump information in that area is output. That is, there is a problem that the time until the start of the restart process can be shortened, but the time until the restart process is completed cannot be shortened much.

また、特許文献2に開示された技術では、再起動前にダンプ情報出力を不要としているため再起動完了までに必要な時間を短縮できるものの、単一の物理サーバ内での処理となるため、通常の2倍の物理メモリ領域が必要となるという問題がある。すなわち、特許文献2に開示された技術を、複数のシステムを稼動させることが可能な仮想サーバに適用するには、多くのリソースを用意しなければならないという問題が生ずる。さらに、特許文献2に開示された技術におけるダンプ情報の取得は、異常終了時に主記憶装置に保持している情報を取得することのみであり、主記憶装置以外で保持している情報も含めた全てのダンプ情報を取得するようになっていない。   Moreover, in the technique disclosed in Patent Document 2, dump information output is not required before rebooting, so the time required to complete rebooting can be shortened, but since processing is performed within a single physical server, There is a problem that a physical memory area twice as large as that required. In other words, in order to apply the technique disclosed in Patent Document 2 to a virtual server capable of operating a plurality of systems, there arises a problem that many resources must be prepared. Furthermore, the acquisition of dump information in the technology disclosed in Patent Document 2 is only to acquire information held in the main storage device at the time of abnormal termination, and includes information held in other than the main storage device. Not all dump information is collected.

そこで、本発明は、前記問題を解決するためになされたものであり、仮想環境において、システムがダウンした場合などに、ダンプ情報を出力可能としながら、迅速にシステムの再起動を行うことを課題とする。   Therefore, the present invention has been made to solve the above problem, and it is an object to promptly restart the system while enabling dump information to be output when the system is down in a virtual environment. And

前記課題を解決するために、本発明は、複数の業務アプリケーションが並行して動作する仮想計算機システムであって、前記複数の業務アプリケーションが動作する動作領域と予備領域を有する主記憶装置と補助記憶装置を用いて設定される仮想記憶部を備える記憶手段と、所定の業務アプリケーションについて、それまで使用していた前記動作領域において前記主記憶装置および前記補助記憶装置を用いた仮想記憶部内のダンプデータを保存したまま、前記予備領域で再起動し、前記主記憶装置の管理テーブルの一部を前記ダンプデータの待機のために書き換え、前記補助記憶装置の管理テーブルの一部を前記ダンプデータの待機のために書き換え、前記使用していた動作領域から前記所定の業務アプリケーションで使用した前記主記憶装置および仮想記憶部内のダンプデータを取得し、前記取得ステップの完了後に、前記主記憶装置の管理テーブルの前記ダンプデータの待機のための領域を予備領域に書き換え、前記補助記憶装置の管理テーブルの前記ダンプデータの待機のための領域を予備領域に書き換え、前記使用していた動作領域を新たな予備領域として管理する処理手段を備える。その他の手段については後記する。 In order to solve the above problems, the present invention provides a virtual machine system in which a plurality of business applications operate in parallel, and includes a main storage device and an auxiliary storage having an operation area and a spare area in which the plurality of business applications operate. a storage means comprising a virtual storage unit that is set using the device, for a given business application, dump the data in the virtual storage unit using the main storage device and the auxiliary storage device in the operation area used until then Is stored in the spare area, and a part of the management table of the main storage device is rewritten to wait for the dump data, and a part of the management table of the auxiliary storage device is waited for the dump data. rewriting for said main storage instrumentation that from said operating area used was used in the predetermined business application And acquires the dump data in the virtual storage unit, after completion of the acquisition step, rewrites the area for waiting the dump data management table stored in the main storage in the spare area, wherein the management table of the auxiliary storage device Processing means for rewriting an area for waiting for dump data to a spare area and managing the used operation area as a new spare area is provided. Other means will be described later.

本発明によれば、仮想環境において、システムがダウンした場合などに、ダンプ情報を出力可能としながら、迅速にシステムの再起動を行うことができる。   According to the present invention, when the system is down in a virtual environment, the system can be restarted quickly while dump information can be output.

本実施形態の仮想計算機システムの全体構成図である。1 is an overall configuration diagram of a virtual computer system of an embodiment. 情報処理装置における主記憶装置の論理的な領域を模式的に示す図である。It is a figure which shows typically the logical area | region of the main memory in an information processing apparatus. 主記憶装置におけるハイパバイザの機能構成を示す図である。It is a figure which shows the function structure of the hypervisor in a main memory. 記憶装置割当て設定テーブルの構成を示す図である。It is a figure which shows the structure of a memory | storage device allocation setting table. 補助記憶装置管理テーブルの構成を示す図である。It is a figure which shows the structure of an auxiliary storage device management table. ハイパバイザの起動処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a starting process of a hypervisor. ゲストOSの起動処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a starting process of guest OS. 主記憶装置管理テーブル(ゲストOS起動後)の構成を示す図である。It is a figure which shows the structure of a main memory management table (after guest OS starting). 補助記憶装置管理テーブル(ゲストOS起動後)の構成を示す図である。It is a figure which shows the structure of an auxiliary storage device management table (after guest OS starting). ゲストOSの機能構成を模式的に示す図である。It is a figure which shows the function structure of a guest OS typically. ゲストOSの仮想記憶部上のデータが存在するハードウェア上の位置を示す図である。It is a figure which shows the position on the hardware in which the data on the virtual storage part of guest OS exist. ゲストOSの再起動処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the restart process of guest OS. ゲストOSの領域の再割当て処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the reallocation process of the area of a guest OS. 二重化補助記憶装置の再構成処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a reconfiguration | reconstruction process of a duplication auxiliary storage device. 主記憶装置管理テーブル(ゲストOS再起動後)の構成を示す図である。It is a figure which shows the structure of a main memory management table (after guest OS restart). 補助記憶装置管理テーブル(ゲストOS再起動後)の構成を示す図である。It is a figure which shows the structure of an auxiliary storage device management table (after restarting a guest OS). ダンプ情報の出力処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the output process of dump information. 予備領域の再割当て処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the reallocation process of a spare area. ダンプ待機状態の補助記憶装置の初期化処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the initialization process of the auxiliary storage device of a dump standby state. 主記憶装置管理テーブル(ダンプ情報出力後)の構成を示す図である。It is a figure which shows the structure of a main memory unit management table (after dump information output). 補助記憶装置管理テーブル(ダンプ情報出力後)の構成を示す図である。It is a figure which shows the structure of an auxiliary storage device management table (after dump information output).

以下、本発明を実施するための形態(以下、「実施形態」と称する。)について、図面を参照(言及図以外の図も適宜参照)して詳細に説明する。図1に示すように、本実施形態の仮想計算機システム1は、情報処理装置10と、ストレージ装置45と、外部記録媒体19とを備えて構成される。   DESCRIPTION OF EMBODIMENTS Hereinafter, modes for carrying out the present invention (hereinafter referred to as “embodiments”) will be described in detail with reference to the drawings (refer to drawings other than the referenced drawings as appropriate). As shown in FIG. 1, the virtual computer system 1 of this embodiment includes an information processing device 10, a storage device 45, and an external recording medium 19.

なお、本実施形態において、情報処理装置10としては、例えば、サーバ装置を想定しているが、その他に、パーソナルコンピュータやワークステーションなどの種々の一般的なコンピュータであってもよい。   In the present embodiment, the information processing apparatus 10 is assumed to be a server apparatus, for example, but may be various other general computers such as a personal computer and a workstation.

情報処理装置10は、外部記録媒体19に対してデータの入出力が可能に構成されている。外部記録媒体19としては、例えば、光学式ディスクや磁気ディスク(テープを含む)を適用することができるが、その他に、本発明の趣旨に逸脱しない範囲で、種々の記録媒体を適用することができる。   The information processing apparatus 10 is configured to be able to input and output data with respect to the external recording medium 19. As the external recording medium 19, for example, an optical disk or a magnetic disk (including a tape) can be applied, but various other recording media can be applied without departing from the spirit of the present invention. it can.

また、情報処理装置10は、SAN(Storage Area Network)40を介して、記憶装置であるストレージ装置45と接続され、処理データの書込み及び読出しができるようになっている。なお、情報処理装置10とストレージ装置45との接続には、SAN40以外にも、LAN(Local Area Network)、WAN(Wide Area Network)、専用線又はインターネット等の種々の手段を適用することができる。   The information processing apparatus 10 is connected to a storage apparatus 45, which is a storage apparatus, via a SAN (Storage Area Network) 40 so that processing data can be written and read. In addition to the SAN 40, various means such as a LAN (Local Area Network), a WAN (Wide Area Network), a dedicated line, or the Internet can be applied to the connection between the information processing apparatus 10 and the storage apparatus 45. .

また、ストレージ装置45では、ディスクコントローラ14にディスク15a〜15e(以下、「補助記憶装置」とも称する。)(記憶手段)が接続されている。ここで、ディスク15a〜15eはそれぞれ論理的な格納領域を示すが、これらはHDD(Hard Disk Drive)等の物理的なハードウェアであってもよい。   In the storage device 45, disks 15 a to 15 e (hereinafter also referred to as “auxiliary storage devices”) (storage means) are connected to the disk controller 14. Here, each of the disks 15a to 15e indicates a logical storage area, but these may be physical hardware such as an HDD (Hard Disk Drive).

次に、情報処理装置10の内部構成について説明する。情報処理装置10は、CPU(Central Processing Unit)11(処理手段)、主記憶装置12(記憶手段)、入出力I/F(Interface)部13を備え、これらはバスにより通信可能に接続されている。また、情報処理装置10は、HDD等からなる二次記憶装置35に接続されている。二次記憶装置35は、情報処理装置10の内部にあってもよいし、外部にあってもよい。   Next, the internal configuration of the information processing apparatus 10 will be described. The information processing apparatus 10 includes a CPU (Central Processing Unit) 11 (processing means), a main storage device 12 (storage means), and an input / output I / F (Interface) unit 13, which are communicably connected via a bus. Yes. In addition, the information processing apparatus 10 is connected to a secondary storage device 35 including an HDD or the like. The secondary storage device 35 may be inside the information processing device 10 or outside.

情報処理装置10は、仮想サーバとして機能するように構成されている。本実施形態では、仮想化環境が、仮想化環境処理を行うためのソフトウェアであるハイパバイザ21と、CPU11との協働により実現される例としている。なお、以下において、実際の動作主体はCPU11であるが、説明の都合上、ハイパバイザ21を動作主体として記述する。   The information processing apparatus 10 is configured to function as a virtual server. In this embodiment, the virtual environment is an example realized by the cooperation of the CPU 11 and the hypervisor 21 that is software for performing the virtual environment processing. In the following, although the actual operating subject is the CPU 11, for the convenience of explanation, the hypervisor 21 is described as the operating subject.

ハイパバイザ21によってゲストOS−A20a、ゲストOS−B20bが実行される。そして、ゲストOS−A20a上で所定の業務アプリケーション22aが実行されることで、仮想サーバ30a(30)が実現される。同様に、ゲストOS−B20b上で所定の業務アプリケーション22bが実行されることで、仮想サーバ30b(30)が実現される。   The guest OS-A 20a and guest OS-B 20b are executed by the hypervisor 21. The virtual server 30a (30) is realized by executing a predetermined business application 22a on the guest OS-A 20a. Similarly, a virtual server 30b (30) is realized by executing a predetermined business application 22b on the guest OS-B 20b.

なお、本実施形態では仮想サーバ30を2つとしているが、仮想サーバ30の個数は、ハードウェアやソフトウェアの性能及び業務等の種々の要件により適宜増減させることが可能である。また、仮想サーバ30を実現させるに際し、稼動させるゲストOSの個数は、後述する記憶装置割当て設定テーブル212(図4参照)に基づいて管理されるようになっている。   In the present embodiment, the number of virtual servers 30 is two, but the number of virtual servers 30 can be appropriately increased or decreased according to various requirements such as hardware and software performance and business. Further, when the virtual server 30 is realized, the number of guest OSs to be operated is managed based on a storage device allocation setting table 212 (see FIG. 4) described later.

次に、主記憶装置12の論理的な領域について説明する。図2に示すように、ハイパバイザ21は、起動時に、主記憶装置12の領域上に、ハイパバイザ領域120、ゲストOS−A領域121(動作領域)、ゲストOS−B領域122(動作領域)及び予備領域123を割り当てる。本実施形態の特徴の1つは、主記憶装置12に、予備領域123を設けることである。なお、この予備領域123のサイズは、主記憶装置12に割り当てられたゲストOS用のメモリ領域のうち最大のものと同等以上とするのが好ましい。   Next, a logical area of the main storage device 12 will be described. As shown in FIG. 2, when the hypervisor 21 is started up, the hypervisor area 120, the guest OS-A area 121 (operating area), the guest OS-B area 122 (operating area), and the spare area are placed on the area of the main storage device 12. Area 123 is allocated. One of the features of this embodiment is that a spare area 123 is provided in the main storage device 12. Note that the size of the spare area 123 is preferably equal to or larger than the largest one of the guest OS memory areas allocated to the main storage device 12.

次に、ハイパバイザ21の機能構成について説明する。図3に示すように、ハイパバイザ21は、情報テーブルとして、主記憶装置管理テーブル210、補助記憶装置管理テーブル211及び記憶装置割当て設定テーブル212を有する。また、ハイパバイザ21は、機能部として、主記憶装置管理部214、ゲストOS命令実行部215、ゲストOS命令検知部216及びゲストOS補助記憶装置二重化管理部217(以下、「二重化管理部217」と称する。)を有する。   Next, the functional configuration of the hypervisor 21 will be described. As shown in FIG. 3, the hypervisor 21 includes a main storage device management table 210, an auxiliary storage device management table 211, and a storage device allocation setting table 212 as information tables. The hypervisor 21 includes, as function units, a main storage device management unit 214, a guest OS command execution unit 215, a guest OS command detection unit 216, and a guest OS auxiliary storage device duplication management unit 217 (hereinafter referred to as “duplication management unit 217”). Called).

図4に示すように、記憶装置割当て設定テーブル212は、ハイパバイザ21上で稼動させるゲストOSと、主記憶装置12の割当て量との対応付けを管理するものである。ゲストOS種別2120は、ハイパバイザ21上で稼動させるゲストOSの種別である。主記憶装置割当て量2121は、そのゲストOSに割り当てる主記憶装置12の領域サイズを示す。   As shown in FIG. 4, the storage device allocation setting table 212 manages the association between the guest OS operating on the hypervisor 21 and the allocated amount of the main storage device 12. The guest OS type 2120 is a type of guest OS that runs on the hypervisor 21. The main storage device allocation amount 2121 indicates the area size of the main storage device 12 allocated to the guest OS.

例えば、ゲストOS−Aには、80Kbの主記憶装置12の容量が割り当てられている。二重化正2122及び二重化副2123は、ページング利用エリアを保持する格納先であるストレージ装置45の記憶領域を特定する情報を管理するものである。本実施形態では、ページング利用エリアを冗長化するために、ストレージ装置45に、二重化正2122及び二重化副2123という2つの記憶領域を設けるように構成されており、それぞれ対応する所定の記憶領域(ディスク15a〜15d)が割り当てられている。   For example, the capacity of the main storage device 12 of 80 Kb is allocated to the guest OS-A. The duplexing primary 2122 and the duplexing secondary 2123 manage information for specifying the storage area of the storage apparatus 45 that is a storage destination that holds the paging usage area. In the present embodiment, in order to make the paging use area redundant, the storage apparatus 45 is configured to have two storage areas, ie, a duplex primary 2122 and a duplex secondary 2123, each of which corresponds to a predetermined storage area (disk 15a to 15d) are allocated.

次に、補助記憶装置管理テーブル211について説明する。補助記憶装置管理テーブル211は、ストレージ装置45の各論理領域と、それを使用するゲストOSの対応関係を管理するものである。図5に示すように、補助記憶装置管理テーブル211では、各補助記憶装置が補助記憶装置2110の列に列挙される。そして、各補助記憶装置は、使用ゲストOS2111の情報と、使用状態2112の情報と対応付けられる。   Next, the auxiliary storage device management table 211 will be described. The auxiliary storage device management table 211 manages the correspondence between each logical area of the storage device 45 and the guest OS that uses it. As shown in FIG. 5, in the auxiliary storage device management table 211, each auxiliary storage device is listed in the column of the auxiliary storage device 2110. Each auxiliary storage device is associated with information on the used guest OS 2111 and information on the usage state 2112.

使用ゲストOS2111に入る情報は、記憶装置割当て設定テーブル212(図4参照)のゲストOS種別2120内の情報、ゲストOSの「ダンプ待機」あるいは「なし」のいずれかである。
使用状態2112に入る情報は、「二重化正」、「二重化副」、「ダンプ待機」あるいは「予備」のいずれかである。
The information that enters the guest OS 2111 to be used is information in the guest OS type 2120 of the storage device allocation setting table 212 (see FIG. 4), “Dump standby” or “None” of the guest OS.
The information that enters the usage state 2112 is any one of “Duplexed main”, “Duplexed sub”, “Dump standby”, or “Reserve”.

次に、ハイパバイザ21の起動処理について説明する。なお、本実施形態において、「物理メモリアドレス」とは、主記憶装置12における物理的なメモリのアドレスを意味する。また、「絶対アドレス」とは、主記憶装置12で稼動するゲストOS内のアドレスを意味する。また、「仮想アドレス」とは、ゲストOSでの仮想環境におけるアドレスを意味する。   Next, the activation process of the hypervisor 21 will be described. In the present embodiment, the “physical memory address” means a physical memory address in the main storage device 12. Further, “absolute address” means an address in the guest OS running on the main storage device 12. The “virtual address” means an address in the virtual environment of the guest OS.

図6に示すように、ハイパバイザ21は、自身のプログラムをハイパバイザ用システムディスク16から読み出し、主記憶装置12上に配置する(ステップS100)。その後、ハイパバイザ21は、主記憶装置12の物理メモリアドレスの最下位から最上位まで、ステップS102〜S106の処理を行う(ステップS101〜S107)。   As shown in FIG. 6, the hypervisor 21 reads its own program from the hypervisor system disk 16 and places it on the main storage device 12 (step S100). Thereafter, the hypervisor 21 performs the processing of steps S102 to S106 from the lowest to the highest physical memory address of the main storage device 12 (steps S101 to S107).

ハイパバイザ21は、ハイパバイザ領域120(図2参照)を参照して、ハイパバイザ用に確保した領域であるか否かを判断し(ステップS102)、YesであればステップS103に進み、NoであればステップS105に進む。   The hypervisor 21 refers to the hypervisor area 120 (see FIG. 2) to determine whether the area is reserved for the hypervisor (step S102). If Yes, the process proceeds to step S103. The process proceeds to S105.

ハイパバイザ21は、ステップS103において、割り当てている領域に対応する、主記憶装置管理テーブル210の仮想アドレスの割当て先をハイパバイザとし、ステップS104において、割当て先上の絶対アドレスを下位アドレスから順に設定する。   In step S103, the hypervisor 21 sets the virtual address assignment destination of the main storage management table 210 corresponding to the assigned area as a hypervisor, and in step S104, sets the absolute addresses on the assignment destination in order from the lower address.

また、ハイパバイザ21は、ステップS105において、ハイパバイザ領域として割り当てていない領域の割当て先を予備領域とし、ステップS106において、割当て先上の絶対アドレスを下位アドレスから順に設定する。   In step S105, the hypervisor 21 sets the allocation destination of the area not allocated as the hypervisor area as a spare area, and in step S106, sets the absolute address on the allocation destination in order from the lower address.

次に、ハイパバイザ21がゲストOSを起動する場合の処理について説明する。ここでは、代表してゲストOS−A20aの場合を例にとって説明する。ゲストOS−A20aの起動処理は、外部装置からの入力(指示)や情報処理装置10の管理者による入力(指示)等の契機で開始する。   Next, processing when the hypervisor 21 starts the guest OS will be described. Here, the case of the guest OS-A 20a will be described as an example. The activation process of the guest OS-A 20a starts when triggered by an input (instruction) from an external device or an input (instruction) by an administrator of the information processing apparatus 10.

図7に示すように、ハイパバイザ21は、ゲストOS−A20aの起動時に、まず、記憶装置割当て量を調査する(ステップS200)。この処理では、起動するゲストOSに割り当てる主記憶装置12の領域量と、起動済みの各ゲストOSに割り当てている主記憶装置の領域量との中で、最大の割当て量を求める。   As shown in FIG. 7, when the guest OS-A 20a is started, the hypervisor 21 first checks the storage device allocation amount (step S200). In this process, the maximum allocation amount is obtained among the area amount of the main storage device 12 allocated to the guest OS to be activated and the area amount of the main storage apparatus allocated to each activated guest OS.

次に、ハイパバイザ21は、起動するゲストOSに領域を割り当てる前の予備領域の領域量を調査する(ステップS201)。   Next, the hypervisor 21 investigates the area amount of the spare area before allocating the area to the guest OS to be activated (step S201).

次に、ハイパバイザ21は、ゲストOSを割り当てる領域が予備領域に残っているかを判定し(ステップS202)、YesであればステップS203に進み、Noであれば処理を終了する。つまり、予備領域量から起動するゲストOSへ割り当てる量を引いた領域量が、前記の最大の割当て量より小さい場合(ステップS202No)、ゲストOSの起動は失敗とし、ゲストOS起動処理を終了する。   Next, the hypervisor 21 determines whether an area to which the guest OS is allocated remains in the spare area (step S202). If Yes, the process proceeds to step S203, and if No, the process ends. In other words, if the area amount obtained by subtracting the amount allocated to the guest OS to be activated from the spare area amount is smaller than the maximum allocated amount (No in step S202), the guest OS activation fails and the guest OS activation process ends.

ハイパバイザ21は、起動するゲストOSの割当て量まで、ステップS204〜S208の処理を行う(ステップS203〜S209)。また、ハイパバイザ21は、主記憶装置12の仮想アドレスの最下位から最上位まで、ステップS205〜S207の処理を行う(ステップS204〜S208)。   The hypervisor 21 performs the processing of steps S204 to S208 up to the allocated amount of the guest OS to be activated (steps S203 to S209). Further, the hypervisor 21 performs the processes of steps S205 to S207 from the lowest to the highest virtual address of the main storage device 12 (steps S204 to S208).

ハイパバイザ21は、予備領域であるか否かを判定し(ステップS205)、Yesであれば、割当て先(図8の主記憶装置管理テーブル210の割当て先2101)を起動するゲストOSとし(ステップS206)、割当て先上の絶対アドレス(図8の主記憶装置管理テーブル210の割当て先上の絶対アドレス2102)を設定し(ステップS207)、Noであれば、ステップS206、S207をスキップする。   The hypervisor 21 determines whether or not the area is a spare area (step S205), and if Yes, the hypervisor 21 sets the allocation destination (allocation destination 2101 of the main storage management table 210 in FIG. 8) as a guest OS to be started (step S206). ), An absolute address on the assignment destination (absolute address 2102 on the assignment destination in the main storage management table 210 in FIG. 8) is set (step S207). If No, steps S206 and S207 are skipped.

その後、ハイパバイザ21は、補助記憶装置管理テーブル211(図5参照)を設定する(ステップS210)。つまり、記憶装置割当て設定テーブル212(図4参照)の主記憶装置割当て量2121、二重化正2122、二重化副2123を参照し、補助記憶装置管理テーブル211(図5参照)において、補助記憶装置2110のうち該当する補助記憶装置の使用ゲストOS2111、及び使用状態2112を更新する。   Thereafter, the hypervisor 21 sets the auxiliary storage device management table 211 (see FIG. 5) (step S210). That is, the main storage device allocation amount 2121, the duplex primary 2122, and the duplex secondary 2123 of the storage device allocation setting table 212 (see FIG. 4) are referred to, and the auxiliary storage device 2110 of the auxiliary storage device 2110 is referred to in the auxiliary storage device management table 211 (see FIG. 5). Among them, the used guest OS 2111 and the used state 2112 of the corresponding auxiliary storage device are updated.

図4の例の場合に、ゲストOS−A20a、及びゲストOS−B20bを起動した後の主記憶装置管理テーブル210は、図8に示す通りである。図8に示すように、主記憶装置管理テーブル210は、物理メモリアドレス2100、割当て先2101及び割当て先上の絶対アドレス2102の項目から構成される。   In the example of FIG. 4, the main storage management table 210 after the guest OS-A 20a and the guest OS-B 20b are started is as shown in FIG. As shown in FIG. 8, the main storage device management table 210 includes items of a physical memory address 2100, an assignment destination 2101, and an absolute address 2102 on the assignment destination.

図4の例の場合に、ゲストOS−A20a、及びゲストOS−B20bを起動した後の補助記憶装置管理テーブル211は、図9に示す通りである。図9に示すように、補助記憶装置管理テーブル211は、補助記憶装置2110、使用ゲストOS2111及び使用状態2112の項目から構成される。   In the example of FIG. 4, the auxiliary storage device management table 211 after the guest OS-A 20a and guest OS-B 20b are started is as shown in FIG. As illustrated in FIG. 9, the auxiliary storage device management table 211 includes items of an auxiliary storage device 2110, a used guest OS 2111, and a used state 2112.

次に、ゲストOSの機能構成について、ゲストOS−A20aを例にとって説明する。なお、ゲストOS−A20a以外のゲストOSの機能構成についても同様である。図10に示すように、ゲストOS−A20aは、仮想記憶部20a1をもち、仮想記憶部20a1の内容は、主記憶装置12、又はゲストOS−A20aに割り当てているディスク15a、15bに存在する。   Next, the functional configuration of the guest OS will be described using the guest OS-A 20a as an example. The same applies to the functional configuration of the guest OS other than the guest OS-A 20a. As shown in FIG. 10, the guest OS-A 20a has a virtual storage unit 20a1, and the contents of the virtual storage unit 20a1 exist in the main storage device 12 or the disks 15a and 15b assigned to the guest OS-A 20a.

仮想記憶部20a1の内容が存在する場所は、仮想記憶部20a1の仮想アドレスと存在場所を対応付けるテーブルであるページ変換テーブル20a2により管理する。ゲストOS−A20aは、所定の契機で自システムが使用している主記憶装置12上のゲストOS−Aの領域を予備領域の一部へ切替えて再起動することをハイパバイザ21へ要求することができる。ここで、所定の契機としては、例えば、管理者による手動の指示や、ゲストOS−A20aの異常検知に連動した自動制御などが挙げられる(以下同様)。   The location where the contents of the virtual storage unit 20a1 exist is managed by the page conversion table 20a2, which is a table that associates the virtual address of the virtual storage unit 20a1 with the location. The guest OS-A 20a may request the hypervisor 21 to switch the guest OS-A area on the main storage device 12 used by its own system to a part of the spare area and restart it at a predetermined opportunity. it can. Here, examples of the predetermined opportunity include a manual instruction by an administrator, automatic control linked to abnormality detection of the guest OS-A 20a, and the like (the same applies hereinafter).

領域切替え再起動要求部20a3は、領域を切替えて再起動することをハイパバイザ21へ要求する機能を有する。また、ゲストOS−A20aは、他のゲストOSが領域切替え再起動を行った場合に、所定の契機でそのゲストOSの仮想記憶部20a1の内容を外部記録媒体19に出力することをハイパバイザ21に要求できる。   The area switching restart request unit 20a3 has a function of requesting the hypervisor 21 to switch the area and restart. In addition, the guest OS-A 20a notifies the hypervisor 21 that the contents of the virtual storage unit 20a1 of the guest OS are output to the external recording medium 19 when another guest OS performs area switching restart. Can request.

ダンプ情報出力要求命令発行部20a4は、ゲストOSの仮想記憶部20a1の内容を外部記録媒体19に出力することをハイパバイザ21に要求する機能を有する。   The dump information output request command issuing unit 20a4 has a function of requesting the hypervisor 21 to output the contents of the virtual storage unit 20a1 of the guest OS to the external recording medium 19.

次に、ゲストOS−A20aの仮想記憶部20a1上のデータが存在するハードウェア上の位置について説明する。図11に示すように、ゲストOS−A20aは、ページ変換テーブル20a2を利用して仮想記憶部20a1を実現している。ゲストOS−A20aのデータは、主記憶装置12内のゲストOS−A領域121、及び補助記憶装置(ディスク15a、15b)のページング利用エリア15a1、15b1に存在する。本実施形態のダンプ情報は、ゲストOS−A20aの仮想記憶部20a1の情報全体を指す。   Next, the position on the hardware where the data on the virtual storage unit 20a1 of the guest OS-A 20a exists will be described. As shown in FIG. 11, the guest OS-A 20a implements a virtual storage unit 20a1 using a page conversion table 20a2. The data of the guest OS-A 20a exists in the guest OS-A area 121 in the main storage device 12 and the paging usage areas 15a1 and 15b1 of the auxiliary storage devices (disks 15a and 15b). The dump information of the present embodiment indicates the entire information in the virtual storage unit 20a1 of the guest OS-A 20a.

次に、ゲストOS−A20aの場合を例にとって、ゲストOSの再起動の処理について説明する。図12に示すように、ハイパバイザ21のゲストOS命令検知部216(図3参照)は、ゲストOS−A20aのダンプ情報出力要求命令発行部20a4(図10参照)が発行したダンプ情報出力要求命令(再起動命令)を検知する(ステップF300)。なお、ダンプ情報出力要求命令は、ゲストOS−A20aの外部から発行されたものであってもよい。   Next, the guest OS restart process will be described taking the guest OS-A 20a as an example. As shown in FIG. 12, the guest OS command detection unit 216 (see FIG. 3) of the hypervisor 21 receives the dump information output request command (see FIG. 10) issued by the dump information output request command issue unit 20a4 (see FIG. 10) of the guest OS-A 20a. (Restart command) is detected (step F300). The dump information output request command may be issued from outside the guest OS-A 20a.

続いて、ゲストOS命令実行部215は、ゲストOS−A20aからの命令の実行を停止する(ステップF301)。
その後、ハイパバイザ21は、ゲストOS−A20aに割り当てている主記憶領域の再割当てを行う(ステップF302。詳細は後記)。
Subsequently, the guest OS command execution unit 215 stops executing the command from the guest OS-A 20a (step F301).
Thereafter, the hypervisor 21 reassigns the main storage area assigned to the guest OS-A 20a (step F302, details will be described later).

次に、二重化管理部217は、二重化補助記憶装置を再構成する(ステップF303。詳細は後記)。
その後、ゲストOS命令実行部215は、ゲストOS−A20aからの命令の実行を開始する(ステップF304)。
次に、ハイパバイザ21は、ゲストOS−A20aを起動する(ステップF305)。
Next, the duplex management unit 217 reconfigures the duplex auxiliary storage device (step F303, details will be described later).
Thereafter, the guest OS command execution unit 215 starts executing a command from the guest OS-A 20a (step F304).
Next, the hypervisor 21 activates the guest OS-A 20a (step F305).

次に、前記したステップF302の処理について、詳細に説明する。この処理のポイントは、元々ゲストOS−A20aに割り当てていた領域をダンプ待機用にすることである。   Next, the process of step F302 described above will be described in detail. The point of this process is to make the area originally allocated to the guest OS-A 20a for dump standby.

図13に示すように、主記憶装置管理部214は、主記憶装置12の物理メモリアドレスの最下位から最上位まで、ステップF30201、F30202の処理を行う(ステップF30200〜F302021)。   As illustrated in FIG. 13, the main storage device management unit 214 performs the processes of steps F30201 and F30202 from the lowest to the highest physical memory address of the main storage device 12 (steps F30200 to F302021).

主記憶装置管理部214は、記憶装置割当て設定テーブル212(図4参照)と主記憶装置管理テーブル210(図8参照)を参照し、割当て先2101がゲストOS−A20aであれば(ステップF30201でYes)、その割当て先をゲストOS−A20aのダンプ待機領域とする(ステップF30202)。   The main storage device management unit 214 refers to the storage device allocation setting table 212 (see FIG. 4) and the main storage device management table 210 (see FIG. 8), and if the allocation destination 2101 is the guest OS-A 20a (in step F30201). Yes), the allocation destination is the dump standby area of the guest OS-A 20a (step F30202).

次に、予備領域にゲストOS−A20aを割り当てる処理を行う。具体的には、主記憶装置管理部214は、ゲストOS−A20aの領域がすべて割り当てられるまでの間、主記憶装置12の物理メモリアドレスの最下位から最上位まで、ステップF30205〜F30207の処理を行う(ステップF30203〜F30209)。   Next, a process of assigning the guest OS-A 20a to the spare area is performed. Specifically, the main storage device management unit 214 performs the processing of steps F30205 to F30207 from the lowest physical address to the highest physical memory address of the main storage device 12 until all the guest OS-A 20a areas are allocated. (Steps F30203 to F30209)

主記憶装置管理部214は、記憶装置割当て設定テーブル212(図4参照)と主記憶装置管理テーブル210(図8参照)を参照し、割当て先2101が予備領域であれば(ステップF30205でYes)、その割当て先をゲストOS−A20aとし(ステップF30206)、割当て先上の絶対アドレスを設定する(ステップF30207)。   The main storage device management unit 214 refers to the storage device allocation setting table 212 (see FIG. 4) and the main storage device management table 210 (see FIG. 8), and if the allocation destination 2101 is a spare area (Yes in step F30205). The assignment destination is the guest OS-A 20a (step F30206), and an absolute address on the assignment destination is set (step F30207).

次に、前記したステップF303の処理について、詳細に説明する。この処理のポイントは、ゲストOS−A20a用に二重化していた一方をダンプ待機状態にし、待機状態の補助記憶装置を使用してゲストOS−A20a用に二重化することである。   Next, the process of step F303 described above will be described in detail. The point of this process is to make one duplexed for the guest OS-A 20a into the dump standby state and duplex it for the guest OS-A 20a using the auxiliary storage device in the standby state.

図14に示すように、二重化管理部217は、補助記憶装置管理テーブル211(図5参照)の最初のエントリ(行)から最後のエントリまで、ステップF30301〜F30306の処理を行う(ステップF30300〜F30311)。   As illustrated in FIG. 14, the duplex management unit 217 performs the processing of steps F30301 to F30306 from the first entry (row) to the last entry of the auxiliary storage device management table 211 (see FIG. 5) (steps F30300 to F30311). ).

二重化管理部217は、使用ゲストOSがゲストOS−A20aであり(ステップF30301でYes)、かつ、使用状態が二重化正であれば(ステップF30302でYes)、使用ゲストOS2111をゲストOS−A20aのダンプ待機状態とし(ステップF30303)、使用状態2112をダンプ待機とする(ステップF30304)。   If the guest OS used is the guest OS-A 20a (Yes in step F30301) and the use state is double-corrected (Yes in step F30302), the duplex management unit 217 dumps the guest guest OS 2111 to the guest OS-A 20a. The standby state is set (step F30303), and the use state 2112 is set to dump standby (step F30304).

二重化管理部217は、使用ゲストOSがゲストOS−A20aであり(ステップF30301でYes)、かつ、使用状態が二重化正でなければ(ステップF30302でNo)、二重化副と判断し、使用ゲストOS2111をゲストOS−A20aとし(ステップF30305)、使用状態を二重化正とする(ステップF30306)。   If the guest OS used is the guest OS-A 20a (Yes in step F30301) and the use state is not duplex correct (No in step F30302), the duplex management unit 217 determines that the guest OS 2111 is used as a duplicate sub. The guest OS-A 20a is set (step F30305), and the use state is doubled (step F30306).

二重化管理部217は、使用ゲストOSがゲストOS−A20aでない場合(ステップF30301でNo)、使用ゲストOSが「なし」であり、かつ、まだ待機状態の補助記憶装置をゲストOS−A20aに割り当てていない場合(ステップF30307でYes)、元々ゲストOS−A20aに割り当てていた補助記憶装置とは別の二重化用の補助記憶装置を割り当てるため、使用ゲストOS2111をゲストOS−A20aとし(ステップF30308)、使用状態2112を二重化正とする(ステップF30309)。   When the guest OS used is not the guest OS-A 20a (No in step F30301), the duplex management unit 217 assigns a guest storage device that is “none” to be used and is still in a standby state to the guest OS-A 20a. If not (Yes in Step F30307), the guest OS-A 20a is used as the guest OS-A 20a (Step F30308) and used because a redundant auxiliary storage device different from the auxiliary storage device originally assigned to the guest OS-A 20a is assigned. The state 2112 is set to double positive (step F30309).

二重化管理部217は、ステップF30307でNoの場合、次のエントリの判定に進む。
二重化管理部217は、ステップF30311の後、補助記憶装置の二重化の再構成をストレージ装置45のディスクコントローラ14に要求する(ステップF30312)。
The duplexing management unit 217 proceeds to the determination of the next entry if No in Step F30307.
After step F30311, the duplexing management unit 217 requests the disk controller 14 of the storage apparatus 45 to reconfigure the auxiliary storage device (step F30312).

ゲストOS−A20aの再起動後の主記憶装置管理テーブル210は、図15に示す通りである。図8の主記憶装置管理テーブル210と比較して、4、5行目が「ゲストOS−A」から「ゲストOS−Aのダンプ待機」に変わり、下から3、4行目が「予備領域」から「ゲストOS−A」に変わっていることがわかる。   The main storage device management table 210 after the guest OS-A 20a is restarted is as shown in FIG. Compared with the main storage management table 210 of FIG. 8, the fourth and fifth lines change from “Guest OS-A” to “Guest OS-A dump standby”, and the third and fourth lines from the bottom are “Reserve Area”. It can be seen that “Guest OS-A” has changed.

ゲストOS−A20aの再起動後の補助記憶装置管理テーブル211は、図16に示す通りである。図9の補助記憶装置管理テーブル211と比較して、「ゲストOS−A」の「二重化正」が「ディスク15a」から「ディスク15b」に変わり、「ゲストOS−A」の「二重化副」が「ディスク15b」から「ディスク15e」に変わり、「ディスク15a」の使用ゲストOS2111が「ゲストOS−A」から「ゲストOS−Aのダンプ待機」に変わっていることがわかる。   The auxiliary storage device management table 211 after the guest OS-A 20a is restarted is as shown in FIG. Compared with the auxiliary storage device management table 211 of FIG. 9, the “duplexing primary” of “guest OS-A” is changed from “disk 15a” to “disk 15b”, and “duplexing secondary” of “guest OS-A” is changed. It can be seen that “disk 15b” is changed to “disk 15e”, and the guest OS 2111 used for “disk 15a” is changed from “guest OS-A” to “guest OS-A dump standby”.

次に、ダンプ情報出力の処理について説明する。ゲストOS20a、20bや、ユーザは、ゲストOS−A20aのダンプ情報出力をハイパバイザ21に要求できる。   Next, dump information output processing will be described. The guest OSs 20a and 20b and the user can request the hypervisor 21 to output dump information of the guest OS-A 20a.

ここでは、ゲストOS−B20bのダンプ情報出力要求命令発行部がダンプ情報出力要求を出してから、ハイパバイザ21が主記憶装置管理テーブル210、及び補助記憶装置管理テーブル211を更新する処理について説明する。   Here, a process in which the hypervisor 21 updates the main storage device management table 210 and the auxiliary storage device management table 211 after the dump information output request command issuing unit of the guest OS-B 20b issues a dump information output request will be described.

図17に示すように、ハイパバイザ21のゲストOS命令検知部216がゲストOS−B20bからのダンプ情報出力要求命令を検知するすると、ハイパバイザ21は、ダンプ情報出力用OSシステムディスク18からダンプ情報出力プログラム(ダンプ情報出力用OS)を読み込み、主記憶装置管理テーブル210の割当て先2101がゲストOS−A20aのダンプ待機(図15参照)となっている仮想アドレスにロードし、ダンプ情報出力プログラムを起動する(ステップF400)。ダンプ情報出力プログラムは、ページ変換テーブル20a2(図10参照)を参照し、主記憶装置12やページング利用エリア15a1(図11参照)にある元々のゲストOS−A20aのダンプ情報を外部記録媒体19に出力する。   As shown in FIG. 17, when the guest OS instruction detection unit 216 of the hypervisor 21 detects a dump information output request instruction from the guest OS-B 20b, the hypervisor 21 reads the dump information output program from the dump system information output OS system disk 18. (Dump information output OS) is read, the allocation destination 2101 of the main storage management table 210 is loaded to the virtual address that is in the dump standby state of the guest OS-A 20a (see FIG. 15), and the dump information output program is started. (Step F400). The dump information output program refers to the page conversion table 20a2 (see FIG. 10), and stores the dump information of the original guest OS-A 20a in the main storage device 12 and the paging usage area 15a1 (see FIG. 11) in the external recording medium 19. Output.

ダンプ情報出力が完了すると、ダンプ情報出力プログラムがダンプ情報出力完了命令を発行し、ハイパバイザ21のゲストOS命令検知部216がこのダンプ情報出力完了命令を検知する(ステップF401)。
その後、予備領域の再割当てを行う(ステップF402。詳細は後記)。
続いて、ダンプ待機状態の補助記憶装置を初期化する(ステップF403。詳細は後記)。
When the dump information output is completed, the dump information output program issues a dump information output completion command, and the guest OS command detection unit 216 of the hypervisor 21 detects this dump information output completion command (step F401).
Thereafter, the spare area is reallocated (step F402, details will be described later).
Subsequently, the auxiliary storage device in the dump standby state is initialized (step F403, details will be described later).

次に、前記したステップF402の処理について、詳細に説明する。図18に示すように、主記憶装置管理部214は、主記憶装置12の物理メモリアドレスの最下位から最上位まで、ステップF40201〜F40203の処理を行う(ステップF40200〜F40204)。   Next, the process of step F402 described above will be described in detail. As shown in FIG. 18, the main storage device management unit 214 performs the processing of steps F40201 to F40203 from the lowest to the highest physical memory address of the main storage device 12 (steps F40200 to F40204).

主記憶装置管理部214は、主記憶装置管理テーブル210の割当て先2101がゲストOS−A20aのダンプ待機、又は予備領域である場合(ステップF40201でYes)、割当て先2101を予備領域とし(ステップF40202)、割当て先上の絶対アドレス2102を0から順に割り当てる(設定する)(ステップF40203)。   When the allocation destination 2101 of the main storage management table 210 is a dump standby of the guest OS-A 20a or a spare area (Yes in step F40201), the main storage management unit 214 sets the allocation destination 2101 as a spare area (step F40202). ), Assign (set) the absolute addresses 2102 on the assignment destination sequentially from 0 (step F40203).

次に、前記したステップF403の処理について、詳細に説明する。図19に示すように、二重化管理部217は、補助記憶装置管理テーブル211(図16参照)の最初のエントリ(行)から最後のエントリまで、ステップF40301〜F40303の処理を行う(ステップF40300〜F40304)。   Next, the process of step F403 described above will be described in detail. As illustrated in FIG. 19, the duplexing management unit 217 performs the processing of steps F40301 to F40303 from the first entry (row) to the last entry of the auxiliary storage device management table 211 (see FIG. 16) (steps F40300 to F40304). ).

二重化管理部217は、該当エントリの補助記憶装置管理テーブル211の使用ゲストOS2111がゲストOS−A20aのダンプ待機である場合(ステップF40301でYes)、使用ゲストOS2111を「なし」とし(ステップF40302)、使用状態2112を予備とする(ステップF40303)。   When the used guest OS 2111 in the auxiliary storage device management table 211 of the corresponding entry is in the dump standby state of the guest OS-A 20a (Yes in Step F40301), the duplexing management unit 217 sets the used guest OS 2111 to “None” (Step F40302). The use state 2112 is reserved (step F40303).

ステップF40304の後、二重化管理部217は、補助記憶装置の再構成をストレージ装置45のディスクコントローラ14に要求する(ステップF40305)。   After step F40304, the duplex management unit 217 requests the disk controller 14 of the storage apparatus 45 to reconfigure the auxiliary storage device (step F40305).

ダンプ情報出力後(図17の処理後)の主記憶装置管理テーブル210は、図20に示す通りである。図15の主記憶装置管理テーブル210と比較して、4、5行目が「ゲストOS−Aのダンプ待機」から「予備領域」に変わっていることがわかる。   The main storage device management table 210 after dump information output (after processing in FIG. 17) is as shown in FIG. Compared to the main storage management table 210 of FIG. 15, it can be seen that the fourth and fifth lines have changed from “guest OS-A dump standby” to “reserve area”.

ダンプ情報出力後(図17の処理後)の補助記憶装置管理テーブル211は、図21に示す通りである。図16の補助記憶装置管理テーブル211と比較して、「ディスク15a」について、使用ゲストOS2111が「ゲストOS−Aのダンプ待機」から「なし」に変わり、使用状態2112が「ダンプ待機」から「予備」に変わっていることがわかる。   The auxiliary storage device management table 211 after dump information output (after the processing in FIG. 17) is as shown in FIG. Compared to the auxiliary storage device management table 211 of FIG. 16, with respect to “disk 15a”, the used guest OS 2111 changes from “guest OS-A dump standby” to “none”, and the usage state 2112 changes from “dump standby” to “ It turns out that it has changed to "Reserve".

このようにして、本実施形態の仮想計算機システム1によれば、仮想環境において、システム(ゲストOS)がダウンした場合などに、ダンプ情報を出力可能としながら、迅速にシステム(ゲストOS)の再起動を行うことができる。   As described above, according to the virtual computer system 1 of the present embodiment, when the system (guest OS) goes down in the virtual environment, the dump information can be output, and the system (guest OS) can be quickly restored. You can start up.

つまり、具体的な動作としては、仮想環境においてハイパバイザ21が、ゲストOSに割り当てる主記憶装置12の領域とは別に主記憶装置12内に予備領域を設け、ゲストOSのページング利用エリアを保持する補助記憶装置を二重化し、さらに予備の補助記憶装置を用意する。   In other words, as a specific operation, in the virtual environment, the hypervisor 21 provides a spare area in the main storage device 12 separately from the area of the main storage device 12 allocated to the guest OS, and holds the paging use area of the guest OS. The storage device is duplicated and a spare auxiliary storage device is prepared.

その後、所定の契機で、それまでゲストOSに割り当てていた主記憶装置12上の領域を予備領域内に割り当て直し、ゲストOSのページング利用エリアを保持する補助記憶装置の一方を切り離し、もう一方を予備の補助記憶装置と二重化した後、ゲストOSを再起動する。   After that, at a predetermined opportunity, the area on the main storage device 12 that has been allocated to the guest OS is reassigned to the spare area, one of the auxiliary storage devices holding the paging area of the guest OS is disconnected, and the other is After duplication with the spare auxiliary storage device, the guest OS is restarted.

また、ゲストOSの再起動以降、別の所定の契機で元々ゲストOSが使用していた主記憶装置12上の領域、及びゲストOSの再起動時に切り離した補助記憶装置を使用してダンプ情報を外部媒体に出力する。   In addition, after restarting the guest OS, dump information is stored using the area on the main storage device 12 that was originally used by the guest OS at another predetermined timing and the auxiliary storage device that was disconnected when the guest OS was restarted. Output to external media.

さらに、ダンプ情報の出力後は、元々ゲストOSが使用していた領域とゲストOSに割り当てなかった予備領域を、予備領域として再割当てし、ゲストOSの再起動時に切り離した補助記憶装置を予備の補助記憶装置することで、次のゲストOSの再起動契機に備えることができる。   Furthermore, after the dump information is output, the area originally used by the guest OS and the spare area that was not allocated to the guest OS are reassigned as spare areas, and the auxiliary storage device that is disconnected when the guest OS is restarted is reserved. By using the auxiliary storage device, it is possible to prepare for the next guest OS restart opportunity.

また、ゲストOSの再起動の処理と、ダンプ情報の出力の処理とを並行して実行することで、効率的なシステム運用を図ることができる。   Also, efficient system operation can be achieved by executing the restart processing of the guest OS and the output processing of dump information in parallel.

また、予備領域のサイズが複数の業務アプリケーションそれぞれが動作する各動作領域のうちの最大の動作領域のサイズ以上であることで、いずれの業務アプリケーションがダウンした場合でも、その業務アプリケーションを予備領域で再起動することができる。   In addition, because the size of the spare area is equal to or larger than the maximum of the operating areas in which each business application operates, even if any business application goes down, the business application can be stored in the spare area. Can be restarted.

また、主記憶装置12内に予備領域を1つ用意するだけなので、物理的に必要なリソースが少なくて済む。   Further, since only one spare area is prepared in the main storage device 12, physically required resources can be reduced.

なお、仮想計算機システム1を構成するコンピュータに実行させるためのプログラムを作成し、コンピュータにインストールすれば、コンピュータは、そのプログラムに基づいた各機能を実現することができる。   Note that if a program to be executed by a computer constituting the virtual machine system 1 is created and installed in the computer, the computer can realize each function based on the program.

以上、本発明の実施形態について説明したが、本発明はこれに限定されるものではなく、その趣旨を変えない範囲で実施することができる。例えば、ハードウェア、ソフトウェアの具体的な構成について、本発明の主旨を逸脱しない範囲で適宜変更が可能である。   As mentioned above, although embodiment of this invention was described, this invention is not limited to this, It can implement in the range which does not change the meaning. For example, specific configurations of hardware and software can be changed as appropriate without departing from the spirit of the present invention.

1 仮想計算機システム
10 情報処理装置
11 CPU
12 主記憶装置
13 入出力I/F部
14 ディスクコントローラ
15a、15b ディスク
15a1 ページング利用エリア
15b1 ページング利用エリア
16 ハイパバイザ用システムディスク
17a、17b ゲストOS用システムディスク
18 ダンプ情報出力用OSシステムディスク
19 外部記録媒体
20a ゲストOS−A
20b ゲストOS−B
20a1 仮想記憶部
20a2 ページ変換テーブル
20a3 領域切替え再起動要求部
20a4 ダンプ情報出力要求命令発行部
21 ハイパバイザ
22a、22b 業務アプリケーション
30a、30b 仮想サーバ
35 二次記憶装置
40 SAN
120 ハイパバイザ領域
121 ゲストOS−A領域
122 ゲストOS−B領域
123 予備領域
210 主記憶装置管理テーブル
211 補助記憶装置管理テーブル
212 記憶装置割当て設定テーブル
214 主記憶装置管理部
215 ゲストOS命令実行部
216 ゲストOS命令検知部
217 ゲストOS補助記憶装置二重化管理部
2100 物理メモリアドレス
2101 割当て先
2102 割当て先上の絶対アドレス
2110 補助記憶装置
2111 使用ゲストOS
2112 使用状態
2120 ゲストOS種別
2121 主記憶装置割当て量
2122 二重化正
2123 二重化副
DESCRIPTION OF SYMBOLS 1 Virtual computer system 10 Information processing apparatus 11 CPU
12 Main storage device 13 Input / output I / F unit 14 Disk controller 15a, 15b Disk 15a1 Paging usage area 15b1 Paging usage area 16 System disk for hypervisor 17a, 17b System disk for guest OS 18 OS system disk for dump information output 19 External recording Medium 20a Guest OS-A
20b Guest OS-B
20a1 Virtual storage unit 20a2 Page conversion table 20a3 Area switching restart request unit 20a4 Dump information output request command issuing unit 21 Hypervisor 22a, 22b Business application 30a, 30b Virtual server 35 Secondary storage device 40 SAN
120 Hypervisor area 121 Guest OS-A area 122 Guest OS-B area 123 Spare area 210 Main storage device management table 211 Auxiliary storage device management table 212 Storage device allocation setting table 214 Main storage device management unit 215 Guest OS command execution unit 216 Guest OS command detection unit 217 Guest OS auxiliary storage device duplication management unit 2100 Physical memory address 2101 Allocation destination 2102 Absolute address on allocation destination 2110 Auxiliary storage device 2111 Used guest OS
2112 Usage status 2120 Guest OS type 2121 Main storage device allocation 2122 Duplexed primary 2123 Duplexed secondary

Claims (5)

複数の業務アプリケーションが並行して動作する仮想計算機システムにおける記憶手段の管理方法であって、
前記記憶手段は、主記憶装置および補助記憶装置を用いた仮想記憶部を有しており、前記主記憶装置は、前記複数の業務アプリケーションが動作する動作領域と、予備領域と、を備えており、
前記仮想計算機システムの処理手段は、
所定の業務アプリケーションについて、それまで使用していた前記動作領域において、前記主記憶装置および前記補助記憶装置を用いた仮想記憶部内のダンプデータを保存したまま、前記予備領域で再起動する再起動ステップと、
前記主記憶装置の管理テーブルの一部を前記ダンプデータの待機のために書き換え、前記補助記憶装置の管理テーブルの一部を前記ダンプデータの待機のために書き換え、前記使用していた動作領域から前記所定の業務アプリケーションで使用した前記主記憶装置および仮想記憶部内のダンプデータを取得する取得ステップと、
前記取得ステップの完了後に、前記主記憶装置の管理テーブルの前記ダンプデータの待機のための領域を予備領域に書き換え、前記補助記憶装置の管理テーブルの前記ダンプデータの待機のための領域を予備領域に書き換え、前記使用していた動作領域を新たな予備領域として管理する管理ステップと、
を実行することを特徴とする記憶手段の管理方法。
A management method of storage means in a virtual machine system in which a plurality of business applications operate in parallel,
The storage means includes a virtual storage unit using a main storage device and an auxiliary storage device, and the main storage device includes an operation area in which the plurality of business applications operate and a spare area. ,
The processing means of the virtual machine system is:
A restarting step for restarting in the spare area while saving the dump data in the virtual storage unit using the main storage device and the auxiliary storage device in the operation area used so far for a predetermined business application When,
A part of the management table of the main storage device is rewritten to wait for the dump data, a part of the management table of the auxiliary storage device is rewritten to wait for the dump data, and the operation area used An acquisition step of acquiring dump data in the main storage device and virtual storage unit used in the predetermined business application;
After completion of the obtaining step, the area for waiting for the dump data in the management table of the main storage device is rewritten to a spare area, and the area for waiting for the dump data in the management table of the auxiliary storage device is reserved. rewriting, and management step of managing the operating region that has been the use as a new spare area,
The management method of the memory | storage means characterized by performing these.
前記処理手段は、
前記再起動ステップと、前記取得ステップとを、並行して実行する
ことを特徴とする請求項1に記載の記憶手段の管理方法。
The processing means includes
The storage unit management method according to claim 1, wherein the restarting step and the obtaining step are executed in parallel.
前記予備領域のサイズは、前記複数の業務アプリケーションそれぞれが動作する各動作領域のうちの最大の動作領域のサイズ以上である
ことを特徴とする請求項1または請求項2に記載の記憶手段の管理方法。
The storage unit management according to claim 1 or 2, wherein the size of the spare area is equal to or larger than a size of a maximum operation area of each operation area in which each of the plurality of business applications operates. Method.
複数の業務アプリケーションが並行して動作する仮想計算機システムであって、
前記複数の業務アプリケーションが動作する動作領域と予備領域を有する主記憶装置と補助記憶装置を用いて設定される仮想記憶部を備える記憶手段と、
所定の業務アプリケーションについて、それまで使用していた前記動作領域の前記主記憶装置および前記補助記憶装置を用いた仮想記憶部内のダンプデータを保存したまま、前記予備領域で再起動し、
前記主記憶装置の管理テーブルの一部を前記ダンプデータの待機のために書き換え、前記補助記憶装置の管理テーブルの一部を前記ダンプデータの待機のために書き換え、前記使用していた動作領域から前記所定の業務アプリケーションで使用した前記主記憶装置および仮想記憶部内のダンプデータを取得し、
前記取得ステップの完了後に、前記主記憶装置の管理テーブルの前記ダンプデータの待機のための領域を予備領域に書き換え、前記補助記憶装置の管理テーブルの前記ダンプデータの待機のための領域を予備領域に書き換え、前記使用していた動作領域を新たな予備領域として管理する処理手段と、
を備えることを特徴とする仮想計算機システム。
A virtual machine system in which multiple business applications operate in parallel,
A storage unit including a virtual storage unit set using a main storage device and an auxiliary storage device having an operation area and a spare area in which the plurality of business applications operate;
For a given business application, so far while preserving the dump data in a virtual storage unit using the main storage device and the auxiliary storage device of the operation area used to restart in the spare area,
A part of the management table of the main storage device is rewritten to wait for the dump data, a part of the management table of the auxiliary storage device is rewritten to wait for the dump data, and the operation area used Obtain dump data in the main storage device and virtual storage unit used in the predetermined business application,
After completion of the obtaining step, the area for waiting for the dump data in the management table of the main storage device is rewritten to a spare area, and the area for waiting for the dump data in the management table of the auxiliary storage device is reserved. processing means for rewriting, manages the operation area used as a new spare area,
A virtual computer system comprising:
複数の業務アプリケーションが並行して動作する動作領域と予備領域を有する主記憶装置と補助記憶装置を用いて設定される仮想記憶部を備える記憶手段を有するコンピュータに、
所定の業務アプリケーションについて、それまで使用していた前記動作領域において、前記主記憶装置および前記補助記憶装置を用いた仮想記憶部内のダンプデータを保存したまま、前記予備領域で再起動する再起動ステップと、
前記主記憶装置の管理テーブルの一部を前記ダンプデータの待機のために書き換え、前記補助記憶装置の管理テーブルの一部を前記ダンプデータの待機のために書き換え、前記使用していた動作領域から前記所定の業務アプリケーションで使用した前記主記憶装置および仮想記憶部内のダンプデータを取得する取得ステップと、
前記取得ステップの完了後に、前記主記憶装置の管理テーブルの前記ダンプデータの待機のための領域を予備領域に書き換え、前記補助記憶装置の管理テーブルの前記ダンプデータの待機のための領域を予備領域に書き換え、前記使用していた動作領域を新たな予備領域として管理する管理ステップと、
を実行させるためのプログラム。
In a computer having a storage means having a virtual storage unit set using a main storage device and an auxiliary storage device having an operation area and a spare area in which a plurality of business applications operate in parallel,
For a given business application, in the operation area used until then, while preserving the dump data in a virtual storage unit using the main storage device and the auxiliary storage device, restart step of restarting in the reserved area When,
A part of the management table of the main storage device is rewritten to wait for the dump data, a part of the management table of the auxiliary storage device is rewritten to wait for the dump data, and the operation area used An acquisition step of acquiring dump data in the main storage device and virtual storage unit used in the predetermined business application;
After completion of the obtaining step, the area for waiting for the dump data in the management table of the main storage device is rewritten to a spare area, and the area for waiting for the dump data in the management table of the auxiliary storage device is reserved. rewriting, and management step of managing the operating region that has been the use as a new spare area,
A program for running
JP2010098035A 2010-04-21 2010-04-21 Storage means management method, virtual computer system, and program Expired - Fee Related JP5444104B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010098035A JP5444104B2 (en) 2010-04-21 2010-04-21 Storage means management method, virtual computer system, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010098035A JP5444104B2 (en) 2010-04-21 2010-04-21 Storage means management method, virtual computer system, and program

Publications (2)

Publication Number Publication Date
JP2011227766A JP2011227766A (en) 2011-11-10
JP5444104B2 true JP5444104B2 (en) 2014-03-19

Family

ID=45043023

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010098035A Expired - Fee Related JP5444104B2 (en) 2010-04-21 2010-04-21 Storage means management method, virtual computer system, and program

Country Status (1)

Country Link
JP (1) JP5444104B2 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5982903B2 (en) * 2012-03-15 2016-08-31 オムロン株式会社 Information processing device
WO2013150634A1 (en) * 2012-04-05 2013-10-10 株式会社日立製作所 Computer system, computer, and program
JP6083136B2 (en) * 2012-06-22 2017-02-22 富士通株式会社 Information processing apparatus having memory dump function, memory dump method, and memory dump program
JP6079777B2 (en) * 2012-06-27 2017-02-15 富士通株式会社 Management device, data acquisition method, and data acquisition program
JP5949540B2 (en) * 2012-12-27 2016-07-06 富士通株式会社 Information processing apparatus and stored information analysis method
US9503268B2 (en) * 2013-01-22 2016-11-22 Amazon Technologies, Inc. Securing results of privileged computing operations
WO2015011749A1 (en) * 2013-07-22 2015-01-29 株式会社日立製作所 Storage system and fault management method for storage system
JP6256582B2 (en) * 2016-11-30 2018-01-10 富士通株式会社 Information processing apparatus having memory dump function

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000339198A (en) * 1999-05-25 2000-12-08 Nec Corp Virtual memory dump sampling system and its method
JP2001331351A (en) * 2000-05-18 2001-11-30 Hitachi Ltd Computer system, its fault recovery method and dump acquisition method
JP2007133544A (en) * 2005-11-09 2007-05-31 Hitachi Ltd Failure information analysis method and its implementation device
WO2008114395A1 (en) * 2007-03-19 2008-09-25 Fujitsu Limited Virtual computer dump sampling program, damp sampling system, and dump sampling method

Also Published As

Publication number Publication date
JP2011227766A (en) 2011-11-10

Similar Documents

Publication Publication Date Title
JP5444104B2 (en) Storage means management method, virtual computer system, and program
US10339047B2 (en) Allocating and configuring persistent memory
JP5840548B2 (en) Method and apparatus for improving resource utilization efficiency in a data center
JP5600361B2 (en) Hypervisor-based server duplication system, method thereof, and recording medium on which server duplication computer program is recorded
US9785381B2 (en) Computer system and control method for the same
US8122212B2 (en) Method and apparatus for logical volume management for virtual machine environment
US7877358B2 (en) Replacing system hardware
US20160266923A1 (en) Information processing system and method for controlling information processing system
JP2020526843A (en) Methods for dirty page tracking and full memory mirroring redundancy in fault-tolerant servers
JP2016508647A (en) Method and system for supporting resource separation in a multi-core architecture
JP2008293245A (en) Failover method, computer system, management server, and setting method for stand-by server
JP2007140728A (en) Storage device system and storage control method
US20130254500A1 (en) Storage apparatus, computer system, and control method for storage apparatus
US20150293719A1 (en) Storage Space Processing Method and Apparatus, and Non-Volatile Computer Readable Storage Medium
WO2014108933A1 (en) Resource management system and resource management method of a computer system
JP2010257274A (en) Storage management system and storage management method in virtualization environment
JP2019191951A (en) Information processing system and volume allocation method
JP2013508839A (en) Dealing with node failures
JP2007133544A (en) Failure information analysis method and its implementation device
JP6028415B2 (en) Data migration control device, method and system for virtual server environment
WO2015132941A1 (en) Computer
JP2007323657A (en) Method and system for storing transient state information, and computer program
JP2021026375A (en) Storage system
JP2008165781A (en) Method, system and program for failover of computer device assigned to storage volume of storage area network (san)
JP6089427B2 (en) Fault-tolerant server, defragmentation method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120301

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130619

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130625

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130826

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130917

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131114

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20131203

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131220

R150 Certificate of patent or registration of utility model

Ref document number: 5444104

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees