JPH03212856A - Disk device - Google Patents

Disk device

Info

Publication number
JPH03212856A
JPH03212856A JP2008808A JP880890A JPH03212856A JP H03212856 A JPH03212856 A JP H03212856A JP 2008808 A JP2008808 A JP 2008808A JP 880890 A JP880890 A JP 880890A JP H03212856 A JPH03212856 A JP H03212856A
Authority
JP
Japan
Prior art keywords
work
alternative
disk device
magnetic disk
interrupted
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
JP2008808A
Other languages
Japanese (ja)
Inventor
Masayuki Kitagawa
北川 正幸
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2008808A priority Critical patent/JPH03212856A/en
Publication of JPH03212856A publication Critical patent/JPH03212856A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate the need for an alternative work after a power source is applied next at a computer side when the alternative work is interrupted by preparing a part where an identifier representing the process of the alternative work and the content of a data block to be alternated are stored in a magnetic disk, and managing it at a magnetic disk device side. CONSTITUTION:The identifier representing the process of interrupted work is written on and preserved in a certain area decided in a magnetic disk device 21. The identifier is rewritten just before each work constituting the alternative work is started and immediately after the pre-work of the alternative work is completed. A disk control circuit 212 judges whether or not it is necessary to continue the alternative work from the identifier immediately after the power source of the magnetic disk device 21 is applied, and judges from which work constituting the alternative work the work should be started when it is necessary to continue the alternative work, and starts the work. In such a manner, the interrupted alternative work can be restarted and completed immediately after the power source is applied.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ディスク装置、特に、中断されたデータブロ
ックの代替作業の再開に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a disk device, and more particularly to resuming a substitute operation for an interrupted data block.

〔従来の技術〕[Conventional technology]

従来、計算機と磁気ディスク装置等のディスク装置を有
するシステムでは、データブロックの代替作業中に電源
が落ちて、その作業が中断された場合、次の電源投入時
には、計算機側が代替作業を行っている。すなわち、計
算機側でその作業が完了していないことと、代替される
データブロックの内容を記憶しておき、それをもとに計
算機側が代替作業の続きを行っていた。
Conventionally, in systems that have a computer and a disk device such as a magnetic disk device, if the power goes out and the work is interrupted during data block replacement work, the computer side performs the replacement work the next time the power is turned on. . That is, the computer memorizes the fact that the work has not been completed and the contents of the data block to be replaced, and based on this, the computer continues the replacement work.

あるいは、磁気ディスク装置側が、代替作業を開始して
いてその作業を完了していないことを記憶していて、次
の電源投入後に計算機側がデータの読込みまたは書込み
を行う命令を発行した時に、その命令に対する動作を実
行する直前に代替作業の続きを行うようになっていた。
Alternatively, if the magnetic disk device remembers that it has started an alternative task but has not completed it, and the computer issues an instruction to read or write data after the next power is turned on, the instruction The continuation of the alternative work was performed immediately before executing the action.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

計算機側が代替を行う前者の場合は、計算機側で、代替
作業を開始してその作業が完了していないことを記憶す
る必要がある。さらに、その場合の処理プログラムを計
算機側で用意しなければならない。また、代替されるデ
ータブロックの内容を記憶しておく場所を、磁気ディス
ク装置内に計算機側の管理のもとに、割り当てなければ
ならず、磁気ディスク装置を容量の大きなものと交換の
ときは、計算機側のプログラムの変更の工数が必要であ
る。
In the former case, where the computer side performs the substitution, the computer side needs to start the substitute work and remember that the work has not been completed. Furthermore, a processing program for this case must be prepared on the computer side. Additionally, a location for storing the contents of the replaced data block must be allocated within the magnetic disk drive under the control of the computer, and when replacing the magnetic disk drive with a larger capacity one, , it requires man-hours to change the program on the computer side.

さらに、磁気ディスク装置側が、代替作業を電源投入後
に計算機側がデータの読込みまたは書込みを行う命令を
発行したときに、その命令に対する動作を実行する直前
に代替作業の続きを行う後者の場合は、命令実行前に代
替作業の続きをするため、その命令に対する応答時間が
通常の場合よりもかかるという欠点がある。
Furthermore, in the latter case, when the magnetic disk device issues an instruction for the computer to read or write data after the power is turned on, the alternative task is continued immediately before executing the operation for that instruction. Since the alternative work is continued before execution, there is a drawback that the response time to the command is longer than in the normal case.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のディスク装置は、ディスクドライブの動作を制
御する機能と、ディスクドライブ内のデータブロックを
ディスクドライブ内のデータブロックのある場所と異な
る場所に代替する代替作業を行う機能とを持つ制御回路
において、代替作業が中断された場合、電源投入後に中
断された作業を再開して継続する機能とを持つことを特
徴とする。
The disk device of the present invention includes a control circuit that has the function of controlling the operation of the disk drive and the function of performing an alternative operation of substituting a data block in the disk drive to a location different from the location of the data block in the disk drive. The present invention is characterized by having a function of restarting and continuing the interrupted work after power is turned on, when the alternative work is interrupted.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例において、中断された代替作
業を電源投入直後に継続する動作のフローチャート図、
第2図は本発明の一実施例を示すブロック図、第3図は
本実施例の部分構成図、第4図は代替作業の一部のトラ
ックのブロック番号を示す図である。
FIG. 1 is a flowchart of an operation for continuing an interrupted alternative work immediately after power is turned on, in an embodiment of the present invention;
FIG. 2 is a block diagram showing one embodiment of the present invention, FIG. 3 is a partial configuration diagram of this embodiment, and FIG. 4 is a diagram showing block numbers of some trucks in alternative work.

まず、第2図を参照すると、本発明の一実施例において
、計算機20は磁気ディスク装置21をデータの記憶装
置として用い、データの読出しと書込みを行わせる。磁
気ディスク装置21へのデータの読出しまたは書込みの
動作中であるブタブロックにエラーが発見された場合、
計算機20は、磁気ディスク装置21に対して、エラー
の発見されたデータブロックの代替作業を行う命令を発
行する。磁気ディスク装置21はこの命令に従い代替作
業を行う。磁気ディスク装置21が代替作業を実行中に
、例えば、停電等で電源が落ちてその作業が中断され、
その後に再び電源が投入された場合は、磁気ディスク装
置21は直ちに中断された代替作業を継続する。
First, referring to FIG. 2, in one embodiment of the present invention, a computer 20 uses a magnetic disk device 21 as a data storage device to read and write data. If an error is found in the pig block while reading or writing data to the magnetic disk device 21,
The computer 20 issues an instruction to the magnetic disk device 21 to replace the data block in which the error has been detected. The magnetic disk device 21 performs the alternative work in accordance with this command. For example, while the magnetic disk device 21 is performing alternative work, the work is interrupted due to a power failure due to a power outage, etc.
If the power is turned on again after that, the magnetic disk device 21 immediately continues the interrupted alternative work.

次に、第3図を参照すると、計算機20からの命令は、
インタフェース22およびインタフェース処理回路21
1を通して、ディスク制御回路212で受は取られる。
Next, referring to FIG. 3, the instructions from the computer 20 are as follows:
Interface 22 and interface processing circuit 21
1, the disk control circuit 212 receives the signal.

ディスク制御回路212は、スピンドルモータ動作およ
びシーク動作を制御する動作制御回路213ならびにデ
ータの読出しおよび書込みを制御する記憶制御回路21
4を制御することにより、磁気ディスクドライブ215
の動作の制御を行う。
The disk control circuit 212 includes an operation control circuit 213 that controls spindle motor operation and seek operation, and a storage control circuit 21 that controls data reading and writing.
4, the magnetic disk drive 215
Controls the operation of.

磁気ディスク装置21では、通常の動作中はディスク制
御回路212はインタフェース処理回路211で受は取
った命令を解釈して、動作制御回路213および記憶制
御回路214を通して、磁気ディスクドライブ215が
命令に規定されている動作を行うように制御する。
In the magnetic disk device 21, during normal operation, the disk control circuit 212 interprets the command received by the interface processing circuit 211, and the magnetic disk drive 215 interprets the command specified by the command through the operation control circuit 213 and the storage control circuit 214. control to perform the specified action.

中断され代替作業を電源投入直後に継続する場合につい
て説明する。
The case where the substitute work is continued immediately after the power is turned on after being interrupted will be explained.

中断された代替作業の経過を示すものを識別子と呼ぶ。Something that indicates the progress of the interrupted alternative work is called an identifier.

これは代替作業を行っていない場合は代替作業を行って
いないことを示す番号、代替作業を行っている場合は代
替作業を構成する各作業のその作業を示す番号である。
This is a number that indicates that no substitute work is being performed if no substitute work is being performed, and a number that indicates the work of each work that constitutes the substitute work when substitute work is being performed.

識別子は磁気ディスク装置21のある定められた領域に
書込まれ保存される。代替作業を構成する各作業の開始
直前と代替作業の前作業終了直後に識別子を書換える。
The identifier is written and saved in a certain predetermined area of the magnetic disk device 21. The identifier is rewritten immediately before the start of each task that constitutes the alternative task and immediately after the completion of the preceding task of the alternative task.

磁気ディスク装置21の電源投入直後にディスク制御回
路212は識別子から代替作業を継続する必要があるか
どうかを判断し、必要がある場合は代替作業を構成する
どの作業から開始するかを判断して、その作業から開始
する。
Immediately after power is turned on to the magnetic disk device 21, the disk control circuit 212 determines from the identifier whether or not it is necessary to continue the alternative work, and if it is necessary, determines which work in the alternative work should be started. , start from that work.

そして、ディスク制御回路212は動作制御回路213
と記憶制御回路214を通して磁気ディスクドライブ2
15の動作を制御する。このとき計算機側にはインタフ
ェース処理回路211を通して計算機側からの命令を実
行するための準備が完了であることを通知する。
The disk control circuit 212 is operated by an operation control circuit 213.
and the magnetic disk drive 2 through the storage control circuit 214.
15 operations. At this time, the computer side is notified through the interface processing circuit 211 that preparations for executing instructions from the computer side are complete.

次に、第4図を参照して代替作業について説明する。Next, the alternative work will be explained with reference to FIG.

代替作業は、代替光ブロックを含むトラック内の前ブロ
ックのデータを退避用トラックへの退避作業(例えば、
第4図の代替作業前のトラック41に示すように、ブロ
ックNからN+5までを含むトラック内でブロックN+
2を代替元とした場合、代替作業後のトラックに示すよ
うに、代替元ブロックをデータを書くブロックとして使
用しないための未使用ブロックにして、そのブロックと
それに続くブロックの再配置をそれらのブロックを含む
トラックで行う作業)と、退避用トラックに退避してお
いたデータを代替元ブロックを含むトラックへ戻す作業
とから構成される。
The replacement work involves evacuating the data of the previous block in the track containing the replacement optical block to the evacuation track (for example,
As shown in the track 41 before the alternative work in FIG. 4, in the track including blocks N to N+5, block N+
2 is used as the replacement source, as shown in the track after the replacement work, the replacement source block is made into an unused block that is not used as a block for writing data, and the rearrangement of that block and the following blocks is performed using those blocks. (work to be performed on the track containing the replacement block) and work to return the data saved in the save track to the track containing the replacement source block.

次に、第1図を参照して、本実施例における中断代替作
業を継続する場合の動作を説明する。
Next, with reference to FIG. 1, the operation when continuing the interrupted alternative work in this embodiment will be explained.

電源投入後、初期設定とスピンドルモータの定常回転ま
での制御を行う(ステップ11)。
After turning on the power, initial settings and control of the spindle motor up to steady rotation are performed (step 11).

次に、ステップ12で代替作業が必要かどうかを判断す
る。ここで、代替作業の経過を示す識別子が、代替作業
が未完了のまま中断されたことを示す場合は代替作業が
必要になる。ステップ12で代替作業が必要でないと判
断した場合は、通常の処理に行く。ステップ12で代替
作業が必要であると判断した場合は、中断された代替作
業の続きを、その中断されたときに記憶してあった代替
作業の経過を示す識別子の情報をもとに再開する場所を
求め、そこから再開する(ステップ13)。
Next, in step 12, it is determined whether alternative work is necessary. Here, if the identifier indicating the progress of the substitute work indicates that the substitute work was interrupted without being completed, the substitute work is required. If it is determined in step 12 that alternative work is not necessary, normal processing is performed. If it is determined in step 12 that alternative work is necessary, resume the interrupted alternative work based on the information of the identifier indicating the progress of the alternative work that was stored at the time of interruption. Find a location and restart from there (step 13).

次に、ステップ14で代替作業が正常終了したかどうか
を判断する。もし、異常ならば、そのことを計算機側へ
報告する(ステップ16)。
Next, in step 14, it is determined whether the alternative work has ended normally. If it is abnormal, it is reported to the computer side (step 16).

正常ならば、代替作業が完了したことを示すように代替
作業の経過を示す識別子を設定して(ステップ15)、
通常の処理に行く(ステップ17)。通常の処理では、
計算機側の発行した命令をもとに必要な動作を実現する
ように各回路を制御する。
If normal, set an identifier indicating the progress of the alternative work to indicate that the alternative work has been completed (step 15);
Go to normal processing (step 17). In normal processing,
Each circuit is controlled to perform the necessary operations based on instructions issued by the computer.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明のでは、磁気ディスク装置が
、代替作業の経過を示す識別子と代替されるデータブロ
ックの内容とを記憶しておく場所を磁気ディスク装置内
に持ち、磁気ディスク装置側で管理することにより、代
替作業の途中で電源が落ちて作業が中断した場合、計算
機側では、次の電源投入後に中断した代替作業の必要が
ない。
As explained above, in the present invention, the magnetic disk device has a place in the magnetic disk device for storing an identifier indicating the progress of the substitution work and the contents of the data block to be substituted, and the magnetic disk device side Through this management, even if the power is turned off during an alternative work and the work is interrupted, there is no need for the computer to carry out the interrupted alternative work after the next power is turned on.

さらに、磁気ディスク装置を、例えば、容量の大きなも
のと交換のときは、計算機側のプログラムの変更作業の
工数のうち中断した代替作業の実行に関する部分がなく
なるという効果がある。
Furthermore, when replacing the magnetic disk device with one with a larger capacity, for example, there is an effect that the portion of the man-hours involved in changing the program on the computer side related to the execution of the interrupted replacement task is eliminated.

また、中断された代替作業を電源投入の直後に再開して
完了することにより、その後の計算機側からの命令に対
する処理では代替作業の継続を行う必要がなくなる。こ
のため応答時間がそれだけかからなくなり、計算機側が
命令の実行時間を予定する場合に代替作業の継続にかか
る時間を考慮する必要がなくなる。
Furthermore, by restarting and completing the interrupted alternative work immediately after power is turned on, there is no need to continue the alternative work in subsequent processing of instructions from the computer side. Therefore, the response time is reduced, and when the computer side schedules the instruction execution time, there is no need to consider the time required to continue the alternative work.

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

第1図は本発明の一実施例において、中断された代替作
業を電源投入直後に継続する動作のフローチャート図、
第2図は本発明の一実施例を示すブロック図、第3図は
本実施例の部分構成図、第4図は代替作業の一部のトラ
ックのブロック番号を示す図である。 20・・・計算機、21・・・磁気ディスク装置、22
・・・計算機側へのインタフェース、211・・・イン
タフェース処理回路、212・・・ディスク制御回路、
213・・・動作制御回路、214・・・記憶制御回路
、215・・・磁気ディスクドライブ、41・・・代替
作業前のトラック、42・・・代替作業後のトラック。
FIG. 1 is a flowchart of an operation for continuing an interrupted alternative work immediately after power is turned on, in an embodiment of the present invention;
FIG. 2 is a block diagram showing one embodiment of the present invention, FIG. 3 is a partial configuration diagram of this embodiment, and FIG. 4 is a diagram showing block numbers of some trucks in alternative work. 20... Computer, 21... Magnetic disk device, 22
...Interface to the computer side, 211...Interface processing circuit, 212...Disk control circuit,
213...Operation control circuit, 214...Storage control circuit, 215...Magnetic disk drive, 41...Track before alternative work, 42...Track after alternative work.

Claims (1)

【特許請求の範囲】 1、ディスク上のデータブロックを、異なる場所に代替
する代替作業を行うディスク装置において、前記代替作
業が電源断で中断された場合、中断された代替作業を、
電源再投入後再開することを特徴とするディスク装置。 2、前記代替作業の経過を示す識別子と、エラーが発見
されたデータブロックとを記憶することを特徴とする請
求項1記載のディスク装置。 3、前記代替作業の再開時に、前記識別子およびエラー
データブロックとを用いることを特徴とする請求項2記
載のディスク装置。
[Claims] 1. In a disk device that performs an alternative operation of replacing a data block on a disk with a different location, when the alternative operation is interrupted due to a power cut, the interrupted alternative operation is
A disk device characterized by restarting after power is turned on again. 2. The disk device according to claim 1, wherein an identifier indicating the progress of the alternative work and a data block in which an error has been discovered are stored. 3. The disk device according to claim 2, wherein the identifier and the error data block are used when restarting the alternative work.
JP2008808A 1990-01-17 1990-01-17 Disk device Pending JPH03212856A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008808A JPH03212856A (en) 1990-01-17 1990-01-17 Disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008808A JPH03212856A (en) 1990-01-17 1990-01-17 Disk device

Publications (1)

Publication Number Publication Date
JPH03212856A true JPH03212856A (en) 1991-09-18

Family

ID=11703137

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008808A Pending JPH03212856A (en) 1990-01-17 1990-01-17 Disk device

Country Status (1)

Country Link
JP (1) JPH03212856A (en)

Similar Documents

Publication Publication Date Title
JP2002318666A (en) Update method of firmware of hard disk unit mounted on disk array device and disk array device with function for performing the updating method
US7434222B2 (en) Task context switching RTOS
JPH03212856A (en) Disk device
JP2002099310A (en) Controller
JPS6118221B2 (en)
JP3843189B2 (en) Optical disk system control chip and update method used for optical disk system
JP2002278705A (en) Computer system
JPH07281933A (en) Computer system
JP3512627B2 (en) Load Volume I / O Control and Management Method by Alternative Path and Duplication in IPL
JPH11212729A (en) Duplex disk device
JPS61248107A (en) Operation system for large capacity part program in numerical controller
JP3463696B2 (en) Online garbage collection processing method
JPH0660023A (en) System switching method
JPH09274543A (en) Disk array device
JPS6154526A (en) File copy system
KR900007279B1 (en) Ffd control method in pabx
JPH05233342A (en) Job restart control system
JPS61255440A (en) Program interruption control system
JPH05342077A (en) Data preserving method
JPH04216138A (en) System installing method and computer system
JPH04219822A (en) File update system
JPH07334313A (en) Copying method for magnetic disk device
JPH03255527A (en) Updating system for software
JPS6373427A (en) Processing system for control of system file
JPH0259948A (en) Initial program loading system