JPH04239939A - Storage control system - Google Patents

Storage control system

Info

Publication number
JPH04239939A
JPH04239939A JP3022866A JP2286691A JPH04239939A JP H04239939 A JPH04239939 A JP H04239939A JP 3022866 A JP3022866 A JP 3022866A JP 2286691 A JP2286691 A JP 2286691A JP H04239939 A JPH04239939 A JP H04239939A
Authority
JP
Japan
Prior art keywords
storage device
area
identifier
storage
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3022866A
Other languages
Japanese (ja)
Inventor
Kazuaki Tanaka
和明 田中
Akihiko Togawa
明彦 戸川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP3022866A priority Critical patent/JPH04239939A/en
Publication of JPH04239939A publication Critical patent/JPH04239939A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To offer the storage control system which substitutes data in a high- speed expensive storage device with data in a relatively low-speed inexpensive storage device with a high reliability. CONSTITUTION:An external storage subsystem consists of a relatively high-speed first storage device having an auxiliary power source, a relatively low-speed non-volatile second storage device, and a controller capable of accessing both storage devices, and a table of first storage device management information 4 consisting of area information indicating the physical arrangement of respective areas of the first storage device and effective identifiers and a table of second storage device management information 6 which give an area identifier to each data and consist of area information of the second storage device whose number corresponds to the number of data stored in the second storage device and where area identifiers and data are stored are prepared, and the controller performs the processing like update of table contents or data read/write in accordance with generation and update of tables and saving and movement of data between both storage devices based on the preparation and updating of the tables by the instruction from a higher-order system.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、アクセス性能が異なる
記憶装置からなる記憶システムにおいて高速な記憶装置
と低速な記憶装置とでデータを入れ換えるための、記憶
制御方法および記憶制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a storage control method and a storage control device for exchanging data between a high-speed storage device and a low-speed storage device in a storage system consisting of storage devices with different access performance.

【0002】0002

【従来の技術】従来、電源により記憶を継続する記憶装
置、例えば、半導体記憶装置、については、日立製作所
HITACマニュアル8080ー2ー078ー10(H
−6911−1半導体記憶制御装置、H−6915−1
/2/3半導体記憶制御装置、H−6918−1バッテ
リ装置)第108頁から第109頁において記載されて
いるごとく、電源によらず記憶を継続できる記憶装置、
例えば、磁気記憶装置が内蔵され、電源断時には、バッ
テリ等の補助電源により記憶を継続しつつ、半導体記憶
装置から磁気記憶装置へデータを自動的に退避して、デ
ータの信頼性を保証する方法が知られていた。電源投入
時には、磁気記憶装置から半導体記憶装置へ自動的にデ
ータがロードされて利用可能となる。
2. Description of the Related Art Conventionally, for storage devices that continue storing data using a power supply, such as semiconductor storage devices, Hitachi, Ltd. HITAC Manual 8080-2-078-10 (H
-6911-1 Semiconductor storage control device, H-6915-1
/2/3 Semiconductor storage control device, H-6918-1 battery device) As described on pages 108 to 109, a storage device that can continue storing data regardless of power supply,
For example, when a magnetic storage device is built in and the power is turned off, data is automatically saved from the semiconductor storage device to the magnetic storage device while continuing storage using an auxiliary power source such as a battery, thereby guaranteeing data reliability. was known. When the power is turned on, data is automatically loaded from the magnetic storage device to the semiconductor storage device and becomes available.

【0003】0003

【発明が解決しようとする課題】上記従来技術は、半導
体記憶装置に内蔵される磁気ディスクは、電源断時に、
半導体記憶装置内のデータを退避するために使用される
だけであった。又、半導体記憶装置を時間帯を分けて、
異なる用途で使用する場合には、利用者が、半導体記憶
装置内のデータを読み込み、他の記憶装置へ書き込む操
作と他の記憶装置内のデータを読み込み、半導体記憶装
置へ書き込む操作を行う必要があった。これらの操作の
中で、操作順の不正、データの移動元や移動先の指定の
不正などによりデータを破壊する危険性があり、高速な
半導体記憶装置を使用時間帯を分けて、多目的に使用す
る運用方法は一般的に行われていなかった。本発明の目
的は、この高速で且つ高価な記憶装置、例えば、半導体
記憶装置の使用効率を高めるために、半導体記憶装置内
のデータを相対的に低速で低価格な記憶装置、例えば、
磁気ディスク装置内のデータと高信頼に入れ替える記憶
制御方法と装置を提供することにある。
[Problems to be Solved by the Invention] According to the above-mentioned prior art, the magnetic disk built in the semiconductor storage device is
It was only used to save data in semiconductor storage devices. In addition, semiconductor storage devices are divided into time zones,
When using a semiconductor storage device for a different purpose, the user must read data from the semiconductor storage device and write it to another storage device, and read data from another storage device and write it to the semiconductor storage device. there were. Among these operations, there is a risk of data destruction due to incorrect operation order, incorrect data transfer source and destination specifications, etc. Therefore, it is recommended to use high-speed semiconductor storage devices for multiple purposes by dividing usage times. This method of operation was not generally practiced. An object of the present invention is to transfer data in a semiconductor memory device to a relatively slow and inexpensive memory device, such as a semiconductor memory device, in order to improve the usage efficiency of this high-speed and expensive memory device, such as a semiconductor memory device.
An object of the present invention is to provide a storage control method and device that can replace data in a magnetic disk device with high reliability.

【0004】0004

【問題を解決するための手段】上記目的を達成するため
に、外部記憶サブシステムを、相対的に高速だが主電源
および補助電源により記憶を継続する第1記憶装置と、
相対的に低速だが電源によらず記憶を継続でき、かつ、
少なくとも2組以上の第1記憶装置のデータを記憶でき
る第2記憶装置と、第1および第2記憶装置の両方への
アクセスが可能な制御装置とから構成する。第1記憶装
置を複数の領域に分け、各領域毎に、少なくともその領
域の物理的配置を示す領域情報と有効識別子からなる第
1記憶装置管理情報を用意し、領域の数だけの第1記憶
装置管理情報をテーブルとして制御装置内のメモリに記
憶する。データにはその名前に相当するものとして領域
識別子を与え、少なくとも、領域識別子と該領域識別子
に係るデータを記憶する第2記憶装置の領域情報とから
なる第2記憶装置管理情報を用意し、第2記憶装置に記
憶されているデータの領域識別子の数だけの第2記憶装
置管理情報をテーブルとして制御装置内のメモリに記憶
する。上位システムからの指示により制御装置は、テー
ブルの作成、テーブル内容の更新、第1記憶装置と第2
記憶装置間でのデータの移動、それに伴うテーブル内容
の更新、第1記憶装置または第2記憶装置からのデータ
の読み取り、第1記憶装置または第2記憶装置へのデー
タの書き込み等の制御を行うようにする。このようにす
ることにより、第1記憶装置内のデータと第2記憶装置
内のデータとの関係が常に制御装置内に登録されている
ため、データの移動に伴う誤りが防止され、第1記憶装
置の使用効率を高めることができる。
[Means for Solving the Problem] In order to achieve the above object, the external storage subsystem is provided with a first storage device that continues storage using a main power source and an auxiliary power source, although the external storage subsystem is relatively fast.
Although it is relatively slow, it can continue storing data regardless of the power supply, and
It is composed of a second storage device that can store data of at least two or more sets of first storage devices, and a control device that can access both the first and second storage devices. The first storage device is divided into a plurality of areas, and for each area, first storage device management information consisting of at least area information indicating the physical location of the area and a valid identifier is prepared, and the first storage device has as many areas as the number of areas. The device management information is stored as a table in the memory within the control device. An area identifier is given to the data as equivalent to its name, and second storage device management information consisting of at least the area identifier and area information of the second storage device that stores the data related to the area identifier is prepared. Second storage device management information corresponding to the number of area identifiers of data stored in the second storage device is stored as a table in the memory within the control device. Based on instructions from the host system, the control device creates a table, updates the table contents, and stores the first and second storage devices.
Controls movement of data between storage devices, update of table contents accordingly, reading of data from the first storage device or second storage device, writing of data to the first storage device or second storage device, etc. do it like this. By doing this, the relationship between the data in the first storage device and the data in the second storage device is always registered in the control device, so errors associated with data movement are prevented, and Equipment usage efficiency can be increased.

【0005】[0005]

【作用】前述した手段を設けたことにより、第1記憶装
置内のデータと第2記憶装置内のデータとの関係が事前
に定められているために、電源断などに起因する第1記
憶装置から第2記憶装置へのデータの退避、または逆に
、第2記憶装置から第1記憶装置へのデータの回復が誤
りなく高速に実行される。更に、各種のデータを時間帯
を分けて多目的に使用するような場合、前述のように第
1記憶装置内のデータと第2記憶装置内のデータとの関
係が事前に定められているために、両記憶装置間で頻繁
なデータの入替えがなされてもデータが破壊される恐れ
がなく、高速な第1記憶装置を効率的に使用することが
できる。更に、低速でもよい場合には、直接第2記憶装
置内のデータをアクセスすることができる。また、他の
作用については、実施例の説明において述べる。
[Operation] By providing the above-mentioned means, the relationship between the data in the first storage device and the data in the second storage device is determined in advance. Evacuation of data from the storage device to the second storage device, or conversely, recovery of data from the second storage device to the first storage device, is performed without error and at high speed. Furthermore, when various types of data are divided into time zones and used for multiple purposes, the relationship between the data in the first storage device and the data in the second storage device is determined in advance, as described above. Even if data is frequently exchanged between both storage devices, there is no risk of data being destroyed, and the high-speed first storage device can be used efficiently. Furthermore, if low speed is acceptable, data in the second storage device can be directly accessed. Further, other effects will be described in the description of the embodiments.

【0006】[0006]

【実施例】以下、本発明の実施例を図面に基づいて詳細
に説明する。 [実施例1]図1および図2は、本発明の一実施例の全
体構成を示す図である。従来、計算機システムの電源断
等により上位システムが実行不可に陥った際、バッテリ
ィ等の不揮発化補助機構によりそのデータの記憶を継続
する第1記憶装置に対しては、不揮発化補助機構の助け
なしに記憶を継続できる第2記憶装置を併設し、不揮発
化補助機構により記憶が継続している間に、上位システ
ムを経由せず両記憶装置へのアクセスを制御できる制御
装置経由に第2記憶装置へデータを退避するステップを
設けていた。第1記憶装置と第2記憶装置とは1対1に
設けられていた。この第2記憶装置は、第1記憶装置の
主電源断時に、第1記憶装置のデータを退避するためだ
けに用いられ、通常時は使用されないため、無駄に第2
記憶装置を遊ばせていた。一方、第1の記憶装置は、半
導体記憶装置等の高速アクセス可能だが、非常に高価な
記憶装置であり、その使用効率を高めることに関心が払
われている。一般には、高トラフイックなオンライン業
務用に使用されている。しかし、オンライン業務後は、
使用されず遊ばせている場合が多く、1日という期間で
考えた場合、使用効率は必ずしも高いとは言えない。使
用されない理由は、第1記憶装置内のオンライン業務用
データを他の記憶装置に退避したり、オンライン業務再
開前に第1記憶装置へ戻したりする処理の不正や操作ミ
ス、操作忘れなどにより、オンライン業務用データが破
壊されたり、第1記憶装置にあるはずのデータがないと
いったオンライン業務に支障が出ることを恐れてのこと
である。本発明の最大の特徴は、第1記憶装置と第2記
憶装置との両方にアクセス可能な記憶制御装置内に、第
1記憶装置内の少なくとも一部の領域を示す情報、その
領域識別子、その領域内のデータを退避するための第2
記憶装置の領域を示す情報、および、第1記憶装置の少
なくとも一部が重複する領域に対して現在有効な領域の
領域識別子を記憶するメモリを設け、第1記憶装置内の
データを退避する際、有効識別子が示す第2記憶装置内
の領域へデータを退避するステップを設けたことである
Embodiments Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. [Embodiment 1] FIGS. 1 and 2 are diagrams showing the overall configuration of an embodiment of the present invention. Conventionally, when a host system becomes unable to execute due to a power outage of a computer system, etc., the first storage device continues to store data using a non-volatile auxiliary mechanism such as a battery, without any help from the non-volatile auxiliary mechanism. A second storage device that can continue to store data is attached to the second storage device, and while storage continues using the non-volatile auxiliary mechanism, the second storage device is connected to the second storage device via a control device that can control access to both storage devices without going through the host system. A step was provided to save data to. The first storage device and the second storage device were provided on a one-to-one basis. This second storage device is used only to save data in the first storage device when the main power of the first storage device is turned off, and is not used in normal times.
I was playing with my memory device. On the other hand, the first storage device is a high-speed accessible but very expensive storage device such as a semiconductor storage device, and there is interest in increasing its usage efficiency. It is generally used for high-traffic online business. However, after online work,
In many cases, they are left unused and idle, and when considered over a period of one day, the efficiency of use cannot necessarily be said to be high. The reason why the data is not used is due to incorrect processing, operational errors, or forgotten operations, such as when the online business data in the first storage device is saved to another storage device or returned to the first storage device before the online business resumes. This is done out of fear that online business data may be destroyed or data that is supposed to be in the first storage device may be missing, which may cause problems to online business operations. The most important feature of the present invention is that a storage control device that can access both a first storage device and a second storage device includes information indicating at least a part of an area in the first storage device, an area identifier thereof, and The second area is used to save data in the area.
A memory is provided for storing information indicating an area of the storage device and an area identifier of a currently valid area for an area where at least a portion of the first storage device overlaps, and when saving data in the first storage device. , a step of saving data to the area in the second storage device indicated by the valid identifier is provided.

【0007】これにより、第1記憶装置に対して複数の
第2記憶装置を用意し、第1記憶装置の使途に応じてそ
のデータの退避先を予め指定しておけるので、日中と夜
間のごとく第1記憶装置を使用期間を分けて多目的に使
用しても、上位システムが障害により動作できなくなっ
た時には、不揮発化補助機構により記憶が継続されてい
る間に第1記憶装置内のデータをその使途に対応した第
2記憶装置へ自動的に移すことができるので、第1記憶
装置の使用率を向上できる。
[0007] As a result, it is possible to prepare a plurality of second storage devices for the first storage device and specify the data backup destination in advance according to the use of the first storage device, so that data can be saved during the day and at night. Even if the primary storage device is used for multiple purposes over different periods of time, if the host system becomes inoperable due to a failure, the data in the primary storage device can be saved while storage continues using the non-volatile auxiliary mechanism. Since the data can be automatically transferred to the second storage device corresponding to its usage, the usage rate of the first storage device can be improved.

【0008】以下、実施例1について詳細に説明する。 図1および図2において、1は中央処理装置CPU(C
entral  Processing  Unit)
、3はデータチャネル、5は拡張記憶装置、半導体記憶
装置、磁気ディスク装置、光磁気ディスク装置、磁気テ
ープ装置等の記憶装置からのデータの入出力を制御する
装置で、本実施例においては記憶制御装置と呼ぶ。7は
マイクロプロセッサ、8は記憶制御装置5内の不揮発な
記憶メモリ、9は記憶制御管理プログラムである。
[0008] Example 1 will be explained in detail below. 1 and 2, 1 is a central processing unit CPU (C
internal processing unit)
, 3 is a data channel, and 5 is a device that controls the input/output of data from storage devices such as expanded storage devices, semiconductor storage devices, magnetic disk devices, magneto-optical disk devices, and magnetic tape devices. It is called a control device. 7 is a microprocessor, 8 is a nonvolatile storage memory within the storage control device 5, and 9 is a storage control management program.

【0009】4は第1記憶装置管理情報であり、複数の
情報欄を有し、これらの欄に以下に説明する情報10、
11、12、13が格納されるが、これらの情報全部で
なくてもよい。第1記憶装置管理情報は第1記憶装置内
の領域の数だけ用意され、テーブルとして記憶メモリに
記憶される。10、11、12、13は第1記憶装置に
関する情報である。10は第1記憶装置とその中の1つ
の領域を特定する第1記憶装置内領域情報であり、領域
の物理的位置を特定するものである。第1記憶装置が複
数の装置からなる場合には、その装置を特定できる情報
を含むものとする。また、この領域サイズは、第1記憶
装置をある一定サイズに区切り、それぞれを1領域とし
て既領域情報10を設けてもよいし、利用者が要求した
領域サイズにより割り当てられた領域毎に該領域情報1
0を設けてもよい。11は第1記憶装置の1つの領域1
0に対する有効識別子である。12は有効識別子11が
指す第1記憶装置内の領域の使用カウンタである。13
は第1記憶装置の1つ領域10に対する省略時領域識別
子である。上記11、12、13については、さらに詳
細に後述する。19は不揮発化補助機構によらず記憶を
継続可能な記憶装置である。21は第2記憶装置19内
に格納されるデータであり、データが複数の第2記憶装
置に分かれて格納されてもよいし、1つの第2記憶装置
に複数のデータが格納されてもよい。ここで、データ2
1とは、第1記憶装置33内のデータ35を退避したも
のをいう。
[0009] 4 is first storage device management information, which has a plurality of information columns, and these columns contain information 10, which will be explained below.
11, 12, and 13 are stored, but it is not necessary to store all of these information. The first storage device management information is prepared as many times as there are areas in the first storage device, and is stored in the storage memory as a table. 10, 11, 12, and 13 are information regarding the first storage device. 10 is first storage device area information that specifies the first storage device and one area therein, and specifies the physical location of the area. If the first storage device is composed of a plurality of devices, it shall include information that can identify the device. In addition, this area size may be determined by dividing the first storage device into a certain size and setting each area as one area and providing the existing area information 10, or by dividing the area into each area allocated according to the area size requested by the user. Information 1
0 may be provided. 11 is one area 1 of the first storage device
It is a valid identifier for 0. 12 is a usage counter of the area in the first storage device pointed to by the valid identifier 11. 13
is the default area identifier for one area 10 of the first storage device. The above 11, 12, and 13 will be described in more detail later. Reference numeral 19 denotes a storage device that can continue storing data without using a nonvolatization assisting mechanism. 21 is data stored in the second storage device 19, and the data may be stored separately in a plurality of second storage devices, or a plurality of data may be stored in one second storage device. . Here, data 2
1 refers to the data 35 in the first storage device 33 that has been saved.

【0010】6は第2記憶装置管理情報であり、複数の
情報欄を有し、これらの欄に以下に説明する情報14、
15、16、17、18が格納されるが、これらの情報
全部でなくてもよい。第2記憶装置管理情報は情報14
(領域識別子)の数だけ用意され、テーブルとして記憶
メモリに記憶される。14、15、16、17、18は
第2記憶装置に関する情報である。14は領域識別子で
ある。領域識別子は1組のデータに与えられた名前に相
当するものである。15は、領域識別子14の与えられ
たデータが第1記憶装置内にも記憶されている場合、記
憶されている第1記憶装置内の領域を示す第1記憶装置
領域配置情報であり、前記領域識別子14の与えられた
データが第1記憶装置内の1領域内に納まる場合には、
前記第1記憶装置内領域情報10の内の1つと同じにな
るが、納まらない場合には同じにはならず、例えば、前
記第1記憶装置内領域情報10の内の2つが入ることと
なる。16は第2記憶装置19内での各領域の配置位置
を示す第2記憶装置の領域配置情報である。第2記憶装
置領域配置情報は、第2記憶装置が、例えば、磁気ディ
スク装置ならば、装置、シリンダ、トラック、ブロック
を特定する情報からなり、光ディスク装置ならば、装置
、トラック、ブロックを特定する情報からなり、磁気テ
ープ装置ならば、磁気テープを特定する情報等から構成
されるものとする。17は、同一の領域識別子で指定さ
れるデータの内、第1記憶装置領域配置情報が示す第1
記憶装置内に存在するデータが有効であるか、第2記憶
装置領域配置情報が示す第2記憶装置内に存在するデー
タが有効であるかを指示する有効フラグであり、例えば
、有効フラグが“オフ”の場合には第1記憶装置内に存
在するデータが有効であり、“オン”の場合には第2記
憶装置内に存在するデータが有効となる。18はデータ
21の信頼性を向上させるため記憶装置19にデータ2
1を多重化して記憶する場合に、その副系の領域の配置
位置を示す副系領域配置情報である。領域識別子14毎
に、第1記憶装置領域配置情報15、第2記憶装置領域
配置情報16、有効フラグ17、および副系領域配置情
報18とが一組存在する。
[0010] 6 is second storage device management information, which has a plurality of information columns, and these columns contain information 14, which will be explained below.
15, 16, 17, and 18 are stored, but not all of these information is required. The second storage device management information is information 14
(area identifiers) are prepared and stored in the storage memory as a table. 14, 15, 16, 17, and 18 are information regarding the second storage device. 14 is an area identifier. The area identifier corresponds to a name given to a set of data. 15 is first storage device area location information indicating the area in the first storage device where the data given the area identifier 14 is also stored in the first storage device; If the data given the identifier 14 fits within one area in the first storage device,
It will be the same as one of the first storage device internal area information 10, but if it does not fit, it will not be the same, and for example, two of the first storage device internal area information 10 will be included. . Reference numeral 16 denotes area location information of the second storage device 19 indicating the location of each area within the second storage device 19 . For example, if the second storage device is a magnetic disk device, the second storage device area location information includes information that specifies the device, cylinder, track, and block; if the second storage device is an optical disk device, it specifies the device, track, and block. In the case of a magnetic tape device, it is assumed to consist of information that specifies the magnetic tape. 17 is the first data indicated by the first storage area location information among the data specified by the same area identifier.
This is a validity flag that indicates whether the data existing in the storage device is valid or the data existing in the second storage device indicated by the second storage device area location information is valid. For example, if the validity flag is “ When it is "off", the data existing in the first storage device is valid, and when it is "on", the data existing in the second storage device is valid. 18 stores data 2 in the storage device 19 in order to improve the reliability of the data 21.
1 is multiplexed and stored, this is sub-system area arrangement information indicating the arrangement position of the sub-system area. For each area identifier 14, there is a set of first storage area placement information 15, second storage area placement information 16, validity flag 17, and subsystem area placement information 18.

【0011】前記有効識別子、使用カウンタ、省略時識
別子について更に説明すると、有効識別子については、
第2記憶装置内に記憶されている領域識別子で指定され
るデータが第1記憶装置内の領域に格納された場合に、
この第1記憶装置内の領域に関する第2記憶装置管理情
報の有効識別子の欄に前記の領域識別子が有効識別子と
して設定される。使用カウンタについては、第1記憶装
置内の或る領域に記憶されているデータを利用する利用
者の数が、その領域に係る第1記憶装置管理情報の使用
カウンタのカウント値となる。省略時識別子としては、
領域識別子がセットされる。有効識別子がリセットされ
た場合には、省略時識別子としてセットされている領域
識別子で指定されるデータが、省略時識別子と組をなす
第1記憶装置内領域情報で指定される領域に格納される
。例えば、システムがオフラインの処理モードで動作し
ており、各組の有効識別子としてオフライン処理される
データに付けられた領域識別子がセットされ、各省略時
識別子としては、オンライン処理となったときに処理対
象となるデータに付けられた領域識別子がセットされ、
この状態でオフライン処理が実行され、その後オフライ
ン処理が終了し、オフライン処理からオンライン処理に
切り替わって、有効識別子がリセットされた場合には、
前記各省略時識別子としてセットされた領域識別子に対
応するデータが第2記憶装置から読み出されて第1記憶
装置に格納される。
[0011] To further explain the valid identifier, usage counter, and default identifier, regarding the valid identifier,
When the data specified by the area identifier stored in the second storage device is stored in the area in the first storage device,
The area identifier is set as a valid identifier in the valid identifier column of the second storage device management information regarding the area in the first storage device. Regarding the usage counter, the number of users who use data stored in a certain area in the first storage device becomes the count value of the usage counter of the first storage device management information related to that area. The default identifier is
The area identifier is set. When the effective identifier is reset, the data specified by the area identifier set as the default identifier is stored in the area specified by the area information in the first storage device that is paired with the default identifier. . For example, if the system is operating in offline processing mode, each set of valid identifiers is set to the area identifier attached to the data to be processed offline, and each default identifier is set to the area identifier attached to the data to be processed offline when online processing occurs. The area identifier attached to the target data is set,
If offline processing is executed in this state, then offline processing ends, offline processing switches to online processing, and the valid identifier is reset.
Data corresponding to the area identifier set as each default identifier is read from the second storage device and stored in the first storage device.

【0012】23は主記憶装置、25は第1記憶装置利
用プログラム、31は利用者からの指示を直接記憶制御
装置に伝えるための操作装置である。33は第2記憶装
置19とは異なり、主電源が故障した場合には不揮発化
補助機構37により記憶を継続する記憶装置である。第
2記憶装置19より相対的に高価で、その利用度を向上
させることが要求される記憶装置である。例えば、不揮
発化補助機構により記憶が継続できる主記憶装置、拡張
記憶装置、半導体記憶装置等である。これらの記憶装置
は、通常アクセス時は、チャネルを介せず直接CPUか
らアクセス可能であっても良いし、記憶制御装置5とは
異なる記憶制御装置とチャネルを介してアクセスされる
記憶装置であってもよい。但し、第2記憶装置へのアク
セスを制御する記憶制御装置5からのアクセスも可能で
あるものとする。35は第1記憶装置33に記憶された
データであり、それが使用されない期間、あるいは、第
1記憶装置の主電源が故障して不揮発化補助機構37に
依っている時には、第2記憶装置19へ退避される。3
7はバッテリ等の不揮発化補助機構である。尚、各ファ
イルとの入出力用領域やプログラム実行上必要な作業領
域の記述は、煩雑さを避けるため省略してある。以下の
説明では、CPU1、チャネル3、およびそれらを介し
て記憶制御装置5に種々の要求を出す主記憶23内の各
種プログラム等を総称して上位システムと呼ぶ。
Reference numeral 23 is a main storage device, 25 is a first storage device usage program, and 31 is an operating device for directly transmitting instructions from a user to the storage control device. 33 is a storage device that, unlike the second storage device 19, continues storing data using a non-volatization assisting mechanism 37 when the main power supply fails. This is a storage device that is relatively more expensive than the second storage device 19 and requires improved utilization. Examples include a main memory device, an expanded memory device, a semiconductor memory device, etc., which can continue storing data using a non-volatile assisting mechanism. During normal access, these storage devices may be directly accessible from the CPU without using a channel, or they may be accessed via a channel with a storage control device different from the storage control device 5. It's okay. However, it is assumed that access is also possible from the storage control device 5 that controls access to the second storage device. 35 is data stored in the first storage device 33, and when it is not used or when the main power supply of the first storage device fails and relies on the non-volatization auxiliary mechanism 37, the data is stored in the second storage device 19. will be evacuated to. 3
7 is a non-volatization assisting mechanism such as a battery. Note that descriptions of input/output areas for each file and work areas necessary for program execution are omitted to avoid complexity. In the following description, the CPU 1, the channel 3, and various programs in the main memory 23 that issue various requests to the storage control device 5 via them are collectively referred to as a host system.

【0013】第1記憶装置利用プログラム25の処理内
容は、図3に示されるごとく、第1記憶装置の初めて使
用(ステップ201)ならば、領域とその領域識別子を
記憶制御装置5に通知する(ステップ203)。尚、領
域の指定方法としては、第1記憶装置の物理的な場所を
指定する方法でもよいし、第1記憶装置の使用領域を管
理するプログラムを設け、領域のサイズの指定に対し、
その物理的な場所をその管理プログラムが決めて記憶制
御装置に要求する方法でもよい。以下の説明では、物理
的な場所を直接指定する方法で説明する。利用する領域
に対して決められた領域識別子を指定して、その領域の
使用開始を記憶制御装置に通知(ステップ205)し、
了解が得られれば、第1記憶装置33を利用した処理を
実施する(ステップ207)。第1記憶装置33の利用
が終ったら、ステップ205の領域識別子を指定して、
その領域の使用終了を記憶制御装置5に通知(ステップ
209)後、使用領域に関する記憶制御装置内の情報を
削除する必要があるかを判定する(ステップ211)。 必要があるときだけ、当該使用領域の削除要求を記憶制
御装置に通知(ステップ213)後、該プログラムの処
理を終了する。ステップ209で、使用終了通知に加え
て、第1記憶装置内のデータを第2記憶装置に退避する
ことも合わせて記憶制御装置に通知するようなされる実
施例でもよい。
As shown in FIG. 3, the processing content of the first storage device usage program 25 is that when the first storage device is used for the first time (step 201), the storage control device 5 is notified of the area and its area identifier ( Step 203). Note that the area may be specified by specifying the physical location of the first storage device, or by providing a program that manages the used area of the first storage device and responding to the specification of the area size.
Alternatively, the management program may determine the physical location and request the storage control device. In the following explanation, a method of directly specifying the physical location will be explained. Specifying a predetermined area identifier for the area to be used and notifying the storage control device of the start of use of the area (step 205);
If consent is obtained, processing using the first storage device 33 is executed (step 207). After using the first storage device 33, specify the area identifier in step 205,
After notifying the storage control device 5 of the end of use of the area (step 209), it is determined whether information in the storage control device regarding the used area needs to be deleted (step 211). Only when necessary, a request to delete the used area is notified to the storage control device (step 213), and then the processing of the program is ended. In step 209, an embodiment may be adopted in which, in addition to the end-of-use notification, the storage control device is also notified that the data in the first storage device is to be saved to the second storage device.

【0014】記憶制御管理プログラム9の処理内容は、
図4乃至図6に詳細に示されるごとく、上位システムか
らの要求に対応した処理が実行される。要求が新領域の
登録要求(ステップ301)ならば、該要求で通知され
た領域の領域識別子と同じ領域識別子14が既に存在し
なければ(ステップ303)、第1記憶装置領域配置情
報15、その領域識別子14、第2記憶装置領域配置情
報16、必要ならば副系領域配置情報18を記憶制御装
置5内の記憶メモリ8に設定(ステップ305)し、既
に存在していればエラーメッセージを上位システムに返
し(ステップ307)て処理を終了する。該要求には、
パラメタとして、第1記憶装置領域配置情報、その領域
識別子、および、副系領域の要否が上位システムから通
知されるものとする。尚、第2記憶装置領域配置情報1
6や副系領域配置情報18は、領域識別子14と同様に
、上位システムからパラメタとして与えられる方法でも
よいし、記憶制御管理プログラムがその領域を自動的を
決める方法でもよい。例えば、図7に示すように、記憶
制御装置5内の既存の第2記憶装置領域配置情報16か
らその記憶制御装置5の管理下にある第2記憶装置19
内の未使用部分を求め、上位システムから要求された記
憶容量を満たす記憶領域の配置場所を決定する(ステッ
プ401)。配置するのに十分な空き領域が存在したか
を判定(ステップ403)し、存在すれば、その領域の
配置情報を記憶メモリ8内の第2記憶装置領域配置情報
16に設定(ステップ405)し、有効フラグ17をオ
ンにする(ステップ406)。存在しなければ、エラー
コードを上位システムに転送する(ステップ407)。 更に、副系領域を設けることが要求されているかを判定
する(ステップ409)。要求されていなければ処理を
終了し、要求されていれば、ステップ401と同様に副
系領域に対する配置先を決める(ステップ411)。配
置するのに十分な空き領域が存在したかを判定(ステッ
プ413)し、存在すれば、その領域の配置情報を記録
メモリ8内の副系領域配置情報18に設定(ステップ4
15)し、存在しなければ、エラーコードを上位システ
ムに転送(ステップ417)して処理を終了することで
、領域配置情報を得ることができる。
The processing contents of the storage control management program 9 are as follows:
As shown in detail in FIGS. 4 to 6, processing corresponding to requests from the higher-level system is executed. If the request is a new area registration request (step 301), if the area identifier 14 that is the same as the area identifier of the area notified in the request does not already exist (step 303), the first storage area location information 15, its The area identifier 14, the second storage area location information 16, and if necessary, the subsystem area location information 18 are set in the storage memory 8 in the storage control device 5 (step 305), and if they already exist, the error message is sent to the upper level. It is returned to the system (step 307) and the process ends. The request includes:
As parameters, the first storage device area location information, its area identifier, and whether or not a sub-system area is necessary are notified from the higher-level system. Furthermore, the second storage device area location information 1
Similarly to the area identifier 14, the sub-system area location information 18 and 6 may be given as parameters from the host system, or the storage control management program may automatically determine the area. For example, as shown in FIG. 7, from the existing second storage device area location information 16 in the storage control device 5, the second storage device 19 under the management of the storage control device 5 is
The unused portion of the storage area is determined, and the location of the storage area that satisfies the storage capacity requested by the host system is determined (step 401). It is determined whether there is enough free space for the allocation (step 403), and if there is, the allocation information for that area is set in the second storage device area allocation information 16 in the storage memory 8 (step 405). , turns on the valid flag 17 (step 406). If it does not exist, the error code is transferred to the higher-level system (step 407). Furthermore, it is determined whether provision of a sub-system area is required (step 409). If it is not requested, the process ends, and if it is requested, the placement destination for the subsystem area is determined in the same manner as in step 401 (step 411). It is determined whether there is enough free space for the arrangement (step 413), and if there is, the arrangement information for that area is set in the subsystem area arrangement information 18 in the recording memory 8 (step 4
15), and if it does not exist, the error code is transferred to the host system (step 417) and the process is terminated, thereby making it possible to obtain the area arrangement information.

【0015】また、上位システムから第2記憶装置の領
域を指定してくる場合には、図8に詳細に示すごとく、
既存の第2記憶装置領域配置情報16を参照し、重複部
分がないことを判定(ステップ419)し、重複がなけ
れば領域配置情報として第2記憶装置領域配置情報16
、必要ならば副系配置情報18に設定(ステップ421
)後、有効フラグをオンする(ステップ423)。重複
が検知されればエラーメッセージを上位システムに通知
する(ステップ425)。これにより、いずれの場合に
も、第1記憶装置のデータの退避先である第2記憶装置
の領域が重複して、一方のデータを破壊するということ
が起こらない。ステップ301NOならば、要求が第1
記憶装置内の領域の使用開始要求の通知かを判定(ステ
ップ309)し、ステップYESならば、通知された領
域識別子を有効識別子11とする(ステップ311)。 ステップ311は、図9に詳細に示すように、通知され
た領域識別子が第1記憶装置の領域に対して既に登録さ
れている有効識別子と一致するかを判定する(ステップ
501)。一致していれば、使用カウンタ12に1加算
(ステップ503)後、処理を終了する。不一致ならば
、現在登録されている有効識別子11の使用カウンタ1
2が0であるものがあるかを判定する(ステップ505
)。ステップ505YESならば、その使用カウンタ1
2の値が0である現在の有効識別子11と同じ領域識別
子14に対する第1記憶装置領域配置情報15の指す第
1記憶装置33のデータを、同じく第2記憶装置領域配
置情報16の指す第2記憶装置19に退避(ステップ5
09)し、該第2記憶装置領域配置情報16に対する有
効フラグ17をオンにする(ステップ511)。 次に、今回通知された領域識別子と同じ領域識別子14
に対応する第2記憶装置領域配置情報16の有効フラグ
17がオンかを判定(ステップ513)し、YESの時
だけ今回通知された領域識別子と同じ領域識別子14に
対応する第2記憶装置領域配置情報16の指す第2記憶
装置19内の領域のデータを同じく第1記憶装置領域配
置情報15が指す第1記憶装置33の領域へ転送する(
ステップ515)。その後、通知された領域識別子の指
す第1記憶装置の領域に対する有効識別子11として、
通知された領域識別子を設定(ステップ517)し、使
用カウンタ12に1を設定(ステップ519)して領域
使用開始処理を終了する。ステップ513NOならば、
エラーメッセージを上位システムへ転送(ステップ51
4)後、処理を終了する。尚、ステップ507は、ある
時間経過後にステップ505を再実行するように実現さ
れてもよいし、また、待たずに上位システムにエラーメ
ッセージを返送する実施例でもよいことはいうまでもな
い。
[0015] Furthermore, when the upper system specifies the area of the second storage device, as shown in detail in FIG.
The existing second storage device area placement information 16 is referred to and it is determined that there is no overlap (step 419). If there is no overlap, the second storage device area placement information 16 is used as area placement information.
, if necessary, set it in the subsystem placement information 18 (step 421
), the valid flag is turned on (step 423). If duplication is detected, an error message is notified to the higher-level system (step 425). As a result, in either case, the areas of the second storage device, which are the save destinations for data in the first storage device, do not overlap and the data in one is not destroyed. If NO in step 301, the request is
It is determined whether the notification is a request to start using an area in the storage device (step 309), and if step YES, the notified area identifier is set as the valid identifier 11 (step 311). In step 311, as shown in detail in FIG. 9, it is determined whether the notified area identifier matches a valid identifier already registered for the area of the first storage device (step 501). If they match, 1 is added to the usage counter 12 (step 503), and the process ends. If there is a mismatch, use counter 1 of currently registered valid identifier 11
Determine whether there is a value for which 2 is 0 (step 505
). If YES in step 505, the usage counter 1
The data in the first storage device 33 pointed to by the first storage device area location information 15 for the same area identifier 14 as the current valid identifier 11 whose value of 2 is 0 is transferred to the second storage device 33 pointed to by the second storage device area location information 16. Save to storage device 19 (step 5)
09), and turns on the validity flag 17 for the second storage area arrangement information 16 (step 511). Next, use the area identifier 14 that is the same as the area identifier notified this time.
It is determined whether the valid flag 17 of the second storage device area allocation information 16 corresponding to the above is on (step 513), and only when YES, the second storage device area allocation corresponding to the area identifier 14 that is the same as the area identifier notified this time is determined. Transfer the data in the area in the second storage device 19 pointed to by the information 16 to the area in the first storage device 33 also pointed to by the first storage device area location information 15 (
Step 515). Thereafter, as the valid identifier 11 for the area of the first storage device pointed to by the notified area identifier,
The notified area identifier is set (step 517), the usage counter 12 is set to 1 (step 519), and the area usage start process is completed. If step 513 is NO,
Transfer error message to upper system (step 51)
4) After that, the process ends. It goes without saying that step 507 may be implemented by re-executing step 505 after a certain period of time has elapsed, or an embodiment may be implemented in which an error message is returned to the host system without waiting.

【0016】ステップ309NOならば、第1記憶装置
内の領域使用終了通知かを判定(ステップ313)し、
YESならば、領域使用終了処理を実施する(ステップ
315)。その詳細は、図10に示すように、通知され
た領域識別子と一致する有効識別子11の使用カウンタ
を1減算する(ステップ601)。該終了通知に第1記
憶装置のデータの退避要求が含まれているときだけ(ス
テップ603)、現在の有効識別子の使用カウンタが0
であるかを判定(ステップ605)し、YESならば、
現在の有効識別子11と同じ領域識別子14に対応する
第1記憶装置領域配置情報15の指す第1記憶装置33
内のデータを、同じく第2記憶装置領域配置情報16の
指す第2記憶装置19に退避(ステップ607)し、該
第2記憶装置領域配置情報16に対する有効フラグ17
をオンにする(ステップ609)。次に、前記有効識別
子と組をなす省略時識別子と同じ領域識別子14に対応
する第2記憶装置領域配置情報16の有効フラグ17が
オンかを判定(ステップ611)し、YESの時だけ省
略時識別子に対応する第2記憶装置領域配置情報16が
指す第2記憶装置19内の領域のデータを同じく第1記
憶装置領域配置情報15が指す第1記憶装置33の領域
へ転送する(ステップ613)。その後、省略時識別子
に対応する第1記憶装置の領域に対する有効識別子とし
て、省略時識別子を設定(ステップ615)して領域使
用終了処理を終了する。
If NO in step 309, it is determined whether it is a notification of end of use of the area in the first storage device (step 313);
If YES, area use termination processing is performed (step 315). In detail, as shown in FIG. 10, the use counter of the valid identifier 11 that matches the notified area identifier is subtracted by 1 (step 601). Only when the termination notification includes a request to save data in the first storage device (step 603), the current valid identifier usage counter is set to 0.
It is determined whether (step 605), and if YES,
The first storage device 33 pointed to by the first storage device area location information 15 corresponding to the same area identifier 14 as the current valid identifier 11
The data within is also saved to the second storage device 19 pointed to by the second storage device area location information 16 (step 607), and the valid flag 17 for the second storage device area location information 16 is saved.
is turned on (step 609). Next, it is determined whether the valid flag 17 of the second storage device area allocation information 16 corresponding to the same area identifier 14 as the default identifier paired with the valid identifier is on (step 611), and only when YES is the default The data in the area in the second storage device 19 pointed to by the second storage device area location information 16 corresponding to the identifier is transferred to the area in the first storage device 33 also pointed to by the first storage device area location information 15 (step 613). . Thereafter, the default identifier is set as a valid identifier for the area of the first storage device corresponding to the default identifier (step 615), and the area usage termination process is completed.

【0017】ステップ313NOならば、省略時識別子
の通知要求であるかを判定する(ステップ317)。ス
テップ317YESならば、上位システムから通知され
た領域識別子、第1記憶装置領域配置情報、第2記憶装
置領域配置情報、および必要ならば副系領域配置情報と
に基づき、それらを夫々記憶メモリ8内の14,15,
16,18に設定するとともに、第1記憶装置内の領域
と同じ第1記憶装置内領域情報10に対する省略時識別
子13として通知された領域識別子を設定(ステップ3
41)して処理を終了する。該要求は、第1記憶装置の
利用に先立ち上位システムから記憶制御装置5に通知さ
れる。ステップ317NOならば、領域削除要求である
かを判定する(ステップ325)。ステップ325YE
Sならば、通知された領域識別子と同じ領域識別子14
に関する第1記憶装置領域配置情報および第2記憶装置
領域配置情報17等を削除する。また、通知された領域
識別子が有効識別子であるならば、省略時識別子13を
有効識別子11に設定(ステップ327)して、処理を
終了する。ステップ325NOならば、副系への切替要
求であるかを判定する(ステップ329)(図5)。ス
テップ329YESならば、副系領域が有るかを判定(
ステップ331)し、有れば副系領域配置情報18で第
2記憶装置領域配置情報16を置換するとともに副系領
域配置情報を削除(ステップ333)し、無ければ、エ
ラーメッセージ上位システムに転送(ステップ335)
して処理を終了する。この要求は第2記憶装置領域配置
情報16が指す第2記憶装置へのアクセス時に障害が発
生したとき、その障害を検知した上位システムや記憶制
御管理プログラムから通知される。
If NO in step 313, it is determined whether the request is for notification of a default identifier (step 317). If YES in step 317, the area identifier, first storage area location information, second storage area location information, and if necessary, subsystem area location information notified from the host system are used to store them in the storage memory 8. 14, 15,
16 and 18, and set the area identifier notified as the default identifier 13 for the area information 10 in the first storage device that is the same as the area in the first storage device (step 3).
41) and ends the process. The request is notified to the storage control device 5 from the host system prior to use of the first storage device. If NO in step 317, it is determined whether it is an area deletion request (step 325). Step 325YE
If S, the area identifier 14 is the same as the notified area identifier.
The first storage device area location information and the second storage device area location information 17, etc. related to the above are deleted. Furthermore, if the notified area identifier is a valid identifier, the default identifier 13 is set to the valid identifier 11 (step 327), and the process ends. If NO in step 325, it is determined whether it is a request for switching to the subsystem (step 329) (FIG. 5). If step 329 is YES, determine whether there is a subsystem area (
Step 331), and if there is, replaces the second storage area location information 16 with the sub-system area location information 18 and deletes the sub-system area location information (step 333); if there is no information, transfers the error message to the upper system ( step 335)
and end the process. When a failure occurs when accessing the second storage device pointed to by the second storage area location information 16, this request is notified from the host system or storage control management program that detected the failure.

【0018】ステップ329NOならば、データ退避要
求であるかを判定する(ステップ337)。ステップ3
37YESならば、全有効識別子と同じ領域識別子14
に対応する第1記憶装置領域情報15が指す第1記憶装
置33内の領域のデータを、同じく第2記憶装置領域識
別子16が指す第2記憶装置19内の領域に退避(ステ
ップ339)し、有効フラグ17をオンにする(ステッ
プ340)。副系領域が有るときだけ(ステップ341
)、副系領域配置情報18が指す領域へも第1記憶装置
のデータを退避(ステップ343)して処理を終了する
。この要求は、上位システムが計算機システムの異常を
検知し第1記憶装置のデータを保護するために通知して
きたり、利用者が記憶制御装置に対して直接指示を出す
ために用意された操作装置31から通知されたり、記憶
制御装置内の記憶制御管理プログラムが上位システムと
のやり取りの中で上位システムの異常を検知し自動的に
発行される。ステップ337NOならば、データ復元要
求であるかを判定する(ステップ345)。ステップ3
45YESならば、全有効識別子と同じ領域識別子14
に対応する第2記憶装置領域配置情報16が指す第2記
憶装置19内の領域のデータを、同じく第1記憶装置領
域配置情報15が指す第1記憶装置33内の領域に格納
(ステップ347)し、有効フラグ17をオフ(ステッ
プ349)にして処理を終了する。
If NO in step 329, it is determined whether it is a data save request (step 337). Step 3
37 If YES, the area identifier 14 is the same as all valid identifiers.
saves the data in the area in the first storage device 33 pointed to by the first storage device area information 15 corresponding to , to the area in the second storage device 19 also pointed to by the second storage device area identifier 16 (step 339); The validity flag 17 is turned on (step 340). Only when there is a subsystem area (step 341
), the data in the first storage device is also saved to the area pointed to by the subsystem area location information 18 (step 343), and the process ends. This request may be sent by the host system to detect an abnormality in the computer system and notify the user in order to protect the data in the first storage device, or by the operating device 31 provided for the user to directly issue instructions to the storage control device. The storage control management program in the storage control device detects an abnormality in the host system during communication with the host system and is automatically issued. If NO in step 337, it is determined whether it is a data restoration request (step 345). Step 3
45 If YES, the area identifier 14 is the same as all valid identifiers.
The data in the area in the second storage device 19 pointed to by the second storage device area location information 16 corresponding to is stored in the area in the first storage device 33 also pointed to by the first storage device area location information 15 (step 347). Then, the valid flag 17 is turned off (step 349) and the process ends.

【0019】ステップ345NOならば、データ読込み
要求であるかを判定する(ステップ351)(図6)。 ステップ351YESならば、上位システムから通知さ
れた領域識別子は有効識別子かを判定する(ステップ3
53)。ステップ353YESならば、第1記憶装置は
主電源断などにより使用不可ではないことを判定する(
ステップ355)。ステップ355YESならば、有効
識別子の指す第1記憶装置内のデータを上位システムへ
転送する(ステップ357)。全データを転送するか、
その一部を転送するか、ある条件を満たすデータを転送
するかは上位システムからの要求に基づく。また、デー
タ量が一回の転送能力を超える場合には、必要な回数に
分けて転送されることは言うまでもない。ステップ35
3NO、またはステップ355NOならば、上位システ
ムから通知された識別子と同じ領域識別子14の領域配
置情報16が指す第2記憶装置の領域からデータを読込
み、上位システムへ転送(ステップ359)して処理を
終る。これにより、高速なアクセスが必要な目的のため
には、第1記憶装置を使用してデータを読込むが、第1
記憶装置が主電源断で使用できないとき、第1記憶装置
が他の目的のため使用されているとき、あるいは、高速
アクセスが不要なときは、第2記憶装置にデータを置い
たままで、即ち、第1記憶装置へのデータ移動を行なわ
ずに、第2記憶装置のデータを読込むことができる。ス
テップ351NOならば、データ書き込み要求であるか
を判定する(ステップ361)。ステップ361YES
ならば、上位システムから通知された領域識別子は有効
識別子かを判定する(ステップ363)。ステップ36
3YESならば、第1記憶装置は主電源断などにより使
用不可ではないことを判定する(ステップ365)。ス
テップ365YESならば、有効識別子の指す第1記憶
装置内に上位システムから転送されたデータを書き込む
(ステップ367)。データ量が一回の転送能力を超え
る場合には、必要な回数に分けて上位システムから転送
され、それを書き込むことは言うまでもない。 ステップ363NO、またはステップ365NOならば
、上位子から通知された領域識別システムと同じ領域識
別子14の領域配置情報16が指す第2記憶装置の領域
へ、上位システムから転送されたデータを書き込み(ス
テップ369)処理を終る。これにより、高速なアクセ
スが必要な目的のためには、第1記憶装置を使用してデ
ータを書き込むが、第1記憶装置が主電源断で使用でき
ないとき、第1記憶装置が他の目的のため使用されてい
るとき、あるいは、高速アクセスが不要なときは、第2
記憶装置にデータを置いたままで、即ち、第1記憶装置
へのデータ移動を行なわずに、第2記憶装置へデータを
書き込むことができる。
If NO in step 345, it is determined whether it is a data read request (step 351) (FIG. 6). If YES in step 351, it is determined whether the area identifier notified from the upper system is a valid identifier (step 3
53). If YES in step 353, it is determined that the first storage device is not unusable due to a main power cut, etc. (
step 355). If YES in step 355, the data in the first storage device pointed to by the valid identifier is transferred to the higher level system (step 357). Transfer all data or
Whether to transfer a part of the data or to transfer data that satisfies a certain condition is based on a request from the higher-level system. It goes without saying that if the amount of data exceeds the capacity for one-time transfer, it will be divided and transferred as many times as necessary. Step 35
3NO or step 355NO, the data is read from the area of the second storage device pointed to by the area location information 16 with the same area identifier 14 as the identifier notified from the host system, transferred to the host system (step 359), and processed. end. This allows data to be read using the first storage device for purposes that require high-speed access;
When the storage device cannot be used because the main power is turned off, when the first storage device is used for other purposes, or when high-speed access is not required, the data remains in the second storage device, i.e. Data in the second storage device can be read without moving data to the first storage device. If NO in step 351, it is determined whether it is a data write request (step 361). Step 361 YES
If so, it is determined whether the area identifier notified from the host system is a valid identifier (step 363). Step 36
If 3YES, it is determined that the first storage device is not unusable due to main power cut-off or the like (step 365). If YES in step 365, the data transferred from the host system is written into the first storage device pointed to by the valid identifier (step 367). If the amount of data exceeds the transfer capacity at one time, it goes without saying that the data will be divided and transferred from the host system as many times as necessary and then written. If NO in step 363 or NO in step 365, write the data transferred from the higher-level system to the area of the second storage device pointed to by the area location information 16 of the same area identifier 14 as the area identification system notified from the higher-level child (step 369 ) Finish processing. As a result, data is written using the first storage device for purposes that require high-speed access, but when the first storage device is unavailable due to a main power outage, the first storage device is used for other purposes. or when high-speed access is not required, the second
Data can be written to the second storage device while the data remains in the storage device, that is, without moving the data to the first storage device.

【0020】ステップ361NOならば、データ非常読
込み要求であるかを判定する(ステップ371)。ステ
ップ371YESならば、有効識別子と同じ領域識別子
14の第1記憶装置領域配置情報15が指す第1記憶装
置の領域からデータを読込み、上位システムへ転送(ス
テップ373)して処理を終わる。データ量が一回の転
送能力を超える場合には、必要な回数に分けて上位シス
テムから転送され、それを書き込むことは言うまでもな
い。この要求は、第1記憶装置へのアクセスが、該記憶
制御装置5を介せず行なわれている場合に、そのアクセ
ス経路が障害時により使用できなくなった時、使用され
る。この他に、記憶メモリ8、第1記憶装置33、第2
記憶装置19のイニシャライズ要求に対応した処理、題
記記憶装置領域配置情報や副系領域配置情報の一部を修
正する要求に対応する処理等があることはいうまでもな
い。このように動作することで、高速な第1記憶装置の
利用率を向上させるために、時間帯別に少なくとも2つ
以上の異なるデータを高速な第1記憶装置に配置する記
憶装置の利用方法において、データの利用時間帯でない
こと、あるいは、第1記憶装置の主電源が故障し非常用
の電源によって不揮発性が保たれていること等を理由に
、相対的に低速な第2記憶装置にデータを退避する必要
が生じた際、該データの使途に応じて予め規定された第
2記憶装置の領域にデータを自動的に退避することがで
きる。よって、第1記憶装置からのデータ退避ができな
かったり、あるいは退避操作忘れによる第1記憶装置内
のデータ破壊を防止して、信頼性を高めることができる
If NO in step 361, it is determined whether it is an emergency data read request (step 371). If YES in step 371, data is read from the area of the first storage device pointed to by the first storage device area location information 15 having the same area identifier 14 as the valid identifier, and transferred to the host system (step 373), and the process ends. If the amount of data exceeds the transfer capacity at one time, it goes without saying that the data will be divided and transferred from the host system as many times as necessary and then written. This request is used when the first storage device is accessed without going through the storage control device 5 and the access path becomes unusable due to a failure. In addition, the storage memory 8, the first storage device 33, the second
Needless to say, there is a process corresponding to a request to initialize the storage device 19, a process corresponding to a request to modify part of the title storage device area location information or sub-system area placement information, etc. By operating in this way, in order to improve the utilization rate of the high-speed first storage device, a method of using a storage device in which at least two or more different pieces of data are placed in the high-speed first storage device according to time zone, The data may be transferred to the relatively slow second storage device due to reasons such as the time when the data is not available, or the main power supply of the first storage device has failed and the non-volatility is maintained by the emergency power supply. When it becomes necessary to save the data, it is possible to automatically save the data to a predefined area of the second storage device depending on the use of the data. Therefore, data destruction in the first storage device due to failure to save data from the first storage device or failure to perform an evacuation operation can be prevented, thereby increasing reliability.

【0021】他の実施例として、第1記憶装置33を第
2記憶装置19と同様に不揮発化補助機構37に依らず
記憶を継続できる記憶装置とし、第1のを使用期間を分
けて複数の目的で使用する場あいに、記憶メモリ8内の
第1記憶装置領域配置情報15や第2記憶装置領域配置
情報16に基づき第1記憶装置と第2記憶装置との間の
データ移動を記憶制御装置が自動的に実施するようにな
されてもよい。これにより、第1記憶装置内データの退
避忘れや操作ミスによるデータ破壊を防止できる。なお
、このとき、第1記憶装置33は上位システムのCPU
と直接接続されている必要は無く、記憶制御装置5とチ
ャネル3とを介して接続される実施例でもよい。
As another embodiment, the first storage device 33 is a storage device that can continue storing data without relying on the non-volatization auxiliary mechanism 37 like the second storage device 19, and the first storage device 33 is used as a storage device that can continue storing data without depending on the nonvolatization auxiliary mechanism 37, and the first storage device 33 is used as a storage device that can continue storing data without depending on the non-volatization auxiliary mechanism 37. When used for the purpose, data movement between the first storage device and the second storage device is storage controlled based on the first storage device area placement information 15 and the second storage device area placement information 16 in the storage memory 8. The device may be configured to perform this automatically. This makes it possible to prevent data destruction due to forgetting to save data in the first storage device or operational errors. Note that at this time, the first storage device 33 is connected to the CPU of the host system.
There is no need for direct connection to the storage control device 5, and an embodiment in which the storage control device 5 is connected via the channel 3 may be used.

【0022】〔実施例2〕本実施例は、上位システムを
介して第1記憶装置と第2記憶装置との間でデータ転送
を行なう点で実施例1とは異なる。以下、実施例2につ
いて詳細に説明する。実施例1と異なる部分は、第1記
憶装置33と記憶制御装置5とは必ずしも直接は接続さ
れている必要はない点と、上位システムを介してデータ
を移動するための処理を追加した点である。実施例2に
おける第1記憶装置利用プログラム25と記憶制御管理
プログラム9の処理内容につき、以下説明する。
[Embodiment 2] This embodiment differs from Embodiment 1 in that data is transferred between the first storage device and the second storage device via the host system. Example 2 will be described in detail below. The difference from the first embodiment is that the first storage device 33 and the storage control device 5 do not necessarily need to be directly connected, and that processing for moving data via the host system is added. be. The processing contents of the first storage device utilization program 25 and the storage control management program 9 in the second embodiment will be explained below.

【0023】第1記憶装置利用プログラム25は、図1
1および図12に示すごとく、起動されると、第1記憶
装置の初めて使用(ステツプ701)ならば、領域とそ
の領域識別子を記憶制御装置5に通知する(ステツプ7
03)。尚、領域の指定方法は、第1の実施例と同じで
ある。次に、使用する第1記憶装置の領域に対する現在
の有効識別子11、使用カウンタ12、有効識別子と同
じ領域識別子14が指す第1記憶領域情報15、第2記
憶装置領域配置情報16等を記憶制御装置5に問合せる
(ステツプ705)。これから利用する第1記憶装置の
領域に対する領域識別子と有効識別子が一致するかを判
定する(ステツプ707)。ステツプ707YESなら
ば、使用カウンタに1加算するよう記憶制御装置に要求
(ステツプ719)後、第1記憶装置を利用する(ステ
ツプ721)。ステツプ707NOならば、使用カウン
タが0であるかを判定する(ステツプ709)。ステツ
プ709YESならば、第1記憶装置領域配置情報14
に基づき第1記憶装置33からデータを読込み(ステツ
プ713)、第2記憶装置領域配置情報16に基づき第
2記憶装置に書き込む(ステツプ714)。そして、書
き込んだ第2記憶領域配置情報16に対する有効識別子
をオンにするよう記憶制御装置5に通知する(ステツプ
715)。次に、これから使用する第1記憶装置の領域
に対応する領域識別子をパラメタとして、それと同じ領
域識別子14が指す第1記憶装置領域情報15、第2記
憶装置領域配置情報16、有効フラグ17等を記憶制御
装置に問合せる(ステツプ716)。そして、返送され
た有効フラグ17がオンかを判定する(ステツプ717
)。オフならばステツプ721以降を実施し、オンなら
ば、第2記憶装置領域配置情報16に基づき第2記憶装
置19からデータを読込み(ステツプ718)、第1記
憶装置領域配置情報15に基づき第1記憶装置に書き込
み(ステツプ719)、有効フラグをオフにする(ステ
ップ720)。そして、有効識別子をこれから使用する
第1記憶装置の領域の領域識別子に変更することを記憶
制御装置5に通知(ステツプ721)後、ステツプ72
3以降を実行する。ステツプ709NOならば、一定期
間待つた(ステツプ711)後、ステツプ705以降を
繰り返す。
The first storage device utilization program 25 is shown in FIG.
1 and FIG. 12, when the first storage device is activated and the first storage device is used for the first time (step 701), the storage controller 5 is notified of the area and its area identifier (step 7).
03). Note that the method of specifying the area is the same as in the first embodiment. Next, the current valid identifier 11 for the area of the first storage device to be used, the usage counter 12, the first storage area information 15 pointed to by the same area identifier 14 as the valid identifier, the second storage area location information 16, etc. are stored under storage control. An inquiry is made to the device 5 (step 705). It is determined whether the area identifier for the area of the first storage device to be used from now on matches the valid identifier (step 707). If YES in step 707, the storage controller is requested to add 1 to the usage counter (step 719), and then the first storage device is used (step 721). If NO in step 707, it is determined whether the usage counter is 0 (step 709). If YES in step 709, the first storage area location information 14
Data is read from the first storage device 33 based on the data (step 713) and written to the second storage device based on the second storage device area location information 16 (step 714). Then, it notifies the storage control device 5 to turn on the valid identifier for the written second storage area arrangement information 16 (step 715). Next, the area identifier corresponding to the area of the first storage device to be used from now on is set as a parameter, and the first storage device area information 15, second storage device area location information 16, valid flag 17, etc. pointed to by the same area identifier 14 are set as parameters. The storage controller is queried (step 716). Then, it is determined whether the returned valid flag 17 is on (step 717).
). If it is off, execute steps 721 and subsequent steps; if on, read data from the second storage device 19 based on the second storage device area location information 16 (step 718), and read data from the second storage device 19 based on the first storage device area location information 15. It is written to the storage device (step 719) and the valid flag is turned off (step 720). Then, after notifying the storage control device 5 that the valid identifier will be changed to the area identifier of the area of the first storage device to be used from now on (step 721), the process proceeds to step 72.
Execute steps 3 onwards. If NO in step 709, the process waits for a certain period of time (step 711), and then repeats steps 705 and subsequent steps.

【0024】第1記憶装置の使用が終わつたら、使用領
域に対する有効識別子11、使用カウンタ12、有効識
別子と同じ領域識別子14が指す第1記憶装置領域情報
15、第2記憶装置領域配置情報16等を記憶制御装置
5に問合せる(ステツプ724)。使用した領域に関す
る情報を記憶メモリ8から削除することが利用者の意思
かを判別する(ステツプ725)。ステツプ725NO
ならば、使用カウンタが1であるときだけ(ステツプ7
27)第1記憶装置内のデータを第2記憶装置に退避す
ることが利用者の意思かを判定する(ステツプ729)
。ステツプ729YESならば、第1記憶装置領域配置
情報15に基づき第1記憶装置33からデータを読込み
(ステツプ731)、第2記憶装置領域配置情報16に
基づき第2記憶装置に書き込む(ステツプ733)。そ
して、使用中の第1記憶装置の領域の省略時識別子13
、それと同じ領域識別子14が指す第1記憶装置領域情
報15、第2記憶装置領域配置情報16、有効フラグ1
7等を記憶制御装置に問合せる(ステツプ735)。有
効フラグがオンかを判定する(ステツプ737)。オフ
ならば処理を終了し、オンならば、第2記憶装置領域配
置情報16に基づき第2記憶装置19からデータを読込
み(ステツプ739)、第1記憶装置領域配置情報15
に基づき第1記憶装置に書き込み(ステツプ741)、
有効フラグをオフにする(ステップ742)。そして、
有効識別子を省略時識別子に変更することを記憶制御装
置5に通知(ステツプ743)後、第1記憶装置利用プ
ログラムの処理を終了する。ステツプ729NOならば
、使用カウンタを1減ずるよう記憶制御装置に要求(ス
テツプ745)後、処理を終了する。
When the use of the first storage device is finished, the valid identifier 11 for the used area, the usage counter 12, the first storage area information 15 pointed to by the area identifier 14 which is the same as the valid identifier, and the second storage area location information 16. etc., to the storage control device 5 (step 724). It is determined whether the user intends to delete information regarding the used area from the storage memory 8 (step 725). Step 725 NO
Then, only when the usage counter is 1 (step 7)
27) Determine whether the user intends to save the data in the first storage device to the second storage device (step 729)
. If YES in step 729, data is read from the first storage device 33 based on the first storage device area location information 15 (step 731) and written to the second storage device based on the second storage device area location information 16 (step 733). and the default identifier 13 of the area of the first storage device in use.
, the first storage device area information 15 pointed to by the same area identifier 14, the second storage device area location information 16, and the valid flag 1
7 etc. to the storage control device (step 735). It is determined whether the valid flag is on (step 737). If it is off, the process ends, and if it is on, data is read from the second storage device 19 based on the second storage device area location information 16 (step 739), and the first storage device area location information 15 is read.
write to the first storage device based on (step 741),
The valid flag is turned off (step 742). and,
After notifying the storage control device 5 that the valid identifier will be changed to the default identifier (step 743), the processing of the first storage device utilization program is ended. If NO in step 729, the process is terminated after requesting the storage control device to decrement the usage counter by 1 (step 745).

【0025】ステツプ725YESならば、使用カウン
タが1であるかを判定する(ステツプ747)。ステツ
プ747NOならばステツプ745以降を実施し、YE
Sならば、使用中の第1記憶装置の領域の省略時識別子
13、それと同じ領域識別子14が指す第1記憶装置領
域情報15、第2記憶装置領域配置情報16、有効フラ
グ17等を記憶制御装置に問合せる(ステツプ749)
。有効フラグがオンかを判定する(ステツプ751)。 オフならばステツプ759以降を実施する。オンならば
、第2記憶装置領域配置情報16に基づき第2記憶装置
19からデータを読込み(ステツプ753)、第1記憶
装置領域配置情報15に基づき第1記憶装置に書き込み
(ステツプ755)、有効フラグをオフにする(ステッ
プ756)。そして、有効識別子を省略時識別子に変更
することを記憶制御装置5に通知(ステツプ757)し
た後、使用していた領域に関する記憶メモリ内の情報を
削除するよう記憶制御装置に通知(ステツプ759)し
て第1記憶装置利用プログラムの処理を終了する。記憶
制御管理プログラム9の処理内容は、図13および図1
4に示すごとく、要求が新領域の登録要求であるかを判
定する(ステツプ801)。ステツプ801YESなら
ば、該要求で通知された領域の領域識別子と同じ領域識
別子14が既に存在しなければ(ステツプ803)、第
1記憶装置領域配置情報15、その領域識別子14、第
2記憶装置領域配置情報16、必要ならば副系領域配置
情報18を記憶制御装置5内の記憶メモリ8に設定(ス
テツプ805)し、既に存在していればエラーメツセー
ジを上位システムに返し(ステツプ807)て処理を終
了する。該要求のパラメタについては、実施例1と同じ
である。
If YES in step 725, it is determined whether the usage counter is 1 (step 747). If step 747 is NO, execute steps 745 and after, and YE.
If S, the default identifier 13 of the area of the first storage device in use, the first storage device area information 15 pointed to by the same area identifier 14, the second storage device area location information 16, the valid flag 17, etc. are stored under storage control. Query the device (step 749)
. It is determined whether the valid flag is on (step 751). If it is off, step 759 and subsequent steps are executed. If it is on, data is read from the second storage device 19 based on the second storage device area location information 16 (step 753), data is written to the first storage device based on the first storage device area location information 15 (step 755), and data is validated. The flag is turned off (step 756). Then, after notifying the storage controller 5 that the effective identifier will be changed to the default identifier (step 757), the storage controller 5 is notified to delete the information in the storage memory regarding the area that was being used (step 759). Then, the processing of the first storage device utilization program ends. The processing contents of the storage control management program 9 are shown in FIG. 13 and FIG.
4, it is determined whether the request is a new area registration request (step 801). If YES in step 801, if the same area identifier 14 as the area identifier of the area notified in the request does not already exist (step 803), the first storage area location information 15, its area identifier 14, and the second storage area Placement information 16 and, if necessary, subsystem area placement information 18 are set in the storage memory 8 in the storage control device 5 (step 805), and if they already exist, an error message is returned to the upper system (step 807) for processing. end. The parameters of the request are the same as in the first embodiment.

【0026】ステツプ801NOならば、領域の削除要
求であるかを判定する(ステツプ809)。ステツプ8
09YESならば、通知された領域識別子と同じ領域識
別子とその第1記憶装置領域配置情報15、第2記憶装
置領域配置情報、有効フラグ17、必要ならば副系領域
情報18を削除(ステツプ811)して処理を終了する
。ステツプ809NOならば、現有効識別子の領域情報
の読み出し要求であるかを判定する(ステツプ813)
。ステツプ813YESならば、まず、通知された領域
識別子と同じ領域識別子14を求め、その第1記憶装置
領域配置情報15に対応する第1記憶装置内領域情報1
0から現在の有効識別子を得る。そして、その有効識別
子と同じ領域識別子14を求め、有効識別子の使用カウ
ンタ12、有効識別子と同じ領域識別子14の第1記憶
装置領域配置情報15、第2記憶装置領域配置情報16
、有効フラグ17、必要ならば副系領域情報領域情報1
8を上位システムに通知(ステツプ814)して処理を
終わる。ステツプ813NOならば、指定領域識別子の
領域情報の読み出し要求であるかを判定する(ステツプ
815)。ステツプ815YESならば、通知された領
域識別子と同じ領域識別子14を求め、その第1記憶装
置領域配置情報15、第2記憶装置領域配置情報16、
有効フラグ17、必要ならば副系領域情報領域情報18
を上位システムに通知(ステツプ816)して処理を終
わる。ステツプ815NOならば、使用カウンタの1加
算要求であるかを判定する(ステツプ817)。ステツ
プ817YESならば、通知された領域識別子と同じ有
効識別子の使用カウンタを1加算(ステツプ819)し
て処理を終了する。ステツプ817NOならば、使用カ
ウンタの1減算要求であるかを判定する(ステツプ82
1)。ステツプ821YESならば、通知された領域識
別子と同じ有効識別子の使用カウンタを1減算(ステツ
プ823)して処理を終了する。ステツプ821NOな
らば、有効識別子の変更要求であるかを判定する(ステ
ツプ825)。ステツプ825YESならば、有効識別
子の置換処理(ステツプ827)後、処理を終了する。
If NO in step 801, it is determined whether the request is an area deletion request (step 809). Step 8
09 If YES, delete the area identifier that is the same as the notified area identifier, its first storage area location information 15, second storage area location information, valid flag 17, and if necessary subsystem area information 18 (step 811). and end the process. If NO in step 809, it is determined whether it is a request to read area information of the current valid identifier (step 813).
. If YES in step 813, first obtain the area identifier 14 that is the same as the notified area identifier, and calculate the area information 1 in the first storage device corresponding to the first storage area location information 15.
Get the current valid identifier from 0. Then, the area identifier 14 that is the same as the valid identifier is obtained, and the usage counter 12 of the valid identifier, the first storage area allocation information 15 and the second storage area allocation information 16 of the area identifier 14 that is the same as the effective identifier are calculated.
, valid flag 17, subsystem area information area information 1 if necessary
8 to the higher-level system (step 814), and the process ends. If NO in step 813, it is determined whether it is a request to read area information of the specified area identifier (step 815). If YES in step 815, the area identifier 14 that is the same as the notified area identifier is obtained, and its first storage area location information 15, second storage area location information 16,
Valid flag 17, subsystem area information area information 18 if necessary
The host system is notified of this to the higher level system (step 816), and the process ends. If NO in step 815, it is determined whether it is a request to add 1 to the usage counter (step 817). If YES in step 817, the use counter of the same valid identifier as the notified area identifier is incremented by 1 (step 819), and the process ends. If NO in step 817, it is determined whether the request is to subtract 1 from the usage counter (step 82).
1). If YES in step 821, the usage counter of the same valid identifier as the notified area identifier is decremented by 1 (step 823), and the process ends. If NO at step 821, it is determined whether the request is a valid identifier change request (step 825). If YES in step 825, the process ends after valid identifier replacement processing (step 827).

【0027】置換処理の詳細は、図15を参照して説明
する。個々の操作、例えば、第1記憶装置と第2記憶装
置間でのデータの移動、使用カウンタの増減、有効識別
子の変更等を、記憶制御装置が自動的に行うのではなく
、上位システムからの指示によって行う場合であって、
第1記憶装置へのアクセスが可能となるように有効識別
子を置換する操作において、現有効識別子の指す第1記
憶装置内の領域のデータ破壊を防止するため、そのデー
タが第1記憶装置から第2記憶装置へ退避後であること
を条件に有効識別子の置換を行うために、有効フラグを
判定する処理を設けている。即ち、有効識別子の置換処
理では、上位システムからは、現在の有効識別子である
第1の識別子と今後有効識別子としたい第2の識別子と
が通知される。その第1の識別子と同じ識別子14の第
1記憶装置領域配置情報15を求め、次に、それと同じ
第1記憶装置内領域情報10を求めることで、第1の識
別子に該当する有効識別子が存在することを判定する(
ステツプ901)。ステツプ901NOならば、第1の
識別子が現存する有効識別子でないことからエラーメッ
セージを上位システムへ通知(ステツプ909)後、処
理を終了する。ステツプ901YESならば、第1の識
別子の領域の有効フラグ17はオンかを判定する(ステ
ツプ903)。オンならば、該領域のデータは既に第1
記憶装置から第2記憶装置へ退避されているので、今度
は、第2の識別子でもって有効識別子を置換(ステツプ
905)後、使用カウンタを1(ステツプ907)にし
て処理を終わる。ステツプ903NOならば、ステツプ
909を実施する。これにより、第1記憶装置からデー
タを読み込んだり、書き込んだりするための有効識別子
のの置換は、第1の記憶装置からデータ退避後の領域だ
けに限定できるので、第1記憶装置の保全性が向上する
Details of the replacement process will be explained with reference to FIG. Individual operations, such as moving data between the first storage device and the second storage device, increasing/decreasing usage counters, changing valid identifiers, etc., are not automatically performed by the storage control device, but are performed by the host system. In the case where it is done according to instructions,
In the operation of replacing a valid identifier to enable access to the first storage device, in order to prevent data destruction in the area in the first storage device pointed to by the current valid identifier, the data is transferred from the first storage device to the first storage device. 2. In order to replace the valid identifier on the condition that the identifier has been saved to the storage device, a process for determining the valid flag is provided. That is, in the effective identifier replacement process, the host system notifies the first identifier that is the current effective identifier and the second identifier that is to be used as an effective identifier in the future. By finding the first storage device area location information 15 of the same identifier 14 as the first identifier, and then finding the same first storage device area information 10, it is possible to determine whether a valid identifier corresponding to the first identifier exists. Determine what to do (
Step 901). If NO in step 901, since the first identifier is not an existing valid identifier, an error message is sent to the higher level system (step 909), and the process ends. If YES in step 901, it is determined whether the validity flag 17 in the area of the first identifier is on (step 903). If it is on, the data in the area is already in the first
Since it has been saved from the storage device to the second storage device, the valid identifier is now replaced with the second identifier (step 905), and the usage counter is set to 1 (step 907), and the process ends. If step 903 is NO, step 909 is executed. As a result, the replacement of a valid identifier for reading or writing data from the first storage device can be limited to only the area after the data has been saved from the first storage device, so the integrity of the first storage device can be improved. improves.

【0028】ステツプ825NOならば、省略時識別子
の領域情報読込み要求であるかを判定する(ステツプ8
09)。ステツプ809YESならば、まず、通知され
た領域識別子と同じ領域識別子14に対応する第1記憶
装置の領域に対する省略時識別子を求め、次にそれと同
じ領域識別子14に対応する第1記憶装置領域配置情報
15、第2記憶装置領域配置情報16、有効フラグ17
、必要ならば副系領域情報領域情報18を上位システム
に通知(ステツプ833)して処理を終わる。ステツプ
831NOならば、有効フラグオン要求であるかを判定
する(ステツプ835)。ステツプ835YESならば
、通知された領域識別子と同じ領域識別子14に対応す
る有効フラグ17をオン(ステツプ837)にして処理
を終了する。  ステツプ835NOならば、省略時領
域の通知要求であるかを判定する(ステツプ839)。 ステツプ839YESならば、上位システムから通知さ
れた領域識別子、第1記憶装置領域配置情報、第2記憶
装置領域配置情報、および必要ならば副系領域配置情報
とに基づき、それらを夫々記憶メモリ8内の14,15
,16,18に設定するとともに、第1記憶装置内の領
域と同じ第1記憶装置内領域情報10に対する省略時識
別子13として通知された領域識別子を設定(ステツプ
841)して処理を終了する。ステップ839NOなら
、有効フラグオフ要求かを判定する(ステップ843)
。ステップ843YESなら、通知された識別子と同じ
識別子14の第1記憶装置領域配置情報15と同じ第1
記憶装置内領域情報10があることを検証して、通知さ
れた識別子に該当する有効識別子があることを判定する
(ステツプ845)。ステツプ845NOならば、エラ
ーメッセージを上位システムへ通知(ステツプ849)
後、処理を終了する。ステツプ845YESならば、有
効フラグをオフにして(ステツプ847)記憶制御管理
プログラムの処理を終了する。
If NO at step 825, it is determined whether the request is for reading area information of the default identifier (step 825).
09). If YES in step 809, first obtain the default identifier for the area of the first storage device corresponding to the same area identifier 14 as the notified area identifier, and then obtain the first storage area location information corresponding to the same area identifier 14. 15, second storage area location information 16, valid flag 17
If necessary, the subsystem area information area information 18 is notified to the higher-level system (step 833), and the process ends. If NO at step 831, it is determined whether it is a valid flag-on request (step 835). If YES in step 835, the valid flag 17 corresponding to the same area identifier 14 as the notified area identifier is turned on (step 837) and the process ends. If NO at step 835, it is determined whether it is a default area notification request (step 839). If the answer is YES in step 839, the area identifier, first storage area location information, second storage area location information, and subsystem area location information, if necessary, which are notified from the host system, are used to store them in the storage memory 8. 14,15 of
. If NO in step 839, determine whether it is a valid flag off request (step 843)
. Step 843 If YES, the first storage area location information 15 with the same identifier 14 as the notified identifier
The existence of the storage device area information 10 is verified, and it is determined that there is a valid identifier corresponding to the notified identifier (step 845). If NO in step 845, send an error message to the upper system (step 849)
After that, the process ends. If YES in step 845, the valid flag is turned off (step 847) and the processing of the storage control management program is ended.

【0029】他の処理要求に対しては、実施例1と同等
に省略する。このよう動作させることで、第1記憶装置
と第2記憶装置の間で、上位システムを経由しないデー
タの移動はできない場合であつても、第1記憶装置の使
用率を向上させるために第1記憶装置の使途を変更した
ときには、第1記憶装置内のデータは必ず第2記憶装置
へ退避されるので、退避忘れによるデータ破壊を防止で
きる。
Other processing requests will be omitted as in the first embodiment. By operating in this way, even if data cannot be moved between the first storage device and the second storage device without going through the host system, the first storage device When the usage of the storage device is changed, the data in the first storage device is always saved to the second storage device, so data destruction due to forgetting to save data can be prevented.

【0030】〔実施例3〕本実施例は、一組の第1記憶
装置と記憶制御装置とが複数の上位システムから使用さ
れる点で実施例1とは異なる。以下、実施例3について
詳細に説明する。全体構成図は、図16および図17に
示すごとく、実施例1や2と異なる部分は、一組の第1
記憶装置33と記憶制御装置5とは、複数の上位システ
ムから接続される点と、使用カウンタに代えて第1記憶
装置の少なくとも一部を示す領域対応にその使用者を特
定する識別子である1以上の使用者識別子を設定する記
憶メモリ1001を設けた点、記憶一組の第1記憶装置
33と記憶制御装置5とを共用する上位システムの一方
が障害により動作できないとき、その上位システムだけ
が使用していた第1記憶装置内の領域のデータを第2記
憶装置に自動的に移す処理を記憶制御管理プログラム9
に追加した点である。尚、実施例2の拡張として実施さ
れる場合には、上位システム内の緊急時処理プログラム
1003が実行可能な場合に、それによる第1記憶装置
33からのデータ退避処理が実施される。実施例3にお
ける記憶制御管理プログラム9の処理内容は、例えば、
図18に示すごとく、実施例1のステツプ337YES
の時の処理が以下のように拡張される。
[Embodiment 3] This embodiment differs from Embodiment 1 in that a set of a first storage device and a storage control device are used by a plurality of host systems. Example 3 will be described in detail below. As shown in FIGS. 16 and 17, the overall configuration diagram differs from Embodiments 1 and 2 in that a set of first
The storage device 33 and the storage control device 5 are connected to each other from a plurality of host systems, and instead of a usage counter, an identifier 1 is used to identify the user of the storage device 33 and the storage control device 5 in correspondence with an area indicating at least a part of the first storage device. The point of providing the storage memory 1001 for setting the user identifier as described above is that when one of the higher-level systems that shares the first storage device 33 and the storage control device 5 of the memory set cannot operate due to a failure, only that higher-level system can operate. The storage control management program 9 automatically transfers the data in the area in the first storage device that was being used to the second storage device.
This is the point added to. In addition, when implemented as an extension of the second embodiment, if the emergency processing program 1003 in the host system is executable, data saving processing from the first storage device 33 is performed by it. The processing contents of the storage control management program 9 in the third embodiment are, for example,
As shown in FIG. 18, step 337 of Example 1 is YES.
The processing at the time of is expanded as follows.

【0031】ステツプ337YESならば、該要求が一
部の上位システムの異常によるデータ退避要求であるか
を判定する(ステツプ1101)。ステツプ1101N
Oならば、実施例1と同様にステツプ339,340,
341,343を実施する。ステツプ1101NOなら
ば、第1記憶装置の各領域10について、使用者識別子
1001の少なくとも1つが異常である上位システムを
意味する使用者識別子を含むかを判定する(ステツプ1
103)。ここで、使用者識別子は、上位システムの異
常の種類によつてその異常が波及する範囲を特定できる
ような情報から構成されているものとする。例えば、1
組の第1記憶装置33と記憶制御装置5とに接続される
各CPUを識別する要素や、各CPUで動作するオペレ
ーテイングシステムを識別する要素や、各オペレーテイ
ングシステムを前提に動作するデータベース管理システ
ムを識別する要素等から構成されてよい。また、前記デ
ータ退避要求にもこれらの要素が含まれている。そして
、あるCPUが動作できなくなつた時は、そのCPUを
識別する要素を使用者識別子として含むものは全て、上
記ステツプ1103YESとなる。同様に、あるデータ
ベース管理システムが動作できなくなつたときには、そ
のデータベース管理システムを識別する要素を使用者識
別子として含むものは全て、上記ステツプ1103YE
Sとなる。ステツプ1103NOならば、ステツプ11
17以降を実施し、YESならば、第1記憶装置内領域
情報10と組をなす使用者識別子1001を消去(ステ
ツプ1105)後、該領域情報10と組をなす使用者識
別子が全てなくなつてしまつたかを判定する(ステツプ
1107)。ステツプ1107NOならばステツプ11
17以降を実施し、YESならば、該領域の有効識別子
と同じ領域識別子14の第1記憶装置領域情報15が指
す第1記憶装置33内の領域のデータを、同じく領域識
別子16が差す第2記憶装置19内の領域に退避(ステ
ツプ1109)し、有効フラグ17をオンにする(ステ
ツプ1111)。副系領域が有るときだけ(ステツプ1
113)、副系領域配置情報18が指す領域へも第1記
憶装置のデータを退避(ステツプ1115)して処理を
終了する。第1記憶装置の全領域について上記処理が終
了したかを判定(ステツプ1117)し、未了ならばス
テツプ1103以降を実施し、終了したならば、データ
退避要求YESのときの処理を終了する。この要求は、
他方のCPUやオペレーテイングシステムによつて、あ
るいは、オペレーテイングシステムがその応用プログラ
ム、例えばデータベース管理システムの異常を検知して
、第1記憶装置のデータを保護するために通知してきた
り、利用者が記憶制御装置に対して直接指示を出すため
に用意された操作装置31から通知されたり、記憶制御
装置内の記憶制御管理プログラムが上位システムとのや
り取りの中で上位システムの異常を検知し自動的に発行
される。また、記憶制御管理プログラム9の領域使用開
始処理311において、図9のステツプ505では、使
用カウンタが0であるかという判定に代えて、使用者識
別子が1つも設定されていないかという判定処理がなさ
れる。ステツプ507では、使用カウンタが0になるま
で待つのではなく、その第1記憶装置の領域に対する使
用者識別子が全て消去されるのを待つ処理に変わる。ス
テツプ503では、使用カウンタを1加算する処理に代
えて、上位システムから通知された使用者識別子を記憶
メモリ内の使用者識別子1001に設定する処理に変わ
り、同様に、ステツプ519では、通知された使用者識
別子を記憶メモリ内の使用者識別子1001に設定する
処理に変わる。さらに、領域使用終了処理315では、
使用カウンタを1減算する処理に代えて、該当する第1
記憶装置の領域に対して記憶されていた使用者識別子1
001の中から通知された使用者識別子と一致するもの
を消去する。また、ステツプ605の処理は、ステツプ
505と同様に変更される。
If YES in step 337, it is determined whether the request is a data save request due to an abnormality in some higher-level system (step 1101). Step 1101N
If O, steps 339, 340,
341, 343 will be implemented. If NO in step 1101, it is determined for each area 10 of the first storage device whether at least one of the user identifiers 1001 includes a user identifier indicating an abnormal host system (step 1).
103). Here, it is assumed that the user identifier is composed of information that can specify the range to which the abnormality spreads depending on the type of abnormality in the host system. For example, 1
Elements that identify each CPU connected to the first storage device 33 and storage control device 5 of the set, elements that identify the operating system that operates on each CPU, and database management that operates on the premise of each operating system. It may be composed of elements that identify the system. Further, the data save request also includes these elements. Then, when a certain CPU becomes inoperable, the above step 1103 becomes YES for all user identifiers that include an element for identifying that CPU. Similarly, if a database management system becomes inoperable, all user identifiers that include elements identifying that database management system are
It becomes S. Step 1103 If NO, step 11
17 and subsequent steps, and if YES, after erasing the user identifier 1001 that is paired with the area information 10 in the first storage device (step 1105), all user identifiers that are paired with the area information 10 are deleted. It is determined whether or not it has reached a certain point (step 1107). Step 1107 If NO, step 11
17 and subsequent steps, and if YES, the data in the area in the first storage device 33 pointed to by the first storage device area information 15 with the same area identifier 14 as the valid identifier of the area is transferred to the second storage device area information 15 pointed to by the same area identifier 16. It is saved to an area in the storage device 19 (step 1109), and the valid flag 17 is turned on (step 1111). Only when there is a subsystem area (step 1)
113), the data in the first storage device is also saved to the area pointed to by the subsystem area location information 18 (step 1115), and the process ends. It is determined whether the above processing has been completed for all areas of the first storage device (step 1117), and if it has not been completed, steps 1103 and subsequent steps are executed, and if completed, the processing when the data save request is YES is ended. This request is
The other CPU or operating system may detect an abnormality in its application program, such as a database management system, and notify the user in order to protect the data in the first storage device. A notification may be sent from the operating device 31 prepared to directly issue instructions to the storage control device, or the storage control management program within the storage control device may automatically detect an abnormality in the higher-level system during communication with the higher-level system. Published in Furthermore, in the area use start processing 311 of the storage control management program 9, in step 505 of FIG. It will be done. In step 507, instead of waiting until the usage counter reaches 0, the process changes to waiting until all user identifiers for the area of the first storage device are erased. In step 503, instead of adding 1 to the usage counter, the process changes to setting the user identifier notified from the host system in the user identifier 1001 in the storage memory.Similarly, in step 519, the The process changes to setting the user identifier to the user identifier 1001 in the storage memory. Furthermore, in the area use end processing 315,
Instead of decrementing the usage counter by 1, the corresponding first
User identifier 1 stored in the area of the storage device
001 that match the notified user identifier are deleted. Further, the processing in step 605 is changed in the same way as in step 505.

【0032】実施例3を実施例2に基づき実現する場合
には、図11および図12の第1記憶装置利用プログラ
ム25の処理の中で、ステツプ722において、使用カ
ウンタを+1する要求に代えて、使用者識別子を通知す
る処理が実施される。また、ステツプ709は実施例1
において変更されたステツプ505と同様に変更される
。ステツプ747とステツプ727では、使用領域に対
する使用者識別子が該第1記憶装置利用プログラムが通
知した使用者識別子だけであるかを判定する処理に変わ
る。ステツプ745では、記憶制御装置5に該プログラ
ムから通知する使用者識別子を記憶メモリから消去する
要求に変更される。この変更に伴い、記憶制御管理プロ
グラム9は、図13および図14のステツプ817に代
えて、通知された使用者識別子の記憶要求かを判定する
処理に、ステツプ821は通知された使用者識別子の消
去要求かを判定する処理になる。そして、ステツプ81
9では、通知された使用識別子を有効識別子の指す使用
者識別子設定メモリ1001に設定し、ステツプ823
では、有効識別子の指す使用者識別子設定メモリ100
1から通知された使用者識別子を削除する処理に変わる
。更に、有効識別子の置換処理を詳細に示した図15の
ステツプ905でも、有効識別子に対する使用者識別子
の設定メモリ10に通知された使用者識別子を設定する
処理が実施される。
When the third embodiment is implemented based on the second embodiment, in step 722 in the processing of the first storage device utilization program 25 shown in FIGS. 11 and 12, instead of requesting to increment the usage counter by 1, , a process of notifying the user identifier is performed. Further, step 709 is performed in Example 1.
Step 505 is modified in the same manner as in step 505. Steps 747 and 727 change to a process of determining whether the user identifier for the used area is the only user identifier notified by the first storage device utilization program. In step 745, the request is changed to a request to erase the user identifier notified from the program to the storage control device 5 from the storage memory. With this change, the storage control management program 9 performs a process of determining whether or not it is a request to store the notified user identifier, instead of step 817 in FIGS. The process is to determine whether it is an erasure request. And step 81
In step 9, the notified usage identifier is set in the user identifier setting memory 1001 pointed to by the valid identifier, and step 823
Now, the user identifier setting memory 100 pointed to by the valid identifier
The process changes to the process of deleting the user identifier notified from step 1. Furthermore, in step 905 of FIG. 15, which shows the valid identifier replacement process in detail, the process of setting the user identifier notified in the user identifier setting memory 10 for the valid identifier is carried out.

【0033】更に、上位システムでは、図19に示すご
とく、異常が発生した際に実行される緊急時処理プログ
ラム1003の処理の中で、現有効識別子の領域情報の
読み出し要求を記憶制御装置に通知(ステツプ1201
)し、その回答の中に含まれている使用者識別情報の中
に異常が発生した上位システムの使用者識別子が有るか
を判定する(ステツプ1203)。その使用者識別子を
取り除くと全てなくなつてしまうかを判定する(ステツ
プ1205)。ステツプ1205YESならば、第1記
憶装置利用プログラム25の処理ステツプ731から7
43までを実施する。ステツプ1205NOならば、異
常を起こした上位システムを意味する使用者識別子をパ
ラメタとして、記憶制御装置に、使用者識別子の消去要
求を通知する(ステツプ1209)。ステツプ1207
では、第1記憶装置の全領域についてデータの退避処理
を実施したかを判定し、未完ならばステツプ1201以
降を繰返し、終了したならば緊急時処理プログラムの処
理を終了する。このように動作することで、第1記憶装
置が複数の上位システムから利用されているとき、第1
記憶装置の領域とその使途を意味する領域識別子と、そ
の利用者を示す使用者識別子とを区別して設け、利用者
がなくなるまで、第1記憶装置の使途を変更できなく制
御することで、1つの第1記憶装置が複数の上位システ
ムから共用できる。更に、ある上位システムが動作でき
なくなつたならば、その上位システムだけが使用してい
た第1記憶装置の領域のデータを第2記憶装置へ移し、
正常に動作している上位システムに第1記憶装置の領域
を開放することで第1記憶装置の使用率を向上できるこ
とができる。
Furthermore, as shown in FIG. 19, the host system notifies the storage control device of a request to read the area information of the current valid identifier during the processing of the emergency processing program 1003 that is executed when an abnormality occurs. (Step 1201
), and determines whether the user identification information included in the answer includes the user identifier of the host system in which the abnormality has occurred (step 1203). It is determined whether all the user identifiers will be lost if the user identifier is removed (step 1205). If step 1205 is YES, processing steps 731 to 7 of the first storage device utilization program 25 are performed.
Perform steps up to 43. If NO in step 1205, a request to erase the user identifier is notified to the storage control device using the user identifier indicating the host system that caused the abnormality as a parameter (step 1209). Step 1207
Then, it is determined whether the data saving process has been performed for all areas of the first storage device, and if it is not completed, steps 1201 and subsequent steps are repeated, and if it is completed, the processing of the emergency processing program is ended. By operating in this way, when the first storage device is used by multiple host systems, the first
By separately providing an area identifier indicating the area of the storage device and its usage, and a user identifier indicating the user thereof, and controlling the usage of the first storage device so that it cannot be changed until there are no more users, 1. One first storage device can be shared by multiple higher-level systems. Furthermore, if a certain higher-level system becomes inoperable, the data in the area of the first storage device that was used only by that higher-level system is moved to the second storage device,
The usage rate of the first storage device can be improved by releasing the area of the first storage device to a normally operating host system.

【0034】[0034]

【発明の効果】本発明に依れば、不揮発化補助機構によ
りそのデータの記憶を継続する第1記憶装置を、使用期
間を分けて複数の用途で利用するために、その用途別に
不揮発化補助機構の助けなしに記憶を継続できる第2記
憶装置の領域情報を第2記憶装置の制御装置内に記憶さ
せ、障害時には、その領域情報に基づき適切な第2記憶
装置を選択し、上位システムを経由せずデータを退避す
るステツプを設けた。これにより、第1記憶装置からの
データ退避ができなくなかつたり、あるいは退避操作忘
れや、操作ミスによる第1記憶装置内のデータ破壊を防
止できるので、日中と夜間のごとく使用期間を分けて多
目的に使用し、第1記憶装置の使用率を向上させること
ができる。更に、第1記憶装置の使途に対応させた第2
記憶装置の領域を登録する際、領域の重複がないように
制御されるので、退避先の重複によるデータ破壊を防止
できる。更に、高速なアクセスが必要な目的のためには
、第1記憶装置を使用してデータを読み書きするが、第
1記憶装置が主電源断で使用できないとき、第1記憶装
置が他の目的のため使用されているとき、あるいは、高
速アクセスが不要なときは、第2記憶装置にデータを置
いたままで、即ち、第1記憶装置へのデータ移動を行な
わずに、第2記憶装置のデータを読込み、あるいは、書
き込むことで、第1記憶装置と第2記憶装置を使い分け
ることができる。
Effects of the Invention According to the present invention, in order to use the first storage device that continues to store data using the non-volatile assisting mechanism for multiple purposes by dividing the period of use, the non-volatile assisting mechanism is provided for each purpose. The area information of the second storage device that can continue storage without the help of the mechanism is stored in the control device of the second storage device, and in the event of a failure, the appropriate second storage device is selected based on the area information and the host system is activated. A step was provided to save the data without going through it. This prevents data from being unable to be saved from the first storage device, or from data destruction in the first storage device due to forgetting the evacuation operation or operational error. It can be used for multiple purposes and improve the usage rate of the first storage device. Furthermore, a second storage device corresponding to the usage of the first storage device is provided.
When registering areas of the storage device, control is performed so that there is no duplication of areas, so data destruction due to duplication of backup destinations can be prevented. Furthermore, the first storage device is used to read and write data for purposes that require high-speed access, but when the first storage device is unavailable due to a main power cut, the first storage device can be used for other purposes. or when high-speed access is not required, the data in the second storage device can be left in the second storage device, i.e., without moving the data to the first storage device. By reading or writing, the first storage device and the second storage device can be used differently.

【0035】更に、第1記憶装置と第2記憶装置の間で
、上位システムを経由しないデータの移動はできない場
合であつても、第1記憶装置の使途を変更するには、第
1記憶装置内のデータを第2記憶装置へ退避しないと第
1記憶装置の使途の変更はできないように制御すること
で、退避忘れによるデータ破壊を防止できる。更に、第
1記憶装置が複数の上位システムから利用されていると
き、第1記憶装置の領域とその使途を意味する領域識別
子と、その利用者を示す使用者識別子とを区別して設け
、利用者がなくなるまで、第1記憶装置の使途を変更で
きなく制御することで、1つの第1記憶装置が複数の上
位システムから共用できる。更に、上位システムが動作
できなくなつたらば、その上位システムだけが使用して
いた第1記憶装置の領域のデータを第2記憶装置へ移し
、正常に動作している上位システムに第1記憶装置の領
域を開放することで第1記憶装置の使用率を更に向上で
きることができる。
Furthermore, even if it is not possible to move data between the first storage device and the second storage device without going through the host system, in order to change the usage of the first storage device, the first storage device Data destruction due to forgetting to save data can be prevented by controlling such that the use of the first storage device cannot be changed unless the data in the first storage device is saved to the second storage device. Furthermore, when the first storage device is used by multiple host systems, an area identifier indicating the area of the first storage device and its usage, and a user identifier indicating the user of the first storage device are provided separately. By controlling the usage of the first storage device so that it cannot be changed until the first storage device is used up, one first storage device can be shared by a plurality of higher-level systems. Furthermore, if a higher-level system becomes unable to operate, the data in the area of the first storage device that was used only by that higher-level system can be moved to the second storage device, and the higher-level system that is operating normally can transfer the data from the first storage device to the second storage device. By freeing up the area, the usage rate of the first storage device can be further improved.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】図1、図2からなる本発明の実施例1の全体構
成図の一部である。
FIG. 1 is a part of an overall configuration diagram of a first embodiment of the present invention consisting of FIGS. 1 and 2. FIG.

【図2】図1、図2からなる本発明の実施例1の全体構
成図の一部である。
FIG. 2 is a part of the overall configuration diagram of the first embodiment of the present invention consisting of FIGS. 1 and 2. FIG.

【図3】実施例1での第1記憶装置利用プログラムの処
理フロー図である。
FIG. 3 is a processing flow diagram of a first storage device utilization program in the first embodiment.

【図4】図4、図5、図6からなる実施例1での記憶制
御管理プログラムの処理フロー図の一部である。
FIG. 4 is a part of a processing flow diagram of a storage control management program in the first embodiment consisting of FIGS. 4, 5, and 6;

【図5】図4、図5、図6からなる実施例1での記憶制
御管理プログラムの処理フロー図の一部である。
FIG. 5 is a part of a processing flow diagram of a storage control management program in the first embodiment consisting of FIGS. 4, 5, and 6;

【図6】図4、図5、図6からなる実施例1での記憶制
御管理プログラムの処理フロー図の一部である。
FIG. 6 is a part of a processing flow diagram of a storage control management program in the first embodiment consisting of FIGS. 4, 5, and 6;

【図7】実施例1での第2記憶装置領域配置情報の設定
処理の詳細な処理フロー図である。
FIG. 7 is a detailed process flow diagram of the setting process of second storage area location information in the first embodiment.

【図8】実施例1での第2記憶装置領域配置情報の設定
処理の他の実施例の詳細な処理フロー図である。
FIG. 8 is a detailed process flow diagram of another embodiment of the second storage device area location information setting process in the first embodiment.

【図9】実施例1での領域使用開始処理の詳細な処理フ
ロー図である。
FIG. 9 is a detailed processing flow diagram of area use start processing in the first embodiment.

【図10】実施例1での領域使用終了処理の詳細な処理
フロー図である。
FIG. 10 is a detailed process flow diagram of area use termination processing in the first embodiment.

【図11】図11、図12からなる実施例2での第1記
憶装置利用プログラムの処理フロー図の一部である。
FIG. 11 is a part of a processing flow diagram of a first storage device utilization program in the second embodiment consisting of FIGS. 11 and 12;

【図12】図11、図12からなる実施例2での第1記
憶装置利用プログラムの処理フロー図の一部である。
FIG. 12 is a part of a processing flow diagram of the first storage device utilization program in the second embodiment consisting of FIGS. 11 and 12;

【図13】図13、図14からなる実施例2での記憶制
御管理プログラムの処理フロー図の一部である。
FIG. 13 is a part of a processing flow diagram of the storage control management program in the second embodiment, which is shown in FIGS. 13 and 14;

【図14】図13、図14からなる実施例2での記憶制
御管理プログラムの処理フロー図の一部である。
FIG. 14 is a part of a processing flow diagram of the storage control management program in the second embodiment consisting of FIGS. 13 and 14;

【図15】実施例2での有効識別子の置換処理の詳細な
処理フロー図である。
FIG. 15 is a detailed processing flow diagram of effective identifier replacement processing in the second embodiment.

【図16】図16および図17からなる本発明の実施例
3の全体構成図の一部である。
FIG. 16 is a part of the overall configuration diagram of the third embodiment of the present invention consisting of FIGS. 16 and 17.

【図17】図16および図17からなる本発明の実施例
3の全体構成図の一部である。
FIG. 17 is a part of the overall configuration diagram of the third embodiment of the present invention consisting of FIGS. 16 and 17.

【図18】実施例3での記憶制御管理プログラムのデー
タ退避要求YESの時の処理の詳細な処理フロー図であ
る。
FIG. 18 is a detailed process flow diagram of the process of the storage control management program when the data save request is YES in the third embodiment.

【図19】実施例3での緊急時処理プログラムの処理フ
ロー図である。
FIG. 19 is a processing flow diagram of an emergency processing program in the third embodiment.

Claims (20)

【特許請求の範囲】[Claims] 【請求項1】  相対的に高速だが主電源および補助電
源により記憶を継続する第1記憶装置と、相対的に低速
だが電源によらず記憶を継続でき、かつ、少なくとも2
組以上の第1記憶装置のデータを記憶できる第2記憶装
置と、第1および第2記憶装置の両方へのアクセスが可
能な制御装置とから構成される外部記憶サブシステムに
おいて、制御装置は、上位システムからの指示に応じて
制御装置内に、第1記憶装置内領域情報と有効識別子欄
からなり、有効識別子欄には第1記憶装置内の領域にデ
ータが格納されたとき該データの領域識別子が有効識別
子として登録されてなる第1記憶装置管理情報のテーブ
ルと、領域識別子と第2記憶装置領域配置情報からなる
第2記憶装置管理情報のテーブルとを作成、記憶し、上
位システムからの指示に応じて、前記両テーブルに基づ
き第1記憶装置から第2記憶装置へのデータの退避また
は第2記憶装置から第1記憶装置へのデータの移送と前
記両テーブルの書き換え処理の制御を行うようにしたこ
とを特徴とする記憶制御方式。
[Claim 1] A first storage device that is relatively fast but can continue storage using a main power source and an auxiliary power source; and a first storage device that is relatively slow but can continue storage regardless of power source;
In an external storage subsystem comprising a second storage device capable of storing data of more than one first storage device, and a control device capable of accessing both the first and second storage devices, the control device includes: In response to instructions from the host system, the control device contains information on the area in the first storage device and a valid identifier column, and the valid identifier column indicates the area of the data when data is stored in the area in the first storage device. Create and store a table of first storage device management information in which the identifier is registered as a valid identifier and a table of second storage device management information including area identifiers and second storage device area allocation information, and In response to instructions, control is performed to save data from the first storage device to the second storage device or to transfer data from the second storage device to the first storage device and to rewrite the two tables based on the two tables. A memory control method characterized by:
【請求項2】  請求項1記載の記憶制御方式において
、前記制御装置は、第1記憶装置の主電源が動作不可と
なり補助電源が動作しているとき、上位システムの指示
により第1記憶装置内のデータを第2記憶装置へ移すよ
う制御し、前記主電源が動作可となったことを検知した
とき、前記有効識別子の示す第2記憶装置のデータを第
1記憶装置へ移すよう制御することを特徴とする記憶制
御方式。
2. The storage control method according to claim 1, wherein when the main power source of the first storage device is inoperable and the auxiliary power source is operating, the control device is configured to control the operation of the first storage device according to instructions from a host system. control to transfer the data of the second storage device to a second storage device, and control to transfer the data of the second storage device indicated by the valid identifier to the first storage device when it is detected that the main power supply becomes operational. A memory control method featuring:
【請求項3】  請求項1記載の記憶制御方式において
、上位システムからの領域識別子の指定を伴う第1記憶
装置の領域使用開始通知に応じて、前記制御装置は、有
効識別子と前記指定された領域識別子とを比較し、不一
致ならば、第1記憶装置内の領域に記憶されたデータを
該領域に対する有効識別子が指す第2記憶装置の領域に
移し、前記指定された領域識別子を前記領域に対する有
効識別子とし、該領域へ前記指定された領域識別子が指
す第2記憶装置内のデータを移すよう制御することを特
徴とする記憶制御方式。
3. In the storage control method according to claim 1, in response to an area use start notification of the first storage device accompanied by a specification of an area identifier from a higher-level system, the control device receives a valid identifier and the specified area identifier. If there is a mismatch, the data stored in the area in the first storage device is moved to the area in the second storage device pointed to by the valid identifier for the area, and the specified area identifier is transferred to the area in the second storage device. A storage control method, characterized in that the specified area identifier is used as a valid identifier, and the data in the second storage device pointed to by the designated area identifier is transferred to the area.
【請求項4】  請求項1記載の記憶制御方式において
、記憶装置内のデータに対する上位システムからの領域
識別子を指定したアクセス要求に応じて、前記制御装置
は、該領域識別子と有効識別子を比較し、一致する場合
は第1記憶装置内のデータをアクセスし、一致しない場
合は第2記憶装置内のデータをアクセスするよう制御す
ることを特徴とする記憶制御方式。
4. The storage control method according to claim 1, wherein in response to an access request specifying an area identifier from a host system to data in the storage device, the control device compares the area identifier with a valid identifier. , a storage control method characterized in that, if the data match, the data in the first storage device is accessed, and if the data do not match, the data in the second storage device is accessed.
【請求項5】  請求項1記載の記憶制御方式において
、前記一致する場合に、前記制御装置は、第1記憶装置
の主電源が断であるか否かを検知し、断のときには第2
記憶装置をアクセスするよう制御することを特徴とする
記憶制御方式。
5. In the storage control system according to claim 1, in the case of the coincidence, the control device detects whether or not the main power of the first storage device is off, and when the main power of the first storage device is off, the control device detects whether or not the main power of the first storage device is off.
A storage control method characterized by controlling access to a storage device.
【請求項6】  請求項1記載の記憶制御方式において
、制御装置は、上位システムからの指示に応じて、1以
上の第1記憶装置管理情報のそれぞれに第1記憶装置内
領域情報を登録し、複数の第2記憶装置管理情報のそれ
ぞれに使用時間帯を別にして異なる目的で使用するデー
タの領域識別子と第2記憶装置領域配置情報を登録し、
第1記憶装置の領域の使用前において上位システムから
の目的に合致した領域識別子の指定を伴う第1記憶装置
の領域使用開始通知に応じて、該領域識別子に対応する
第2記憶装置領域配置情報の指す領域のデータを第1記
憶装置の領域に格納するよう制御し、第1記憶装置の同
一領域を使用時間帯を別にして異なる目的で使用できる
ようにしたことを特徴とする記憶制御方式。
6. In the storage control method according to claim 1, the control device registers the first storage device area information in each of the one or more first storage device management information in response to an instruction from a host system. , registering in each of the plurality of second storage device management information area identifiers and second storage device area location information of data to be used for different purposes with different use time periods;
Before using the area of the first storage device, in response to a notification from the host system to start using the area of the first storage device accompanied by the specification of an area identifier that matches the purpose, the second storage device area location information corresponding to the area identifier is sent. A storage control method characterized in that data in an area pointed to by is controlled to be stored in an area of a first storage device, and the same area of the first storage device can be used for different purposes at different usage times. .
【請求項7】  請求項1記載の記憶制御方式において
、上位システムからの、領域識別子と該領域識別子で指
示されたデータを格納するための第1記憶装置内の或る
領域と該データを格納するための第2記憶装置内の1以
上の領域とを指定した登録要求に応答して、前記制御装
置は、前記領域識別子を前記第1記憶装置内の或る領域
に対応する第1記憶装置管理情報における有効識別子と
し、前記領域識別子に対応する第2記憶装置管理情報に
おける第2記憶装置領域配置情報として前記指定された
第2記憶装置内の1以上の領域の配置情報をセットし、
データ移動要求に応答して、前記有効識別子により特定
される第1記憶装置内領域情報と第2記憶装置の領域に
対する第2記憶装置領域配置情報とを用いて、第1記憶
装置の前記領域内のデータを対応する第2記憶装置内の
前記領域に移すよう制御することを特徴とする記憶制御
方式。
7. The storage control method according to claim 1, wherein a certain area in the first storage device for storing an area identifier and data specified by the area identifier from the host system and the data are stored. In response to a registration request that specifies one or more areas in the second storage device for storage, the control device stores the area identifier in the first storage device corresponding to a certain area in the first storage device. setting location information of one or more areas in the specified second storage device as a valid identifier in management information and as second storage device area placement information in second storage device management information corresponding to the area identifier;
In response to a data movement request, using the area information in the first storage device specified by the valid identifier and the second storage device area location information for the area in the second storage device, 2. A storage control method, comprising controlling the data to be transferred to the corresponding area in the second storage device.
【請求項8】  請求項7記載の記憶制御方式において
、前記制御装置は、指定された第2記憶装置内の1以上
の領域情報が既登録の第2記憶装置内の領域情報と少な
くとも一部が重複していないかを判定し、重複部分があ
れば、該登録要求を無効にするよう制御することを特徴
とする記憶制御方式。
8. The storage control method according to claim 7, wherein the control device is configured to match at least part of the area information in the designated second storage device with the area information in the already registered second storage device. 1. A storage control method characterized by determining whether or not there is any overlap, and controlling to invalidate the registration request if there is an overlap.
【請求項9】  請求項1記載の記憶制御方式において
、上位システムからの領域識別子を指定したデータ退避
要求に応答して、前記制御装置は、前記領域識別子に対
応する有効識別子を持つ第1記憶装置管理情報の第1記
憶装置内領域情報が示す領域内のデータを前記領域識別
子に対応する第2記憶装置管理情報の第2記憶装置内領
域配置情報が示す領域へ書き込むよう制御することを特
徴とする記憶制御方式。
9. The storage control method according to claim 1, wherein in response to a data save request specifying an area identifier from a host system, the control device saves a first storage having a valid identifier corresponding to the area identifier. Control is performed to write data in an area indicated by first storage device area information of device management information to an area indicated by second storage device area location information of second storage device management information corresponding to the area identifier. A memory control method that uses
【請求項10】  請求項9記載の記憶制御方式におい
て、前記制御装置は、退避した第1記憶装置の領域に対
する有効識別子を消去するよう制御することを特徴とす
る記憶制御方式。
10. The storage control method according to claim 9, wherein the control device performs control to erase a valid identifier for an area of the first storage device that has been evacuated.
【請求項11】  請求項1記載の記憶制御方式におい
て、上位システムから領域識別子を伴う使用終了要求に
応答して、前記制御装置は、前記領域識別子に対応する
有効識別子を持つ第1記憶装置管理情報が存在するとき
、該情報における第1記憶装置内領域情報が示す領域内
のデータを前記領域識別子に対応する第2記憶装置管理
情報の第2記憶装置内領域配置情報が示す領域へ退避し
、前記の有効識別子を消去するよう制御することを特徴
とする記憶制御方式。
11. The storage control method according to claim 1, wherein in response to a usage end request accompanied by an area identifier from a host system, the control device controls a first storage device management system having a valid identifier corresponding to the area identifier. When the information exists, the data in the area indicated by the area information in the first storage device in the information is saved to the area indicated by the area location information in the second storage device of the second storage device management information corresponding to the area identifier. , a storage control method characterized in that the effective identifier is controlled to be deleted.
【請求項12】  請求項1記載の記憶制御方式におい
て、前記第1記憶装置管理情報に使用カウンタを設け、
前記制御装置は、上位システムからの現有効識別子と同
じ域識別子を伴う使用開始要求に応答して、該有効識別
子に対応する使用カウンタを1加算し、上位システムか
らの使用終了要求に応答して、通知された領域識別子と
同じ有効識別子を有する第1記憶装置の領域が存在する
ときは、該有効識別子の使用カウンタを1減じ、上位シ
ステムからの現有効識別子とは異なる領域識別子による
使用要求時に応答して、前記使用カウンタが1より大で
あれば、該使用要求を無効にするよう制御することを特
徴とする記憶制御方式。
12. The storage control method according to claim 1, wherein a usage counter is provided in the first storage device management information;
The control device increases a use counter corresponding to the valid identifier by 1 in response to a start-of-use request with the same area identifier as the current valid identifier from the higher-level system, and in response to a request to end use from the higher-level system. , if there is an area in the first storage device that has the same valid identifier as the notified area identifier, the usage counter for the valid identifier is decremented by 1, and when a use request is made from an upper system using an area identifier different from the current valid identifier, In response, if the usage counter is greater than 1, the storage control method is characterized in that the usage request is invalidated.
【請求項13】  請求項12記載の記憶制御方式にお
いて、前記第1記憶装置管理情報に省略時識別子を設け
、前記制御装置は、使用終了要求に応答して、第1記憶
装置の領域内のデータを第2記憶装置の領域へ退避した
時には、第1記憶装置の前記領域に対する省略時識別子
で有効識別子を置換するよう制御することを特徴とする
記憶制御方式。
13. The storage control method according to claim 12, wherein a default identifier is provided in the first storage device management information, and the control device, in response to a use termination request, stores data in an area of the first storage device. A storage control method characterized in that when data is saved to an area of a second storage device, control is performed to replace a valid identifier with a default identifier for the area of the first storage device.
【請求項14】  請求項1記載の記憶制御方式におい
て、前記第2記憶装置管理情報に有効フラグを設け、前
記制御装置は、該有効フラグの初期値をオフとし、第2
記憶装置の領域にデータを格納したとき、該領域に対応
する第2記憶装置管理情報内の有効フラグをオンにし、
該データを第1記憶装置へ移動したとき該有効フラグを
オフにするよう制御し、該有効フラグがオフならば該有
効フラグに対応する第2記憶装置の領域から第1記憶装
置の領域へのデータ移動を抑止するよう制御することを
特徴とする記憶制御方式。
14. The storage control method according to claim 1, wherein a valid flag is provided in the second storage device management information, and the control device sets an initial value of the valid flag to OFF, and
When data is stored in an area of the storage device, a valid flag in the second storage device management information corresponding to the area is turned on,
When the data is moved to the first storage device, the valid flag is turned off, and if the valid flag is off, the data is moved from the area of the second storage device corresponding to the valid flag to the area of the first storage device. A storage control method characterized by controlling to inhibit data movement.
【請求項15】  請求項1記載の記憶制御方式におい
て、上位システムからの領域識別子を伴う有効識別子の
読込み要求に応答して、前記制御装置は、前記領域識別
子と一致する有効識別子と、該有効識別子を含む第1記
憶装置管理情報における第1記憶装置領域配置情報と、
前記領域識別子に対応する第2記憶装置管理情報におけ
る第2記憶装置領域配置情報を上位システムへ通知する
よう制御することを特徴とする記憶制御方式。
15. The storage control method according to claim 1, wherein in response to a read request for a valid identifier accompanied by an area identifier from a host system, the control device reads a valid identifier that matches the area identifier and the valid identifier. first storage device area location information in first storage device management information including an identifier;
A storage control method characterized by controlling to notify a host system of second storage device area location information in second storage device management information corresponding to the area identifier.
【請求項16】  請求項1記載の記憶制御方式におい
て、上位システムから、有効識別子とは異なる領域識別
子を指定して該領域識別子の指すデータの読み込み要求
がされたとき、これに応答して、前記制御装置は、前記
領域識別子に対応する第2記憶装置管理情報における第
2記憶装置領域配置情報の指す領域内のデータを読み込
み、読み込んだデータを上位システムへ転送するよう制
御することを特徴とする記憶制御方式。
16. In the storage control method according to claim 1, when a host system specifies an area identifier different from a valid identifier and requests to read data pointed to by the area identifier, in response to the request, The control device reads data in an area pointed to by second storage area location information in second storage management information corresponding to the area identifier, and performs control to transfer the read data to a host system. Memory control method.
【請求項17】  請求項1記載の記憶制御方式におい
て、上位システムから、有効識別子とは異なる領域識別
子とデータを指定して該データの書き読込み要求がされ
たとき、これに応答して、前記制御装置は、前記領域識
別子に対応する第2記憶装置管理情報における第2記憶
装置領域配置情報の指す領域内に前記データを書き込む
よう制御することを特徴とする記憶制御方式。
17. In the storage control method according to claim 1, when a host system makes a request to read or write data by specifying an area identifier and data different from a valid identifier, in response to the request, A storage control method characterized in that a control device performs control to write the data in an area pointed to by second storage area location information in second storage management information corresponding to the area identifier.
【請求項18】  請求項1記載の記憶制御方式におい
て、前記制御装置は、上位システムからの指示に応じて
制御装置内に、第1記憶装置内領域情報と有効識別子か
らなり、有効識別子欄には第1記憶装置内の領域にデー
タが格納されたとき該データの領域識別子が有効識別子
として登録されてなる第1記憶装置管理情報を第1記憶
装置内領域情報の数だけ備えたテーブルと、領域識別子
と第1記憶装置内領域配置情報と第2記憶装置領域配置
情報と有効フラグからなる第2記憶装置管理情報を領域
識別子の数だけ備えるテーブルとを作成、記憶し、上位
システムからの有効識別子と該有効識別子とは異なる領
域識別子とを伴う有効識別子の変更要求通知に応答して
、前記有効識別子に対応する第2記憶装置管理情報にお
ける有効フラグがオンのときに限り、通知された領域識
別子で有効識別子を置換するよう制御することを特徴と
する記憶制御方式。
18. The storage control method according to claim 1, wherein the control device stores information in the first storage device internal area information and a valid identifier in the valid identifier column in the control device in response to an instruction from a host system. a table comprising first storage device management information in which, when data is stored in an area in the first storage device, an area identifier of the data is registered as a valid identifier for the number of areas in the first storage device; Create and store a table containing second storage device management information consisting of area identifiers, area allocation information in the first storage device, second storage device area allocation information, and valid flags for the number of area identifiers, and store valid information from the host system. In response to a valid identifier change request notification that includes an identifier and an area identifier that is different from the valid identifier, only when the valid flag in the second storage management information corresponding to the valid identifier is on, the notified area A storage control method characterized by controlling to replace a valid identifier with an identifier.
【請求項19】  請求項1記載の記憶制御方式におい
て、前記第1記憶装置管理情報に第1記憶装置の領域の
使用者を特定する使用者識別子の欄を1以上設け、前記
制御装置は、上位システムの指示に応じて、上位システ
ムを形成する複数のものを識別することができる1以上
の要素をからなる使用者識別子を1以上上記欄に登録し
、上位システムからの使用者識別子と現在の有効識別子
と一致する領域識別子とを伴う使用開始要求に応答して
、該領域識別子に対応する前記第1記憶装置管理情報の
欄に通知された使用者識別子をセットし、使用者識別子
を伴う上位システムからの使用終了要求に応答して、通
知された使用者識別子と同じ使用者識別子を前記第1記
憶装置管理情報から消去し、上位システムからの使用者
識別子と現在の有効識別子とは異なる識別子とを伴う使
用開始要求に応答して、前記第1記憶装置管理情報に通
知された使用者識別子と異なる使用者識別子が存在すれ
ば、該使用要求を無効にするよう制御することを特徴と
する記憶制御方式。
19. The storage control method according to claim 1, wherein the first storage device management information includes one or more columns of user identifiers for identifying users of the area of the first storage device, and the control device: In response to instructions from the higher-level system, one or more user identifiers consisting of one or more elements that can identify multiple entities forming the higher-level system are registered in the above column, and the user identifier from the higher-level system and the current user identifier are registered. In response to a start-of-use request accompanied by an area identifier that matches a valid identifier of In response to a usage termination request from the higher-level system, the user identifier that is the same as the notified user identifier is deleted from the first storage device management information, and the user identifier from the higher-level system is different from the current valid identifier. If a user identifier different from the user identifier notified in the first storage device management information exists in response to a use start request accompanied by an identifier, control is performed to invalidate the use request. Memory control method.
【請求項20】  使用者識別子を指定したデータ退避
要求に応答して、前記制御装置は、有効識別子に対応す
る全使用者識別子の要素の少なくとも一部が、通知され
た使用者識別子と一致するならば、該有効識別子に対応
する第1記憶装置管理情報における第1記憶装置内領域
情報が指す領域のデータを該有効識別子に対応する第2
記憶装置管理情報における第2記憶装置領域配置情報の
指す領域に退避するよう制御することを特徴とする記憶
制御方式。
20. In response to a data save request specifying a user identifier, the control device determines whether at least some of the elements of all user identifiers corresponding to the valid identifier match the notified user identifier. Then, the data in the area pointed to by the first storage device area information in the first storage device management information corresponding to the valid identifier is transferred to the second storage device corresponding to the valid identifier.
A storage control method characterized by performing control to save data to an area indicated by second storage area location information in storage management information.
JP3022866A 1991-01-23 1991-01-23 Storage control system Pending JPH04239939A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3022866A JPH04239939A (en) 1991-01-23 1991-01-23 Storage control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3022866A JPH04239939A (en) 1991-01-23 1991-01-23 Storage control system

Publications (1)

Publication Number Publication Date
JPH04239939A true JPH04239939A (en) 1992-08-27

Family

ID=12094627

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3022866A Pending JPH04239939A (en) 1991-01-23 1991-01-23 Storage control system

Country Status (1)

Country Link
JP (1) JPH04239939A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8736865B2 (en) 2011-01-25 2014-05-27 Canon Kabushiki Kaisha Image processing apparatus and image processing method that can print an image in which a pattern or sweeping phenomenon specific to the error diffusion process does not appear

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8736865B2 (en) 2011-01-25 2014-05-27 Canon Kabushiki Kaisha Image processing apparatus and image processing method that can print an image in which a pattern or sweeping phenomenon specific to the error diffusion process does not appear

Similar Documents

Publication Publication Date Title
US7325110B2 (en) Method for acquiring snapshot
JP2778786B2 (en) Data update / restoration processing method
US8650339B2 (en) Control of data transfer
KR100238925B1 (en) A recoverable disk control system with a non-volatile memory
JPH0291749A (en) Nonvolatile type semiconductor memory device
US9262096B2 (en) Dynamic address mapping for finish in the field
JP3485598B2 (en) File allocation method, data multiplexing method, and data processing system
JPH03224045A (en) Data holding system
TW202209124A (en) Ssd supporting read-only mode after plp backup failure
US10761892B2 (en) Method and electronic device for executing data reading/writing in volume migration
JP2018028830A (en) Electronic controller and information storage method thereof
JPH04239939A (en) Storage control system
JPH01204163A (en) File controller
CN105393207A (en) Shared Storage System And Method For Controlling Access To Storage Device
JP3882461B2 (en) Storage device system and backup acquisition method thereof
JPH06124239A (en) Resident data controller for cache memory
KR102145358B1 (en) Method and computer-readable medium emboding program for protecting data integrity of disk in alternate operating system environment
JP2003216506A (en) Storage device with flash memory and computer
JP2829674B2 (en) Shutdown method and start-up method of disk controller and disk controller
JP2002278705A (en) Computer system
JPH053611B2 (en)
JPH06222986A (en) Memory controller
KR100308251B1 (en) Integrated management method of runtime backup information and its system
JPH06187201A (en) File system
JPH06222916A (en) On-line real-time processor