JPS586183B2 - Data copy method between rotating storage devices - Google Patents

Data copy method between rotating storage devices

Info

Publication number
JPS586183B2
JPS586183B2 JP52116919A JP11691977A JPS586183B2 JP S586183 B2 JPS586183 B2 JP S586183B2 JP 52116919 A JP52116919 A JP 52116919A JP 11691977 A JP11691977 A JP 11691977A JP S586183 B2 JPS586183 B2 JP S586183B2
Authority
JP
Japan
Prior art keywords
sector
data
buffer memory
storage devices
difference
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP52116919A
Other languages
Japanese (ja)
Other versions
JPS5451431A (en
Inventor
小中清司
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP52116919A priority Critical patent/JPS586183B2/en
Publication of JPS5451431A publication Critical patent/JPS5451431A/en
Publication of JPS586183B2 publication Critical patent/JPS586183B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明は、磁気ドラム、磁気ディスク等の回転形記憶装
置間のデータコピ一方式、特に少容量のバックァメモリ
を使用して効率的なデータコピーを行ってなる回転形記
憶装置間のデータコピ一方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides a method for copying data between rotary storage devices such as magnetic drums and magnetic disks, and particularly a rotary type that performs efficient data copying using a small capacity backup memory. This relates to a one-way data copy method between storage devices.

計算機システムの外部記憶装置には磁気ドラム、磁気デ
ィスク等の回転形記憶装置が多く用いられている。
Rotary storage devices such as magnetic drums and magnetic disks are often used as external storage devices for computer systems.

これらの記憶装置の媒体であるドラム、ディスク相互間
の情報のコピーが、情報の保護その他の目的のため行わ
れる。
Copying of information between drums and disks, which are the media of these storage devices, is performed for information protection and other purposes.

特にその媒体が可換形であるディスクの場合にはしばし
ば実施される。
This is often done especially when the medium is a removable disk.

ところが両者共に回転形記憶装置であり、その回転の位
相が一致(同期)しないのが一般である。
However, both are rotary storage devices, and their rotational phases generally do not match (synchronize).

このため従来より種々の方式が採用されているが、この
一例を第1図に示す。
For this purpose, various methods have been adopted in the past, one example of which is shown in FIG.

第1図a中1は計算機、3は入出力インターフェース2
を介して計算機1に接続されるディスク制御装置を、D
1,D2は磁気ディスクをそれぞれ示す。
In Figure 1 a, 1 is a computer, 3 is an input/output interface 2
The disk control device connected to computer 1 via D
1 and D2 indicate magnetic disks, respectively.

この方式の原理は通常の計算機、ディスク装置間の情報
の授受をそのまま使用し、プログラムの介在によりコピ
ーを行うものである。
The principle of this method is to use the normal exchange of information between a computer and a disk device as is, and perform copying through the intervention of a program.

いま情報をD1からD2にコピーをとるものとする。Now assume that information is to be copied from D1 to D2.

先ずD1の1回転分の記憶内容を格納するトラックのD
liの先頭を示すインデックスから1トラック分の情報
をプログラムにより読み出し制御装置3を経由し、計算
機1のメモリー(第1図1のハツチングを施した部分1
00)に書き込まれる。
First, track D stores the memory contents for one rotation of D1.
The information for one track is read by a program from the index indicating the beginning of
00).

これが第1図bのt,に相当する。This corresponds to t in FIG. 1b.

次にD2のDliに対応するトラックD2iにプログラ
ムにより上記読み出した1トラック分の情報をD2のイ
ンデックスの先頭から書き込む。
Next, the information for one track read above is written by the program to the track D2i corresponding to Dli of D2 from the beginning of the index of D2.

これが第1図bのt2に相当する。以下同様にj3*j
4を1トラック単位にコピーをとるものである。
This corresponds to t2 in FIG. 1b. Similarly below, j3*j
4 is copied track by track.

この方式では1トラックのコピーのためインデックスの
位相関係により、最少2回転、最大3回転で、平均2.
5回転分の時間を必要とする。
In this method, one track is copied, so depending on the phase relationship of the index, a minimum of 2 rotations and a maximum of 3 rotations are required, with an average of 2.
It takes time for 5 rotations.

しかしこの方式には次の如き欠点がある。すなわち、コ
ピーのためプログラムの介在が必要であり、計算機およ
び入出力インターフェースを一時的に占有し、他のプロ
グラム、入出力装置の動作をその間、停止することにな
る。
However, this method has the following drawbacks. That is, the intervention of a program is required for copying, which temporarily occupies the computer and input/output interface, and the operations of other programs and input/output devices are stopped during that time.

このことはオンラインの処理要求にもかかわらず計算機
が部ご分的に関与するため計算機システムのオン・ライ
ン性を損うものであり、オン・ライン性の強い制御用分
野ではオフライン中の作業動作がオンライン動作に係る
ことは極力さけるべきであり、このため大きな欠点とな
る。
This impairs the online nature of computer systems because computers are partially involved despite online processing requests. should be avoided as much as possible if it involves online operations, which is a major drawback.

この欠点を除去する従来5例を第2図に示す。FIG. 2 shows five conventional examples that eliminate this drawback.

3はディスク制御装置を、DI,D2は磁気ディスクを
、4は装置3とディスクD1,D2を結ぶディスクイン
ターフェースをそれぞれ示す。
Reference numeral 3 indicates a disk control device, DI and D2 indicate magnetic disks, and 4 indicates a disk interface connecting the device 3 and disks D1 and D2.

この方式の原理はディスク制御装置3の中にディスク1
トラック分のバツファ(ハツチング4を施した部分30
0)を持ち、ディスク制御装置が上記した第1図のプロ
グラム(計算機)の代りにD1から1トラック分の情報
を読み出し、一旦バツファに格納する。
The principle of this system is that the disk 1 is inside the disk controller 3.
Track buffer (portion 30 with hatching 4)
0), and the disk controller reads out one track's worth of information from D1 instead of the program (computer) shown in FIG. 1 described above, and temporarily stores it in the buffer.

これが第2図bの11に相当する。This corresponds to 11 in FIG. 2b.

一般にD1とD2との読み出し、書き込みのオーバーラ
ップはできないのが一般であり,バツファへの格納が終
了した後に来る最初のD2のインデックスからD2にバ
ツファの内容を書き込む。
In general, it is not possible to overlap reading and writing between D1 and D2, and the contents of the buffer are written into D2 from the first index of D2 that comes after the storage in the buffer is completed.

これが第2図bの12に対応する。この方式のコピ一時
間は第1図の場合と同様に平均1トラック当り平均2.
5回転である。
This corresponds to 12 in FIG. 2b. One hour of copying using this method is the same as in the case of Fig. 1, with an average of 2.2.
It is 5 rotations.

この方式の欠点はディスク1トラック分のバツファを必
要とすることである。
The disadvantage of this method is that it requires a buffer for one track of the disk.

最近の技術の進歩に伴ない1トラック分の容量は400
0〜8000バイトと大きくなっており、このバツファ
のハードウエアの負担は次第に大きくなって来ている。
With recent advances in technology, the capacity for one track is 400.
The size of the buffer is increasing from 0 to 8000 bytes, and the burden on the hardware of this buffer is gradually increasing.

特に記録単位を固定長とするいわゆるセクタ方式を採用
する装置においては、このバツファの価格が制御装置価
格の30〜50%をも占めることになり、経済的でなく
、今後この比率は上昇する方向にある。
Particularly in devices that use the so-called sector method in which the recording unit is a fixed length, the price of this buffer accounts for 30 to 50% of the control device price, which is not economical, and this ratio is likely to increase in the future. It is in.

このため、1セクタ分のバツファを持つコピ一方式が提
案されているが、これにつき以下説明する。
For this reason, a one-sided copy system with a buffer for one sector has been proposed, which will be explained below.

第3図はこの方式の動作タイミング、特に1トラックで
12セクタの場合の動作タイミングを説明する図である
FIG. 3 is a diagram illustrating the operation timing of this system, especially the operation timing in the case of 12 sectors in one track.

先ずD1の第1セクタを読み出し(S1−R)、D2の
該当セクタへの書き込み可能となるまで待って上記読み
出した情報を書き込む(SiW)。
First, the first sector of D1 is read (S1-R), and the read information is written after waiting until it becomes possible to write to the corresponding sector of D2 (SiW).

次にD1上の第2セクタを読み出し(S2−R)、同様
にD2上の該当セクタへ書き込み(S2−W),以下同
様の手順を最終セクタ、図3の例では12セクタまで行
い、1トラック分のコピーが終了する。
Next, read the second sector on D1 (S2-R), write to the corresponding sector on D2 (S2-W), and repeat the same procedure up to the last sector (12 sectors in the example of FIG. 3). Copying of the tracks is completed.

この方式は第3図の例で明らかな様に形式上のコピー処
理時間は123/12Toであるが、実際上の処理時間
は13Toとなり、13回転分の時間を必要とする。
As is clear from the example of FIG. 3, in this method, the formal copying processing time is 123/12To, but the actual processing time is 13To, which requires the time equivalent to 13 rotations.

一般にnセクタの場合はn+1回転分の時間が必要であ
る。
Generally, in the case of n sectors, time for n+1 rotations is required.

ところがこの時間は回転位相差に無関係であり、差が小
さい場合には不利な方式である。
However, this time is unrelated to the rotational phase difference, and if the difference is small, this method is disadvantageous.

本発明は、上記欠点を解消してなるものであって小容量
のバツファメモリを使用して短かい時間にデータコピー
を完了ならしめるようにした回転形記憶装置間における
データコピ一方式を提供するものである。
The present invention solves the above-mentioned drawbacks and provides a one-way data copying system between rotating storage devices that uses a small-capacity buffer memory to complete data copying in a short time. be.

本発明の要旨は、最低1セクタ分のバツファメモリを設
けておき、2つの記憶装置間で予じめ定めた回転位置の
差よりも小さい回転位置の時のみ、中間作業用のトラッ
クをバツファメモリと回転形装置との間に仮想的に介在
させてデータコピーを行わせるようにしたものである。
The gist of the present invention is to provide a buffer memory for at least one sector, and rotate an intermediate work track with the buffer memory only when the rotational position is smaller than a predetermined rotational position difference between two storage devices. It is designed to virtually interpose data between the computer and the external device to perform data copying.

最適な回転位置の差は1/2回転であり、以下の実施例
では、1/2回転差よりも小さい時には上記要旨に従っ
たデータコピーを行い、1/2回転よりも大きい時には
、1回転下でのデータコピーをとるようにしている。
The optimal rotational position difference is 1/2 rotation, and in the following example, when the difference is smaller than 1/2 rotation, data copying is performed according to the above gist, and when it is larger than 1/2 rotation, data copying is performed by 1 rotation. I am trying to make a copy of the data below.

以下、本発明を詳細に述べよう。The present invention will be described in detail below.

第4図が本発明の動作タイミングを説明するタイムチャ
ートである。
FIG. 4 is a time chart explaining the operation timing of the present invention.

ディスク1上のトラックiの情報(Dli)をディスク
2のiトラック(D2i)ヘコピーする場合を仮定し、
D2j,D2kはデイスク2上の作業用トラックである
Assume that information on track i on disk 1 (Dli) is to be copied to track i on disk 2 (D2i),
D2j and D2k are work tracks on the disk 2.

また1トラツク当りのセクタ数(12)と、回転位相差
は第3図の場合と同様にしてある。
Further, the number of sectors per track (12) and the rotational phase difference are the same as in the case of FIG.

先ずDli上の第1セクタを読み出し(Sl−R)、読
み出し終了後最初に現われるD2j−ラツク上のセクタ
へ書き込みを行う(S1−W)。
First, the first sector on Dli is read (Sl-R), and after the reading is completed, writing is performed to the sector on D2j-rack that appears first (S1-W).

次にDli上の第3セクタを読み出し(S3−R)、同
様にD2jトラックへの書き込みを行う(83−W)。
Next, the third sector on Dli is read (S3-R), and similarly written to the D2j track (83-W).

以下同様に第5、第7、・・・、第11セクタのコピー
を1回転の時間で行い、次の1回転では第2、第4、・
・・、第12セクタの順にコピーを行う。
Thereafter, the 5th, 7th, . . . , 11th sectors are similarly copied in one rotation, and in the next rotation, the 2nd, 4th, .
. . , the 12th sector is copied in this order.

このことによりD2j上にはD1iより1セクタだけず
れた状態でのコピーが行われたことになる。
As a result, copying is performed on D2j with one sector shifted from D1i.

従って次にD2jの情報をDZk上に更に1セクタずれ
た状態でコピーを実施する。
Therefore, next time, the information of D2j is copied onto DZk with a shift of one sector.

このときの繰返しによりD2iとD2jもしくはD2k
のセクタ差が1になった時点でD2i上の該当セクタへ
のコピーを行い、初期の目的であるDliからD2iへ
のコピーが完了する。
By repeating this, D2i and D2j or D2k
When the sector difference becomes 1, copying is performed to the corresponding sector on D2i, and the initial purpose of copying from Dli to D2i is completed.

このコピー完了までの処理時間は63/12Toとなる
The processing time until this copy is completed is 63/12To.

本方式のコピーに要する時間は、回転位相差によって変
化する。
The time required for copying using this method varies depending on the rotational phase difference.

最小の時間はD1iから直ちにD2iにコピーが可能な
場合で、2十1/2回転分の時間がかかる。
The minimum time is when copying from D1i to D2i is possible immediately, and it takes 21/2 revolutions.

一方最大時間は、D1とD2のイJンデツクスが同期し
ている場合でn回の移しかえが必要であり、2n+1回
転分の時間を必要とする。
On the other hand, the maximum time required is n transfers when the indexes of D1 and D2 are synchronized, which requires a time equivalent to 2n+1 rotations.

第3図の方式と本発明の方式(第4図の方式)との回転
位相差によるコピー処理時間を比較したくものを第5図
に示す。
FIG. 5 shows a comparison of the copy processing time due to the rotational phase difference between the method of FIG. 3 and the method of the present invention (the method of FIG. 4).

第4図の方式は上記説明した如く、実線l1で示すよう
に回転位相差により変化する。
As explained above, the system shown in FIG. 4 changes depending on the rotational phase difference as shown by the solid line l1.

一方第3図の方式は回転位相差によって変らず、点線l
2で示すように常にn+1回転分の時間を必要さする。
On the other hand, the method shown in Figure 3 does not change depending on the rotational phase difference, and the dotted line l
As shown by 2, it always takes time for n+1 rotations.

すなわち本発明は回転位相差が少ない時、その威力を発
揮する。
That is, the present invention exhibits its effectiveness when the rotational phase difference is small.

なおこの回転位相差はD2がD1より1セクタずれてい
る場合を”0”、2つのディスクが完全に同期している
場合をnとしている。
Note that this rotational phase difference is "0" when D2 is shifted from D1 by one sector, and is "n" when the two disks are completely synchronized.

本発明の方式を実現する回路の一実施例を第6図に示す
An embodiment of a circuit implementing the method of the present invention is shown in FIG.

本図および第3図、第4図のタイムチャートによりその
動作を説明する。
The operation will be explained with reference to this figure and the time charts of FIGS. 3 and 4.

第6図において1,2はそれぞれディスク1(DI)、
ディスク2(D2)のセクタ信号(セクタの先頭を示す
パルス)によりカウント・アップし、インデックスによ
りリセットされるカウンタ3,4は書き込みセクタ数を
カウントするカウンタ5吉カウンタ1,2との一致をそ
れぞれ検出する回路、6はカウンタ1と2の引算を行な
いD1とD2の回転差を検出する引算回路、7は上記回
転差をセットすると共にカウンタ5のカウント終了によ
り−1するダウン・カウンター8はカウンタTの差出力
が「1」であることを検出する検出回路である。
In FIG. 6, 1 and 2 are respectively disk 1 (DI),
Counters 3 and 4, which are counted up by the sector signal (pulse indicating the beginning of the sector) of the disk 2 (D2) and reset by the index, are used to count the number of written sectors. A detection circuit 6 is a subtraction circuit that performs subtraction between counters 1 and 2 and detects the rotation difference between D1 and D2. 7 is a down counter 8 that sets the rotation difference and decreases by 1 when the counter 5 finishes counting. is a detection circuit that detects that the difference output of the counter T is "1".

9は検出回路8の出力と、回転差が1/2回転より大き
いか、少さいかを記憶するフリツプ・フロツプ11の出
力とD2上の作業用トラック相互間の移動毎に反転する
フリツプ・フロツプ15との3つの状態を入力とし、D
I,D2の選択信号とDI,D2のトラック・アドレス
とを出力する発生するアドレス切替回路、10〜15は
フリツプ・フロツプを、16〜19はORゲートを、2
0〜25はANDゲートを、26は少くとも1セクタ分
のバツファを、27は作業用トラック相互間の書き移し
時1トラックの1/2を終了した時点で読み出しを1セ
クタ分抑止する抑止回路をそれぞれ表わす。
Reference numerals 9 indicate the output of the detection circuit 8, the output of a flip-flop 11 that stores whether the rotation difference is larger or smaller than 1/2 rotation, and the flip-flop 15 that is inverted every time the working tracks on D2 are moved between each other. As input, the three states of D
Address switching circuits that output select signals of I and D2 and track addresses of DI and D2, 10 to 15 are flip-flops, 16 to 19 are OR gates, 2
0 to 25 are AND gates, 26 is a buffer for at least one sector, and 27 is a suppression circuit that suppresses reading by one sector when 1/2 of one track is completed when writing between working tracks. respectively.

以下本図につき詳細に説明するが、1トラック当りのセ
クタ数を12、情報のコピーはD1からD2に行うもの
と仮定する。
This figure will be explained in detail below, but it is assumed that the number of sectors per track is 12 and that information is copied from D1 to D2.

先ずD2がD1より1/2回転以上遅れている場合につ
き第3図と第6図により説明する。
First, the case where D2 lags D1 by 1/2 revolution or more will be explained with reference to FIGS. 3 and 6.

第6図のスタート(コピー開始)信号により、D1とD
2の回転差(セクタ数に換算したもの)をカウンタ1,
2とその引算回路6により計算し、カウンタ7にセット
すると共にその差が1/2回転に等しいか、より大きい
ときにフリツプ・フロツプ11をセットする。
By the start (copy start) signal shown in Figure 6, D1 and D
2 rotation difference (converted to the number of sectors) is counted as counter 1,
2 and its subtraction circuit 6, and sets it in the counter 7, and sets the flip-flop 11 when the difference is equal to or larger than 1/2 revolution.

一方、ゲート19を通してコピーセクタ数をカウントす
るカウンタ5をリセツトする。
On the other hand, the counter 5 that counts the number of copied sectors is reset through the gate 19.

次に一致回路3によりカウンタ1と5の内容が一致する
と、フリツプ・フロップ10はすでにリセットされてい
るので、D1のセクタ1によりANDゲート22,OR
ゲート11を経由してフリツプ・フロツプ13をセット
し、D1に対し読み出し(リード)を指示する。
Next, when the contents of counters 1 and 5 match by the matching circuit 3, since the flip-flop 10 has already been reset, the AND gate 22 and the OR gate are connected by sector 1 of D1.
The flip-flop 13 is set via the gate 11 to instruct D1 to read.

D1のセクタ1が再び表われるとフリツプ・フロツプ1
3はリセットされ、読み出し指令がオフすると共にフリ
ップ・フロツプ14はセットされる。
When sector 1 of D1 appears again, flip-flop 1
3 is reset, the read command is turned off, and the flip-flop 14 is set.

これによりD1の1セクタ分のデータがバツファ26に
格納される。
As a result, one sector worth of data of D1 is stored in the buffer 26.

これが第3図第1セクタ読出しの時間に相当する。This corresponds to the time for reading the first sector in FIG.

次にカウンタ2とカウンタ5の一致が一致回路4により
検出されると、D2のセクタ2によりフリツプ・フロツ
プ12がセットされD2に書き込み指+(ライト)が出
される。
Next, when the coincidence circuit 4 detects that the counters 2 and 5 match, the flip-flop 12 is set by the sector 2 of D2, and a write finger (+) is output to D2.

D2のセクタ2が再度表われるとフリップ・フロツプ1
2はリセットされバツファ26に格納されたデータの書
き込みが終了する。
When sector 2 of D2 appears again, flip-flop 1
2 is reset and writing of the data stored in the buffer 26 is completed.

これが第3図の第1セクタ書き込み時間に相当する。This corresponds to the first sector write time in FIG.

このときフリップ・フロツプ14をリセットすると共に
、カウンタ5をカウントアップする。
At this time, the flip-flop 14 is reset and the counter 5 is counted up.

また、一致回路3によりカウンタ1と5の内容が一致す
ると、セクタ1によりフリップ・フロップ13が1セク
タの間セットされD1より1セクタ分のデータがバッフ
ァ6に格納される。
Further, when the contents of counters 1 and 5 match by matching circuit 3, flip-flop 13 is set by sector 1 for one sector, and data for one sector is stored in buffer 6 from D1.

これが第3図第2セクタ読み出し時間に相当する。This corresponds to the second sector read time in FIG.

次に一致回路4によりカウンタ2と5の内容が一致する
と、セクタ2により1セクタの間フリツプ・フロツプ1
2がセットされ、バッファに格納されたデータがD2に
書き込まれる。
Next, when the matching circuit 4 matches the contents of counters 2 and 5, sector 2 switches flip-flop 1 for one sector.
2 is set, and the data stored in the buffer is written to D2.

これが第3図第2セクタ書き込み時間に相当する。This corresponds to the second sector write time in FIG.

以下同様にトラック1周分、すなわち12セクタ分のデ
ータのコピーが実行される。
Thereafter, copying of data for one round of the track, that is, for 12 sectors, is executed in the same manner.

1周分のデータのコピーが終了すると、カウンタ5はオ
ーバー・フローし、フリツプ・フロツプ11へ出力とA
NDゲート24,ORゲート19を介して、初期状態に
なると共に本図には記載されていないがトラック・アド
レスを更新し、次のトラック相互間のコピーに移る。
When the copying of data for one round is completed, the counter 5 overflows and outputs to the flip-flop 11 and A
Through the ND gate 24 and the OR gate 19, an initial state is entered, the track address is updated (not shown in the figure), and copying between the next tracks is started.

上記のことを全トラックに渡って実行することにより、
D1からD2へのコピーが完了する。
By doing the above for all tracks,
Copying from D1 to D2 is completed.

次にD1とD2の回転差が1/2回転より小さいとき、
ここでは3セクタ分の回転差のときを例にとり、以下説
明する。
Next, when the rotation difference between D1 and D2 is smaller than 1/2 rotation,
Here, an example in which there is a rotation difference of three sectors will be explained below.

上記と同様にスタート信号により、カウンタ1に回転差
をセットすると共にフリツプ・フロツプ11、カウンタ
5をリセットする。
Similarly to the above, the start signal sets the rotation difference in the counter 1 and also resets the flip-flop 11 and the counter 5.

これによりD1上のトラックDliのデータのD2上の
作業用トラックD2jべのコピーが開始される。
As a result, copying of the data of the track Dli on D1 to the work track D2j on D2 is started.

先ずフリツプ・フロツプ11がリセットされているので
一致回路3,4の出力は抑止され、一方Q出力により抑
止回路27、ORゲート18、ANDゲート23を経由
し、フリツプ・フロツプ13はセット可能の状態となる
First, since the flip-flop 11 has been reset, the outputs of the coincidence circuits 3 and 4 are inhibited, and on the other hand, the Q output passes through the inhibit circuit 27, the OR gate 18, and the AND gate 23, and the flip-flop 13 is set to a settable state. becomes.

このときセクタ1がANDゲ一ト22、ORゲート17
を経由しフリップ・フロツプ13を1セクタ分セットす
る。
At this time, sector 1 is connected to AND gate 22 and OR gate 17.
The flip-flop 13 is set for one sector via .

これによりDli上の1セクタ分のデータがバッファ2
6に格納される。
As a result, one sector worth of data on Dli is transferred to the buffer 2.
6.

これが、第4図第1セクタ読み出し時間に相当する。This corresponds to the first sector read time in FIG.

この時フリップ・フロップ14がセットされるのでOR
ゲート16、ANDゲート20によりフリツプ・フロツ
プ12はセット可能の状態になる。
At this time, flip-flop 14 is set, so OR
Gate 16 and AND gate 20 enable flip-flop 12 to be set.

このときセクタ2により、フリツプ・フロツプ12は1
セクク分セットされバッファ26のデータがトラックD
2jに書き込まれる。
At this time, sector 2 causes flip-flop 12 to be 1
The data in the buffer 26 that has been set for sec is transferred to track D.
Written in 2j.

これが第4図第1セクタ書き込み時間に相当する。This corresponds to the first sector write time in FIG.

このときフリツプーフロツプ14をリセットすると同時
にカウンタ5をカウント・アップする。
At this time, the flip-flop 14 is reset and at the same time the counter 5 is counted up.

これにより、Di上の次のセクタの読み出しが可能とな
り1セクタ分のデータが読み出される。
This makes it possible to read the next sector on Di, and data for one sector is read out.

これが第4図第3セクタの読み出し時間に相当する。This corresponds to the read time of the third sector in FIG.

以下同様にコピーが行われ1/2回転分のコピーが完了
すると、フリップーフロップとゲート回路で構成される
抑止回路27により1セクク分の時間読み出しが抑止さ
れる。
Copying is performed in the same manner thereafter, and when the copying for 1/2 rotation is completed, the reading is inhibited for a period of one sector by the inhibiting circuit 27 composed of a flip-flop and a gate circuit.

この抑止期間が済むと上記と同様に1セクタおきにコピ
ーが行われ、1回転すなわち1トラック分のデータがD
liからD2jに移されると共にフリップ・フロップ1
0はセット、15もセットされる。
After this suppression period ends, copying is performed every other sector in the same way as above, and one rotation, or one track worth of data, is copied to the D.
is transferred from li to D2j and flip-flop 1
0 is set, 15 is also set.

この状態は当初あったDliとD2iの回転差がD2j
とD2iとの間では1セクタ分縮少されたことになる。
In this state, the rotation difference between Dli and D2i that was originally present is D2j
This means that the size has been reduced by one sector between and D2i.

このためカウンタ5のオーバー・フローにより回転差カ
ウンタ1を−1する。
Therefore, the rotation difference counter 1 is decremented by 1 due to the overflow of the counter 5.

次に同様にD2jからD2kへのコピーが実行される。Next, copying from D2j to D2k is executed in the same manner.

第4図の例ではこのとき回転差が1セクタ分になるので
8により、切替回路9がトラックD2kとD2iを交互
に選択し、D2kからD2iへのコピーが開始される。
In the example of FIG. 4, since the rotation difference is one sector at this time, the switching circuit 9 alternately selects tracks D2k and D2i by 8, and copying from D2k to D2i is started.

このコピーはフリップ・フロップ13のセット、リセッ
トするセクタが、フリツプ・フロツプ10がセットされ
ているためセクタ1からセクタ2に変化するのみで先に
述べた手順と同一である。
This copying is the same as the procedure described above except that the sector to which flip-flop 13 is set and reset is changed from sector 1 to sector 2 because flip-flop 10 is set.

これによりD1iからD2iへのコピーが完了するが、
このときANDゲート25、ORゲート19により初期
の状態に良り、次のトラック相互間のコピーに移行する
This completes the copy from D1i to D2i, but
At this time, the AND gate 25 and the OR gate 19 return to the initial state, and the next track-to-track copy begins.

初期状態でD1とD2の回転差力月セクタ分であれば検
出回路8、切替回路9の働きによりD1iからD2iへ
直接コピーが実施される。
In the initial state, if the rotational difference between D1 and D2 is equivalent to a monthly sector, the detection circuit 8 and the switching circuit 9 act to directly copy from D1i to D2i.

本発明の方式による1トラックコピーの平均時間は次の
ようになる。
The average time for one track copy according to the method of the present invention is as follows.

1トラック当りのセクタ数をnとすると、最大は第3図
の場合でn+1回転であり、最小は第4図でDliから
直接D2iへコピーを行う場合であり、(2+−1/n
)回転であり、平均は1/2+1/2+1/2n回転で
あり、nが一般に12〜32と太きいため概略1/n回
転となる。
If the number of sectors per track is n, the maximum is n+1 rotation in the case of Figure 3, and the minimum is (2+-1/n) in the case of copying directly from Dli to D2i in Figure 4.
) rotation, and the average is 1/2+1/2+1/2n rotations, and since n is generally large, 12 to 32, it is approximately 1/n rotations.

また作業用トラックとしてD2j,D2kと2トラック
必要とするが、ディスクの場合にはこのようなトラック
は一般に予備としてもっているのでそれ程支障はなく、
例えなかった場合でも最後の2トラックについては第4
図方式によれば本発明の適用は可能である。
Also, two working tracks, D2j and D2k, are required, but in the case of disks, such tracks are generally kept as spares, so this is not a big problem.
Even if you didn't use the analogy, the last two tracks can be compared to the fourth track.
The present invention can be applied according to the diagrammatic method.

本発明の実施例によれば、バツファ容量が1セクタ分、
すなわち1トラック分の1/nでよく、コピ一時間とバ
ツファ容量の積で表わされるトータルの性能としても (nセクタ)X(2.5回転)/(1セクタ)×(1/
n回転)−5 と大きくなる。
According to the embodiment of the present invention, the buffer capacity is for one sector,
In other words, 1/n of one track is enough, and the total performance expressed as the product of one copy hour and buffer capacity is (n sectors) x (2.5 rotations)/(1 sector) x (1/
n rotations) -5.

また従来例第1図の如く計算機、入出力インターフェー
スに負荷をかけない点では第2図の従来方式と同一であ
り、その他の条件も第2図と同等である。
Further, as in the conventional example shown in FIG. 1, this is the same as the conventional method shown in FIG. 2 in that no load is placed on the computer or input/output interface, and other conditions are also the same as in FIG.

また1トラックのコピーを完了する毎に回転差をみてい
るため、途中回転差が変化した場合も容易に最適の方式
をとれるようになっている。
Furthermore, since the rotation difference is checked every time one track is copied, it is possible to easily select the optimum method even if the rotation difference changes midway.

尚、本発明は、1/2回転差を基準としたが、これは理
論上最適なものであって、実際上は、回路構成との関係
で若干の変動はあり得る。
In the present invention, the 1/2 rotation difference is used as a standard, but this is theoretically optimal, and in practice, there may be slight variations depending on the circuit configuration.

また、バツファメモリを1セクタとしたが、1セクタ以
上の容量の場合もあり得る。
Further, although the buffer memory is assumed to have one sector, it may have a capacity of one sector or more.

更に、1/2回転差よりも大きい時のコピ一方式も上記
実施例には限定されるものではない。
Furthermore, the copying method when the difference is larger than 1/2 rotation is not limited to the above embodiment.

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

第1図8,b,第2図aybは従来方式を示す構成図及
び動作説明図、第3図は従来方式の説明図、第4図は本
発明の方式の説明図、第5図は第3図、第4図方式の処
理時間を比較するグラフ図、第6図は本発明の一実施例
を示す図である。 1・・・・・・計算機、DI,D2・・・・・・磁気デ
ィスク,12・・・・・・書込み指令用フリツプ・フロ
ツプ、13・・・・・・読み出し指令用フリップ・フロ
ップ。
1, 8, b and 2 ayb are configuration diagrams and operation explanatory diagrams showing the conventional method, FIG. 3 is an explanatory diagram of the conventional method, FIG. 4 is an explanatory diagram of the method of the present invention, and FIG. FIG. 3 and FIG. 4 are graphs comparing the processing times of the systems, and FIG. 6 is a diagram showing an embodiment of the present invention. 1... Computer, DI, D2... Magnetic disk, 12... Flip-flop for write command, 13... Flip-flop for read command.

Claims (1)

【特許請求の範囲】 1 それ自身の情報の記憶単位を固定長とするセクタ方
式をとる第1、第2の回転形記憶装置と、バツファメモ
リとを備え、上記バツファメモリを介して上記第1、第
2の回転形記憶装置間のデータのコピーを行う回転形記
憾装置間におけるデータコピ一方式に於いて、上記第1
、第2の回転形記憶装置間の回転位置の差が予じめ定め
た所定の回転差よりも小さい時には、上記第1の回転形
記憶装置から、順次,上記バツファメモリの容量に相当
するセクタのデータを読み出して上記バツファメモリに
一時的に記憶させ、次いで第2の回転形記憶装置に予じ
め割り当てられた最大2つの作業用トラックの一方のト
ラック或いは上記作業用トラック間で上記バツファメモ
リから読み出したセクタデータを、順次ずらして移動せ
しめると共に、第2の回転形記憶装置の対応トラックと
の回転差が上記バツファメモリの容量に相当するセクタ
になった時点で該対応トラックにセクタのデータを順次
移動させてコピーを行わせるようにした回転形記憶装置
間におけるデータコピ一方式。 2 それ自身の情報の記録単位を固定長とするセクタ方
式をとる第1、第2の回転形記憶装置と、バツファメモ
リとを備え、上記バツファメモリを介して上記第1、第
2の回転形記憶装置間のデータのコピーを行う回転形記
憶装置間におけるデータコピ一方式に於いて、上記第1
、第2の回転形記憶装置間の回転位置の差カ月/2回転
差よりも大きい時には、上記第1の回転形記憶装置から
、順次、上記バツファメモリの容量に相当するセクタの
データを読み出して上記バツファメモリに一時記憶させ
、次いでこのバツファメモリから読み出したセクタのデ
ータを第2の回転形記憶装置の該当セクタに順次書き込
みを行いコピーを行わせ、上記第1、第2の回転形記憶
装置間の回転位置の差カ月/2回転差よりも小さい時に
は、上記第1の回転形記憶装置から順次、上記バツファ
メモリの容量に相当するセクタのデータを読み出して上
記バツファメモリに一時的に記憶させ、次いで第2の回
転形記憶装置に予じめ割り当てられた最大2つの作業用
トラックの一方域いは上記作業用トラック間で上記バツ
ファメモリから読み出したセクタのデータを、順次ずら
して移動せしめると共に、第2の回転形記憶装置の対応
トラックとの回転差が上記バツファメモリの容量に相当
するセクタになった時点で該対応トラックにセクタのデ
ータを順次移動せしめてコピーを行わしめるようにした
回転形記憶装置間におけるデークコピ一方式。
[Scope of Claims] 1. First and second rotary storage devices employing a sector system in which the storage unit of its own information has a fixed length, and a buffer memory, wherein the first and second rotary storage devices are provided with In the data copying method between two rotary storage devices that copies data between two rotary storage devices, the first
, when the difference in rotational position between the second rotary storage devices is smaller than a predetermined rotational difference, the sectors corresponding to the capacity of the buffer memory are sequentially read from the first rotary storage device. Data is read out and temporarily stored in the buffer memory, and then read out from the buffer memory on one of up to two working tracks assigned in advance to a second rotary storage device or between the working tracks. The sector data is sequentially shifted and moved, and when the rotational difference with the corresponding track of the second rotary storage device reaches a sector corresponding to the capacity of the buffer memory, the sector data is sequentially moved to the corresponding track. A method for copying data between rotating storage devices. 2. First and second rotary storage devices employing a sector system in which the recording unit of its own information is a fixed length, and a buffer memory, wherein the first and second rotational storage devices are connected to each other via the buffer memory. In one type of data copying between rotating storage devices that copies data between
, when the difference in rotational position between the second rotary storage devices is greater than the difference of 1 month/2 rotations, data of sectors corresponding to the capacity of the buffer memory are sequentially read from the first rotary storage device and The data of the sector is temporarily stored in the buffer memory, and then the data of the sector read from the buffer memory is sequentially written and copied to the corresponding sector of the second rotary storage device, and the data is rotated between the first and second rotary storage devices. When the difference in position is smaller than the difference in months/2 rotations, data in sectors corresponding to the capacity of the buffer memory is sequentially read from the first rotary storage device and temporarily stored in the buffer memory, and then The sector data read from the buffer memory is sequentially shifted and moved between one area of a maximum of two working tracks assigned in advance to the rotating storage device or between the working tracks, and A disk copy unit between rotating storage devices in which data in a sector is sequentially moved and copied to a corresponding track when the rotational difference between the storage device and the corresponding track reaches a sector corresponding to the capacity of the buffer memory. method.
JP52116919A 1977-09-30 1977-09-30 Data copy method between rotating storage devices Expired JPS586183B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP52116919A JPS586183B2 (en) 1977-09-30 1977-09-30 Data copy method between rotating storage devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP52116919A JPS586183B2 (en) 1977-09-30 1977-09-30 Data copy method between rotating storage devices

Publications (2)

Publication Number Publication Date
JPS5451431A JPS5451431A (en) 1979-04-23
JPS586183B2 true JPS586183B2 (en) 1983-02-03

Family

ID=14698903

Family Applications (1)

Application Number Title Priority Date Filing Date
JP52116919A Expired JPS586183B2 (en) 1977-09-30 1977-09-30 Data copy method between rotating storage devices

Country Status (1)

Country Link
JP (1) JPS586183B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60113483U (en) * 1984-01-09 1985-07-31 東芝熱器具株式会社 Cold air vent damper device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60113483U (en) * 1984-01-09 1985-07-31 東芝熱器具株式会社 Cold air vent damper device

Also Published As

Publication number Publication date
JPS5451431A (en) 1979-04-23

Similar Documents

Publication Publication Date Title
JPS6258479A (en) Label writing method for file data
JPH0378649B2 (en)
JPH0245271B2 (en)
CN110286856B (en) Volume cloning method, volume cloning device, electronic equipment and machine-readable storage medium
KR950004215B1 (en) Nonsynchronous channel/dasd communication system
JP3103258B2 (en) Disk unit
JPS586183B2 (en) Data copy method between rotating storage devices
JPS6045857A (en) Data holding system of semiconductor file
JPH02231621A (en) Information transfer system for rotary memory device
JPH0562360A (en) System for processing defective sector of rotary type storage device
JP3009168B2 (en) Data processing device
JPS62154153A (en) Control system for external storage
JPH06290547A (en) High-speed data transferring method
JP2536118B2 (en) Disk controller
JPS6158032A (en) Input and output control system
JPS63108568A (en) Magnetic recording and reproducing device
JPH0578859B2 (en)
JP2847863B2 (en) Microprocessor interrupt control method
JPS5946027B2 (en) Variable length record control method
JPH04254969A (en) Recording data protection means for draw type recording system
JP2003186629A (en) Data copy system
JPH056311A (en) Access processing system
JPS6383967A (en) Data recording system
JPH0232444A (en) Data processor
JPS6127767B2 (en)