Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3625718B2 - Hierarchical copy method and storage medium - Google Patents
[go: Go Back, main page]

JP3625718B2 - Hierarchical copy method and storage medium - Google Patents

Hierarchical copy method and storage medium Download PDF

Info

Publication number
JP3625718B2
JP3625718B2 JP33094099A JP33094099A JP3625718B2 JP 3625718 B2 JP3625718 B2 JP 3625718B2 JP 33094099 A JP33094099 A JP 33094099A JP 33094099 A JP33094099 A JP 33094099A JP 3625718 B2 JP3625718 B2 JP 3625718B2
Authority
JP
Japan
Prior art keywords
computer
distribution
hierarchy
host
belonging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP33094099A
Other languages
Japanese (ja)
Other versions
JP2001147869A (en
Inventor
健浩 甘利
Original Assignee
ニフティ株式会社
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 ニフティ株式会社 filed Critical ニフティ株式会社
Priority to JP33094099A priority Critical patent/JP3625718B2/en
Publication of JP2001147869A publication Critical patent/JP2001147869A/en
Application granted granted Critical
Publication of JP3625718B2 publication Critical patent/JP3625718B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【0001】
【発明が属する技術分野】
本発明は、複数のコンピュータにファイルを配布する方式に関する。
【0002】
【従来の技術】
従来、あるファイルを複数の配布先コンピュータに配布する場合には、図4に示すように1台の配布用ホスト・コンピュータがスクリプト等のマクロ言語の繰り返し処理で、例えばn台の配布先コンピュータに、当該ファイルを順次コピーしていた。
【0003】
【発明が解決しようとする課題】
これでは、一台の配布用ホスト・コンピュータが全配布先コンピュータにファイルをコピーするのに長時間かかってしまう。また、コピー処理中にメンテナンスのための処理を行うことはできず、障害が発生しても迅速な対応ができないという欠点があった。
【0004】
よって本発明の目的は、配布用ホスト・コンピュータから複数のコンピュータにファイルをコピーする際の処理を高速化するための技術を提供することである。
【0005】
【課題を解決するための手段】
本発明の第1の態様に係る、配布ホスト・コンピュータから複数のコンピュータにファイルをコピーする方法は、配布ホスト・コンピュータを根とし且つ複数のコンピュータをノードとする、階層化されたツリー構造を定義する定義ステップと、配布ホスト・コンピュータからツリー構造において最下層のコンピュータまで、ツリー構造において上位の階層のコンピュータから、ツリー構造において当該上位の階層のコンピュータに接続され且つ下位の階層に属するコンピュータへ、ファイルをコピーするコピー・ステップとを含む。このように、階層化されたツリー構造の枝に沿って段階的にファイルをコピーして行くことにより、コピー処理が並列化され、処理の高速化が実現される。
【0006】
本発明の第1の態様において、ツリー構造において最下層のコンピュータから配布ホスト・コンピュータまで、下位の階層に属するコンピュータが、ツリー構造において当該下位の階層に属するコンピュータに接続され且つより下位の階層に属するコンピュータに対する処理結果を、上位の階層のコンピュータに送信するステップをさらに含むような構成も可能である。配布ホスト・コンピュータには全ての処理結果が集められ、例えばツリー構造に含まれるコンピュータのうち処理できなかったコンピュータを特定することができる。
【0007】
なお、本発明の第1の態様において、上で述べたコピー・ステップの前に、上位の階層のコンピュータが下位の階層に属するコンピュータにログインするステップをさらに含み、上で述べた処理結果は当該ログインの可否(コピーの成功はログインの成功を暗に含む)を含むような構成とすることも可能である。ここではログインに失敗したコンピュータについては後回しにする。
【0008】
また、本発明の第1の態様において、上位の階層のコンピュータにより下位の階層に属するコンピュータにコピーされたファイルをロックするステップをさらに含むような構成も可能である。配布先コンピュータで当該ファイルを変更中の場合もあり、この場合には本発明の第1の態様に係るファイルのコピーを優先し、ファイルのコピー完了までロックするものである。
【0009】
本発明の第1の態様において、上で述べたコピー・ステップの前にファイルのロックを上位の階層のコンピュータから下位の階層に属するコンピュータに通知するステップをさらに含むような構成も可能である。このようにすれば、下位の階層に属するコンピュータを操作している者に本コピー処理を通知できる。
【0010】
例えば、本発明の第1の態様においては、配布ホスト・コンピュータがファイルのロックを解除するような構成も可能である。
【0011】
本発明の第2の態様に係る、ファイルを配布する元となるファイル配布コンピュータは、ファイル配布コンピュータを根とし且つファイルが配布されるべき複数のコンピュータをノードとする、階層化されたツリー構造を定義する手段と、ツリー構造においてファイル配布コンピュータに接続され且つ1つ下位の階層に属するコンピュータに、ファイルをコピーする第1コピー手段と、ツリー構造において1つ下位の階層に属するコンピュータに接続され且つさらに1つ下位の階層に属するコンピュータにファイルをコピーする、1つ下位の階層に属するコンピュータ内の第2コピー手段を起動する手段とを有する。
【0012】
本発明の第2の態様において、第2コピー手段が1つ下位の階層に属するコンピュータに存在しているか検査する手段と、第2コピー手段が1つ下位の階層に属するコンピュータに存在していない場合には、第2コピー手段を1つ下位の階層に属するコンピュータに送信する手段とをさらに含むような構成も可能である。
【0013】
なお、本発明の第1の態様に係る変形を本発明の第2の態様に適用することも可能である。
【0014】
本発明の第3の態様に係る、ファイルを配布する元となる配布元コンピュータから当該ファイルが配布されるべき複数のコンピュータに含まれるコピー実行コンピュータは、配布元コンピュータを根とし且つ複数のコンピュータをノードとする、階層化されたツリー構造においてコピー実行コンピュータに接続され且つ1つ下位の階層に属するコンピュータに、ファイルをコピーする第1コピー手段と、ツリー構造において1つ下位の階層に属するコンピュータに接続され且つさらに1つ下位の階層に属するコンピュータにファイルをコピーする、1つ下位の階層に属するコンピュータ内の第2コピー手段を起動する手段とを有する。
【0015】
本発明の第4の態様に係る、ファイルを配布するためのプログラムは、ファイル配布コンピュータに、ファイル配布コンピュータを根とし且つファイルが配布されるべき複数のコンピュータをノードとする、階層化されたツリー構造を定義するための処理と、ツリー構造においてファイル配布コンピュータに接続され且つ1つ下位の階層に属するコンピュータに、ファイルをコピーする第1コピー処理と、ツリー構造において1つ下位の階層に属するコンピュータに接続され且つさらに1つ下位の階層に属するコンピュータにファイルをコピーする、1つ下位の階層に属するコンピュータ内の第2コピー処理を起動する処理とを実行させる。
【0016】
本発明の第1の態様に係る変形を本発明の第4の態様に適用することも可能である。
【0017】
また、本発明の第5の態様に係る、ファイルをコピーするためのプログラムは、ファイルを配布する元となる配布元コンピュータから当該ファイルが配布されるべき複数のコンピュータに含まれるコピー実行コンピュータに、配布元コンピュータを根とし且つ複数のコンピュータをノードとする、階層化されたツリー構造においてコピー実行コンピュータに接続され且つ1つ下位の階層に属するコンピュータに、ファイルをコピーする第1コピー処理と、ツリー構造において1つ下位の階層に属するコンピュータに接続され且つさらに1つ下位の階層に属するコンピュータに前記ファイルをコピーする、1つ下位の階層に属するコンピュータ内の第2コピー処理を起動する処理とを実行させる。
本発明の第6の態様に係る、配布ホスト・コンピュータから複数のコンピュータにファイルをコピーするコピー方法は、配布ホスト・コンピュータが、当該配布ホスト・コンピュータを根とし且つ複数のコンピュータをノードとする、階層化されたツリー構造を定義し、記憶装置に格納するステップと、階層化されたツリー構造における特定の階層のコンピュータが、記憶装置に格納されたツリー構造に基づき、当該特定の階層のコンピュータに接続され且つ下位の階層に属するコンピュータを特定する確認ステップと、特定の階層のコンピュータが、特定された下位の階層に属するコンピュータに所定のプログラムが存在するか判定する判定ステップと、所定のプログラムが下位の階層に属するコンピュータに存在しない場合、特定の階層のコンピュータから下位の階層に属するコンピュータに所定のプログラムを送信する送信ステップと、特定の階層のコンピュータから下位の階層に属するコンピュータにファイルをコピーするコピー・ステップと、特定の階層のコンピュータが、下位の階層に属するコンピュータに存在する所定のプログラムを起動する起動ステップとを含む。そして上記所定のプログラムが、確認ステップと判定ステップと送信ステップとコピー・ステップと起動ステップとをコンピュータに実行させるためのプログラムである。
また、本発明の第6の態様に係るコピー方法は、特定の階層のコンピュータが、下位の階層に属するコンピュータに対する処理結果を、特定の階層のコンピュータが接続され且つより上位の階層に属するコンピュータに送信する処理結果通知ステップをさらに含むようにしてもよい。そして上記所定のプログラムが、処理結果通知ステップをコンピュータにさらに実行させるためのプログラムであってもよい。
また、本発明の第6の態様に係るコピー方法は、上記コピー・ステップの前に、特定の階層のコンピュータが下位の階層に属するコンピュータにログインするログイン・ステップをさらに含むようにしてもよい。そして処理結果は当該ログインの可否を含み、上記所定のプログラムが、ログイン・ステップをコンピュータにさらに実行させるためのプログラムであってもよい。
また、本発明の第6の態様に係るコピー方法は、特定の階層のコンピュータにより下位の階層に属するコンピュータにコピーされたファイルをロックするロック・ステップをさらに含むようにしてもよい。そして上記所定のプログラムが、ロック・ステップをコンピュータにさらに実行させるためのプログラムであってもよい。
また、本発明の第6の態様に係るコピー方法は、上記コピー・ステップの前に、ファイルのロックを特定の階層のコンピュータから下位の階層に属するコンピュータに通知するロック通知ステップをさらに含むようにしてもよい。そして上記所定のプログラムが、ロック通知ステップをコンピュータにさらに実行させるためのプログラムであってもよい。
また、本発明の第6の態様に係るコピー方法は、配布ホスト・コンピュータがファイルのロックを解除するステップをさらに含むようにしてもよい。
また、本発明の第7の態様に係る記憶媒体は、配布ホスト・コンピュータから複数のコンピュータにファイルをコピーするための第1配布プログラム及び第2配布プログラムを格納した記憶媒体であって、上記第1配布プログラムが、配布ホスト・コンピュータに、当該配布ホスト・コンピュータを根とし且つ複数のコンピュータをノードとする、階層化されたツリー構造を定義し、記憶装置に格納するステップを実行させるプログラムであり、上記第2配布プログラムが、階層化されたツリー構造における特定の階層のコンピュー タ及び配布ホスト・コンピュータに、記憶装置に格納されたツリー構造に基づき、特定の階層のコンピュータ又は配布ホスト・コンピュータに接続され、且つ下位の階層に属するコンピュータを特定する確認ステップと、特定された下位の階層に属するコンピュータに第2配布プログラムが存在するか判定する判定ステップと、第2配布プログラムが下位の階層に属するコンピュータに存在しない場合、下位の階層に属するコンピュータに第2配布プログラムを送信する送信ステップと、下位の階層に属するコンピュータにファイルをコピーするコピー・ステップと、下位の階層に属するコンピュータに存在する第2配布プログラムを起動する起動ステップとを実行させるプログラムである。
【0018】
なお、本発明の第4及び第5の態様に係るプログラムは、例えばフロッピー・ディスク、CD−ROM、光磁気ディスク、半導体メモリ、ハードディスク等の記憶媒体又は記憶装置に格納される。
【0019】
【発明の実施の形態】
まず本発明の処理の概要を図1を用いて説明する。なお本発明において、配布用ホスト10、配布先ホスト14及び16は、何らかのネットワークで接続されているものとする。また、図1では配布用ホスト10に接続されたホスト情報記憶部12に格納されたホスト情報については配布先ホスト14及び16でも使用可能になっているものとする。
【0020】
まず配布用ホスト10で処理が開始される。ホスト情報記憶部12からホスト情報を取得し、ファイル配布の対象となるホストを確認し、ツリー構造を定義する(ステップS100)。ファイル配布の対象となるホストについては、例えば配布の対象となるファイルを保持しているホストのテーブル等で確認する。
【0021】
また、このツリー構造とは例えば図2に示すようなものである。図2には、配布用ホストを根とし、階層化されたツリー構造の例を示している。図2の例では、ツリー構造において、配布用ホストに接続された、第1階層のホストは6つあり、さらに、第1階層のホストの各々には6つの第2階層のホストが接続されている。これを下位の階層で繰り返し、第n−1階層の各ホストには6つの第n階層のホストが接続されている。なお最後の階層については全配布先ホストの数によっては6つでない場合もある。一般的には、全配布先ホスト数pの階層数qによる根p1/qを計算すれば、各ホストの担当ホスト数が分かる。階層数を例えば3とし、全配布先ホスト数が400の場合には、x=400の解xが各ホストの担当ホスト数となる。なお、xが整数でない場合には小数点以下を切り上げる。図1において階層数は2である。
【0022】
より具体的に各ホストの担当ホストをどれにするかは様々な方法で決めることができる。例えば、配布先ホストを何らかの順番で並べ、例えば各ホストの担当ホスト数が8であれば、1番目から8番目までを配布用ホストの担当ホストとし、9番目から16番目までを1番目の配布先ホストの担当ホストとし、17番目から24番目までを2番目の配布先ホストの担当ホストとし、といった割り振りも可能である。このような各ホストの担当ホストを割り振る処理までがステップS100に含まれる。このステップS100が配布用ホスト10にて行われれば、論理的にツリー構造が図2のように定義され、ホスト情報記憶部12にはこのツリー構造が記憶されたことになる。上でも述べたが、ホスト情報記憶部12に記憶されたツリー構造は各配布先ホストでも使用可能となっている。
【0023】
次に本発明の主要な処理の一つであるmrcp(Multi−Remote CoPy)処理を実行する(ステップS110)。このmrcp処理の詳細については図3を用いて後に詳述する。ここでは本発明の処理全体を説明するために概略を説明する。
【0024】
このmrcp処理では、まず担当ホストの確認を行う(ステップS112)。ここでは配布用ホスト10が配布用ホスト10の担当ホストをツリー構造から確認する。そして、担当ホストである第1階層のn番目ホスト14に対し、ログインを試みる。ログインできれば、当該担当ホスト14にmrcpモジュールが存在するか確認する(ステップS114)。本発明では、ログインできなければ、その担当ホストの処理をスキップし、次の担当ホストにログインする。これにより処理を高速化することができる。ログインできなかった担当ホストについてはログイン失敗を記録しておき、後に配布用ホスト10が別途処理する。また担当ホスト14にmrcpモジュールが存在していない場合には、配布用ホスト10は自己のmrcpモジュールを担当ホスト14にコピーする。
【0025】
次に、配布用ホスト10のmrcpモジュールは担当ホスト14にファイル・ロックの通知を行う(ステップS115)。この第1階層n番目ホスト14において、配布されるファイルと同じファイルが編集中の場合も考えられる。よって、当該ホストのユーザにファイルが更新されることを通知し、編集処理を中断させる。そして、ファイルをコピーし(ステップS116)、この第1階層n番目ホスト14にコピーされたファイルをロックする(ステップS118)。次いで、配布先ホスト14のmrcpモジュールを起動する(ステップS200)。
【0026】
例えばここまで実行すると、配布用ホスト10は、配布先ホスト14についてはコピー成功を記録する。また、配布用ホスト10は残りの担当ホストについてステップS112乃至ステップS200を実行する。並列にmrcp処理を実行できれば、担当ホストについて並列にステップS112乃至ステップS200を実行してもよい。
【0027】
配布先ホスト14のmrcp処理では、同じようにツリー構造から担当ホストの確認を行う(ステップS202)。次に、担当ホストである第2階層m番目ホスト16にログインを試みる。ログインできれば、当該担当ホスト16にmrcpモジュールが存在するか確認する(ステップS204)。ログインできなかった担当ホストについてはログイン失敗を記録しておき、後に配布用ホスト10が別途処理する。また担当ホスト16にmrcpモジュールが存在していない場合には、配布先ホスト14は自己のmrcpモジュールを担当ホスト16にコピーする。
【0028】
次に、配布先ホスト14のmrcpモジュールは担当ホスト16にファイル・ロックの通知を行う(ステップS205)。この第2階層m番目ホスト16にて配布されるファイルと同じファイルが編集中の場合も考えられる。よって、当該ホストのユーザにファイルが更新されることを通知し、編集処理を中断させる。そして、ファイルをコピーし(ステップS206)、この第2階層m番目ホスト16にコピーされたファイルをロックする(ステップS207)。次いで、配布先ホスト16のmrcpモジュールを起動する(ステップS300)。
【0029】
例えばここまで実行すると、配布先ホスト14は、配布先ホスト16についてはコピー成功を記録する。また、配布先ホスト14は残りの担当ホストについてステップS202乃至ステップS300を実行する。並列にmrcp処理を実行できれば、担当ホストについて並列にステップS202乃至ステップS300を実行してもよい。
【0030】
配布先ホスト16のmrcpモジュールは、同じようにツリー構造から担当ホストの確認を行う(ステップS302)。しかし、図1では第2階層はツリー構造の最下層であるから担当ホストは無い。よって、配布用ホスト10及び配布先ホスト14では行われていた担当ホストに対する処理はスキップされる。配布先ホスト16におけるmrcpモジュールが次に行う処理は当該配布先ホスト16におけるmrcp実行結果をツリー構造における親ホストに送信する処理である(ステップS304)。ツリー構造における親ホストとは、ツリー構造において当該配布先ホスト16に接続されており1つ上位の階層に属するホスト14である。また、配布先ホスト16におけるmrcp実行結果は、配布先ホスト16の担当ホストがないため、空の実行結果を配布先ホスト14に送信する。
【0031】
配布先ホスト14のmrcpモジュールでは、配布先ホスト14の担当ホストから順次実行結果を受け取る(ステップS208)。そして、ログインに失敗したホスト以外の担当ホスト全てから実行結果を受領した場合には、配布先ホスト14の実行結果を含めて配布用ホスト10に実行結果を送信する(ステップS209)。ここでは、配布先ホスト14が受領する実行結果は皆空であるから、実質的に配布先ホスト14の実行結果が送信されるようになる。実行結果は、例えば、担当ホスト毎に成功又は失敗を記録したものである。
【0032】
配布用ホスト10のmrcpモジュールは、担当ホストから順次実行結果を受け取る(ステップS119)。配布用ホスト10の実行結果と担当ホストから受け取った実行結果より、配布先ホストのうちコピーに失敗したホストのリストを生成することができる。例えばこのリストはホスト情報記憶部12に記憶される。後に配布用ホスト10はこのリストを用いて別途コピー処理を実施することができる。この失敗ホストに対しては、従来技術によりファイルを配布してもよいし、失敗ホストのリストについて本発明を実行するようにしても良い。
【0033】
なお、配布用ホスト10のmrcpモジュールは、ツリー構造において親ホストが存在しないので、実行結果を送信することはない。
【0034】
ここまででコピーに失敗した配布先ホスト以外についてはファイルの整合性がとれるようになった。
【0035】
次に配布用ホスト10はファイルロック解除処理を実施する(ステップS120)。ここでは、ファイルの配布に成功した配布先ホストの各々に対して配布用ホスト10が、ファイルロック解除を行い(ステップS210及びS310)、配布先ホストのユーザにファイルロック解除の通知を行う(ステップS220及びS320)。これにより、配布先ホストのユーザは、配布されたファイルの編集等の処理を行えるようになる。
【0036】
図1では階層数が2であったが、本発明は階層数が2に限定されるものではなく、図1における第1階層の下に、第1階層番目ホスト14と同様の処理を実施する階層を複数設けることが可能である。
【0037】
では図3を用いてmrcp処理の詳細について説明する。mrcpモジュールが起動されると、まずそのmrcpモジュールが実行されたコンピュータの担当ホストを確認する(ステップS3)。担当ホストについては上で述べたようにツリー構造においてこのコンピュータに接続され且つ1つ下位の階層に属するコンピュータである。
【0038】
次いで全ての担当ホストを処理したか又は担当ホストが存在しないかを判断する(ステップS4)。例えば図1の配布先ホスト16はツリー構造の最下層のホストであったので担当ホストが無かった。全ての担当ホストを処理した場合及び担当ホストが存在しない場合にはステップS27に移行する。一方、担当ホストが存在するが全ての担当ホストを処理していない場合には、未処理の担当ホストのうち1つにログインを試みる(ステップS5)。もし、ログインが可能でなければ、その担当ホストに対して再度ログインすることはしないで、その担当ホストに対して失敗を記録する(ステップS7)。この記録は後にツリー構造における親ホストに送信される。
【0039】
一方、ログインに成功した場合には、当該担当ホストがmrcpモジュールを有しているか判断する(ステップS11)。有していなければ、このコンピュータのmrcpモジュールをまずコピーする(ステップS13)。有していれば、ステップS13をスキップする。そして、当該担当ホストへファイルロックを通知し(ステップS15)、配布すべきファイルをコピーし(ステップS17)、さらにファイルにロックをかける(ステップS19)。この後に、この担当ホスト内のmrcpモジュールを起動する(ステップS21)。
【0040】
そして、当該担当ホストに対して成功を記録する(ステップS23)。この担当ホストに対する成功の記録は、ファイルコピー(ステップS17)の後に行えばタイミングはいつでも良い。この記録は後にツリー構造における親ホストに送信される。
【0041】
このステップS23の後に再度ステップS4に戻る。全ての担当ホストを処理するまで、ステップS5乃至ステップS23を繰り返す。
【0042】
もし、全ての担当ホストを処理した場合及び担当ホストが存在しない場合には、ステップS27に分岐する。このステップS27では、当該担当ホストが存在する場合には当該担当ホストからmrcpモジュールの実行結果を受信するまで待つ。なお、ここでは説明の都合上、全ての担当ホストを処理した後に当該担当ホストからmrcpモジュールの実行結果を受信するまで待つことになっているが、実際にはステップS4乃至ステップS23を実行中に担当ホストから実行結果を受け取る場合もある。担当ホストが存在しない場合、すなわちツリー構造において最下層のコンピュータの場合には、受領すべき実行結果がないので、このステップS27はスキップされる。
【0043】
そして、当該コンピュータのmrcp実行結果及び担当ホストがあればこの各担当ホストからの実行結果をまとめ、親ホストが存在していれば親ホストに送信する(ステップS29)。実行結果は例えばどのホストは成功又は失敗という記録の集合である。配布用ホスト10の場合親ホストがないので、実行結果をまとめるだけである。配布用ホスト10においては、まとまった実行結果により、成功した配布先ホストについてはロック解除処理が行われ、失敗した配布先ホストについては別途処理が行われる。
【0044】
以上述べた本発明の実施例は様々な変形が可能である。例えば、配布用ホスト10が全てのコピー配布が成功した配布先ホストのロックを解除する処理を実施していたが、例えば図1の実行結果受領(ステップS208及びステップS119に応答して、実行結果の送信元に対してmrcpモジュールにおいてロック解除の処理を実行するように変形することも可能である。mrcpモジュールにおける処理が複雑になるが、配布用ホスト10の処理負荷が少なくなる。また、早期にロックが解除できる。なお、ファイルのコピーに比してファイルロックの解除は処理は高速に行えるので、上で述べた実施例でも配布用ホストの負担は大きくは無い。
【0045】
また上で述べた実施例では、mrcpモジュールとして一つのモジュールになっていたが、複数のモジュールにて同様の機能を実現するようにすることも可能である。
【0046】
【発明の効果】
以上述べたように、本発明により、配布用ホスト・コンピュータから複数のコンピュータにファイルをコピーする際の処理を高速化するための技術を提供することができた。
【図面の簡単な説明】
【図1】本発明におけるシステム構成と処理フローを示した図である。
【図2】階層化されたツリー構造の一例を示す模式図である。
【図3】mrcp処理のフローチャートである。
【図4】従来技術を説明するための模式図である。
【符号の説明】
10 配布用ホスト 12 ホスト情報記憶部
14,16 配布先ホスト
[0001]
[Technical field to which the invention belongs]
The present invention relates to a method for distributing files to a plurality of computers.
[0002]
[Prior art]
Conventionally, when a certain file is distributed to a plurality of distribution destination computers, as shown in FIG. 4, one distribution host computer performs repeated processing in a macro language such as a script, for example, to n distribution destination computers. The files were copied sequentially.
[0003]
[Problems to be solved by the invention]
In this case, it takes a long time for one distribution host computer to copy a file to all distribution destination computers. In addition, there is a disadvantage in that maintenance processing cannot be performed during copy processing, and quick response is not possible even if a failure occurs.
[0004]
Therefore, an object of the present invention is to provide a technique for speeding up the processing when copying a file from a distribution host computer to a plurality of computers.
[0005]
[Means for Solving the Problems]
A method for copying a file from a distribution host computer to a plurality of computers according to the first aspect of the present invention defines a hierarchical tree structure having a distribution host computer as a root and a plurality of computers as nodes. From the distribution host computer to the lowest computer in the tree structure, from a computer in a higher hierarchy in the tree structure, to a computer connected to the computer in the higher hierarchy in the tree structure and belonging to the lower hierarchy A copy step for copying the file. In this way, by copying the files step by step along the branches of the hierarchized tree structure, the copy processing is parallelized and the processing speed is increased.
[0006]
In the first aspect of the present invention, a computer belonging to a lower hierarchy from a lowest-layer computer to a distribution host computer in the tree structure is connected to a computer belonging to the lower hierarchy in the tree structure and has a lower hierarchy. A configuration may further be included which further includes a step of transmitting the processing result for the computer to which it belongs to a computer in a higher hierarchy. All processing results are collected in the distribution host computer, and for example, computers that could not be processed among the computers included in the tree structure can be identified.
[0007]
In the first aspect of the present invention, before the copy step described above, the computer further includes a step of logging in to a computer belonging to the lower layer, and the processing result described above is the It is also possible to adopt a configuration including whether or not login is possible (successful copying implies login success). Here, we will postpone computers that fail to log in.
[0008]
Further, in the first aspect of the present invention, a configuration may further be included which further includes a step of locking a file copied to a computer belonging to a lower hierarchy by a computer of an upper hierarchy. In some cases, the file is being changed at the distribution destination computer. In this case, the file copy according to the first aspect of the present invention is given priority, and the file copy is locked.
[0009]
The first aspect of the present invention may be configured to further include a step of notifying the computer belonging to the lower layer of the file lock from the upper layer computer before the copying step described above. In this way, it is possible to notify the person who operates the computer belonging to the lower layer of the copy process.
[0010]
For example, in the first aspect of the present invention, a configuration in which the distribution host computer unlocks the file is also possible.
[0011]
According to the second aspect of the present invention, a file distribution computer from which a file is distributed has a hierarchical tree structure having a file distribution computer as a root and a plurality of computers to which the file should be distributed as nodes. Defining means; first copy means for copying a file to a computer that is connected to a file distribution computer in a tree structure and belonging to a lower hierarchy; and a computer that is connected to a computer belonging to a hierarchy lower by one in the tree structure; And a means for starting a second copy means in the computer belonging to the next lower hierarchy, for copying the file to the computer belonging to the lower hierarchy.
[0012]
In the second aspect of the present invention, the means for checking whether the second copy means exists in the computer belonging to the next lower hierarchy and the second copy means do not exist in the computer belonging to the lower hierarchy. In this case, it is possible to adopt a configuration further including means for transmitting the second copy means to a computer belonging to the next lower hierarchy.
[0013]
The modification according to the first aspect of the present invention can be applied to the second aspect of the present invention.
[0014]
According to the third aspect of the present invention, a copy execution computer included in a plurality of computers to which a file is to be distributed from a distribution source computer from which the file is distributed is based on the distribution source computer and includes a plurality of computers. A first copy means for copying a file to a computer that is connected to a copy execution computer in a hierarchical tree structure and that belongs to a lower hierarchy, and a computer that belongs to a lower hierarchy in the tree structure. And a means for activating a second copy means in the computer belonging to the lower hierarchy and copying the file to the computer belonging to the lower hierarchy.
[0015]
A program for distributing a file according to the fourth aspect of the present invention is a hierarchical tree in which a file distribution computer has a root of the file distribution computer and a plurality of computers to which the file is to be distributed as nodes. A process for defining a structure, a first copy process for copying a file to a computer connected to a file distribution computer in a tree structure and belonging to a lower hierarchy, and a computer belonging to a hierarchy lower by one in the tree structure And a process of starting a second copy process in the computer belonging to the next lower hierarchy, which copies the file to a computer belonging to the lower hierarchy.
[0016]
The modification according to the first aspect of the present invention can also be applied to the fourth aspect of the present invention.
[0017]
A program for copying a file according to the fifth aspect of the present invention is a copy execution computer included in a plurality of computers to which the file is to be distributed from a distribution source computer from which the file is distributed. A first copy process for copying a file to a computer that is connected to a copy execution computer and belongs to a lower hierarchy in a hierarchical tree structure having a distribution source computer as a root and a plurality of computers as nodes; A process of starting the second copy process in the computer belonging to the one lower hierarchy, wherein the file is copied to a computer belonging to the one lower hierarchy in the structure and further connected to the computer belonging to the one lower hierarchy Let it run.
According to a sixth aspect of the present invention, there is provided a copy method for copying a file from a distribution host computer to a plurality of computers, wherein the distribution host computer has the distribution host computer as a root and the plurality of computers as nodes. A step of defining a hierarchical tree structure and storing it in a storage device; and a computer of a specific hierarchy in the hierarchical tree structure is transferred to the computer of the specific hierarchy based on the tree structure stored in the storage device A confirmation step for identifying a computer that is connected and belonging to a lower hierarchy; a determination step for determining whether or not a predetermined program exists in a computer belonging to the identified lower hierarchy; A specific hierarchy if it does not exist on a computer belonging to a lower hierarchy A transmission step of transmitting a predetermined program from a computer to a computer belonging to a lower hierarchy, a copy step of copying a file from a computer of a specific hierarchy to a computer belonging to a lower hierarchy, and a computer of a specific hierarchy comprising: And a starting step of starting a predetermined program existing in a computer belonging to the hierarchy. The predetermined program is a program for causing a computer to execute a confirmation step, a determination step, a transmission step, a copy step, and an activation step.
The copying method according to the sixth aspect of the present invention is such that a computer in a specific hierarchy sends a processing result for a computer belonging to a lower hierarchy to a computer belonging to a higher hierarchy to which the computer of the specific hierarchy is connected. A processing result notification step to be transmitted may be further included. The predetermined program may be a program for causing the computer to further execute a processing result notification step.
The copy method according to the sixth aspect of the present invention may further include a login step in which a computer in a specific hierarchy logs in to a computer belonging to a lower hierarchy before the copy step. The processing result includes whether or not the login is possible, and the predetermined program may be a program for causing the computer to further execute a login step.
The copy method according to the sixth aspect of the present invention may further include a lock step of locking a file copied to a computer belonging to a lower hierarchy by a computer of a specific hierarchy. The predetermined program may be a program for causing the computer to further execute a lock step.
In addition, the copy method according to the sixth aspect of the present invention may further include a lock notification step of notifying the computer belonging to the lower hierarchy of the file lock from the computer of the specific hierarchy before the copy step. Good. The predetermined program may be a program for causing the computer to further execute a lock notification step.
The copying method according to the sixth aspect of the present invention may further include a step in which the distribution host computer unlocks the file.
A storage medium according to a seventh aspect of the present invention is a storage medium storing a first distribution program and a second distribution program for copying files from a distribution host computer to a plurality of computers. One distribution program is a program that causes a distribution host computer to execute a step of defining a hierarchical tree structure having the distribution host computer as a root and having a plurality of computers as nodes and storing them in a storage device. The second distribution program is a computer having a specific hierarchy in a hierarchical tree structure. A confirmation step for identifying a computer connected to a specific hierarchy computer or a distribution host computer and belonging to a lower hierarchy based on the tree structure stored in the storage device to the data storage device and the distribution host computer A step of determining whether the second distribution program exists in the computer belonging to the lower hierarchy, and if the second distribution program does not exist in the computer belonging to the lower hierarchy, the second distribution program is transmitted to the computer belonging to the lower hierarchy A transmission step for copying, a copy step for copying a file to a computer belonging to a lower hierarchy, and a startup step for starting a second distribution program existing in a computer belonging to a lower hierarchy.
[0018]
The program according to the fourth and fifth aspects of the present invention is stored in a storage medium or storage device such as a floppy disk, CD-ROM, magneto-optical disk, semiconductor memory, or hard disk.
[0019]
DETAILED DESCRIPTION OF THE INVENTION
First, the outline of the processing of the present invention will be described with reference to FIG. In the present invention, it is assumed that the distribution host 10 and the distribution destination hosts 14 and 16 are connected by some network. In FIG. 1, it is assumed that the host information stored in the host information storage unit 12 connected to the distribution host 10 can also be used by the distribution destination hosts 14 and 16.
[0020]
First, processing is started on the distribution host 10. Host information is acquired from the host information storage unit 12, a host to which a file is distributed is confirmed, and a tree structure is defined (step S100). The host that is the target of file distribution is confirmed, for example, in the table of the host that holds the file that is the target of distribution.
[0021]
The tree structure is as shown in FIG. FIG. 2 shows an example of a hierarchical tree structure with the distribution host as the root. In the example of FIG. 2, there are six first level hosts connected to the distribution host in the tree structure, and six second level hosts are connected to each of the first level hosts. Yes. This is repeated in the lower layer, and six hosts in the nth layer are connected to each host in the n-1th layer. Note that the last hierarchy may not be six depending on the number of all distribution destination hosts. In general, the root p based on the number of hierarchies q of the total number of destination hosts p1 / qCan be calculated to determine the number of hosts in charge of each host. If the number of tiers is 3, for example, and the total number of distribution destination hosts is 400, x3= 400 solution x is the number of hosts in charge of each host. If x is not an integer, the decimal part is rounded up. In FIG. 1, the number of hierarchies is two.
[0022]
More specifically, the host in charge of each host can be determined by various methods. For example, the distribution destination hosts are arranged in some order. For example, if the number of hosts in charge of each host is 8, the first to eighth hosts are the distribution hosts, and the ninth to sixteenth hosts are the first distribution. It is also possible to allocate such that the host in charge of the destination host and the 17th to 24th are in charge of the second distribution destination host. The process up to allocating the host in charge of each host is included in step S100. If this step S100 is performed in the distribution host 10, the tree structure is logically defined as shown in FIG. 2, and this tree structure is stored in the host information storage unit 12. As described above, the tree structure stored in the host information storage unit 12 can also be used in each distribution destination host.
[0023]
Next, mrcp (Multi-Remote CoPy) process, which is one of the main processes of the present invention, is executed (step S110). Details of the mrcp process will be described later with reference to FIG. Here, an outline will be described in order to explain the entire processing of the present invention.
[0024]
In this mrcp process, first, the host in charge is confirmed (step S112). Here, the distribution host 10 confirms the host in charge of the distribution host 10 from the tree structure. Then, login is attempted to the n-th host 14 in the first hierarchy, which is the host in charge. If you can log in,mrcp moduleIs confirmed (step S114). In the present invention, if the login is not possible, the processing of the host in charge is skipped and the next host in charge is logged in. This can speed up the processing. A login failure is recorded for the host in charge who could not log in, and the distribution host 10 separately processes later. Also in charge host 14mrcp moduleIs not present, the distribution host 10 copies its mrcp module to the responsible host 14.
[0025]
Next, the mrcp module of the distribution host 10 notifies the responsible host 14 of file lock (step S115). This first layer nth host14It is also possible that the same file as the file to be distributed is being edited. Therefore, the user of the host is notified that the file is updated, and the editing process is interrupted. Then, the file is copied (step S116), and the first hierarchy nth host14The file copied to is locked (step S118). Next, the mrcp module of the distribution destination host 14 is activated (step S200).
[0026]
For example, when executed so far, the distribution host 10 records a successful copy for the distribution destination host 14. Further, the distribution host 10 executes Steps S112 to S200 for the remaining responsible hosts. If mrcp processing can be executed in parallel, steps S112 to S200 may be executed in parallel for the host in charge.
[0027]
In the mrcp process of the distribution destination host 14, the responsible host is confirmed from the tree structure in the same manner (step S202). Next, it tries to log in to the second-tier m-th host 16 that is the host in charge. If it is possible to log in, it is confirmed whether or not the mrcp module exists in the responsible host 16 (step S204). A login failure is recorded for the host in charge who could not log in, and the distribution host 10 separately processes later. Also in charge host 16mrcp moduleIs not present, the distribution destination host 14 copies its mrcp module to the responsible host 16.
[0028]
Next, the mrcp module of the distribution destination host 14 notifies the responsible host 16 of file lock (step S205). A case where the same file as the file distributed in the second hierarchy mth host 16 is being edited is also conceivable. Therefore, the user of the host is notified that the file is updated, and the editing process is interrupted. Then, the file is copied (step S206), and the file copied to the second hierarchy m-th host 16 is locked (step S207). Next, the mrcp module of the distribution destination host 16 is activated (step S300).
[0029]
For example, when executed so far, the distribution destination host 14 records success of copying for the distribution destination host 16. Further, the distribution destination host 14 executes Steps S202 to S300 for the remaining responsible hosts. If mrcp processing can be executed in parallel, steps S202 to S300 may be executed in parallel for the host in charge.
[0030]
Similarly, the mrcp module of the distribution destination host 16 confirms the responsible host from the tree structure (step S302). However, in FIG. 1, since the second hierarchy is the lowest layer of the tree structure, there is no host in charge. Therefore, the processing for the host in charge that has been performed in the distribution host 10 and the distribution destination host 14 is skipped. The next process performed by the mrcp module in the distribution destination host 16 is a process of transmitting the mrcp execution result in the distribution destination host 16 to the parent host in the tree structure (step S304). The parent host in the tree structure is a host 14 that is connected to the distribution destination host 16 in the tree structure and belongs to the next higher hierarchy. Also, the mrcp execution result in the distribution destination host 16 is not assigned to the distribution destination host 16, and therefore an empty execution result is transmitted to the distribution destination host 14.
[0031]
The mrcp module of the distribution destination host 14 sequentially receives the execution results from the host in charge of the distribution destination host 14 (step S208). If the execution result is received from all the hosts in charge other than the host that failed to log in, the execution result including the execution result of the distribution destination host 14 is transmitted to the distribution host 10 (step S209). Here, since the execution results received by the distribution destination host 14 are all empty, the execution results of the distribution destination host 14 are substantially transmitted. The execution result is, for example, a record of success or failure for each host in charge.
[0032]
The mrcp module of the distribution host 10 sequentially receives the execution results from the responsible host (step S119). From the execution result of the distribution host 10 and the execution result received from the host in charge, a list of hosts that failed to copy among the distribution destination hosts can be generated. For example, this list is stored in the host information storage unit 12. Later, the distribution host 10 can separately perform copy processing using this list. For this failed host, a file may be distributed by conventional techniques, or the present invention may be executed for a list of failed hosts.
[0033]
The mrcp module of the distribution host 10 does not transmit the execution result because there is no parent host in the tree structure.
[0034]
Files can now be consistent except for the distribution destination host that has failed to copy.
[0035]
Next, the distribution host 10 performs a file lock release process (step S120). Here, the distribution host 10 releases the file lock to each of the distribution destination hosts that have successfully distributed the file (steps S210 and S310), and notifies the user of the distribution destination host of the file lock release (step S210). S220 and S320). As a result, the user of the distribution destination host can perform processing such as editing of the distributed file.
[0036]
Although the number of hierarchies is two in FIG. 1, the present invention is not limited to the number of hierarchies, and the first hierarchy below the first hierarchy in FIG. 1.nIt is possible to provide a plurality of hierarchies that perform the same processing as the th host 14.
[0037]
Now, the details of the mrcp process will be described with reference to FIG. When the mrcp module is activated, first the host in charge of the computer on which the mrcp module is executed is confirmed (step S3). The host in charge is a computer that is connected to this computer in the tree structure and belongs to the next lower hierarchy as described above.
[0038]
Next, it is determined whether all the responsible hosts have been processed or no responsible host exists (step S4). For example, since the distribution destination host 16 in FIG. 1 is the lowest layer host in the tree structure, there is no host in charge. When all the responsible hosts have been processed and when no responsible host exists, the process proceeds to step S27. On the other hand, if there is a responsible host but not all the responsible hosts are processed, an attempt is made to log in to one of the unprocessed responsible hosts (step S5). If the login is not possible, the failure is recorded for the host in charge without logging in to the host in charge again (step S7). This record is later sent to the parent host in the tree structure.
[0039]
On the other hand, if the login is successful, it is determined whether the host in charge has the mrcp module (step S11). If not, the mrcp module of this computer is first copied (step S13). If so, step S13 is skipped. Then, a file lock is notified to the host in charge (step S15), the file to be distributed is copied (step S17), and the file is further locked (step S19). Thereafter, the mrcp module in the host in charge is activated (step S21).
[0040]
Then, success is recorded for the host in charge (step S23). The recording of success for the host in charge can be performed at any time as long as it is performed after the file copy (step S17). This record is later sent to the parent host in the tree structure.
[0041]
After step S23, the process returns to step S4 again. Steps S5 to S23 are repeated until all the hosts in charge are processed.
[0042]
If all the responsible hosts have been processed and there is no responsible host, the process branches to step S27. In this step S27, when the responsible host exists, the process waits until the execution result of the mrcp module is received from the responsible host. Here, for convenience of explanation, after processing all the hosts in charge, the process waits until the execution result of the mrcp module is received from the host in charge. The execution result may be received from the host in charge. If the host in charge does not exist, that is, in the case of the lowest-layer computer in the tree structure, there is no execution result to be received, so this step S27 is skipped.
[0043]
Then, if there is an mrcp execution result of the computer and the responsible host, the execution results from each responsible host are collected, and if there is a parent host, it is transmitted to the parent host (step S29). The execution result is, for example, a set of records indicating which hosts are successes or failures. In the case of the distribution host 10, since there is no parent host, only the execution results are collected. In the distribution host 10, the lock release processing is performed for the successful distribution destination host and the processing is separately performed for the unsuccessful distribution destination host based on the execution result.
[0044]
Various modifications can be made to the embodiment of the present invention described above. For example, the distribution host 10 has performed a process of releasing the lock of the distribution destination host for which all the copy distributions have been successful. For example, the execution result reception in FIG. 1 (steps S208 and S119).)In response to the above, it is possible to modify the mrcp module so as to execute the unlocking process on the transmission source of the execution result. The processing in the mrcp module is complicated, but the processing load on the distribution host 10 is reduced. Also, the lock can be released early. Since the file lock can be released at a higher speed than the file copy, the burden on the distribution host is not great even in the embodiment described above.
[0045]
In the above-described embodiment, the mrcp module is a single module, but a plurality of modules can realize the same function.
[0046]
【The invention's effect】
As described above, according to the present invention, it is possible to provide a technique for speeding up the processing when copying a file from a distribution host computer to a plurality of computers.
[Brief description of the drawings]
FIG. 1 is a diagram showing a system configuration and a processing flow in the present invention.
FIG. 2 is a schematic diagram showing an example of a hierarchical tree structure.
FIG. 3 is a flowchart of mrcp processing.
FIG. 4 is a schematic diagram for explaining a conventional technique.
[Explanation of symbols]
10 Host for distribution 12 Host information storage
14,16 Distribution destination host

Claims (7)

配布ホスト・コンピュータから複数のコンピュータにファイルをコピーするコピー方法であって、
前記配布ホスト・コンピュータが、当該配布ホスト・コンピュータを根とし且つ前記複数のコンピュータをノードとする、階層化されたツリー構造を定義し、記憶装置に格納するステップと、
前記階層化されたツリー構造における特定の階層のコンピュータが、前記記憶装置に格納された前記ツリー構造に基づき、当該特定の階層のコンピュータに接続され且つ下位の階層に属するコンピュータを特定する確認ステップと、
前記下位の階層に属するコンピュータが存在する場合、
前記特定の階層のコンピュータが、特定された前記下位の階層に属するコンピュータに所定のプログラムが存在するか判定する判定ステップと、
前記所定のプログラムが前記下位の階層に属するコンピュータに存在しない場合、前記特定の階層のコンピュータから前記下位の階層に属するコンピュータに前記所定のプログラムを送信する送信ステップと、
前記特定の階層のコンピュータから前記下位の階層に属するコンピュータに前記ファイルをコピーするコピー・ステップと、
前記特定の階層のコンピュータが、前記下位の階層に属するコンピュータに存在する前記所定のプログラムを起動する起動ステップと、
を含み、
前記所定のプログラムが、前記確認ステップと前記判定ステップと前記送信ステップと前記コピー・ステップと前記起動ステップとをコンピュータに実行させるためのプログラムである、
コピー方法。
A copy method for copying a file from a distribution host computer to a plurality of computers,
The distribution host computer defining a hierarchical tree structure having the distribution host computer as a root and the plurality of computers as nodes, and storing in a storage device;
A confirmation step in which a computer in a specific hierarchy in the hierarchical tree structure is connected to the computer in the specific hierarchy and belongs to a lower hierarchy based on the tree structure stored in the storage device; ,
If there is a computer belonging to the lower hierarchy,
A determination step of determining whether a predetermined program exists in a computer belonging to the specified lower hierarchy, wherein the computer of the specific hierarchy;
A transmission step of transmitting the predetermined program from a computer of the specific hierarchy to a computer belonging to the lower hierarchy if the predetermined program does not exist in the computer belonging to the lower hierarchy;
A copy step of copying the file from the computer of the specific hierarchy to a computer belonging to the lower hierarchy;
A startup step in which the computer of the specific hierarchy starts the predetermined program existing in the computer belonging to the lower hierarchy;
Including
The predetermined program is a program for causing a computer to execute the confirmation step, the determination step, the transmission step, the copy step, and the activation step.
Copy method.
前記特定の階層のコンピュータが、前記下位の階層に属するコンピュータに対する処理結果を、前記特定の階層のコンピュータが接続され且つより上位の階層に属するコンピュータに送信する処理結果通知ステップをさらに含み、
前記所定のプログラムが、前記処理結果通知ステップをコンピュータにさらに実行させるためのプログラムであることを特徴とする
請求項1記載のコピー方法。
A process result notifying step in which the computer of the specific hierarchy further transmits a process result for the computer belonging to the lower hierarchy to a computer connected to the computer of the specific hierarchy and belonging to the higher hierarchy;
2. The copying method according to claim 1, wherein the predetermined program is a program for causing a computer to further execute the processing result notification step.
前記コピー・ステップの前に、前記特定の階層のコンピュータが前記下位の階層に属するコンピュータにログインするログイン・ステップをさらに含み、
前記処理結果は当該ログインの可否を含み、
前記所定のプログラムが、前記ログイン・ステップをコンピュータにさらに実行させるためのプログラムであることを特徴とする
請求項2記載のコピー方法。
Before the copying step, further comprising a login step in which the computer of the specific hierarchy logs into a computer belonging to the lower hierarchy;
The processing result includes whether or not the login is possible,
3. The copy method according to claim 2, wherein the predetermined program is a program for causing a computer to further execute the login step.
前記特定の階層のコンピュータにより前記下位の階層に属するコンピュータにコピーされた前記ファイルをロックするロック・ステップをさらに含み、
前記所定のプログラムが、前記ロック・ステップをコンピュータにさらに実行させるためのプログラムであることを特徴とする
請求項1記載のコピー方法。
A lock step of locking the file copied to the computer belonging to the lower hierarchy by the computer of the specific hierarchy;
2. The copy method according to claim 1, wherein the predetermined program is a program for causing a computer to further execute the lock step.
前記コピー・ステップの前に、前記ファイルのロックを前記特定の階層のコンピュータから前記下位の階層に属するコンピュータに通知するロック通知ステップをさらに含み、
前記所定のプログラムが、前記ロック通知ステップをコンピュータにさらに実行させるためのプログラムであることを特徴とする
請求項4記載のコピー方法。
Prior to the copying step, further comprising a lock notification step of notifying the lock of the file from the computer of the specific hierarchy to a computer belonging to the lower hierarchy,
5. The copying method according to claim 4, wherein the predetermined program is a program for causing a computer to further execute the lock notification step.
前記配布ホスト・コンピュータが前記ファイルのロックを解除するステップ
をさらに含む請求項5記載のコピー方法。
6. The copying method according to claim 5, further comprising the step of releasing the lock of the file by the distribution host computer.
配布ホスト・コンピュータから複数のコンピュータにファイルをコピーするための第1配布プログラム及び第2配布プログラムを格納した記憶媒体であって、
前記第1配布プログラムは、
前記配布ホスト・コンピュータに、
当該配布ホスト・コンピュータを根とし且つ前記複数のコンピュータをノードとする、階層化されたツリー構造を定義し、記憶装置に格納するステップ、
および、第2配布プログラムを実行するステップ
を実行させ、
前記第2配布プログラムは、
前記階層化されたツリー構造における特定の階層のコンピュータ及び前記配布ホスト・コンピュータに、
前記記憶装置に格納された前記ツリー構造に基づき、前記特定の階層のコンピュータ又は前記配布ホスト・コンピュータに接続され、且つ下位の階層に属するコンピュータを特定する確認ステップと、
前記下位の階層に属するコンピュータが存在する場合、
特定された前記下位の階層に属するコンピュータに前記第2配布プログラムが存在するか判定する判定ステップと、
前記第2配布プログラムが前記下位の階層に属するコンピュータに存在しない場合、前記下位の階層に属するコンピュータに前記第2配布プログラムを送信する送信ステップと、
前記下位の階層に属するコンピュータに前記ファイルをコピーするコピー・ステップと、
前記下位の階層に属するコンピュータに存在する前記第2配布プログラムを起動する起動ステップとを実行させる
記憶媒体。
A storage medium storing a first distribution program and a second distribution program for copying files from a distribution host computer to a plurality of computers,
The first distribution program is:
On the distribution host computer,
Defining a hierarchical tree structure having the distribution host computer as a root and the plurality of computers as nodes, and storing the tree structure in a storage device;
And executing the step of executing the second distribution program ,
The second distribution program is:
A specific hierarchy of computers in the hierarchical tree structure and the distribution host computer;
A step of identifying a computer connected to the specific hierarchy computer or the distribution host computer and belonging to a lower hierarchy based on the tree structure stored in the storage device;
If there is a computer belonging to the lower hierarchy,
A determination step of determining whether the second distribution program exists in a computer belonging to the specified lower hierarchy;
A transmission step of transmitting the second distribution program to a computer belonging to the lower hierarchy if the second distribution program does not exist in the computer belonging to the lower hierarchy;
A copy step of copying the file to a computer belonging to the lower hierarchy;
A storage medium that executes an activation step of activating the second distribution program existing in a computer belonging to the lower hierarchy.
JP33094099A 1999-11-22 1999-11-22 Hierarchical copy method and storage medium Expired - Fee Related JP3625718B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33094099A JP3625718B2 (en) 1999-11-22 1999-11-22 Hierarchical copy method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33094099A JP3625718B2 (en) 1999-11-22 1999-11-22 Hierarchical copy method and storage medium

Publications (2)

Publication Number Publication Date
JP2001147869A JP2001147869A (en) 2001-05-29
JP3625718B2 true JP3625718B2 (en) 2005-03-02

Family

ID=18238133

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33094099A Expired - Fee Related JP3625718B2 (en) 1999-11-22 1999-11-22 Hierarchical copy method and storage medium

Country Status (1)

Country Link
JP (1) JP3625718B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008040579A (en) * 2006-08-02 2008-02-21 Sony Corp COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM
JP5092790B2 (en) * 2008-02-22 2012-12-05 日本電気株式会社 Software update management system and agent program

Also Published As

Publication number Publication date
JP2001147869A (en) 2001-05-29

Similar Documents

Publication Publication Date Title
JP3197789B2 (en) Method and system for requesting manipulation of a directory in a distributed file system
CN101351772B (en) Method and system for sharing files between different virtual machine images
CN102713856B (en) Method and system for restoring a file system within a computer system
JP4557975B2 (en) Reassign ownership in a non-shared database system
CN100481009C (en) System, apparatus and method for transitioning to a virtual machine based on a privilege level of guest software
EP3674909B1 (en) Data transaction processing method, device, and electronic device
CN101576830B (en) Deadlock detection method and device of database transaction lock mechanism
JP4993905B2 (en) Server queuing system and method
CN114637475A (en) Distributed storage system control method and device and readable storage medium
CN102355473A (en) Locking control system in distributed computing environment and method
CA2633309A1 (en) Commitment of transactions in a distributed system
JP6195834B2 (en) System and method for persisting transaction records in a transactional middleware machine environment
JPH061447B2 (en) How to back up the database
JPH0954754A (en) Customer information control system and method in loosely coupled parallel processing environment
US20050044545A1 (en) Method, system, and computer program product for automatic software distribution and installation in a multi-tiered computer network
CN116821058B (en) Metadata access method, device, equipment and storage medium
JPH11506552A (en) Method for accessing files in a multiprocessor computer system using pipes and fifos
CN110941591A (en) A file deletion method, device, device and readable storage medium
JP3625718B2 (en) Hierarchical copy method and storage medium
CN100507862C (en) Resource management for data storage services
US12517721B2 (en) Mechanisms to implement controlled upgrades
US7904419B1 (en) Managing allocation of temporary and permanent files in a database system
US6842900B2 (en) Information processing apparatus executing processing corresponding to new thread by reusing arrangement for previous thread
CN111813501A (en) A data deletion method, device, device and storage medium
CN112434007A (en) Database transaction group submitting method, device, equipment and storage medium

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040309

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040507

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040608

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040806

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20041130

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041130

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071210

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081210

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091210

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091210

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101210

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101210

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111210

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121210

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121210

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131210

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees