JP5699886B2 - Virtual computer control device and virtual computer control program - Google Patents

Virtual computer control device and virtual computer control program Download PDF

Info

Publication number
JP5699886B2
JP5699886B2 JP2011214428A JP2011214428A JP5699886B2 JP 5699886 B2 JP5699886 B2 JP 5699886B2 JP 2011214428 A JP2011214428 A JP 2011214428A JP 2011214428 A JP2011214428 A JP 2011214428A JP 5699886 B2 JP5699886 B2 JP 5699886B2
Authority
JP
Japan
Prior art keywords
removal
guest
storage device
time
command
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
JP2011214428A
Other languages
Japanese (ja)
Other versions
JP2013073582A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2011214428A priority Critical patent/JP5699886B2/en
Publication of JP2013073582A publication Critical patent/JP2013073582A/en
Application granted granted Critical
Publication of JP5699886B2 publication Critical patent/JP5699886B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は,仮想計算機システムにおいて,仮想計算機と記憶装置との取り外しを制御する仮想計算機制御装置および仮想計算機制御プログラムに関するものである。   The present invention relates to a virtual machine control device and a virtual machine control program for controlling removal of a virtual machine and a storage device in a virtual machine system.

仮想計算機システムにおいて,各仮想計算機と記憶装置等の各物理資源との間の論理的な取り付け,取り外しを行う技術がある。   In a virtual machine system, there is a technique for performing logical attachment and removal between each virtual machine and each physical resource such as a storage device.

仮想計算機システムにおいて,ホストOS(Operating System)の操作者は,ホストOSが持つ取り付け機能,取り外し機能を利用して,仮想計算機からの物理資源に対するアクセスを管理する。取り付け機能は,仮想計算機から物理資源へのアクセスを可能にする機能である。取り外し機能は,仮想計算機から物理資源へのアクセスを不可能にする機能である。取り付け機能や取り外し機能では,ホストOSの要求を受けた仮想計算機システムのチャネル制御機構が制御表を更新することにより,仮想計算機と物理資源との論理的な取り付け,取り外しが行われる。取り付け機能や取り外し機能は,仮想計算機の動作中でも実行できる。   In a virtual machine system, an operator of a host OS (Operating System) manages access to physical resources from the virtual machine by using an attachment function and a removal function of the host OS. The attachment function is a function that enables access to a physical resource from a virtual machine. The removal function is a function that makes it impossible to access physical resources from a virtual machine. In the attachment function and the removal function, the channel control mechanism of the virtual machine system that has received a request from the host OS updates the control table, whereby the virtual machine and the physical resource are logically attached and removed. The attachment and removal functions can be executed while the virtual machine is running.

例えば,仮想計算機システムにおいて,ある仮想計算機Aがアクセスできる記憶装置Cを取り外し,取り外した記憶装置Cを他の仮想計算機Bに取り付けることにより,1つの記憶装置Cを2つの仮想計算機A,Bで排他して利用できる。仮想計算機から記憶装置への実際のアクセスは,仮想計算機がIO(Input Output)命令を発行することにより行われる。   For example, in a virtual computer system, a storage device C that can be accessed by a certain virtual computer A is removed, and the removed storage device C is attached to another virtual computer B, so that one storage device C is connected to two virtual computers A and B. Can be used exclusively. The actual access from the virtual machine to the storage device is performed by the virtual machine issuing an IO (Input Output) command.

なお,ホスト計算機と論理ディスクとの取り外しが選択された際に,該ホスト計算機によるジョブの実行終了を確認後に,論理ディスクの取り外しを行う技術が知られている。また,ゲストオペレーティングシステムへのデバイス割当情報を,コンソール等により更新することで,仮想計算機システムの構成を動的に変更する技術が知られている。   A technique is known in which when a removal of a host computer and a logical disk is selected, the logical disk is removed after confirming the completion of job execution by the host computer. There is also known a technique for dynamically changing the configuration of a virtual machine system by updating device allocation information to a guest operating system using a console or the like.

特開2005−141668号公報JP 2005-141668 A 特公平7−58469号公報Japanese Patent Publication No. 7-58469

ホストOS側では,仮想計算機と記憶装置との間での入出力処理の開始・終了を把握できないため,ホストOSの操作者は,仮想計算機が記憶装置を利用しているときには意図的に取り外しをやめる,といったことができない。   Since the host OS cannot grasp the start / end of input / output processing between the virtual machine and the storage device, the operator of the host OS intentionally removes it when the virtual machine uses the storage device. I can't stop.

上述のホスト計算機と論理ディスクとの取り外しを行う技術を適用すれば,入出力処理の終了を待って,仮想計算機と記憶装置との取り外しを行うことができる。しかし,この場合でも,ホストOSの操作者は,取り外しを要求してからどの程度待てば,仮想計算機と記憶装置との取り外しが完了するのかわからないという問題がある。   If the technique for removing the host computer and the logical disk described above is applied, the virtual machine and the storage device can be removed after the input / output processing is completed. However, even in this case, there is a problem that the operator of the host OS does not know how long to wait for the removal from the virtual machine and the storage device after the removal is requested.

例えば,ある仮想計算機Aに取り付けられた記憶装置Cを,他の仮想計算機Bで利用するために,仮想計算機Aと記憶装置Cとの取り外し要求を行った場合でも,ホストOSの操作者は,どの程度待てば取り外しが完了するかがわからない。そのため,ホストOSの操作者は,仮想計算機Bで記憶装置Cが必要となる時間までに,仮想計算機Aと記憶装置Cとの取り外しが間に合うかを判断できない。ホストOSの操作者としては,仮想計算機Bで記憶装置Cが必要となる時間までに,仮想計算機Aから記憶装置Cが取り外せないとわかれば,入出力処理の終了を待たずに,仮想計算機Aと記憶装置Cとを強制的に取り外したいという要望もある。   For example, in order to use a storage device C attached to a certain virtual computer A in another virtual computer B, even when a removal request is made between the virtual computer A and the storage device C, the operator of the host OS I don't know how long to wait to complete the removal. Therefore, the operator of the host OS cannot determine whether the virtual computer A and the storage device C can be removed in time by the time when the storage device C is required for the virtual computer B. If the operator of the host OS knows that the storage device C cannot be removed from the virtual computer A by the time when the storage device C is required by the virtual computer B, the virtual computer A does not wait for the end of the input / output processing. There is also a desire to forcibly remove the storage device C.

一側面では,本発明は,仮想計算機システムにおいて,ホストOSの操作者が,要求した仮想計算機と記憶装置との取り外し完了までのおおよその時間を把握することが可能となる技術を提供することを目的とする。   In one aspect, the present invention provides a technique that enables an operator of a host OS in a virtual machine system to grasp an approximate time until removal of a requested virtual machine and storage device is completed. Objective.

1態様では,仮想計算機制御装置は,仮想計算機の制御を行うホストOSから,該仮想計算機と記憶装置との間の論理的な接続関係の解除を求める要求を受け付ける受付部と,要求を受け付けた際に,仮想計算機から記憶装置への占有の開始を指示するコマンドと,仮想計算機から記憶装置への占有の終了を指示するコマンドとの発行状況をもとに,仮想計算機と記憶装置との間の入出力処理の終了を待って論理的な接続関係の解除を実行するか否かを判断する判断部と,判断部により仮想計算機と記憶装置との間の入出力処理の終了を待って論理的な接続関係の解除を実行すると判断された場合に,仮想計算機と記憶装置との間における過去の入出力処理の実行時間に基づいて,仮想計算機と記憶装置との間の入出力処理が終了するまでの時間を予測する予測部と,予測された時間の情報をホストOSに通知する通知部とを備える。   In one aspect, the virtual machine control device receives a request from a host OS that controls the virtual machine, and receives a request for releasing a logical connection relationship between the virtual machine and the storage device. In this case, based on the issuance status of the command for instructing the start of occupation from the virtual machine to the storage device and the command for instructing the end of the occupation from the virtual machine to the storage device, between the virtual machine and the storage device. A determination unit that determines whether to cancel the logical connection relationship after waiting for the end of the input / output processing of the host, and waits for the end of the input / output processing between the virtual machine and the storage device by the determination unit. I / O processing between the virtual computer and the storage device is completed based on the past execution time of the input / output processing between the virtual computer and the storage device. Until Comprising a prediction unit for predicting a between, and a notification unit for notifying information of the predicted time to the host OS.

1態様では,仮想計算機システムにおいて,ホストOSの操作者が,要求した仮想計算機と記憶装置との取り外し完了までのおおよその時間を把握できる。   In one mode, in the virtual machine system, the operator of the host OS can grasp the approximate time until the requested removal of the virtual machine and the storage device is completed.

本実施の形態による仮想計算機システムの構成例を示す図である。It is a figure which shows the structural example of the virtual computer system by this Embodiment. 本実施の形態による取り外し制御部の構成例を示す図である。It is a figure which shows the structural example of the removal control part by this Embodiment. 本実施の形態の仮想計算機システムを実現するコンピュータのハードウェア構成例を示す図である。It is a figure which shows the hardware structural example of the computer which implement | achieves the virtual machine system of this Embodiment. 本実施の形態によるゲスト−記憶装置間の一連の入出力処理の例を説明する図である。It is a figure explaining the example of a series of input-output processes between the guest-storage devices by this Embodiment. 本実施の形態による取り外し抑止制御情報の例を示す図である。It is a figure which shows the example of the removal suppression control information by this Embodiment. 本実施の形態による取り外し状況管理情報の例を示す図である。It is a figure which shows the example of the removal condition management information by this Embodiment. 本実施の形態による取り外し予測情報の例を示す図である。It is a figure which shows the example of the removal prediction information by this Embodiment. 本実施の形態による通知画面の例を示す図である。It is a figure which shows the example of the notification screen by this Embodiment. 本実施の形態のホスト側制御部による取り外し要求受け付け時の処理フローチャートである。It is a process flowchart at the time of the removal request reception by the host side control part of this Embodiment. 本実施の形態のホスト側制御部による取り外し要求受け付け時の処理フローチャートである。It is a process flowchart at the time of the removal request reception by the host side control part of this Embodiment. 本実施の形態のホスト側制御部による取り外し抑止開始通知受け付け時の処理フローチャートである。It is a process flowchart at the time of the reception of the removal suppression start notification by the host side control part of this Embodiment. 本実施の形態のホスト側制御部による取り外し抑止終了通知受け付け時の処理フローチャートである。It is a process flowchart at the time of reception of the removal suppression completion notification by the host side control unit of the present embodiment. 本実施の形態のホスト側制御部による取り外し抑止終了通知・取り外し通知受け付け時の処理フローチャートである。It is a process flowchart at the time of reception of removal suppression end notification / removal notification by the host-side control unit of the present embodiment. 本実施の形態のゲスト側制御部によるIO命令受け付け時の処理フローチャートである。It is a process flowchart at the time of IO command reception by the guest side control part of this Embodiment. 本実施の形態のゲスト側制御部によるIO命令受け付け時の処理フローチャートである。It is a process flowchart at the time of IO command reception by the guest side control part of this Embodiment. 本実施の形態のゲスト側制御部による取り外し予約通知受け付け時の処理フローチャートである。It is a process flowchart at the time of acceptance of the removal reservation notification by the guest side control part of this Embodiment. 本実施の形態の予測制御部による取り外し抑止開始通知受け付け時の処理フローチャートである。It is a process flowchart at the time of the reception of the removal suppression start notification by the prediction control part of this Embodiment. 本実施の形態の予測制御部による取り外し抑止終了通知受け付け時の処理フローチャートである。It is a process flowchart at the time of reception of the removal suppression completion notification by the prediction control part of this Embodiment. 本実施の形態の予測制御部による取り外し予測時間問い合わせ受け付け時の処理フローチャートである。It is a process flowchart at the time of the removal prediction time inquiry reception by the prediction control part of this Embodiment. 本実施の形態による取り外し予測情報の例(2)を示す図である。It is a figure which shows the example (2) of the removal prediction information by this Embodiment. 本実施の形態のゲスト側制御部によるIO命令受け付け時の処理フローチャート(2)である。It is a process flowchart (2) at the time of IO command reception by the guest side control part of this Embodiment. 本実施の形態の予測制御部によるRead系/Write系コマンドの通知受け付け時の処理フローチャートである。It is a process flowchart at the time of the notification reception of the Read type / Write type command by the prediction control part of this Embodiment. 本実施の形態の予測制御部による取り外し抑止終了通知受け付け時の処理フローチャート(2)である。It is a process flowchart (2) at the time of reception of the removal suppression completion notification by the prediction control part of this Embodiment. 本実施の形態の予測制御部による取り外し予測時間問い合わせ受け付け時の処理フローチャート(2)である。It is a process flowchart (2) at the time of the removal prediction time inquiry reception by the prediction control part of this Embodiment.

以下,本実施の形態について,図を用いて説明する。   Hereinafter, the present embodiment will be described with reference to the drawings.

〔実施の形態1〕
図1は,本実施の形態による仮想計算機システムの構成例を示す図である。
[Embodiment 1]
FIG. 1 is a diagram showing a configuration example of a virtual machine system according to this embodiment.

図1に示す仮想計算機システム10は,ホストOS(Operating System)11,ゲストOS12,チャネル制御部13,チャネル14,記憶装置15を備える。   A virtual machine system 10 illustrated in FIG. 1 includes a host OS (Operating System) 11, a guest OS 12, a channel control unit 13, a channel 14, and a storage device 15.

ホストOS11は,仮想計算機システム10において,ゲストOS12の管理や制御を行うOSである。ゲストOS12と記憶装置15との取り付け/取り外しを行う際には,ホストOS11から,取り付け要求/取り外し要求等の要求が発行される。   The host OS 11 is an OS that manages and controls the guest OS 12 in the virtual machine system 10. When attaching / detaching the guest OS 12 and the storage device 15, a request such as an attachment request / removal request is issued from the host OS 11.

ゲストOS12と記憶装置15との取り付けは,ゲストOS12と記憶装置15との間の論理的な接続を行うことである。ゲストOS12と記憶装置15との取り外しは,ゲストOS12と記憶装置15との間の論理的な接続関係を解除することである。取り付け要求は,ゲストOS12と記憶装置15との間の論理的な接続を求める要求である。取り外し要求は,ゲストOS12と記憶装置15との間の論理的な接続関係の解除を求める要求である。   The attachment of the guest OS 12 and the storage device 15 is a logical connection between the guest OS 12 and the storage device 15. The removal of the guest OS 12 and the storage device 15 is to release the logical connection relationship between the guest OS 12 and the storage device 15. The attachment request is a request for logical connection between the guest OS 12 and the storage device 15. The removal request is a request for canceling the logical connection relationship between the guest OS 12 and the storage device 15.

ゲストOS12は,ホストOS11上で動作する仮想計算機である。ゲストOS12は,取り付けられた記憶装置15に対する入出力処理を行う際に,IO(Input Output)命令を発行する。   The guest OS 12 is a virtual machine that runs on the host OS 11. The guest OS 12 issues an IO (Input Output) command when performing input / output processing for the attached storage device 15.

チャネル制御部13は,仮想計算機システム10において,ゲストOS12と記憶装置15との接続関係を制御する。具体的には,チャネル制御部13は,ゲストOS12から発行されたIO命令をもとに,各チャネル14を制御する。また,ホストOS11から発行された要求に基づいて,ゲストOS12と記憶装置15との論理的な取り付け/取り外しを実行する。チャネル14は,記憶装置15を接続するインタフェースである。記憶装置15は,例えば磁気テープやハードディスクなどの外部記憶装置である。本実施の形態では,記憶装置15は,論理的な単位で,ゲストOS12との取り付け/取り外しが行われる。   The channel control unit 13 controls the connection relationship between the guest OS 12 and the storage device 15 in the virtual machine system 10. Specifically, the channel control unit 13 controls each channel 14 based on an IO command issued from the guest OS 12. In addition, based on a request issued from the host OS 11, logical attachment / detachment between the guest OS 12 and the storage device 15 is executed. The channel 14 is an interface for connecting the storage device 15. The storage device 15 is an external storage device such as a magnetic tape or a hard disk. In the present embodiment, the storage device 15 is attached / removed to / from the guest OS 12 in a logical unit.

本実施の形態による仮想計算機システム10のチャネル制御部13は,取り外し実行制御部16,IO命令制御部17,取り外し制御部100を備える。取り外し実行制御部16は,チャネル制御部13内で,指定されたゲストOS12と記憶装置15との取り外しを実行する。IO命令制御部17は,チャネル制御部13内で,ゲストOS12からのIO命令を実行する。   The channel control unit 13 of the virtual machine system 10 according to this embodiment includes a removal execution control unit 16, an IO command control unit 17, and a removal control unit 100. The removal execution control unit 16 executes removal of the designated guest OS 12 and the storage device 15 in the channel control unit 13. The IO command control unit 17 executes an IO command from the guest OS 12 in the channel control unit 13.

チャネル制御部13の取り外し制御部100は,ゲストOS12と記憶装置15との取り外しを制御する。例えば,取り外し制御部100は,ホストOS11からの取り外し要求があった場合に,取り外しの対象となったゲストOS12と記憶装置15との間で入出力処理が実行されている間は,当該ゲストOS12からの当該記憶装置15の取り外しを抑止する。取り外し制御部100は,ホスト側制御部110,ゲスト側制御部120,予測制御部130を備える。   The removal control unit 100 of the channel control unit 13 controls the removal of the guest OS 12 and the storage device 15. For example, when there is a removal request from the host OS 11, the removal control unit 100 performs the guest OS 12 while the input / output processing is being executed between the guest OS 12 to be removed and the storage device 15. The removal of the storage device 15 from the storage is suppressed. The removal control unit 100 includes a host-side control unit 110, a guest-side control unit 120, and a prediction control unit 130.

ホスト側制御部110は,チャネル制御部13内で,主にホストOS11とのやり取りを司る。ゲスト側制御部120は,チャネル制御部13内で,主にゲストOS12とのやり取りを司る。予測制御部130は,取り外しが指定されたゲストOS12と記憶装置15との取り外しが完了する時間を予測する。   The host-side control unit 110 mainly controls exchange with the host OS 11 in the channel control unit 13. The guest side control unit 120 mainly manages exchange with the guest OS 12 in the channel control unit 13. The prediction control unit 130 predicts the time for completing the removal of the guest OS 12 and the storage device 15 for which removal is specified.

図2は,本実施の形態による取り外し制御部の構成例を示す図である。   FIG. 2 is a diagram illustrating a configuration example of the removal control unit according to the present embodiment.

チャネル制御部13の取り外し制御部100において,ホスト側制御部110は,受付部111,判断部112,通知部113,取り外し抑止制御部114,取り外し抑止情報記憶部115を備える。   In the removal control unit 100 of the channel control unit 13, the host side control unit 110 includes a reception unit 111, a determination unit 112, a notification unit 113, a removal suppression control unit 114, and a removal suppression information storage unit 115.

受付部111は,ホストOS11から発行された取り外し要求を受け付ける。本実施の形態では,取り外し要求は,ホストOS11から,取り外し実行制御部16を経由して,ホスト側制御部110に送られる。取り外し要求では,取り外し対象のゲストOS12と記憶装置15とが指定されている。   The accepting unit 111 accepts a removal request issued from the host OS 11. In the present embodiment, the removal request is sent from the host OS 11 to the host-side control unit 110 via the removal execution control unit 16. In the removal request, the guest OS 12 to be removed and the storage device 15 are specified.

判断部112は,受付部111が取り外し要求を受け付けた際に,速やかに取り外し対象のゲストOS12と記憶装置15との取り外しを実行するか,取り外し対象のゲストOS12と記憶装置15との間の入出力処理の終了を待って取り外しを実行するかを判断する。このとき,判断部112は,ゲストOS12からのリザーブコマンドやリリースコマンドの発行状況をもとに,判断を行う。   When the accepting unit 111 accepts the removal request, the determination unit 112 immediately removes the guest OS 12 to be removed from the storage device 15 or enters between the guest OS 12 to be removed and the storage device 15. It is determined whether the removal is executed after completion of the output process. At this time, the determination unit 112 makes a determination based on the issue status of the reserve command and the release command from the guest OS 12.

通知部113は,取り外し対象のゲストOS12と記憶装置15との取り外しが実行された際に,その取り外しの実行をホストOS11に通知する。また,通知部113は,判断部112により入出力処理の終了を待って取り外しを実行すると判断された際に,取り外し対象のゲストOS12と記憶装置15との間の入出力処理が終了するまでの予測時間の情報や,入出力処理の異常などを,ホストOS11に通知する。なお,取り外し対象のゲストOS12と記憶装置15との間の入出力処理が終了するまでの時間の予測や,入出力処理の異常可能性の判断は,予測制御部130の予測部131により行われる。   When the removal of the guest OS 12 to be removed and the storage device 15 is executed, the notification unit 113 notifies the execution of the removal to the host OS 11. The notification unit 113 waits until the input / output processing between the guest OS 12 to be removed and the storage device 15 is completed when the determination unit 112 determines that the removal is executed after completion of the input / output processing. The host OS 11 is notified of predicted time information, input / output processing errors, and the like. Note that the prediction unit 131 of the prediction control unit 130 performs prediction of the time until input / output processing between the guest OS 12 to be removed and the storage device 15 is completed and determination of the possibility of abnormality of the input / output processing. .

取り外し抑止制御部114は,取り外し抑止情報記憶部115に記憶された取り外し抑止制御情報を更新することで,各ゲストOS12と各記憶装置15との間の取り外しの抑止の状態を制御する。   The removal inhibition control unit 114 updates the removal inhibition control information stored in the removal inhibition information storage unit 115 to control the removal inhibition state between each guest OS 12 and each storage device 15.

取り外し抑止情報記憶部115は,取り外し抑止制御情報を記憶する記憶部である。取り外し抑止制御情報は,各ゲストOS12と各記憶装置15との間の取り外し抑止制御の状態が記録された情報である。   The removal inhibition information storage unit 115 is a storage unit that stores removal inhibition control information. The removal inhibition control information is information in which the state of removal inhibition control between each guest OS 12 and each storage device 15 is recorded.

チャネル制御部13の取り外し制御部100において,ゲスト側制御部120は,IO命令受付部121,IO命令解析制御部122,取り外し状況管理部123,取り外し状況情報記憶部124を備える。   In the removal control unit 100 of the channel control unit 13, the guest side control unit 120 includes an IO command reception unit 121, an IO command analysis control unit 122, a removal status management unit 123, and a removal status information storage unit 124.

IO命令受付部121は,ゲストOS12から発行されるIO命令を受け付ける。本実施の形態では,IO命令は,ゲストOS12から,IO命令制御部17を経由して,ゲスト側制御部120に送られる。   The IO command receiving unit 121 receives an IO command issued from the guest OS 12. In the present embodiment, the IO command is sent from the guest OS 12 to the guest side control unit 120 via the IO command control unit 17.

IO命令解析制御部122は,IO命令受け付け部121が受け付けたIO命令の解析を行う。IO命令の解析によって,リザーブコマンドやリリースコマンドなどが検出される。   The IO command analysis control unit 122 analyzes the IO command received by the IO command receiving unit 121. A reserve command, a release command, or the like is detected by analyzing the IO instruction.

取り外し状況管理部123は,取り外し状況情報記憶部124に記憶された取り外し状況管理情報を更新することで,各ゲストOS12と各記憶装置15との間の取り外しの状況を管理する。   The removal state management unit 123 manages the removal state between each guest OS 12 and each storage device 15 by updating the removal state management information stored in the removal state information storage unit 124.

取り外し状況情報記憶部124は,取り外し状況管理情報を記憶する記憶部である。取り外し状況管理情報は,各ゲストOS12と各記憶装置15との間の取り外しの状況が記録された情報である。   The removal status information storage unit 124 is a storage unit that stores removal status management information. The removal status management information is information in which the status of removal between each guest OS 12 and each storage device 15 is recorded.

チャネル制御部13の取り外し制御部100において,予測制御部130は,予測部131,予測情報記憶部132を備える。   In the removal control unit 100 of the channel control unit 13, the prediction control unit 130 includes a prediction unit 131 and a prediction information storage unit 132.

予測部131は,判断部112により入出力処理の終了を待って取り外しを実行すると判断された場合に,過去の入出力処理の実行時間に基づいて,取り外し対象のゲストOS12と記憶装置15との間の入出力処理が終了するまでの時間を予測する。このとき,予測部131は,取り外し対象のゲストOS12から記憶装置15へのリザーブコマンドの発行からの経過時間が,過去の入出力処理の実行時間から予測される実行時間を所定時間以上超えた場合に,入出力処理に異常が発生した可能性があると判断する。   When the determination unit 112 determines that the removal is performed after the input / output process is completed, the prediction unit 131 determines whether the guest OS 12 and the storage device 15 to be removed are based on the execution time of the past input / output process. Estimate the time until input / output processing is completed. At this time, the prediction unit 131 determines that the elapsed time from the issue of the reserve command from the guest OS 12 to be removed to the storage device 15 exceeds the execution time predicted from the execution time of the past input / output processing by a predetermined time or more. Therefore, it is determined that an error may have occurred in the input / output processing.

予測情報記憶部132は,取り外し予測情報を記憶する記憶部である。取り外し予測情報は,取り外し要求されたゲストOS12と記憶装置15との間の入出力処理が終了するまでの時間の予測に用いる情報である。   The prediction information storage unit 132 is a storage unit that stores removal prediction information. The removal prediction information is information used for prediction of the time until the input / output processing between the guest OS 12 requested to be removed and the storage device 15 is completed.

図3は,本実施の形態の仮想計算機システムを実現するコンピュータのハードウェア構成例を示す図である。   FIG. 3 is a diagram illustrating a hardware configuration example of a computer that implements the virtual computer system according to the present embodiment.

本実施の形態の仮想計算機システム10を実現するコンピュータ1は,例えば,CPU(Central Processing Unit )2,主記憶となるメモリ3,記憶装置4,通信装置5,媒体読取・書込装置6,入力装置7,出力装置8等を備える。記憶装置4は,例えば磁気テープ装置やHDD(Hard Disk Drive )などである。仮想計算機システム10における記憶装置15は,例えば,コンピュータ1の記憶装置4により実現される。媒体読取・書込装置6は,例えばCD−R(Compact Disc Recordable )ドライブやDVD−R(Digital Versatile Disc Recordable )ドライブなどである。入力装置7は,例えばキーボード・マウスなどである。出力装置8は,例えばディスプレイ等の表示装置などである。   A computer 1 that implements the virtual machine system 10 of the present embodiment includes, for example, a CPU (Central Processing Unit) 2, a main memory 3, a storage device 4, a communication device 5, a medium reading / writing device 6, an input A device 7, an output device 8 and the like are provided. The storage device 4 is, for example, a magnetic tape device or an HDD (Hard Disk Drive). The storage device 15 in the virtual computer system 10 is realized by the storage device 4 of the computer 1, for example. The medium reading / writing device 6 is, for example, a CD-R (Compact Disc Recordable) drive or a DVD-R (Digital Versatile Disc Recordable) drive. The input device 7 is, for example, a keyboard / mouse. The output device 8 is a display device such as a display, for example.

仮想計算機システム10のホストOS11,ゲストOS12,チャネル制御部13,およびそれらが備える各機能部は,コンピュータ1が備えるCPU2,メモリ3等のハードウェアと,ソフトウェアプログラムとによって実現することが可能である。コンピュータ1が実行可能なプログラムは,記憶装置4に記憶され,その実行時にメモリ3に読み出され,CPU2により実行される。   The host OS 11, guest OS 12, channel controller 13, and functional units included in the virtual computer system 10 can be realized by hardware such as the CPU 2 and memory 3 included in the computer 1 and software programs. . A program that can be executed by the computer 1 is stored in the storage device 4, read into the memory 3 at the time of execution, and executed by the CPU 2.

コンピュータ1は,可搬型記録媒体から直接プログラムを読み取り,そのプログラムに従った処理を実行することもできる。また,コンピュータ1は,サーバコンピュータからプログラムが転送されるごとに,逐次,受け取ったプログラムに従った処理を実行することもできる。さらに,このプログラムは,コンピュータ1で読み取り可能な記録媒体に記録しておくことができる。   The computer 1 can also read a program directly from a portable recording medium and execute processing according to the program. The computer 1 can also sequentially execute processing according to the received program every time the program is transferred from the server computer. Further, this program can be recorded on a recording medium readable by the computer 1.

図4は,本実施の形態によるゲスト−記憶装置間の一連の入出力処理の例を説明する図である。   FIG. 4 is a diagram illustrating an example of a series of input / output processing between the guest and the storage device according to the present embodiment.

ゲストOS12側から記憶装置15側に発行されるIO命令には,他のゲストOS12と共用する記憶装置15の排他制御に使用するリザーブコマンドとリリースコマンドがある。リザーブコマンドは,ゲストOS12が記憶装置15に一時的な占有の開始を指示するコマンドである。リリースコマンドは,ゲストOS12が記憶装置15に一時的な占有の終了を指示するコマンドである。   The IO command issued from the guest OS 12 side to the storage device 15 side includes a reserve command and a release command used for exclusive control of the storage device 15 shared with other guest OSs 12. The reserve command is a command for the guest OS 12 to instruct the storage device 15 to start temporary occupation. The release command is a command for the guest OS 12 to instruct the storage device 15 to end temporary occupation.

図4に示すように,一連の入出力処理は,複数のIO命令の組み合わせから成り立っている。あるIO命令に対するIO命令終了通知から,次のIO命令の発行までに,若干の時間の隙間があり,このタイミングでは,入出力処理中であってもゲストOS12と記憶装置15との取り外しが可能である。しかし,このタイミングでゲストOS12と記憶装置15との取り外しを行うと,ゲストOS12の入出力処理が異常終了することになり,記憶装置15のデータベースが破壊される可能性がある。   As shown in FIG. 4, a series of input / output processes is composed of a combination of a plurality of IO instructions. There is a slight gap between the IO instruction completion notification for a certain IO instruction and the issue of the next IO instruction. At this timing, the guest OS 12 and the storage device 15 can be detached even during input / output processing. It is. However, if the guest OS 12 and the storage device 15 are removed at this timing, the input / output processing of the guest OS 12 ends abnormally, and the database of the storage device 15 may be destroyed.

本実施の形態によるチャネル制御部13の取り外し制御部100では,リザーブコマンドの発行からリリースコマンドの発行までを一連の入出力処理の単位として,原則的にその間のゲストOS12と記憶装置15との取り外しを抑止する制御を行う。このような取り外し抑止の制御により,ゲストOS12と記憶装置15との安全な取り外しが可能となる。   In the removal control unit 100 of the channel control unit 13 according to the present embodiment, as a unit of a series of input / output processes from issuing a reserve command to issuing a release command, in principle, the removal of the guest OS 12 and the storage device 15 between them is performed. Control to suppress this. Such removal suppression control enables safe removal of the guest OS 12 and the storage device 15.

IO命令の解析により,リザーブコマンドやリリースコマンドの発行が検出されると,ゲスト側制御部120は,その旨をホスト側制御部110と予測制御部130とに通知する。本実施の形態では,ゲストOS12からのリザーブコマンドの発行が検出された際に送られる通知を,取り外し抑止開始通知と呼ぶ。また,ゲストOS12からのリリースコマンドの発行が検出された際に送られる通知を,取り外し抑止終了通知と呼ぶ。   When an issuance of a reserve command or a release command is detected by analysis of the IO command, the guest side control unit 120 notifies the host side control unit 110 and the prediction control unit 130 to that effect. In this embodiment, the notification sent when the issue of the reserve command from the guest OS 12 is detected is referred to as a removal suppression start notification. The notification sent when the release command issuance from the guest OS 12 is detected is called a removal suppression end notification.

ホスト側制御部110では,ゲスト側制御部120からの通知に基づいて,入出力処理の実行中であると判断されるゲストOS12と記憶装置15との取り外しを抑止する制御が行われる。すなわち,ホスト側制御部110では,リザーブコマンドが発行されてからリリースコマンドが発行されるまでは,リザーブコマンドを発行したゲストOS12とその相手先の記憶装置15との間で入出力処理が実行中であると判断される。このとき,ホスト側制御部110では,取り外し要求があっても,原則として,入出力処理が終了するまで,該当ゲストOS12と該当記憶装置15との取り外しが抑止される。   Based on the notification from the guest-side control unit 120, the host-side control unit 110 performs control to prevent removal of the guest OS 12 and the storage device 15 that are determined to be executing input / output processing. In other words, in the host-side control unit 110, input / output processing is being executed between the guest OS 12 that issued the reserve command and the storage device 15 of the counterpart until the release command is issued after the reserve command is issued. It is judged that. At this time, even if there is a removal request, the host-side control unit 110 inhibits the removal of the corresponding guest OS 12 and the corresponding storage device 15 until the input / output processing is completed in principle.

予測制御部130では,ゲスト側制御部120からの通知に基づいて,各ゲストOS12と各記憶装置15との間の入出力処理の実行時間の実績を蓄積保持する。入出力処理が実行中であるゲストOS12と記憶装置15とに対して取り外し要求があった場合には,予測制御部130では,保持された入出力処理の実行時間の実績に基づいて,該当ゲストOS12と該当記憶装置15との間での入出力処理が終了までの時間の予測が行われる。   Based on the notification from the guest-side control unit 120, the prediction control unit 130 accumulates and holds the results of the execution time of the input / output processing between each guest OS 12 and each storage device 15. When there is a removal request for the guest OS 12 and the storage device 15 in which the input / output process is being executed, the prediction control unit 130 determines the corresponding guest on the basis of the held execution time record of the input / output process. The time until the input / output process between the OS 12 and the storage device 15 is completed is predicted.

図5は,本実施の形態による取り外し抑止制御情報の例を示す図である。   FIG. 5 is a diagram illustrating an example of the removal inhibition control information according to the present embodiment.

図5に示す取り外し抑止制御情報116は,取り外し抑止情報記憶部115に記憶される取り外し抑止制御情報116の一例である。図5に示す例では,ゲストIDが“#01”であるゲストOS12についての取り外し抑止制御情報116の例が示されている。ゲストIDは,ゲストOS12を一意に識別する識別情報である。   The removal inhibition control information 116 illustrated in FIG. 5 is an example of the removal inhibition control information 116 stored in the removal inhibition information storage unit 115. In the example illustrated in FIG. 5, an example of the removal suppression control information 116 for the guest OS 12 whose guest ID is “# 01” is illustrated. The guest ID is identification information that uniquely identifies the guest OS 12.

図5に示す取り外し抑止制御情報116は,装置番号,取り外し抑止の情報を持つ。装置番号は,記憶装置15を一意に識別する識別情報である。取り外し抑止は,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との取り外しについて,抑止制御の状態を示す。   The removal suppression control information 116 shown in FIG. 5 has a device number and removal suppression information. The device number is identification information for uniquely identifying the storage device 15. The removal inhibition indicates the state of inhibition control for the removal of the guest OS 12 with the corresponding guest ID and the storage device 15 with the corresponding device number.

本実施の形態による取り外し抑止制御情報116において,取り外し抑止が示す状態には,“なし”,“有り”,“予約”の3つの状態がある。取り外し抑止“なし”は,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との取り外しが抑止されていない状態を示す。取り外し抑止“有り”は,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との取り外しが抑止されている状態を示す。取り外し抑止“予約”は,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との取り外しが抑止されている状態で取り外し要求があり,該当ゲストOS12と該当記憶装置15との間の入出力処理の終了を待っている状態を示す。   In the removal inhibition control information 116 according to the present embodiment, the states indicated by removal inhibition include three states of “none”, “present”, and “reserved”. The removal inhibition “none” indicates a state where removal of the guest OS 12 with the corresponding guest ID and the storage device 15 with the corresponding device number is not inhibited. The removal inhibition “present” indicates a state where removal of the guest OS 12 with the corresponding guest ID and the storage device 15 with the corresponding device number is inhibited. Deletion suppression “reservation” is an input / output between the guest OS 12 and the storage device 15 when there is a removal request in the state where the removal of the guest OS 12 of the corresponding guest ID and the storage device 15 of the corresponding device number is suppressed. Indicates the state waiting for the end of processing.

なお,ゲストID“#01”のゲストOS12以外のゲストOS12についての取り外し抑止制御情報116の構成も,図5に示すゲストID“#01”のゲストOS12のものと同様の構成である。   The configuration of the removal suppression control information 116 for the guest OSs 12 other than the guest OS 12 with the guest ID “# 01” is the same as that of the guest OS 12 with the guest ID “# 01” illustrated in FIG.

ホスト側制御部110において,ゲスト側制御部120から取り外し抑止開始通知を受けると,取り外し抑止制御部114は,取り外し抑止制御情報116における指定されたゲストOS12と記憶装置15との取り外し抑止の情報を,“有り”に更新する。取り外し抑止制御情報116において取り外し抑止が“有り”であるということは,該当ゲストOS12と該当記憶装置15との間で,入出力処理が実行中であることを意味する。   When the host-side control unit 110 receives a removal suppression start notification from the guest-side control unit 120, the removal suppression control unit 114 displays information on the removal suppression between the guest OS 12 specified in the removal suppression control information 116 and the storage device 15. , “Yes” is updated. In the removal inhibition control information 116, the removal inhibition is “present” means that an input / output process is being executed between the guest OS 12 and the storage device 15.

ホスト側制御部110において,ゲスト側制御部120から取り外し抑止終了通知を受けると,取り外し抑止制御部114は,取り外し抑止制御情報116における指定されたゲストOS12と記憶装置15との取り外し抑止の情報を,“なし”に更新する。取り外し抑止制御情報116において取り外し抑止が“なし”であるということは,該当ゲストOS12と該当記憶装置15との間では,入出力処理が実行されていないことを意味する。   When the host-side control unit 110 receives a removal suppression end notification from the guest-side control unit 120, the removal suppression control unit 114 displays information on the removal suppression between the guest OS 12 specified in the removal suppression control information 116 and the storage device 15. , Update to “None”. In the removal inhibition control information 116, the removal inhibition is “none” means that the input / output processing is not executed between the guest OS 12 and the storage device 15.

判断部112は,受付部111により取り外し要求が受け付けられると,取り外し抑止制御情報116から,取り外し要求で指定された取り外し対象のゲストOS12と記憶装置15とについての取り外し抑止の情報を取得する。   When the removal request is received by the reception unit 111, the determination unit 112 acquires, from the removal suppression control information 116, information on removal suppression for the guest OS 12 to be removed and the storage device 15 specified in the removal request.

取り外し抑止が“なし”である場合には,該当ゲストOS12と該当記憶装置15との間で入出力処理が実行中ではないので,判断部112は,取り外し対象のゲストOS12と記憶装置15との安全な取り外しが可能であると判断する。   If the removal suppression is “none”, the input / output process is not being executed between the guest OS 12 and the storage device 15, so the determination unit 112 determines whether the guest OS 12 to be removed and the storage device 15 Judge that safe removal is possible.

取り外し抑止が“有り”である場合には,該当ゲストOS12と該当記憶装置15との間で入出力処理が実行中であるので,判断部112は,取り外し対象のゲストOS12と記憶装置15との間での入出力処理の終了を待って,取り外しを実行すると判断する。なお,取り外し抑止制御情報116における取り外し抑止の情報は,リザーブコマンドやリリースコマンドの発行状況をもとに,更新される情報である。すなわち,判断部112は,リザーブコマンドやリリースコマンドの発行状況をもとに,取り外し対象のゲストOS12と記憶装置15との間での入出力処理の終了を待って取り外しを実行するかを判断していることになる。   If the removal suppression is “present”, the input / output processing is being executed between the corresponding guest OS 12 and the corresponding storage device 15, so that the determination unit 112 determines whether the removal target guest OS 12 and the storage device 15 It is determined that the removal is executed after the end of the input / output processing between the two. The removal suppression information in the removal suppression control information 116 is information that is updated based on the issue status of the reserve command and the release command. That is, the determination unit 112 determines whether to perform removal after waiting for completion of input / output processing between the guest OS 12 to be removed and the storage device 15 based on the issue status of the reserve command and the release command. Will be.

判断部112が入出力処理の終了を待って取り外しを実行すると判断した場合,取り外し抑止制御部114は,取り外し抑止制御情報116における該当ゲストOS12と該当記憶装置15との取り外し抑止の情報を,“予約”に更新する。また,ホスト側制御部110は,取り外し対象のゲストOS12と記憶装置15とについて,入出力処理の終了を待って,取り外しを実行する旨を示す取り外し予約通知を,ゲスト側制御部120に送る。また,ホスト側制御部110は,取り外し対象のゲストOS12と記憶装置15との取り外しが行われる予測時間,すなわち取り外し対象のゲストOS12と記憶装置15との間での入出力処理が終了するまでの予測時間を,予測制御部130に問い合わせる。以下では,取り外し対象のゲストOS12と記憶装置15との取り外しが行われる予測時間,すなわち取り外し対象のゲストOS12と記憶装置15との間での入出力処理が終了するまでの予測時間を,取り外し予測時間と呼ぶ。   When the determination unit 112 determines that the removal is executed after completion of the input / output process, the removal suppression control unit 114 displays the information on the suppression of the removal between the guest OS 12 and the storage device 15 in the removal suppression control information 116 as “ Update to “Reservation”. In addition, the host-side control unit 110 sends to the guest-side control unit 120 a removal reservation notification indicating that the guest OS 12 and the storage device 15 to be removed are to be removed after completion of input / output processing. In addition, the host-side control unit 110 predicts the time when the guest OS 12 to be removed and the storage device 15 are removed, that is, until the input / output processing between the guest OS 12 to be removed and the storage device 15 is completed. The prediction control unit 130 is inquired about the prediction time. In the following, the estimated time for the removal of the guest OS 12 to be removed from the storage device 15, that is, the estimated time until the input / output processing between the guest OS 12 to be removed and the storage device 15 is completed, is shown as the removal prediction. Call time.

取り外し抑止制御情報116の取り外し抑止が“予約”であるゲストOS12と記憶装置15との対応について,再度取り外し要求があった場合には,判断部112は,取り外し対象のゲストOS12と記憶装置15との強制的な取り外しを行うと判断する。   When there is a removal request again regarding the correspondence between the guest OS 12 whose removal inhibition of the removal inhibition control information 116 is “reserved” and the storage device 15, the determination unit 112 determines whether the guest OS 12 to be removed, the storage device 15, It is determined that forcible removal will be performed.

図6は,本実施の形態による取り外し状況管理情報の例を示す図である。   FIG. 6 is a diagram illustrating an example of the removal status management information according to the present embodiment.

図6に示す取り外し状況管理情報125は,取り外し状況情報記憶部124に記憶される取り外し状況管理情報125の一例である。図6に示す例では,ゲストIDが“#01”であるゲストOS12についての取り外し状況管理情報125の例が示されている。ゲストIDは,ゲストOS12を一意に識別する識別情報である。   The removal status management information 125 illustrated in FIG. 6 is an example of the removal status management information 125 stored in the removal status information storage unit 124. In the example illustrated in FIG. 6, an example of the removal status management information 125 for the guest OS 12 whose guest ID is “# 01” is illustrated. The guest ID is identification information that uniquely identifies the guest OS 12.

図6に示す取り外し状況管理情報125は,装置番号,取り外し状況の情報を持つ。装置番号は,記憶装置15を一意に識別する識別情報である。取り外し状況は,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との取り外しの状況を示す。   The removal status management information 125 shown in FIG. 6 has device number and removal status information. The device number is identification information for uniquely identifying the storage device 15. The removal status indicates the removal status of the guest OS 12 with the corresponding guest ID and the storage device 15 with the corresponding device number.

本実施の形態による取り外し状況管理情報125において,取り外し状況が示す状況には,“なし”,“予約”,“実行”の3つの状況がある。取り外し状況“なし”は,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との取り外し要求がない状況を示す。取り外し状況“予約”は,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との取り外し要求があり,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との間の入出力処理の終了を待っている状況を示す。取り外し状況“実行”は,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との取り外しを実行している状況を示す。   In the removal status management information 125 according to the present embodiment, the status indicated by the removal status includes three statuses of “none”, “reservation”, and “execution”. The removal status “none” indicates a status where there is no removal request between the guest OS 12 with the corresponding guest ID and the storage device 15 with the corresponding device number. The removal status “reserved” indicates that there is a removal request between the guest OS 12 with the corresponding guest ID and the storage device 15 with the corresponding device number, and the input / output processing between the guest OS 12 with the corresponding guest ID and the storage device 15 with the corresponding device number is performed. Indicates a situation waiting for termination. The removal status “execution” indicates a status in which the removal of the guest OS 12 with the corresponding guest ID and the storage device 15 with the corresponding device number is being executed.

なお,ゲストID“#01”のゲストOS12以外のゲストOS12についての取り外し状況管理情報125の構成も,図6に示すゲストID“#01”のゲストOS12のものと同様の構成である。   The configuration of the removal status management information 125 for the guest OS 12 other than the guest OS 12 with the guest ID “# 01” is the same as that of the guest OS 12 with the guest ID “# 01” illustrated in FIG.

ゲスト側制御部120において,ホスト側制御部110から取り外し予約通知を受けると,取り外し状況管理部123は,取り外し状況管理情報125における指定されたゲストOS12と記憶装置15との取り外し状況の情報を,“予約”に更新する。取り外し状況管理情報125において取り外し状況が“予約”であるということは,ホスト側制御部110で,安全な取り外しのために該当ゲストOS12と該当記憶装置15との間の入出力処理の終了を待っていることを意味する。   When the guest side control unit 120 receives the removal reservation notification from the host side control unit 110, the removal state management unit 123 displays information on the removal state between the specified guest OS 12 and the storage device 15 in the removal state management information 125. Update to “Reservation”. When the removal status is “reserved” in the removal status management information 125, the host-side control unit 110 waits for the end of input / output processing between the guest OS 12 and the storage device 15 for safe removal. Means that

取り外し状況管理情報125の取り外し状況が“予約”であるゲストOS12と記憶装置15との対応について,リリースコマンドの発行が検出された場合には,取り外し状況管理部123は,当該取り外し状況の情報を,“実行”に更新する。取り外し状況管理情報125において取り外し状況が“実行”であるということは,ホスト側制御部110で,該当ゲストOS12と該当記憶装置15との取り外しが実行されていることを意味する。   When a release command is issued for the correspondence between the guest OS 12 whose removal status is “reserved” in the removal status management information 125 and the storage device 15, the removal status management unit 123 displays the information on the removal status. , Update to “Execute”. That the removal status is “execution” in the removal status management information 125 means that the host-side control unit 110 is executing the removal of the corresponding guest OS 12 and the corresponding storage device 15.

取り外し状況管理情報125の取り外し状況が“実行”であるゲストOS12と記憶装置15との対応について,リザーブコマンドの発行が検出された場合には,ゲスト側制御部120は,リザーブコマンドを発行したゲストOS12に対して,ビジー応答する。   When the issue of the reserve command is detected for the correspondence between the storage system 15 and the guest OS 12 whose removal status in the removal status management information 125 is “execution”, the guest-side control unit 120 determines that the guest that issued the reserve command A busy response is sent to the OS 12.

図7は,本実施の形態による取り外し予測情報の例を示す図である。   FIG. 7 is a diagram illustrating an example of the removal prediction information according to the present embodiment.

図7に示す取り外し予測情報133は,予測情報記憶部132に記憶される取り外し予測情報133の一例である。図7に示す例では,ゲストIDが“#01”であるゲストOS12についての取り外し予測情報133の例が示されている。ゲストIDは,ゲストOS12を一意に識別する識別情報である。   The removal prediction information 133 illustrated in FIG. 7 is an example of the removal prediction information 133 stored in the prediction information storage unit 132. In the example illustrated in FIG. 7, an example of the removal prediction information 133 for the guest OS 12 whose guest ID is “# 01” is illustrated. The guest ID is identification information that uniquely identifies the guest OS 12.

図7に示す取り外し予測情報133は,装置番号,最大時間,平均時間,開始時刻の情報を持つ。装置番号は,記憶装置15を一意に識別する識別情報である。最大時間は,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との間の過去の入出力処理において,最も長かった処理時間を示す。平均時間は,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との間の過去の入出力処理における,実行時間の近似平均を示す。開始時刻は,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との間で入出力処理が実行中である場合に,その入出力処理の開始時刻を示す。   The removal prediction information 133 illustrated in FIG. 7 includes information on a device number, maximum time, average time, and start time. The device number is identification information for uniquely identifying the storage device 15. The maximum time indicates the longest processing time in the past input / output processing between the guest OS 12 with the corresponding guest ID and the storage device 15 with the corresponding device number. The average time indicates an approximate average of execution times in the past input / output processing between the guest OS 12 with the corresponding guest ID and the storage device 15 with the corresponding device number. The start time indicates the start time of the input / output process when the input / output process is being executed between the guest OS 12 with the corresponding guest ID and the storage device 15 with the corresponding device number.

なお,ゲストID“#01”のゲストOS12以外のゲストOS12についての取り外し予測情報133の構成も,図7に示すゲストID“#01”のゲストOS12のものと同様の構成である。   The configuration of the removal prediction information 133 for the guest OS 12 other than the guest OS 12 with the guest ID “# 01” is the same as that of the guest OS 12 with the guest ID “# 01” illustrated in FIG.

予測制御部130において,ゲスト側制御部120から取り外し抑止開始通知を受けると,予測部131は,取り外し予測情報133における指定されたゲストOS12と記憶装置15との開始時刻に,現在の時刻を設定する。取り外し予測情報133における開始時刻は,取り外し抑止開始通知を受けた時刻であるので,実行中の入出力処理の開始時刻となる。   When the prediction control unit 130 receives the removal suppression start notification from the guest-side control unit 120, the prediction unit 131 sets the current time as the start time of the guest OS 12 and the storage device 15 specified in the removal prediction information 133. To do. Since the start time in the removal prediction information 133 is the time when the removal suppression start notification is received, it is the start time of the input / output process being executed.

予測制御部130において,ゲスト側制御部120から取り外し抑止終了通知を受けると,予測部131は,現在の時刻から,取り外し予測情報133における指定されたゲストOS12と記憶装置15との開始時刻を差し引いて,経過時間を求める。取り外し抑止終了通知を受けた時刻は入出力処理の終了時刻となるので,求められた経過時間は,終了したばかりの入出力処理の実行時間である。   When the prediction control unit 130 receives the removal suppression end notification from the guest-side control unit 120, the prediction unit 131 subtracts the start times of the guest OS 12 and the storage device 15 specified in the removal prediction information 133 from the current time. To determine the elapsed time. Since the time when the removal suppression end notification is received is the end time of the input / output process, the elapsed time thus obtained is the execution time of the input / output process just ended.

求められた経過時間が,取り外し予測情報133における該当ゲストOS12と該当記憶装置15との最大時間を超えている場合には,予測部131は,その最大時間を経過時間で更新する。また,予測部131は,取り外し予測情報133における該当ゲストOS12と該当記憶装置15との平均時間を,その平均時間に経過時間を加えて2で割って得られる時間で更新する。このように求められた平均時間は,過去の入出力処理の実行時間の近似平均となる。   When the obtained elapsed time exceeds the maximum time between the corresponding guest OS 12 and the corresponding storage device 15 in the removal prediction information 133, the prediction unit 131 updates the maximum time with the elapsed time. Further, the prediction unit 131 updates the average time of the corresponding guest OS 12 and the corresponding storage device 15 in the removal prediction information 133 by a time obtained by adding the elapsed time to the average time and dividing by two. The average time obtained in this way is an approximate average of the execution times of past input / output processes.

このように,該当ゲストOS12と該当記憶装置15との過去の入出力処理の実行時間の実績が,取り外し予測情報133における最大時間,平均時間の項目に蓄積される。なお,図7に示す取り外し予測情報133において,最大時間,平均時間の項目が“不明”となっているゲストOS12と記憶装置15との組み合わせについては,過去に入出力処理の実績がないことを示している。   As described above, the past execution time results of the corresponding guest OS 12 and the corresponding storage device 15 are accumulated in the maximum time and average time items in the removal prediction information 133. In the removal prediction information 133 shown in FIG. 7, the combination of the guest OS 12 and the storage device 15 whose maximum time and average time items are “unknown” indicates that there is no past input / output processing record. Show.

予測制御部130において,ホスト側制御部110から取り外し予測時間の問い合わせを受けると,予測部131は,現在の時刻から,取り外し予測情報133における指定されたゲストOS12と記憶装置15との開始時刻を差し引いて,経過時間を求める。このとき,指定されたゲストOS12と記憶装置15との間の入出力処理は,実行中である。求められた経過時間は,入出力処理の開始時刻から取り外し要求が発行された時刻までの経過時間となる。   When the prediction control unit 130 receives an inquiry about the predicted removal time from the host-side control unit 110, the prediction unit 131 determines the start time of the guest OS 12 and the storage device 15 specified in the removal prediction information 133 from the current time. Subtract to find the elapsed time. At this time, the input / output processing between the designated guest OS 12 and the storage device 15 is being executed. The obtained elapsed time is the elapsed time from the start time of the input / output process to the time when the removal request is issued.

予測部131は,取り外し予測情報133における該当ゲストOS12と該当記憶装置15との平均時間から経過時間を差し引いた時間を求める。ここでは,取り外し予測情報133における平均時間から経過時間を差し引いて得られる時間を,予測平均時間と呼ぶ。予測平均時間は,該当ゲストOS12と該当記憶装置15との間の入出力処理が終了するまでの時間として,過去の実績から最も期待される予測時間の一例である。   The prediction unit 131 obtains a time obtained by subtracting the elapsed time from the average time of the corresponding guest OS 12 and the corresponding storage device 15 in the removal prediction information 133. Here, the time obtained by subtracting the elapsed time from the average time in the removal prediction information 133 is referred to as a predicted average time. The predicted average time is an example of the predicted time that is most expected from the past performance as the time until the input / output processing between the guest OS 12 and the storage device 15 is completed.

予測部131は,取り外し予測情報133における該当ゲストOS12と該当記憶装置15との最大時間から経過時間を差し引いた時間を求める。ここでは,取り外し予測情報133における最大時間から経過時間を差し引いて得られる時間を,予測最大時間と呼ぶ。予測最大時間は,該当ゲストOS12と該当記憶装置15との間の入出力処理が終了するまでの時間として,過去の実績から想定される最大の予測時間の一例である。   The prediction unit 131 obtains a time obtained by subtracting the elapsed time from the maximum time between the corresponding guest OS 12 and the corresponding storage device 15 in the removal prediction information 133. Here, the time obtained by subtracting the elapsed time from the maximum time in the removal prediction information 133 is referred to as a predicted maximum time. The predicted maximum time is an example of the maximum predicted time assumed from past performance as the time until the input / output processing between the corresponding guest OS 12 and the corresponding storage device 15 is completed.

予測制御部130は,ホスト側制御部110の問い合わせに対する応答として,予測部131により求められた取り外し予測時間の情報を通知する。本実施の形態では,取り外し予測時間の情報として,予測平均時間と予測最大時間とが通知される。なお,過去の入出力処理の実績がなく,取り外し予測情報133における最大時間や平均時間が不明となっている場合には,取り外し予測時間の情報として,不明が通知される。   The prediction control unit 130 notifies the information of the predicted removal time obtained by the prediction unit 131 as a response to the inquiry from the host-side control unit 110. In the present embodiment, the predicted average time and the predicted maximum time are notified as information on the predicted removal time. When there is no past input / output processing record and the maximum time or average time in the removal prediction information 133 is unknown, unknown is notified as information on the predicted removal time.

また,予測部131は,求められた経過時間が,過去の入出力処理の実行時間から予測される実行時間を所定時間以上超えた場合に,入出力処理に異常が発生した可能性があると判断する。例えば,予測部131は,経過時間と,取り外し予測情報133における該当ゲストOS12と該当記憶装置15との最大時間とを比較して,経過時間が最大時間の2倍以上である場合に,入出力処理に異常が発生した可能性があると判断する。このとき,予測制御部130は,ホスト側制御部110の問い合わせに対する応答として,取り外し予測時間の情報の代わりに,異常を通知する。   Further, the predicting unit 131 may indicate that an abnormality has occurred in the input / output process when the obtained elapsed time exceeds the execution time predicted from the execution time of the past input / output process by a predetermined time or more. to decide. For example, the prediction unit 131 compares the elapsed time with the maximum time of the corresponding guest OS 12 and the corresponding storage device 15 in the removal prediction information 133, and if the elapsed time is more than twice the maximum time, the input / output It is determined that there may be an abnormality in processing. At this time, as a response to the inquiry from the host-side control unit 110, the prediction control unit 130 notifies an abnormality instead of the information on the estimated removal time.

同じゲストOS12と同じ記憶装置15との間での入出力処理では,同じパターンの処理が繰り返し実行されるケースも多く,その場合,入出力処理の実行時間も,毎回同じぐらいの時間となる。そのため,本実施の形態の予測部131では,ゲストOS12と記憶装置15との組み合わせごとに,過去の入出力処理の実行時間の実績から,実行中の入出力処理が終了するまでの時間の予測を行う。   In input / output processing between the same guest OS 12 and the same storage device 15, there are many cases in which the same pattern processing is repeatedly executed. In this case, the input / output processing execution time is approximately the same every time. Therefore, in the prediction unit 131 according to the present embodiment, for each combination of the guest OS 12 and the storage device 15, the prediction of the time from the past execution time of the input / output process to the end of the input / output process being executed is predicted. I do.

図8は,本実施の形態による通知画面の例を示す図である。   FIG. 8 is a diagram illustrating an example of a notification screen according to the present embodiment.

ホスト側制御部110が予測制御部130から問い合わせに対する応答を受けると,通知部113は,その応答の内容に応じた通知を,ホストOS11に送る。ホストOS11では,ホストOS11の操作者に対する,ホスト側制御部110から通知された内容の提示が行われる。例えば,ホストOS11での制御によって,ホストOS11の操作者が使用しているディスプレイに,ホスト側制御部110からの通知の内容を提示した画面が表示される。   When the host-side control unit 110 receives a response to the inquiry from the prediction control unit 130, the notification unit 113 sends a notification corresponding to the content of the response to the host OS 11. The host OS 11 presents the contents notified from the host-side control unit 110 to the operator of the host OS 11. For example, under the control of the host OS 11, a screen presenting the content of notification from the host-side control unit 110 is displayed on the display used by the operator of the host OS 11.

問い合わせに対する予測制御部130からの応答が取り外し予測時間の情報の通知であれば,通知部113は,予測制御部130から得られた取り外し予測時間の情報を,ホストOS11に通知する。取り外し予測時間の情報の通知を受けたホストOS11では,操作者のディスプレイに,取り外し予測時間の情報を表示する制御が行われる。   If the response from the prediction control unit 130 to the inquiry is a notification of predicted removal time information, the notification unit 113 notifies the host OS 11 of the predicted removal time information obtained from the prediction control unit 130. The host OS 11 that has received notification of the estimated removal time information performs control to display the estimated removal time information on the operator's display.

図8(A)は,取り外し予測時間として,予測平均時間と予測最大時間とが表示された通知画面の例を示す。取り外し予測時間として,予測平均時間と予測最大時間とが得られた場合には,図8(A)に示すように,それらの予測時間の情報が,取り外し完了予測時間として,操作者のディスプレイに表示される通知画面に提示される。図8(A)に示す通知画面において,“通常60s後”とあるのが提示された予測平均時間であり,“最大90s後”とあるのが提示された予測最大時間である。   FIG. 8A shows an example of a notification screen on which the predicted average time and the predicted maximum time are displayed as the estimated removal time. When the predicted average time and the maximum predicted time are obtained as the predicted removal time, as shown in FIG. 8A, the information on the predicted time is displayed on the operator's display as the predicted removal completion time. Presented on the displayed notification screen. In the notification screen shown in FIG. 8A, “normally after 60 s” is the presented prediction average time, and “maximum after 90 s” is the presented prediction maximum time.

図8(B)は,取り外し予測時間が不明である場合の通知画面の例を示す。取り外し予測時間が不明である場合には,図8(B)に示すように,取り外し完了予測時間として,操作者のディスプレイに表示される通知画面に,不明である旨が提示される。   FIG. 8B shows an example of a notification screen when the estimated removal time is unknown. When the estimated removal time is unknown, as shown in FIG. 8 (B), the notification screen displayed on the operator's display indicates that the removal is predicted to be unknown.

問い合わせに対する予測制御部130からの応答が異常の通知であれば,通知部113は,ホストOS11に異常を通知する。異常の通知を受けたホストOS11では,操作者のディスプレイに,異常が発生している可能性がある旨を表示する制御が行われる。   If the response from the prediction control unit 130 to the inquiry is an abnormality notification, the notification unit 113 notifies the host OS 11 of the abnormality. The host OS 11 that has received the notification of the abnormality performs a control to display that there is a possibility that an abnormality has occurred on the operator's display.

図8(C)は,異常の可能性が提示された通知画面の例を示す。取り外し対象の入出力処理に異常の可能性がある場合には,図8(C)に示すように,操作者のディスプレイに表示される通知画面に,異常が発生している可能性がある旨が提示される。   FIG. 8C shows an example of a notification screen on which a possibility of abnormality is presented. If there is a possibility of abnormality in the input / output processing to be removed, there is a possibility that an abnormality has occurred on the notification screen displayed on the operator's display as shown in FIG. Is presented.

なお,図8の通知画面では,再度の取り外しの指示により,強制的にゲストOS12と記憶装置15との取り外しができる旨が,説明されている。   Note that the notification screen of FIG. 8 explains that the guest OS 12 and the storage device 15 can be forcibly removed by an instruction for removal again.

以下チャネル制御部13の取り外し制御部100により,ゲストOS12と記憶装置15との取り外しを制御する例を,フローチャートを用いて具体的に説明する。   Hereinafter, an example in which the removal control unit 100 of the channel control unit 13 controls the removal of the guest OS 12 and the storage device 15 will be specifically described with reference to a flowchart.

図9,図10は,本実施の形態のホスト側制御部による取り外し要求受け付け時の処理フローチャートである。   FIG. 9 and FIG. 10 are processing flowcharts when a removal request is accepted by the host-side control unit of the present embodiment.

受付部111は,ホストOS11から発行された取り外し要求を受け付ける(ステップS10)。取り外し要求では,取り外し対象となるゲストOS12と記憶装置15とが,それぞれゲストIDと装置番号とで指定されている。判断部112は,取り外し対象のゲストOS12のゲストIDと記憶装置15の装置番号とで,取り外し抑止制御情報116にアクセスする(ステップS11)。判断部112は,取り外し抑止制御情報116の該当ゲストID,該当装置番号における取り外し抑止が“有り”であるかを判定する(ステップS12)。   The accepting unit 111 accepts a removal request issued from the host OS 11 (step S10). In the removal request, the guest OS 12 and the storage device 15 to be removed are designated by the guest ID and the device number, respectively. The determination unit 112 accesses the removal suppression control information 116 using the guest ID of the guest OS 12 to be removed and the device number of the storage device 15 (step S11). The determination unit 112 determines whether or not the removal suppression in the corresponding guest ID and the corresponding device number in the removal suppression control information 116 is “present” (step S12).

取り外し抑止が“有り”であれば(ステップS12のYES),ホスト側制御部110は,予測制御部130に対して,ゲストIDと装置番号とを指定して,取り外し予測時間を問い合わせる(ステップS13)。取り外し抑止が“有り”である場合には,取り外し対象のゲストOS12と記憶装置15との間で入出力処理が実行中であると判断できる。この場合には,安全な取り外しができないため,判断部112は,入出力処理の終了を待ってから,取り外し対象のゲストOS12と記憶装置15との取り外しを実行すると判断する。   If the removal inhibition is “present” (YES in step S12), the host-side control unit 110 inquires of the prediction control unit 130 about the estimated removal time by specifying the guest ID and the device number (step S13). ). If the removal inhibition is “present”, it can be determined that an input / output process is being executed between the guest OS 12 to be removed and the storage device 15. In this case, since safe removal cannot be performed, the determination unit 112 determines that the removal of the guest OS 12 to be removed and the storage device 15 is executed after waiting for the end of the input / output process.

ホスト側制御部110は,予測制御部130から,取り外し予測時間の問い合わせに対する応答を受け付ける(ステップS14)。通知部113は,予測制御部130からの応答が,異常の通知であるかを判定する(ステップS15)。   The host-side control unit 110 receives a response to the inquiry about the estimated removal time from the prediction control unit 130 (step S14). The notification unit 113 determines whether the response from the prediction control unit 130 is an abnormality notification (step S15).

応答が異常の通知であれば(ステップS15のYES),通知部113は,ホストOS11に異常を通知する(ステップS16)。このとき,ホストOS11での制御により,ホストOS11の操作者に対して,異常を通知する画面が提示される。   If the response is a notification of abnormality (YES in step S15), the notification unit 113 notifies the host OS 11 of the abnormality (step S16). At this time, a screen for notifying the operator of the host OS 11 is displayed under the control of the host OS 11.

応答が異常の通知でなければ(ステップS15のNO),すなわち応答が取り外し予測時間の情報の通知であれば,通知部113は,ホストOS11に取り外し予測時間の情報を通知する(ステップS17)。このとき,ホストOS11での制御により,ホストOS11の操作者に対して,取り外し予測時間の情報を通知する画面が提示される。   If the response is not an abnormal notification (NO in step S15), that is, if the response is a notification of estimated removal time, the notification unit 113 notifies the host OS 11 of the estimated removal time (step S17). At this time, a screen for notifying the operator of the host OS 11 of information on the estimated removal time is presented under the control of the host OS 11.

取り外し抑止制御部114は,取り外し抑止制御情報116の該当ゲストID,該当装置番号における取り外し抑止を“予約”に更新する(ステップS18)。ホスト側制御部110は,ゲスト側制御部120に対して,ゲストIDと装置番号とを指定した取り外し予約を通知する(ステップS19)。これにより,取り外し対象のゲストOS12と記憶装置15との間での入出力処理の終了を待ってから取り外しを実行する状態となる。   The removal suppression control unit 114 updates the removal suppression in the corresponding guest ID and device number of the removal suppression control information 116 to “reserved” (step S18). The host side control unit 110 notifies the guest side control unit 120 of a removal reservation specifying the guest ID and the device number (step S19). As a result, after the completion of the input / output processing between the guest OS 12 to be removed and the storage device 15, the removal is executed.

取り外し抑止が“有り”でなければ(ステップS12のNO),判断部112は,取り外し抑止制御情報116の該当ゲストID,該当装置番号における取り外し抑止が“予約”であるかを判定する(ステップS20)。   If the removal suppression is not “present” (NO in step S12), the determination unit 112 determines whether the removal suppression in the corresponding guest ID and corresponding device number in the removal suppression control information 116 is “reserved” (step S20). ).

取り外し抑止が“予約”であれば(ステップS20のYES),ホスト側制御部110は,取り外し実行制御部16に取り外しの実行を通知する。取り外し実行制御部16は,取り外し対象のゲストOS12と記憶装置15との取り外しを実行する(ステップS21)。この取り外しは,強制的な取り外しとなる。取り外し抑止が“予約”である状態は,取り外し対象のゲストOS12と記憶装置15との間での入出力処理の終了を待っている状態である。この状態で,入出力処理の終了を待たずに再度取り外し要求があった場合,判断部112は,ホストOS11の操作者が強制的な取り外しを指示したものと判断する。通知部113は,ホストOS11に強制取り外しを通知する(ステップS22)。   If the removal inhibition is “reserved” (YES in step S20), the host-side control unit 110 notifies the removal execution control unit 16 of the execution of removal. The removal execution control unit 16 removes the guest OS 12 to be removed from the storage device 15 (step S21). This removal is a forced removal. The state in which the removal suppression is “reserved” is a state in which the input / output processing between the guest OS 12 to be removed and the storage device 15 is finished. In this state, if there is a removal request again without waiting for the end of the input / output processing, the determination unit 112 determines that the operator of the host OS 11 has instructed forcible removal. The notification unit 113 notifies the host OS 11 of forced removal (step S22).

取り外し抑止が“予約”でなければ(ステップS20のNO),すなわち取り外し抑止が“なし”であれば,ホスト側制御部110は,取り外し実行制御部16に取り外しの実行を通知する。取り外し実行制御部16は,取り外し対象のゲストOS12と記憶装置15との取り外しを実行する(ステップS23)。この取り外しは,安全な取り外しとなる。取り外し抑止が“なし”である状態は,取り外し対象のゲストOS12と記憶装置15との間での入出力処理が行われていない状態である。このとき,判断部112は,取り外し対象のゲストOS12と記憶装置15との安全な取り外しが実行できると判断する。通知部113は,ホストOS11に取り外しを通知する(ステップS24)。   If the removal suppression is not “reserved” (NO in step S20), that is, if the removal suppression is “none”, the host-side control unit 110 notifies the removal execution control unit 16 of the execution of the removal. The removal execution control unit 16 performs removal of the guest OS 12 to be removed and the storage device 15 (step S23). This removal is a safe removal. The state in which the removal inhibition is “none” is a state in which an input / output process is not performed between the guest OS 12 to be removed and the storage device 15. At this time, the determination unit 112 determines that safe removal between the guest OS 12 to be removed and the storage device 15 can be executed. The notification unit 113 notifies the removal to the host OS 11 (step S24).

図11は,本実施の形態のホスト側制御部による取り外し抑止開始通知受け付け時の処理フローチャートである。   FIG. 11 is a processing flowchart when a removal suppression start notification is received by the host-side control unit according to the present embodiment.

ホスト側制御部110は,ゲスト側制御部120から,取り外し抑止開始通知を受け付ける(ステップS30)。取り外し抑止開始通知では,取り外し抑止の制御を開始する対象となるゲストOS12と記憶装置15とが,それぞれゲストIDと装置番号とで指定されている。   The host-side control unit 110 receives a removal suppression start notification from the guest-side control unit 120 (step S30). In the removal suppression start notification, the guest OS 12 and the storage device 15 that are the targets for starting the removal suppression control are specified by the guest ID and the device number, respectively.

取り外し抑止制御部114は,取り外し抑止の制御を開始する対象のゲストOS12のゲストIDと記憶装置15の装置番号とで,取り外し抑止制御情報116にアクセスする(ステップS31)。取り外し抑止制御部114は,取り外し抑止制御情報116の該当ゲストID,該当装置番号における取り外し抑止を,“有り”に更新する(ステップS32)。   The removal suppression control unit 114 accesses the removal suppression control information 116 using the guest ID of the guest OS 12 to be controlled to start removal suppression and the device number of the storage device 15 (step S31). The removal inhibition control unit 114 updates the removal inhibition in the corresponding guest ID and the corresponding device number of the removal inhibition control information 116 to “present” (step S32).

取り外し抑止開始通知は,ゲスト側制御部120がゲストOS12から発行された記憶装置15に対するリザーブコマンドを検知したときに送られる通知である。このことは,リザーブコマンドを発行したゲストOS12と,相手先の記憶装置15との間での一連の入出力処理が開始されたことを意味している。取り外し抑止制御情報116において,取り外し抑止を“有り”に更新するということは,入出力処理が終了するまで,対象のゲストOS12と記憶装置15との取り外しを抑制する制御を行うということである。   The removal suppression start notification is a notification sent when the guest-side control unit 120 detects a reserve command for the storage device 15 issued from the guest OS 12. This means that a series of input / output processing has started between the guest OS 12 that issued the reserve command and the storage device 15 of the counterpart. In the removal suppression control information 116, updating the removal suppression to “present” means performing control to suppress removal of the target guest OS 12 and the storage device 15 until the input / output processing is completed.

図12は,本実施の形態のホスト側制御部による取り外し抑止終了通知受け付け時の処理フローチャートである。   FIG. 12 is a processing flowchart when a removal suppression end notification is received by the host-side control unit according to the present embodiment.

ホスト側制御部110は,ゲスト側制御部120から,取り外し抑止終了通知を受け付ける(ステップS40)。取り外し抑止終了通知では,取り外し抑止の制御を終了する対象となるゲストOS12と記憶装置15とが,それぞれゲストIDと装置番号とで指定されている。   The host-side control unit 110 receives a removal suppression end notification from the guest-side control unit 120 (step S40). In the removal inhibition end notification, the guest OS 12 and the storage device 15 that are the targets for termination of removal inhibition control are designated by the guest ID and the device number, respectively.

取り外し抑止制御部114は,取り外し抑止の制御を終了する対象のゲストOS12のゲストIDと記憶装置15の装置番号とで,取り外し抑止制御情報116にアクセスする(ステップS41)。取り外し抑止制御部114は,取り外し抑止制御情報116の該当ゲストID,該当装置番号における取り外し抑止を,“なし”に更新する(ステップS42)。   The removal inhibition control unit 114 accesses the removal inhibition control information 116 using the guest ID of the guest OS 12 to be terminated with the removal inhibition control and the device number of the storage device 15 (step S41). The removal inhibition control unit 114 updates the removal inhibition in the corresponding guest ID and the corresponding device number of the removal inhibition control information 116 to “none” (step S42).

取り外し抑止終了通知は,ゲスト側制御部120がゲストOS12から発行された記憶装置15に対するリリースコマンドを検知したときに送られる通知である。このことは,リリースコマンドを発行したゲストOS12と,相手先の記憶装置15との間での一連の入出力処理が終了したことを意味している。取り外し抑止制御情報116において,取り外し抑止を“なし”に更新するということは,対象のゲストOS12と記憶装置15との取り外しの抑制を解除したということである。   The removal suppression end notification is a notification sent when the guest-side control unit 120 detects a release command for the storage device 15 issued from the guest OS 12. This means that a series of input / output processing between the guest OS 12 that issued the release command and the storage device 15 of the other party has been completed. In the removal inhibition control information 116, updating the removal inhibition to “none” means that the inhibition of removal of the target guest OS 12 and the storage device 15 has been released.

図13は,本実施の形態のホスト側制御部による取り外し抑止終了通知・取り外し通知受け付け時の処理フローチャートである。   FIG. 13 is a processing flowchart when a removal suppression end notification / removal notification is received by the host-side control unit according to the present embodiment.

ホスト側制御部110は,ゲスト側制御部120から,取り外し抑止終了通知と取り外し通知とを受け付ける(ステップS50)。取り外し抑止終了通知や取り外し通知では,対象となるゲストOS12と記憶装置15とが,それぞれゲストIDと装置番号とで指定されている。   The host-side control unit 110 receives a removal suppression end notification and a removal notification from the guest-side control unit 120 (step S50). In the removal inhibition end notification and removal notification, the target guest OS 12 and the storage device 15 are designated by the guest ID and the device number, respectively.

取り外し抑止制御部114は,対象のゲストOS12のゲストIDと記憶装置15の装置番号とで,取り外し抑止制御情報116にアクセスする(ステップS51)。取り外し抑止制御部114は,取り外し抑止制御情報116の該当ゲストID,該当装置番号における取り外し抑止を,“なし”に更新する(ステップS52)。ホスト側制御部110は,取り外し実行制御部16に取り外しの実行を通知する。取り外し実行制御部16は,取り外し対象のゲストOS12と記憶装置15との取り外しを実行する(ステップS53)。この取り外しは,安全な取り外しとなる。   The removal inhibition control unit 114 accesses the removal inhibition control information 116 using the guest ID of the target guest OS 12 and the device number of the storage device 15 (step S51). The removal suppression control unit 114 updates the removal suppression in the corresponding guest ID and the corresponding device number of the removal suppression control information 116 to “none” (step S52). The host-side control unit 110 notifies the removal execution control unit 16 of the execution of removal. The removal execution control unit 16 removes the guest OS 12 to be removed from the storage device 15 (step S53). This removal is a safe removal.

取り外しが予約された状況で,ゲスト側制御部120がゲストOS12から発行された記憶装置15に対するリリースコマンドを検知した場合には,ゲスト側制御部120から取り外し抑止終了通知と取り外し通知とが同時に送られる。このとき,リリースコマンドを発行したゲストOS12と相手先の記憶装置15との間では,一連の入出力処理が終了しているので,安全な取り外しが可能となる。   When the guest side control unit 120 detects a release command for the storage device 15 issued from the guest OS 12 in the situation where the removal is reserved, the guest side control unit 120 sends a removal suppression end notification and a removal notification at the same time. It is done. At this time, since a series of input / output processing has been completed between the guest OS 12 that issued the release command and the storage device 15 of the counterpart, safe removal is possible.

図14,図15は,本実施の形態のゲスト側制御部によるIO命令受け付け時の処理フローチャートである。   14 and 15 are processing flowcharts when an IO command is received by the guest-side control unit according to the present embodiment.

IO命令受付部121は,ゲストOS12から発行されたIO命令を受け付ける(ステップS60)。IO命令解析制御部122は,受け付けたIO命令を解析する(ステップS61)。IO命令解析制御部122は,IO命令の解析の結果,リリースコマンドが検出されたかを判定する(ステップS62)。   The IO command receiving unit 121 receives an IO command issued from the guest OS 12 (Step S60). The IO command analysis control unit 122 analyzes the received IO command (step S61). The IO instruction analysis control unit 122 determines whether a release command is detected as a result of the IO instruction analysis (step S62).

リリースコマンドが検出されなければ(ステップS62のNO),IO命令解析制御部122は,IO命令の解析の結果,リザーブコマンドが検出されたかを判定する(ステップS63)。リザーブコマンドが検出されなければ(ステップS63のNO),ゲスト側制御部120は,IO命令制御部17に入出力処理の実行を通知する。IO命令制御部17は,IO命令に従った入出力処理を実行する(ステップS68)。   If no release command is detected (NO in step S62), the IO instruction analysis control unit 122 determines whether a reserve command is detected as a result of the analysis of the IO instruction (step S63). If no reserve command is detected (NO in step S63), the guest side control unit 120 notifies the IO command control unit 17 of the execution of the input / output process. The IO command control unit 17 executes input / output processing according to the IO command (step S68).

リザーブコマンドが検出されれば(ステップS63のYES),IO命令解析制御部122は,リザーブコマンドを発行したゲストOS12のゲストIDと相手先の記憶装置15の装置番号とで,取り外し状況管理情報125にアクセスする(ステップS64)。IO命令解析制御部122は,取り外し状況管理情報125の該当ゲストID,該当装置番号における取り外し状況が“実行”であるかを判定する(ステップS65)。   If a reserve command is detected (YES in step S63), the IO command analysis control unit 122 uses the guest ID of the guest OS 12 that issued the reserve command and the device number of the storage device 15 at the other end of the removal status management information 125. Is accessed (step S64). The IO command analysis control unit 122 determines whether the removal status of the corresponding guest ID and the corresponding device number in the removal status management information 125 is “execution” (step S65).

取り外し状況が“実行”であれば(ステップS65のYES),ゲスト側制御部120は,リザーブコマンドを発行したゲストOS12に対して,ビジー応答する(ステップS66)。取り外し状況管理情報125の取り外し状況が“実行”である場合には,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との取り外しが行われているので,該当ゲストOS12から該当記憶装置15へのアクセスが行われないように制御される。   If the removal status is “execution” (YES in step S65), the guest-side control unit 120 makes a busy response to the guest OS 12 that issued the reserve command (step S66). When the removal status of the removal status management information 125 is “execution”, the guest OS 12 with the corresponding guest ID and the storage device 15 with the corresponding device number have been removed, so that the corresponding storage device 15 has received from the corresponding guest OS 12. It is controlled so that access to is not performed.

取り外し状況が“実行”でなければ(ステップS65のNO),ゲスト側制御部120は,ホスト側制御部110と予測制御部130とに,それぞれゲストIDと装置番号とを指定した取り外し抑止開始を通知する(ステップS67)。取り外し抑止開始の通知によって,リザーブコマンドの発行で該当ゲストOS12と該当記憶装置15との間の入出力処理が開始されたことが,ホスト側制御部110や予測制御部130に通知される。   If the removal status is not “execution” (NO in step S65), the guest-side control unit 120 instructs the host-side control unit 110 and the prediction control unit 130 to start removal suppression specifying a guest ID and a device number, respectively. Notification is made (step S67). By notification of the start of removal suppression, the host-side control unit 110 and the prediction control unit 130 are notified that the input / output processing between the corresponding guest OS 12 and the corresponding storage device 15 has been started by issuing a reserve command.

ゲスト側制御部120は,IO命令制御部17に入出力処理の実行を通知する。IO命令制御部17は,IO命令に従った入出力処理を実行する(ステップS68)。ゲストOS12が発行したリザーブコマンドによって,そのゲストOS12と相手先の記憶装置15との間で入出力処理が開始される。   The guest side control unit 120 notifies the IO command control unit 17 of the execution of the input / output process. The IO command control unit 17 executes input / output processing according to the IO command (step S68). In response to a reserve command issued by the guest OS 12, input / output processing is started between the guest OS 12 and the counterpart storage device 15.

リリースコマンドが検出されれば(ステップS62のYES),IO命令解析制御部122は,リリースコマンドを発行したゲストOS12のゲストIDと相手先の記憶装置15の装置番号とで,取り外し状況管理情報125にアクセスする(ステップS69)。IO命令解析制御部122は,取り外し状況管理情報125の該当ゲストID,該当装置番号における取り外し状況が“予約”であるかを判定する(ステップS70)。   If a release command is detected (YES in step S62), the IO instruction analysis control unit 122 uses the guest ID of the guest OS 12 that issued the release command and the device number of the destination storage device 15 to remove the status management information 125. Is accessed (step S69). The IO command analysis control unit 122 determines whether the removal status of the corresponding guest ID and the corresponding device number in the removal status management information 125 is “reserved” (step S70).

取り外し状況が“予約”でなければ(ステップS70のNO),すなわち取り外し状況が“なし”であれば,ゲスト側制御部120は,ホスト側制御部110に,ゲストIDと装置番号とを指定した取り外し抑止終了を通知する(ステップS71)。また,ゲスト側制御部120は,予測制御部130に,ゲストIDと装置番号とを指定した取り外し抑止終了を通知する(ステップS72)。取り外し抑止終了の通知によって,リリースコマンドの発行で該当ゲストOS12と該当記憶装置15との間の入出力処理が終了したことが,ホスト側制御部110や予測制御部130に通知される。   If the removal status is not “reserved” (NO in step S70), that is, if the removal status is “none”, the guest side control unit 120 designates the guest ID and the device number to the host side control unit 110. The removal inhibition end is notified (step S71). In addition, the guest-side control unit 120 notifies the prediction control unit 130 of the removal suppression end designating the guest ID and the device number (step S72). With the notification of the termination of removal removal, the host-side control unit 110 and the prediction control unit 130 are notified that the input / output processing between the corresponding guest OS 12 and the corresponding storage device 15 has been completed by issuing a release command.

取り外し状況が“予約”であれば(ステップS70のYES),ゲスト側制御部120は,ホスト側制御部110に,ゲストIDと装置番号とを指定した,取り外し抑止終了と取り外しとを通知する(ステップS73)。取り外し状況管理部123は,取り外し状況管理情報125の該当ゲストID,該当装置番号における取り外し状況を“実行”に更新する(ステップS74)。また,ゲスト側制御部120は,予測制御部130に,ゲストIDと装置番号とを指定した取り外し抑止終了を通知する(ステップS72)。取り外し抑止終了の通知によって,リリースコマンドの発行で該当ゲストOS12と該当記憶装置15との間の入出力処理が終了したことが,ホスト側制御部110や予測制御部130に通知される。また,取り外し状況が“予約”である状態は,安全な取り外しのために,該当ゲストOS12と該当記憶装置15との間の入出力処理の終了を待っている状態であるので,ホスト側制御部110に取り外しが通知される。   If the removal status is “reserved” (YES in step S70), the guest-side control unit 120 notifies the host-side control unit 110 of the end of removal suppression and the removal specifying the guest ID and the device number ( Step S73). The removal status management unit 123 updates the removal status of the corresponding guest ID and device number in the removal status management information 125 to “execute” (step S74). In addition, the guest-side control unit 120 notifies the prediction control unit 130 of the removal suppression end designating the guest ID and the device number (step S72). With the notification of the termination of removal removal, the host-side control unit 110 and the prediction control unit 130 are notified that the input / output processing between the corresponding guest OS 12 and the corresponding storage device 15 has been completed by issuing a release command. In addition, the state where the removal status is “reserved” is a state waiting for the end of input / output processing between the guest OS 12 and the storage device 15 for safe removal. Removal is notified to 110.

ゲスト側制御部120は,IO命令制御部17に入出力処理の実行を通知する。IO命令制御部17は,IO命令に従った入出力処理を実行する(ステップS68)。ゲストOS12が発行したリリースコマンドによって,そのゲストOS12と相手先の記憶装置15との間で入出力処理が終了される。   The guest side control unit 120 notifies the IO command control unit 17 of the execution of the input / output process. The IO command control unit 17 executes input / output processing according to the IO command (step S68). The release command issued by the guest OS 12 ends the input / output processing between the guest OS 12 and the counterpart storage device 15.

図16は,本実施の形態のゲスト側制御部による取り外し予約通知受け付け時の処理フローチャートである。   FIG. 16 is a processing flowchart when a guest side control unit according to this embodiment accepts a removal reservation notification.

ゲスト側制御部120は,ホスト側制御部110から,取り外し予約通知を受け付ける(ステップS80)。取り外し予約通知では,取り外しの対象となるゲストOS12と記憶装置15とが,それぞれゲストIDと装置番号とで指定されている。   The guest-side control unit 120 receives a removal reservation notification from the host-side control unit 110 (step S80). In the removal reservation notification, the guest OS 12 and the storage device 15 to be removed are designated by the guest ID and the device number, respectively.

取り外し状況管理部123は,取り外し対象のゲストOS12のゲストIDと記憶装置15の装置番号とで,取り外し状況管理情報125にアクセスする(ステップS81)。取り外し状況管理部123は,取り外し状況管理情報125の該当ゲストID,該当装置番号における取り外し状況を,“予約”に更新する(ステップS82)。   The removal status management unit 123 accesses the removal status management information 125 using the guest ID of the guest OS 12 to be removed and the device number of the storage device 15 (step S81). The removal status management unit 123 updates the removal status of the corresponding guest ID and corresponding device number in the removal status management information 125 to “reserved” (step S82).

図17は,本実施の形態の予測制御部による取り外し抑止開始通知受け付け時の処理フローチャートである。   FIG. 17 is a processing flowchart when a removal suppression start notification is received by the prediction control unit of the present embodiment.

予測制御部130は,ゲスト側制御部120から,取り外し抑止開始通知を受け付ける(ステップS90)。取り外し抑止開始通知では,対象のゲストOS12と記憶装置15とが,それぞれゲストIDと装置番号とで指定されている。   The prediction control unit 130 receives a removal suppression start notification from the guest-side control unit 120 (step S90). In the removal suppression start notification, the target guest OS 12 and the storage device 15 are designated by the guest ID and the device number, respectively.

予測部131は,対象のゲストOS12のゲストIDと記憶装置15の装置番号とで,取り外し予測情報133にアクセスする(ステップS91)。予測部131は,取り外し予測情報133の該当ゲストID,該当装置番号における開始時刻に,現在の時刻を設定する(ステップS92)。   The prediction unit 131 accesses the removal prediction information 133 using the guest ID of the target guest OS 12 and the device number of the storage device 15 (step S91). The prediction unit 131 sets the current time as the start time of the corresponding guest ID and the corresponding device number in the removal prediction information 133 (step S92).

取り外し抑止開始通知は,ゲスト側制御部120がゲストOS12から発行された記憶装置15に対するリザーブコマンドを検知したときに送られる通知である。このことは,リザーブコマンドを発行したゲストOS12と,相手先の記憶装置15との間での一連の入出力処理が開始されたことを意味している。予測制御部130にとって,取り外し抑止開始通知は,入出力処理の実行時間の実績の記録と,入出力処理の終了までの時間の予測とに必要な,ゲストOS12と記憶装置15との間での入出力処理の開始時刻を得るための通知となる。   The removal suppression start notification is a notification sent when the guest-side control unit 120 detects a reserve command for the storage device 15 issued from the guest OS 12. This means that a series of input / output processing has started between the guest OS 12 that issued the reserve command and the storage device 15 of the counterpart. For the prediction control unit 130, the removal suppression start notification is sent between the guest OS 12 and the storage device 15, which is necessary for recording the record of the execution time of the input / output process and predicting the time until the end of the input / output process. This is a notification for obtaining the start time of input / output processing.

図18は,本実施の形態の予測制御部による取り外し抑止終了通知受け付け時の処理フローチャートである。   FIG. 18 is a process flowchart when a removal suppression end notification is received by the prediction control unit of the present embodiment.

予測制御部130は,ゲスト側制御部120から,取り外し抑止終了通知を受け付ける(ステップS100)。取り外し抑止終了通知では,対象のゲストOS12と記憶装置15とが,それぞれゲストIDと装置番号とで指定されている。予測部131は,対象のゲストOS12のゲストIDと記憶装置15の装置番号とで,取り外し予測情報133にアクセスする(ステップS101)。   The prediction control unit 130 receives a removal suppression end notification from the guest side control unit 120 (step S100). In the removal suppression end notification, the target guest OS 12 and the storage device 15 are designated by the guest ID and the device number, respectively. The prediction unit 131 accesses the removal prediction information 133 using the guest ID of the target guest OS 12 and the device number of the storage device 15 (step S101).

予測部131は,取り外し予測情報133の該当ゲストID,該当装置番号における開始時刻と,現在の時刻とから,経過時間を算出する(ステップS102)。経過時間は,現在の時刻から開始時刻を差し引くことにより求められる。取り外し予測情報133の開始時刻は,ゲストOS12からリザーブコマンドが発行された時刻,すなわちゲストOS12と記憶装置15との間での入出力処理が開始された時刻である。取り外し抑止終了通知を受け付けた時点における現在の時刻は,ゲストOS12からリリースコマンドが発行された時刻,すなわちゲストOS12と記憶装置15との間での入出力処理が終了した時刻である。ここで求められる経過時間は,ゲストOS12と記憶装置15との間での入出力処理の実行時間となる。   The prediction unit 131 calculates the elapsed time from the start time at the corresponding guest ID and the corresponding device number in the removal prediction information 133 and the current time (step S102). The elapsed time is obtained by subtracting the start time from the current time. The start time of the removal prediction information 133 is the time when the reserve command is issued from the guest OS 12, that is, the time when the input / output processing between the guest OS 12 and the storage device 15 is started. The current time when the removal suppression end notification is received is the time when the release command is issued from the guest OS 12, that is, the time when the input / output processing between the guest OS 12 and the storage device 15 is ended. The elapsed time obtained here is the execution time of the input / output process between the guest OS 12 and the storage device 15.

予測部131は,取り外し予測情報133の該当ゲストID,該当装置番号における平均時間に経過時間を足して2で割った値で,該当ゲストID,該当装置番号における平均時間を更新する(ステップS103)。ここでは,平均時間として,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との間での入出力処理について,過去の実行時間の近似平均が求められている。なお,予測時間として,過去の実行時間のログを蓄積して平均時間を求める,統計的手法を用いて期待値を求めるなどの設計は,任意である。   The prediction unit 131 updates the average time in the corresponding guest ID and the corresponding device number by a value obtained by adding the elapsed time to the average time in the corresponding guest ID and the corresponding device number of the removal prediction information 133 and dividing by 2 (step S103). . Here, as an average time, an approximate average of past execution times is obtained for input / output processing between the guest OS 12 of the corresponding guest ID and the storage device 15 of the corresponding device number. In addition, as a predicted time, a design such as accumulating a log of past execution times to obtain an average time or obtaining an expected value using a statistical method is arbitrary.

予測部131は,経過時間が,取り外し予測情報133の該当ゲストID,該当装置番号における最大時間より大きいかを判定する(ステップS104)。経過時間が最大時間より大きい場合には(ステップS104のYES),予測部131は,取り外し予測情報133の該当ゲストID,該当装置番号における最大時間を,経過時間で更新する(ステップS105)。   The prediction unit 131 determines whether the elapsed time is greater than the maximum time for the corresponding guest ID and the corresponding device number in the removal prediction information 133 (step S104). If the elapsed time is greater than the maximum time (YES in step S104), the prediction unit 131 updates the maximum time in the corresponding guest ID and corresponding device number in the removal prediction information 133 with the elapsed time (step S105).

取り外し抑止終了通知は,ゲスト側制御部120がゲストOS12から発行された記憶装置15に対するリリースコマンドを検知したときに送られる通知である。このことは,リリースコマンドを発行したゲストOS12と,相手先の記憶装置15との間での一連の入出力処理が終了したことを意味している。予測制御部130にとって,取り外し抑止終了通知は,入出力処理の実行時間の実績の記録に必要な,ゲストOS12と記憶装置15との間での入出力処理の終了時刻と得るための通知となる。ゲストOS12と記憶装置15との間での入出力処理の開始時刻と終了時刻とから,入出力処理の実行時間の実績が得られる。   The removal suppression end notification is a notification sent when the guest-side control unit 120 detects a release command for the storage device 15 issued from the guest OS 12. This means that a series of input / output processing between the guest OS 12 that issued the release command and the storage device 15 of the other party has been completed. For the prediction control unit 130, the removal suppression end notification is a notification for obtaining the end time of the input / output processing between the guest OS 12 and the storage device 15 necessary for recording the record of the execution time of the input / output processing. . From the start time and end time of the input / output process between the guest OS 12 and the storage device 15, the record of the execution time of the input / output process is obtained.

図19は,本実施の形態の予測制御部による取り外し予測時間問い合わせ受け付け時の処理フローチャートである。   FIG. 19 is a processing flowchart when an estimated removal time inquiry is received by the prediction control unit of the present embodiment.

予測制御部130は,ホスト側制御部110から,取り外し予測時間の問い合わせを受け付ける(ステップS110)。取り外し予測時間の問い合わせでは,対象のゲストOS12と記憶装置15とが,それぞれゲストIDと装置番号とで指定されている。予測部131は,対象のゲストOS12のゲストIDと記憶装置15の装置番号とで,取り外し予測情報133にアクセスする(ステップS111)。   The prediction control unit 130 receives an inquiry about the estimated removal time from the host-side control unit 110 (step S110). In the inquiry about the estimated removal time, the target guest OS 12 and the storage device 15 are designated by the guest ID and the device number, respectively. The prediction unit 131 accesses the removal prediction information 133 using the guest ID of the target guest OS 12 and the device number of the storage device 15 (step S111).

予測部131は,取り外し予測情報133の該当ゲストID,該当装置番号における開始時刻と,現在の時刻とから,経過時間を算出する(ステップS112)。経過時間は,現在の時刻から開始時刻を差し引くことにより求められる。ここで求められる経過時間は,実行中であるゲストOS12と記憶装置15との間での入出力処理の開始時刻から,ホストOS11から取り外し要求を受けた時刻までの経過時間である。   The prediction unit 131 calculates an elapsed time from the start time at the corresponding guest ID and the corresponding device number in the removal prediction information 133 and the current time (step S112). The elapsed time is obtained by subtracting the start time from the current time. The elapsed time obtained here is the elapsed time from the start time of the input / output process between the guest OS 12 being executed and the storage device 15 to the time when the removal request is received from the host OS 11.

予測部131は,経過時間が,取り外し予測情報133の該当ゲストID,該当装置番号における最大時間の2倍以上かを判定する(ステップS113)。   The prediction unit 131 determines whether the elapsed time is twice or more the maximum time for the corresponding guest ID and the corresponding device number in the removal prediction information 133 (step S113).

経過時間が最大時間の2倍以上であれば(ステップS113のYES),予測部131は,異常と判断し,取り外し予測時間の問い合わせに対する応答として,ホスト側制御部110に異常を通知する(ステップS114)。入出力処理が開始されてからの経過時間が,過去の入出力処理の実行時間の実績から予測される範囲の時間を大きく超えている場合には,入出力処理に何らかの異常が発生している可能性がある。なお,ここでは,最大時間を基準として,その2倍以上の時間が入出力処理の開始から経過していることを条件に,異常の判断を行っているが,異常を判断する基準の時間や,その基準時間に基づいた異常判定の条件などは,任意の設計が可能である。   If the elapsed time is more than twice the maximum time (YES in step S113), the prediction unit 131 determines that there is an abnormality, and notifies the host-side control unit 110 of the abnormality as a response to the inquiry about the estimated removal time (step) S114). If the elapsed time since the start of I / O processing greatly exceeds the time expected from the past execution time of I / O processing, an error has occurred in I / O processing. there is a possibility. In this case, the abnormality is judged on the condition that the time more than twice has elapsed from the start of the input / output process with the maximum time as a reference. The conditions for determining an abnormality based on the reference time can be arbitrarily designed.

経過時間が最大時間の2倍以上でなければ(ステップS113のNO),予測部131は,取り外し予測情報133の該当ゲストID,該当装置番号における平均時間と,最大時間とから,それぞれ経過時間を差し引いた時間を求める(ステップS115)。平均時間から経過時間を差し引いて得られる予測平均時間は,実行中の入出力処理が終了までの平均的な時間の予測を示す。最大時間から経過時間を差し引いて得られる予測最大時間は,実行中の入出力処理が終了までの過去の最大時間を示す。ここでは,求めた2つの時間を取り外し予測時間とする。   If the elapsed time is not more than twice the maximum time (NO in step S113), the prediction unit 131 calculates the elapsed time from the corresponding guest ID, the average time of the corresponding device number, and the maximum time of the removal prediction information 133, respectively. The subtracted time is obtained (step S115). The predicted average time obtained by subtracting the elapsed time from the average time indicates the prediction of the average time until the current input / output processing is completed. The predicted maximum time obtained by subtracting the elapsed time from the maximum time indicates the past maximum time until the current input / output processing is completed. Here, the obtained two times are taken as the estimated removal time.

予測部131は,問い合わせに対する応答として,ホスト側制御部110に,取り外し予測時間の情報を通知する(ステップS116)。   As a response to the inquiry, the prediction unit 131 notifies the host-side control unit 110 of information on the estimated removal time (step S116).

以上説明したように,本実施の形態による仮想計算機システム10では,入出力処理の終了を待ってゲストOS12と記憶装置15との取り外しを実行する場合に,取り外しの実行時間,すなわち入出力処理の終了時間を予測して,ホストOS11の操作者に提示することが可能となる。これにより,ホストOS11の操作者は,取り外しを要求したゲストOS12と記憶装置15との取り外し完了までのおおよその時間を把握することが可能となり,強制的に取り外しを実行するか否かを容易に判断できるようになる。   As described above, in the virtual machine system 10 according to the present embodiment, when the removal of the guest OS 12 and the storage device 15 is executed after completion of the input / output processing, the removal execution time, that is, the input / output processing time. The end time can be predicted and presented to the operator of the host OS 11. As a result, the operator of the host OS 11 can grasp the approximate time until the removal of the guest OS 12 that has requested removal and the storage device 15 is completed, and can easily determine whether or not to forcibly perform the removal. It will be possible to judge.

また,取り外しを要求したゲストOS12と記憶装置15とについて,予測時間を大きく経過しているのに入出力処理が終了していない場合に,異常の可能性をホストOS11の操作者に提示することが可能となる。これにより,ホストOS11の操作者は,取り外しを要求したゲストOS12と記憶装置15との間における入出力処理の異常を速やかに知ることが可能となり,強制的に取り外しを実行するか否かを容易に判断できるようになる。   In addition, for the guest OS 12 and the storage device 15 that have requested removal, if the input / output processing has not ended even though the estimated time has elapsed, the possibility of abnormality is presented to the operator of the host OS 11. Is possible. As a result, the operator of the host OS 11 can quickly know the abnormality in the input / output processing between the guest OS 12 that requested the removal and the storage device 15, and can easily determine whether to forcibly perform the removal. Will be able to judge.

〔実施の形態2〕
前述の実施の形態1では,予測制御部130において,各ゲストOS12と各記憶装置15とを組み合わせた単位で,過去の入出力処理の実行時間の実績から,入出力処理の終了までの予測時間を求める例を説明した。予測制御部130において,各ゲストOS12と各記憶装置15とを組み合わせた単位をさらに詳細にした,入出力処理時のコマンドの実行パターンごとの単位で,過去の入出力処理の実行時間の実績から,入出力処理の終了までの予測時間を求めることもできる。
[Embodiment 2]
In the first embodiment described above, in the prediction control unit 130, the estimated time from the past execution time of the input / output processing to the end of the input / output processing in a unit in which each guest OS 12 and each storage device 15 are combined. The example which asks for was explained. In the prediction control unit 130, the unit of each guest OS 12 and each storage device 15 is further detailed, and is based on the past execution time of input / output processing in units of command execution patterns during input / output processing. The estimated time until the end of the input / output processing can be obtained.

図20は,本実施の形態による取り外し予測情報の例(2)を示す図である。   FIG. 20 is a diagram illustrating an example (2) of the removal prediction information according to the present embodiment.

図20に示す取り外し予測情報133’は,図7に示す取り外し予測情報133と同様に,予測情報記憶部132に記憶される取り外し予測情報の一例である。ただし,図7に示す取り外し予測情報133と異なり,図20に示す取り外し予測情報133’では,各ゲストOS12と各記憶装置15とを組み合わせた単位をさらに詳細にした,入出力処理時のコマンドの実行パターンごとの単位で,情報が管理されている。   The removal prediction information 133 ′ illustrated in FIG. 20 is an example of the removal prediction information stored in the prediction information storage unit 132, similarly to the removal prediction information 133 illustrated in FIG. 7. However, unlike the removal prediction information 133 shown in FIG. 7, the removal prediction information 133 ′ shown in FIG. 20 has a command unit at the time of input / output processing that further details the unit in which each guest OS 12 and each storage device 15 are combined. Information is managed in units of execution patterns.

図20に示す例では,ゲストIDが“#01”であるゲストOS12についての取り外し予測情報133’の例が示されている。ゲストIDは,ゲストOS12を一意に識別する識別情報である。   In the example illustrated in FIG. 20, an example of the removal prediction information 133 ′ for the guest OS 12 whose guest ID is “# 01” is illustrated. The guest ID is identification information that uniquely identifies the guest OS 12.

図20に示す取り外し予測情報133’は,装置番号,コマンド列,最大コマンド数,平均コマンド数,平均時間,現在のコマンド数,開始時刻の情報を持つ。装置番号は,記憶装置15を一意に識別する識別情報である。   The removal prediction information 133 'illustrated in FIG. 20 includes information on a device number, a command string, a maximum command number, an average command number, an average time, a current command number, and a start time. The device number is identification information for uniquely identifying the storage device 15.

コマンド列は,リザーブコマンドから始まる一連の入出力処理において,リザーブコマンド後のコマンドの実行パターンごとの分類を示す。本実施の形態では,Read系コマンドとWrite系コマンドとの実行パターンで分類を行うものとする。図20に示すコマンド列において,RDはRead系コマンドを示し,WTはWrite系コマンドを示す。例えば,RD−WTは,一連の入出力処理において,最初に発行されたRead系/Write系コマンドがRead系コマンドであり,2番目に発行されたRead系/Write系コマンドがWrite系コマンドであることを示している。なお,図20に示す取り外し予測情報133’では,2番目までのRead系/Write系コマンドのコマンド列で,コマンドの実行パターンを分類しているが,3番目までのコマンド列で分類するなどの設計は任意である。   The command string indicates the classification of each command execution pattern after the reserve command in a series of input / output processes starting from the reserve command. In the present embodiment, it is assumed that classification is performed based on an execution pattern of a Read command and a Write command. In the command sequence shown in FIG. 20, RD indicates a Read command, and WT indicates a Write command. For example, in the RD-WT, in a series of input / output processes, the first Read / Write command issued is a Read command, and the second Read / Write command issued is a Write command. It is shown that. In the removal prediction information 133 ′ shown in FIG. 20, the command execution pattern is classified by the command sequence of the second Read / Write command, but is classified by the third command sequence. The design is arbitrary.

最大コマンド数は,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との間の過去の入出力処理において,最大のRead系/Write系コマンドの出現数である。平均コマンド数は,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との間の過去の入出力処理における,Read系/Write系コマンドの出現数の近似平均を示す。平均時間は,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との間の過去の入出力処理における,Read系/Write系コマンドの1コマンド当たりの実行時間の近似平均を示す。   The maximum number of commands is the number of occurrences of the maximum Read / Write commands in the past input / output processing between the guest OS 12 with the corresponding guest ID and the storage device 15 with the corresponding device number. The average number of commands indicates an approximate average of the number of occurrences of Read / Write commands in the past input / output processing between the guest OS 12 of the corresponding guest ID and the storage device 15 of the corresponding device number. The average time indicates an approximate average of the execution time per command of Read / Write commands in the past input / output processing between the guest OS 12 of the corresponding guest ID and the storage device 15 of the corresponding device number.

図20に示す取り外し予測情報133’において,最大コマンド数,平均コマンド数,平均時間の項目が,各ゲストOS12と各記憶装置15との,各コマンド列のコマンドパターンにおける,過去の入出力処理の実行時間の実績が蓄積される項目である。なお,図20に示す取り外し予測情報133’において,最大コマンド数,平均コマンド数,平均時間の項目が“不明”となっているゲストOS12と記憶装置15との組み合わせについては,過去に入出力処理の実績がないことを示している。   In the removal prediction information 133 ′ shown in FIG. 20, the items of maximum command number, average command number, and average time are the past input / output processes in the command pattern of each command sequence between each guest OS 12 and each storage device 15. This is an item in which the results of execution time are accumulated. In the removal prediction information 133 ′ shown in FIG. 20, the combination of the guest OS 12 and the storage device 15 whose items of the maximum command number, the average command number, and the average time are “unknown” Indicates that there is no track record.

現在のコマンド数は,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との間で入出力処理が実行中である場合に,その時点までに検出されているRead系/Write系コマンドの数を示す。開始時刻は,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との間で入出力処理が実行中である場合に,その入出力処理の開始時刻を示す。   The current number of commands is the number of Read / Write commands detected up to that point when I / O processing is being executed between the guest OS 12 with the guest ID and the storage device 15 with the device number. Indicates a number. The start time indicates the start time of the input / output process when the input / output process is being executed between the guest OS 12 with the corresponding guest ID and the storage device 15 with the corresponding device number.

なお,ゲストID“#01”のゲストOS12以外のゲストOS12についての取り外し予測情報133’の構成も,図5に示すゲストID“#01”のゲストOS12のものと同様の構成である。   Note that the configuration of the removal prediction information 133 ′ for the guest OS 12 other than the guest OS 12 with the guest ID “# 01” is the same as that of the guest OS 12 with the guest ID “# 01” illustrated in FIG. 5.

本実施の形態2において,ホスト側制御部110の動作は,上述の実施の形態1における動作と同様である。例えば,本実施の形態2において,ホスト側制御部110による処理の例は,上述の実施の形態1と同様に,図9〜図13のフローチャートに示すものとなる。   In the second embodiment, the operation of the host control unit 110 is the same as the operation in the first embodiment. For example, in the second embodiment, an example of processing by the host-side control unit 110 is as shown in the flowcharts of FIGS. 9 to 13 as in the first embodiment.

本実施の形態2において,ゲスト側制御部120の動作は,一部Read系/Write系コマンドに対する処理の部分以外は,上述の実施の形態1における動作と同様である。例えば,本実施の形態2において,ゲスト側制御部120による処理の例は,図14に示すフローチャート以外については,上述の実施の形態1と同様に,図15,図16のフローチャートに示すものとなる。   In the second embodiment, the operation of the guest-side control unit 120 is the same as the operation in the above-described first embodiment except for a part of processing for a Read / Write command. For example, in the second embodiment, examples of processing by the guest side control unit 120 are the same as those in the first embodiment described above except for the flowchart shown in FIG. Become.

図21は,本実施の形態のゲスト側制御部によるIO命令受け付け時の処理フローチャート(2)である。   FIG. 21 is a processing flowchart (2) when an IO command is received by the guest-side control unit of the present embodiment.

図21に示すように,本実施の形態2のゲスト側制御部120によるIO命令受け付け時の処理では,リザーブコマンド/リリースコマンド検出時の処理(ステップS60〜68)については,図14に示すフローチャートと同様である。図14に示すフローチャートと異なる部分のみを説明する。   As shown in FIG. 21, in the process at the time of acceptance of the IO command by the guest side control unit 120 of the second embodiment, the process at the time of detecting the reserve command / release command (steps S60 to 68) is shown in the flowchart shown in FIG. It is the same. Only portions different from the flowchart shown in FIG. 14 will be described.

リザーブコマンドが検出されなければ(ステップS63のNO),IO命令解析制御部122は,IO命令の解析の結果,Read系/Write系コマンドが検出されたかを判定する(ステップS120)。Read系/Write系コマンドが検出されれば(ステップS120のYES),ゲスト側制御部120は,予測制御部130に,ゲストIDと装置番号とを指定して,Read系/Write系コマンドを通知する(ステップS121)。ゲスト側制御部120は,IO命令制御部17に入出力処理の実行を通知する。IO命令制御部17は,IO命令に従った入出力処理を実行する(ステップS68)。   If no reserve command is detected (NO in step S63), the IO instruction analysis control unit 122 determines whether a Read / Write command is detected as a result of the analysis of the IO instruction (step S120). If a Read / Write command is detected (YES in step S120), the guest control unit 120 notifies the prediction control unit 130 of the Read / Write command by specifying the guest ID and the device number. (Step S121). The guest side control unit 120 notifies the IO command control unit 17 of the execution of the input / output process. The IO command control unit 17 executes input / output processing according to the IO command (step S68).

本実施の形態2において,予測制御部130の動作は,取り外し抑止開始通知受け付け時の動作以外は,上述の実施の形態1における動作と異なる。例えば,本実施の形態2において,予測制御部130による処理の例は,図17に示すフローチャートのみが,上述の実施の形態1と同様になる。   In the second embodiment, the operation of the prediction control unit 130 is different from the operation in the above-described first embodiment except for the operation at the time of receiving the removal suppression start notification. For example, in the second embodiment, an example of processing by the prediction control unit 130 is the same as that of the above-described first embodiment only in the flowchart shown in FIG.

図22は,本実施の形態の予測制御部によるRead系/Write系コマンドの通知受け付け時の処理フローチャートである。   FIG. 22 is a processing flowchart when a prediction control unit according to the present embodiment receives a Read / Write command notification.

予測制御部130は,ゲスト側制御部120から,Read系/Write系コマンドの通知を受け付ける(ステップS130)。Read系/Write系コマンドの通知では,対象のゲストOS12と記憶装置15とが,それぞれゲストIDと装置番号とで指定されている。予測部131は,対象のゲストOS12のゲストIDと記憶装置15の装置番号とで,取り外し予測情報133’にアクセスする(ステップS131)。   The prediction control unit 130 receives a notification of a Read / Write command from the guest-side control unit 120 (Step S130). In the notification of the Read system / Write system command, the target guest OS 12 and the storage device 15 are designated by the guest ID and the device number, respectively. The prediction unit 131 accesses the removal prediction information 133 'using the guest ID of the target guest OS 12 and the device number of the storage device 15 (step S131).

予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における現在のコマンド数が2以上のコマンド列があるかを判定する(ステップS132)。   The prediction unit 131 determines whether or not there is a command string in which the current number of commands in the corresponding guest ID and device number of the removal prediction information 133 'is 2 or more (step S132).

現在のコマンド数が2以上のコマンド列があれば(ステップS132のYES),予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における,現在のコマンド数が2以上のコマンド列にアクセスする(ステップS133)。予測部131は,該当コマンド列の現在のコマンド数を+1する(ステップS134)。   If there is a command string with a current command number of 2 or more (YES in step S132), the prediction unit 131 has a command string with a current command number of 2 or more in the corresponding guest ID and device number of the removal prediction information 133 ′. Is accessed (step S133). The prediction unit 131 increments the current number of commands in the command sequence by 1 (step S134).

現在のコマンド数が2以上のコマンド列がなければ(ステップS132のNO),予測部131は,現在のコマンド数が1であるコマンド列があるかを判定する(ステップS135)。   If there is no command string having a current command number of 2 or more (NO in step S132), the prediction unit 131 determines whether there is a command string having a current command number of 1 (step S135).

現在のコマンド数が1のコマンド列がなければ(ステップS135のNO),予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号において,1つ目のコマンドが今回の通知で受け付けたRead系/Write系コマンドと一致するコマンド列の,現在のコマンド数を1にする(ステップS136)。リザーブコマンド後の最初のRead系/Write系コマンドだけでは,コマンド列を限定することができない。この段階では,予測部131は,1つ目のコマンドが一致する2つのコマンド列の現在のコマンド数を,両方1にしておく。   If there is no command string with the current command count of 1 (NO in step S135), the prediction unit 131 accepts the first command in this notification for the corresponding guest ID and corresponding device number in the removal prediction information 133 ′. The current number of commands in the command string that matches the read command / write command is set to 1 (step S136). Only the first Read / Write command after the reserve command cannot limit the command string. At this stage, the prediction unit 131 sets the current command counts of the two command strings that match the first command to 1 for both.

現在のコマンド数が1のコマンド列があれば(ステップS135のYES),予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における,現在のコマンド数が1のコマンド列にアクセスする(ステップS137)。予測部131は,2つ目のコマンドが今回の通知で受け付けたRead系/Write系コマンドと一致する方のコマンド列の,現在のコマンド数を+1する(ステップS138)。予測部131は,2つ目のコマンドが今回の通知で受け付けたRead系/Write系コマンドと一致しなかった方のコマンド列の,現在のコマンド数を0にする(ステップS139)。リザーブコマンド後の2つ目のRead系/Write系コマンドで,コマンド列を限定することができる。   If there is a command string with a current command number of 1 (YES in step S135), the prediction unit 131 accesses a command string with a current command number of 1 in the corresponding guest ID and corresponding device number of the removal prediction information 133 ′. (Step S137). The prediction unit 131 increments the current command number in the command sequence in which the second command matches the Read command / Write command received in the current notification by one (step S138). The predicting unit 131 sets the current command number of the command sequence in which the second command does not match the Read command / Write command received in the current notification to 0 (step S139). The command string can be limited by the second Read / Write command after the reserve command.

本実施の形態2では,一連の入出力処理の実行中にRead系/Write系コマンドが検出されるたびに,取り外し予測情報133’の該当ゲストID,該当装置番号,該当コマンド列における現在のコマンド数が加算されていく。   In the second embodiment, every time a Read / Write command is detected during the execution of a series of input / output processes, the corresponding guest ID, the corresponding device number, and the current command in the corresponding command string of the removal prediction information 133 ′ are detected. Numbers are added.

図23は,本実施の形態の予測制御部による取り外し抑止終了通知受け付け時の処理フローチャート(2)である。   FIG. 23 is a process flowchart (2) at the time of accepting removal suppression end notification by the prediction control unit of the present embodiment.

予測制御部130は,ゲスト側制御部120から,取り外し抑止終了通知を受け付ける(ステップS140)。取り外し抑止終了通知では,対象のゲストOS12と記憶装置15とが,それぞれゲストIDと装置番号とで指定されている。予測部131は,対象のゲストOS12のゲストIDと記憶装置15の装置番号とで,取り外し予測情報133’にアクセスする(ステップS141)。   The prediction control unit 130 receives a removal suppression end notification from the guest-side control unit 120 (step S140). In the removal suppression end notification, the target guest OS 12 and the storage device 15 are designated by the guest ID and the device number, respectively. The prediction unit 131 accesses the removal prediction information 133 'using the guest ID of the target guest OS 12 and the device number of the storage device 15 (step S141).

予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における現在のコマンド数が2以上のコマンド列があるかを判定する(ステップS142)。現在のコマンド数が2以上のコマンド列があれば(ステップS142のYES),予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における,現在のコマンド数が2以上のコマンド列にアクセスする(ステップS143)。   The prediction unit 131 determines whether or not there is a command string in which the current number of commands in the corresponding guest ID and corresponding device number in the removal prediction information 133 'is 2 or more (step S142). If there is a command string with a current command number of 2 or more (YES in step S142), the prediction unit 131 has a command string with a current command number of 2 or more in the corresponding guest ID and device number of the removal prediction information 133 ′. Is accessed (step S143).

現在のコマンド数が2以上のコマンド列がなければ(ステップS142のNO),予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における現在のコマンド数が1のコマンド列があるかを判定する(ステップS144)。現在のコマンド数が1のコマンド列があれば(ステップS144のYES),予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における,平均コマンド数×平均時間が最大の,現在のコマンド数が1のコマンド列にアクセスする(ステップS145)。   If there is no command string with the current command number of 2 or more (NO in step S142), the prediction unit 131 has a command string with the current command number 1 corresponding to the corresponding guest ID of the removal prediction information 133 ′ and the corresponding device number. Is determined (step S144). If there is a command string whose current command number is 1 (YES in step S144), the prediction unit 131 presents the maximum number of average commands × average time for the corresponding guest ID and corresponding device number in the removal prediction information 133 ′. The command string with the command number of 1 is accessed (step S145).

現在のコマンド数が1のコマンド列がなければ(ステップS144のNO),予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号において,すべてのコマンド列のうち,平均コマンド数×平均時間が最大のコマンド列にアクセスする(ステップS146)。   If there is no command string whose current command number is 1 (NO in step S144), the prediction unit 131 calculates the average number of commands among all command strings in the corresponding guest ID and corresponding device number of the removal prediction information 133 ′. The command string having the maximum average time is accessed (step S146).

予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における開始時刻と,現在の時刻とから,経過時間を算出する(ステップS147)。経過時間は,現在の時刻から開始時刻を差し引くことにより求められる。取り外し予測情報133’の開始時刻は,ゲストOS12からリザーブコマンドが発行された時刻,すなわちゲストOS12と記憶装置15との間での入出力処理が開始された時刻である。取り外し抑止終了通知を受け付けた時点における現在の時刻は,ゲストOS12からリリースコマンドが発行された時刻,すなわちゲストOS12と記憶装置15との間での入出力処理が終了した時刻である。ここで求められる経過時間は,ゲストOS12と記憶装置15との間での入出力処理の実行時間となる。   The prediction unit 131 calculates the elapsed time from the start time at the corresponding guest ID and the corresponding device number in the removal prediction information 133 'and the current time (step S147). The elapsed time is obtained by subtracting the start time from the current time. The start time of the removal prediction information 133 ′ is the time when a reserve command is issued from the guest OS 12, that is, the time when input / output processing between the guest OS 12 and the storage device 15 is started. The current time when the removal suppression end notification is received is the time when the release command is issued from the guest OS 12, that is, the time when the input / output processing between the guest OS 12 and the storage device 15 is ended. The elapsed time obtained here is the execution time of the input / output process between the guest OS 12 and the storage device 15.

予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における平均時間に経過時間を現在のコマンド数で割ったものを足して2で割った値で,該当ゲストID,該当装置番号における平均時間を更新する(ステップS148)。ここでは,平均時間として,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との間での入出力処理について,Read系/Write系コマンド1コマンド当たりの過去の実行時間の近似平均が求められている。   The prediction unit 131 is a value obtained by adding an average time of the corresponding guest ID and device number of the removal prediction information 133 ′ to the elapsed time divided by the current number of commands, and dividing the result by 2 to obtain the corresponding guest ID and device number. The average time at is updated (step S148). Here, as an average time, an approximate average of past execution times for each Read / Write command is obtained for input / output processing between the guest OS 12 with the corresponding guest ID and the storage device 15 with the corresponding device number. It has been.

予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における平均コマンド数に現在のコマンド数を足して2で割った値で,該当ゲストID,該当装置番号における平均コマンド数を更新する(ステップS149)。ここでは,平均コマンド数として,該当ゲストIDのゲストOS12と該当装置番号の記憶装置15との間での入出力処理について,Read系/Write系コマンドの数の近似平均が求められている。   The prediction unit 131 updates the average number of commands in the corresponding guest ID and the corresponding device number by adding the current number of commands to the average number of commands in the corresponding guest ID and the corresponding device number in the removal prediction information 133 ′ and dividing by two. (Step S149). Here, as the average number of commands, an approximate average of the number of Read / Write commands is obtained for the input / output processing between the guest OS 12 with the corresponding guest ID and the storage device 15 with the corresponding device number.

予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における最大コマンド数より,現在のコマンド数が大きいかを判定する(ステップS150)。最大コマンド数より現在のコマンド数の方が大きい場合には(ステップS150のYES),予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における最大コマンド数を,現在のコマンド数で更新する(ステップS151)。   The prediction unit 131 determines whether or not the current command number is larger than the maximum command number in the corresponding guest ID and device number of the removal prediction information 133 '(step S150). If the current command number is larger than the maximum command number (YES in step S150), the prediction unit 131 sets the maximum command number in the corresponding guest ID and corresponding device number in the removal prediction information 133 ′ as the current command number. (Step S151).

このように,本実施の形態2では,取り外し予測情報133’に,各ゲストOS12と各記憶装置15との間での入出力処理における,コマンドの実行パターンごとの最大コマンド数,平均コマンド数,平均時間等の実績が蓄積される。   As described above, in the second embodiment, the removal prediction information 133 ′ includes, in the input / output processing between each guest OS 12 and each storage device 15, the maximum number of commands, the average number of commands for each command execution pattern, Results such as average time are accumulated.

図24は,本実施の形態の予測制御部による取り外し予測時間問い合わせ受け付け時の処理フローチャート(2)である。   FIG. 24 is a process flowchart (2) at the time of receipt of an estimated removal time inquiry by the prediction control unit of the present embodiment.

予測制御部130は,ホスト側制御部110から,取り外し予測時間の問い合わせを受け付ける(ステップS160)。取り外し予測時間の問い合わせでは,対象のゲストOS12と記憶装置15とが,それぞれゲストIDと装置番号とで指定されている。予測部131は,対象のゲストOS12のゲストIDと記憶装置15の装置番号とで,取り外し予測情報133’にアクセスする(ステップS161)。   The prediction control unit 130 receives an inquiry about the estimated removal time from the host-side control unit 110 (step S160). In the inquiry about the estimated removal time, the target guest OS 12 and the storage device 15 are designated by the guest ID and the device number, respectively. The prediction unit 131 accesses the removal prediction information 133 'using the guest ID of the target guest OS 12 and the device number of the storage device 15 (step S161).

予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における現在のコマンド数が2以上のコマンド列があるかを判定する(ステップS162)。現在のコマンド数が2以上のコマンド列があれば(ステップS162のYES),予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における,現在のコマンド数が2以上のコマンド列にアクセスする(ステップS163)。   The prediction unit 131 determines whether there is a command string in which the current command number in the corresponding guest ID and device number of the removal prediction information 133 'is 2 or more (step S162). If there is a command string with a current command number of 2 or more (YES in step S162), the prediction unit 131 has a command string with a current command number of 2 or more in the corresponding guest ID and corresponding device number in the removal prediction information 133 ′. Is accessed (step S163).

現在のコマンド数が2以上のコマンド列がなければ(ステップS162のNO),予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における現在のコマンド数が1のコマンド列があるかを判定する(ステップS164)。現在のコマンド数が1のコマンド列があれば(ステップS164のYES),予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における,平均コマンド数×平均時間が最大の,現在のコマンド数が1のコマンド列にアクセスする(ステップS165)。   If there is no command sequence having a current command count of 2 or more (NO in step S162), the prediction unit 131 has a command sequence in which the current command count is 1 for the corresponding guest ID of the removal prediction information 133 ′ and the corresponding device number. Is determined (step S164). If there is a command string whose current command number is 1 (YES in step S164), the prediction unit 131 presents the maximum number of average commands × average time for the corresponding guest ID and corresponding device number in the removal prediction information 133 ′. The command string with the number of commands of 1 is accessed (step S165).

現在のコマンド数が1のコマンド列がなければ(ステップS164のNO),予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号において,すべてのコマンド列のうち,平均コマンド数×平均時間が最大のコマンド列にアクセスする(ステップS166)。   If there is no command sequence with the current command count of 1 (NO in step S164), the prediction unit 131 calculates the average command count of all command sequences in the corresponding guest ID and corresponding device number of the removal prediction information 133 ′ × The command string having the maximum average time is accessed (step S166).

予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における開始時刻と,現在の時刻とから,経過時間を算出する(ステップS167)。経過時間は,現在の時刻から開始時刻を差し引くことにより求められる。ここで求められる経過時間は,実行中であるゲストOS12と記憶装置15との間での入出力処理の開始時刻から,ホストOS11から取り外し要求を受けた時刻までの経過時間である。   The prediction unit 131 calculates the elapsed time from the start time at the corresponding guest ID and the corresponding device number in the removal prediction information 133 'and the current time (step S167). The elapsed time is obtained by subtracting the start time from the current time. The elapsed time obtained here is the elapsed time from the start time of the input / output process between the guest OS 12 being executed and the storage device 15 to the time when the removal request is received from the host OS 11.

予測部131は,経過時間が,取り外し予測情報133’の該当ゲストID,該当装置番号における,最大コマンド数×平均時間の2倍以上かを判定する(ステップS168)。   The prediction unit 131 determines whether the elapsed time is equal to or more than twice the maximum command number × average time in the corresponding guest ID and corresponding device number of the removal prediction information 133 ′ (step S <b> 168).

経過時間が最大コマンド数×平均時間の2倍以上であれば(ステップS168のYES),予測部131は,異常と判断し,取り外し予測時間の問い合わせに対する応答として,ホスト側制御部110に異常を通知する(ステップS169)。入出力処理が開始されてからの経過時間が,過去の入出力処理の実行時間の実績から予測される範囲の時間を大きく超えている場合には,入出力処理に何らかの異常が発生している可能性がある。なお,ここでは,最大コマンド数×平均時間を基準として,その2倍以上の時間が入出力処理の開始から経過していることを条件に,異常の判断を行っているが,異常を判断する基準の時間や,その基準時間に基づいた異常判定の条件などは,任意の設計が可能である。   If the elapsed time is equal to or greater than the maximum number of commands × the average time (YES in step S168), the prediction unit 131 determines that there is an abnormality, and gives an error to the host-side control unit 110 as a response to the inquiry about the estimated removal time. Notification is made (step S169). If the elapsed time since the start of I / O processing greatly exceeds the time expected from the past execution time of I / O processing, an error has occurred in I / O processing. there is a possibility. Here, the abnormality is judged on the condition that the time of more than twice has elapsed since the start of the input / output process, with the maximum number of commands multiplied by the average time, but the abnormality is judged. Arbitrary design is possible for the reference time and the condition of abnormality determination based on the reference time.

経過時間が最大コマンド数×平均時間の2倍以上でなければ(ステップS168のNO),予測部131は,取り外し予測情報133’の該当ゲストID,該当装置番号における平均コマンド数×平均時間と,最大コマンド数×平均時間とから,それぞれ経過時間を差し引いた時間を求める(ステップS170)。平均コマンド数×平均時間から経過時間を差し引いて得られる予測平均時間は,実行中の入出力処理が終了するまでの平均的な時間の予測を示す。最大コマンド数×平均時間から経過時間を差し引いて得られる予測最大時間は,実行中の入出力処理が終了するまでの過去の最大時間を示す。ここでは,求めた2つの時間を取り外し予測時間とする。   If the elapsed time is not more than twice the maximum number of commands × average time (NO in step S168), the prediction unit 131 determines that the corresponding guest ID in the removal prediction information 133 ′, the average number of commands in the corresponding device number × average time, Each time obtained by subtracting the elapsed time from the maximum number of commands × the average time is obtained (step S170). The predicted average time obtained by subtracting the elapsed time from the average number of commands × the average time indicates a prediction of an average time until the input / output process being executed is completed. The predicted maximum time obtained by subtracting the elapsed time from the maximum number of commands × the average time indicates the past maximum time until the ongoing input / output processing is completed. Here, the obtained two times are taken as the estimated removal time.

予測部131は,問い合わせに対する応答として,ホスト側制御部110に,取り外し予測時間の情報を通知する(ステップS171)。   As a response to the inquiry, the prediction unit 131 notifies the host-side control unit 110 of information on the estimated removal time (step S171).

同じゲストOS12と同じ記憶装置15との間での入出力処理では,いくつかの決まったコマンドの実行パターンの処理が繰り返し実行されるケースも多い。本実施の形態2で説明したように,予測制御部130において,さらにコマンドの実行パターンで分類した単位で蓄積した過去の入出力処理の実行時間の実績から,入出力処理の終了までの時間の予測を行うことで,より精度が高い予測が可能となる。これにより,ホストOS11の操作者は,より正確な取り外し完了までの予測時間の情報に基づいて,強制的な取り外しを指示するか否かの判断が可能となる。   In input / output processing between the same guest OS 12 and the same storage device 15, there are many cases where processing of several predetermined command execution patterns is repeatedly executed. As described in the second embodiment, in the prediction control unit 130, the time from the past execution time of the input / output process accumulated in units classified by the command execution pattern to the end of the input / output process is calculated. By performing the prediction, it is possible to make a prediction with higher accuracy. As a result, the operator of the host OS 11 can determine whether or not to instruct forcible removal based on information on the predicted time until completion of removal more accurately.

以上,本実施の形態について説明したが,本発明はその主旨の範囲において種々の変形が可能であることは当然である。   Although the present embodiment has been described above, the present invention can naturally be modified in various ways within the scope of the gist thereof.

10 仮想計算機システム
11 ホストOS
12 ゲストOS
13 チャネル制御部
14 チャネル
15 記憶装置
16 取り外し実行制御部
17 IO命令制御部
100 取り外し制御部
110 ホスト側制御部
111 受付部
112 判断部
113 通知部
114 取り外し抑止制御部
115 取り外し抑止情報記憶部
120 ゲスト側制御部
121 IO命令受付部
122 IO命令解析制御部
123 取り外し状況管理部
124 取り外し状況情報記憶部
130 予測制御部
131 予測部
132 予測情報記憶部
10 Virtual computer system 11 Host OS
12 Guest OS
13 channel control unit 14 channel 15 storage device 16 removal execution control unit 17 IO command control unit 100 removal control unit 110 host side control unit 111 reception unit 112 determination unit 113 notification unit 114 removal inhibition control unit 115 removal inhibition information storage unit 120 guest Side control unit 121 IO command receiving unit 122 IO command analysis control unit 123 Removal status management unit 124 Removal status information storage unit 130 Prediction control unit 131 Prediction unit 132 Prediction information storage unit

Claims (3)

仮想計算機の制御を行うホストOSから,該仮想計算機と記憶装置との間の論理的な接続関係の解除を求める要求を受け付ける受付部と,
前記要求を受け付けた際に,前記仮想計算機から前記記憶装置への占有の開始を指示するコマンドと,前記仮想計算機から前記記憶装置への占有の終了を指示するコマンドとの発行状況をもとに,前記仮想計算機と前記記憶装置との間の入出力処理の終了を待って前記論理的な接続関係の解除を実行するか否かを判断する判断部と,
前記判断部により前記仮想計算機と前記記憶装置との間の入出力処理の終了を待って前記論理的な接続関係の解除を実行すると判断された場合に,前記仮想計算機と前記記憶装置との間における過去の入出力処理の実行時間に基づいて,前記仮想計算機と前記記憶装置との間の入出力処理が終了するまでの時間を予測する予測部と,
前記予測された時間の情報を前記ホストOSに通知する通知部とを備える
ことを特徴とする仮想計算機制御装置。
A receiving unit that receives a request for releasing the logical connection relationship between the virtual machine and the storage device from a host OS that controls the virtual machine;
When the request is received, based on the issuance status of a command for instructing the start of occupation from the virtual machine to the storage device and a command for instructing the end of occupation from the virtual machine to the storage device A determination unit that determines whether or not to cancel the logical connection relationship after completion of input / output processing between the virtual machine and the storage device;
When the determination unit determines that the logical connection relationship is to be canceled after completion of the input / output processing between the virtual computer and the storage device, between the virtual computer and the storage device A prediction unit that predicts a time until input / output processing between the virtual machine and the storage device is completed based on an execution time of past input / output processing in
A virtual machine control device comprising: a notification unit that notifies the host OS of information on the predicted time.
前記予測部は,入出力処理を実行中の前記仮想計算機から前記記憶装置への占有の終了を指示するコマンドの発行からの経過時間が,前記仮想計算機と前記記憶装置との間における過去の入出力処理の実行時間から予測される実行時間を,所定時間以上超えた場合に,異常の可能性ありと判断し,
前記通知部は,前記予測部により異常の可能性ありと判断された場合に,異常を通知する
ことを特徴とする請求項1に記載の仮想計算機制御装置。
The prediction unit determines whether the elapsed time from the issuance of a command instructing the end of occupancy to the storage device from the virtual computer that is executing input / output processing is a past input between the virtual computer and the storage device. When the execution time predicted from the execution time of the output process exceeds the predetermined time, it is determined that there is a possibility of abnormality,
The virtual machine control device according to claim 1, wherein the notification unit notifies an abnormality when the prediction unit determines that there is a possibility of an abnormality.
コンピュータに,
仮想計算機の制御を行うホストOSから,該仮想計算機と記憶装置との間の論理的な接続関係の解除を求める要求を受け付け,
前記要求を受け付けた際に,前記仮想計算機から前記記憶装置への占有の開始を指示するコマンドと,前記仮想計算機から前記記憶装置への占有の終了を指示するコマンドとの発行状況をもとに,前記仮想計算機と前記記憶装置との間の入出力処理の終了を待って前記論理的な接続関係の解除を実行するか否かを判断し,
前記仮想計算機と前記記憶装置との間の入出力処理の終了を待って前記論理的な接続関係の解除を実行すると判断された場合に,前記仮想計算機と前記記憶装置との間における過去の入出力処理の実行時間に基づいて,前記仮想計算機と前記記憶装置との間の入出力処理が終了するまでの時間を予測し,
前記予測された時間の情報を前記ホストOSに通知する
処理を実行させるための仮想計算機制御プログラム。
Computer
Accepting a request for releasing the logical connection relationship between the virtual machine and the storage device from the host OS that controls the virtual machine,
When the request is received, based on the issuance status of a command for instructing the start of occupation from the virtual machine to the storage device and a command for instructing the end of occupation from the virtual machine to the storage device Determining whether to cancel the logical connection relationship after waiting for the end of the input / output processing between the virtual machine and the storage device,
When it is determined that the logical connection relationship is to be canceled after completion of the input / output processing between the virtual machine and the storage device, the past input between the virtual computer and the storage device is determined. Based on the execution time of the output process, predict the time until the input / output process between the virtual machine and the storage device is completed,
A virtual machine control program for executing a process of notifying the host OS of the predicted time information.
JP2011214428A 2011-09-29 2011-09-29 Virtual computer control device and virtual computer control program Expired - Fee Related JP5699886B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011214428A JP5699886B2 (en) 2011-09-29 2011-09-29 Virtual computer control device and virtual computer control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011214428A JP5699886B2 (en) 2011-09-29 2011-09-29 Virtual computer control device and virtual computer control program

Publications (2)

Publication Number Publication Date
JP2013073582A JP2013073582A (en) 2013-04-22
JP5699886B2 true JP5699886B2 (en) 2015-04-15

Family

ID=48477999

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011214428A Expired - Fee Related JP5699886B2 (en) 2011-09-29 2011-09-29 Virtual computer control device and virtual computer control program

Country Status (1)

Country Link
JP (1) JP5699886B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7468272B2 (en) 2020-09-23 2024-04-16 富士通株式会社 Storage device and storage control method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100745517B1 (en) * 2001-09-10 2007-08-03 인터내셔널 비지네스 머신즈 코포레이션 Data storage drives in an automated data storage library
JP2003233520A (en) * 2002-02-07 2003-08-22 Fujitsu Ltd File controlling device for file resource on network
US7480742B2 (en) * 2005-02-25 2009-01-20 International Business Machines Corporation Method for virtual adapter destruction on a physical adapter that supports virtual adapters
JPWO2010097933A1 (en) * 2009-02-27 2012-08-30 富士通株式会社 Information processing apparatus, information processing method, and computer program

Also Published As

Publication number Publication date
JP2013073582A (en) 2013-04-22

Similar Documents

Publication Publication Date Title
US8473909B2 (en) Method for providing assistance in making change decisions in a configurable managed environment
JP6064734B2 (en) Workflow control program, apparatus and method
US20080133741A1 (en) Computer program and apparatus for controlling computing resources, and distributed processing system
US9513957B2 (en) Management system, management program, and management method
JP6260130B2 (en) Job delay detection method, information processing apparatus, and program
JP2005235058A (en) Snapshot acquisition method, snapshot acquisition device, and computer program provided with snapshot acquisition function
JP6009089B2 (en) Management system for managing computer system and management method thereof
US20140019613A1 (en) Job management server and job management method
US20100211949A1 (en) Management computer and processing management method
KR101331452B1 (en) Method for providing database management and the database management server there of
JP6191604B2 (en) Information processing apparatus, access control program, and access control method
US9049101B2 (en) Cluster monitor, method for monitoring a cluster, and computer-readable recording medium
JP5740338B2 (en) Virtual environment operation support system
CN113254536A (en) Database transaction processing method, system, electronic device and storage medium
KR101212496B1 (en) Method of representing usage of monitoring resource, computing apparatus for performing the same and record medium recording program for implementing the method
US8583789B2 (en) Computer system management method and management apparatus
JP5699886B2 (en) Virtual computer control device and virtual computer control program
JP4485592B2 (en) Computer system and computer system control method
US7146453B2 (en) Reducing ABENDS through the use of second-tier storage groups
GB2515598A (en) Information processing apparatus and information processing method
JP2005209055A (en) Method for distributing load of storage
JP6035908B2 (en) Storage system
US9619306B2 (en) Information processing device, control method thereof, and recording medium
JP4408122B2 (en) Computer system, computer system control method and computer control program
JP4985033B2 (en) Backup program, backup method and backup device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140603

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141222

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: 20150120

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150202

R150 Certificate of patent or registration of utility model

Ref document number: 5699886

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees