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
JP4380658B2 - Shared disk device - Google Patents
[go: Go Back, main page]

JP4380658B2 - Shared disk device - Google Patents

Shared disk device Download PDF

Info

Publication number
JP4380658B2
JP4380658B2 JP2006134689A JP2006134689A JP4380658B2 JP 4380658 B2 JP4380658 B2 JP 4380658B2 JP 2006134689 A JP2006134689 A JP 2006134689A JP 2006134689 A JP2006134689 A JP 2006134689A JP 4380658 B2 JP4380658 B2 JP 4380658B2
Authority
JP
Japan
Prior art keywords
command
client
data
nfs
scsi
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
JP2006134689A
Other languages
Japanese (ja)
Other versions
JP2006221675A (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 JP2006134689A priority Critical patent/JP4380658B2/en
Publication of JP2006221675A publication Critical patent/JP2006221675A/en
Application granted granted Critical
Publication of JP4380658B2 publication Critical patent/JP4380658B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

本発明は多量のデータを記憶できるディスク装置に係り、特にホストとのインタフェースに高速データ転送が可能なファイバチャネルを備え、複数台のホストから共有されるディスク装置に関する。   The present invention relates to a disk device that can store a large amount of data, and more particularly to a disk device that includes a fiber channel capable of high-speed data transfer at an interface with a host and is shared by a plurality of hosts.

磁気ディスク装置或いはディスクアレイ装置とホストコンピュータを接続する手段としては、SCSIを使用する事が多い。   SCSI is often used as a means for connecting a magnetic disk device or disk array device to a host computer.

近年、蓄積するデータ量の増加に伴い、ユーザのシステムではファイルサーバの設置や複数のサーバとクライアントをネットワーク接続する形態が普通となってきている。この様な状況において、あるメーカのデータベースソフトを使用して、別のメーカのワークフローソフトを使用するといった場合には各メーカのソフトが動くクライアントを各々用意せざるを得ない。ところが、SCSIのインタフェースではホストのファイルシステムにより磁気ディスク上のデータの管理方法が異なるため、異なるメーカのクライアントでは磁気ディスクの共有が難しい。   In recent years, with an increase in the amount of data to be accumulated, a user's system is generally configured to install a file server or connect a plurality of servers and clients to a network. In such a situation, when using the database software of a certain manufacturer and using the workflow software of another manufacturer, it is necessary to prepare clients that run the software of each manufacturer. However, since the management method of data on the magnetic disk differs depending on the host file system in the SCSI interface, it is difficult for clients of different manufacturers to share the magnetic disk.

それに対してNFSは、ネットワークのTCP/IPを利用し異なるメーカのクライア
ントからファイルの共有を実現している。しかしながら、メーカに依存しないファイル操作のコマンドを使用する事から、サーバでマッピングするために使用できないクライアント特有のファイル属性があったり、プロトコルのオーバーヘッドが大きいのでデータ転送性能が低いという問題がある。
NFS, on the other hand, uses a network TCP / IP to share files from clients from different manufacturers. However, since a file operation command which does not depend on the manufacturer is used, there are problems such as a client-specific file attribute which cannot be used for mapping by the server, and a protocol overhead is large, resulting in low data transfer performance.

このように複数のプロトコルの各特徴を利用するため、異種プロトコル混在型の光ネットワークが提案されている。特開平9-51322号公報では複数のプロトコ
ル各々に対して別の光波長を割り当てることにより、同一の光ネットワークに異種プロトコルを混在可能としている。
Thus, in order to use each feature of a plurality of protocols, a heterogeneous protocol mixed type optical network has been proposed. In Japanese Patent Laid-Open No. 9-51322, different optical wavelengths are assigned to each of a plurality of protocols, so that different protocols can be mixed in the same optical network.

また、特開平10-149334号公報ではパーソナルコンピュータのPCIバスにファイバチャネルインターフェイスアダプタを接続する手段を開示している。この様にTCP/IPのプロトコルを使用することで従来のイーサネット(イーサネットは登録商標)経由のNFSと同様に制御することも可能である。   Japanese Patent Laid-Open No. 10-149334 discloses means for connecting a fiber channel interface adapter to a PCI bus of a personal computer. In this way, by using the TCP / IP protocol, it is possible to perform control in the same manner as NFS via conventional Ethernet (Ethernet is a registered trademark).

特開平9-51322号公報JP-A-9-51322 特開平10-149334号公報JP-A-10-149334

上記のようにNFSを使用することにより大容量の磁気ディスクの共用化が可能になるが、共用化をした場合にはデータ転送性能が低下する事と各ホスト固有のファイル属性がそのままでは使用できなくなるという問題が残る。特開平9-5132
2号公報に記載の様に光ネットワークを使用して複数のプロトコルに別の光波長を割り当てる方法を使用すれば、TCP/IP(すなわちNFS)とSCSIのプロトコルを同
時に使用できるので、使用目的に応じて使い分ける事により、前記問題点を解決できる。
As described above, using NFS makes it possible to share a large-capacity magnetic disk. However, if shared, the data transfer performance will be degraded and the file attributes unique to each host can be used as they are. The problem of disappearing remains. JP-A-9-5132
If you use the method of assigning different optical wavelengths to multiple protocols using an optical network as described in Publication No. 2, you can use TCP / IP (i.e. NFS) and SCSI protocols at the same time. The above-mentioned problems can be solved by using them accordingly.

しかしながら、光波長を割り当てる方法は特殊な光波長のフィルタが必要であるとともに、一般的な規格ではないために使用範囲が制限される。   However, the method of assigning the optical wavelength requires a filter with a special optical wavelength and is not a general standard, so that the range of use is limited.

また、ファイバチャネルインターフェイスを使用すれば、TCP/IP(すなわちNFS
)とSCSIのプロトコルを使用可能であり、ANSIによる規格であるため広く利用可
能であるが、特開平10-149334号公報には複数のプロトコルを同時に使用するこ
とまでは規定されておらず、各ホスト固有の専用ファイルへTCP/IPとSCSIとの共有ファイルとしてそのままアクセスできる様にすると、データが破壊されてしまう問題が生じる。
Also, if you use a Fiber Channel interface, TCP / IP (i.e. NFS
) And SCSI protocols can be used and are widely available because they are ANSI standards. However, Japanese Patent Laid-Open No. 10-149334 does not define the use of multiple protocols at the same time. If a host-specific dedicated file can be accessed as it is as a shared file of TCP / IP and SCSI, there will be a problem of data corruption.

本願発明の目的は、TCP/IP(すなわちNFS)とSCSIとのプロトコルを同時に且つ
各ホスト固有のファイル属性も使用することができ、さらに各ホスト固有のファイル属性を使用する場合に誤って異なるファイルにアクセスしてもデータを破壊することがない共有ディスク処理装置を提供することにある。
The object of the present invention is to use TCP / IP (that is, NFS) and SCSI protocols at the same time and to use file attributes specific to each host. It is an object of the present invention to provide a shared disk processing device that does not destroy data even when accessed.

また、本願発明の他の目的は、ANSIの規格に準拠した上で複数のプロトコルを同時に使用可能とする共有ディスク処理装置を提供することにある。   Another object of the present invention is to provide a shared disk processing apparatus that can simultaneously use a plurality of protocols while conforming to the ANSI standard.

上記目的を達成するために本発明では、TCP/IPとSCSIのプロトコルを識別する手段と、SCSIコマンドでアクセスするデータとNFSコマンドとでアクセスするデ
ータとにパーティションとを設け誤ったアクセスによるデータ破壊を防止する。
In order to achieve the above object, the present invention provides a means for identifying TCP / IP and SCSI protocols, a partition for data accessed by the SCSI command and data accessed by the NFS command, and data destruction due to erroneous access. To prevent.

また、TCP/IPとSCSIのプロトコルを識別する手段と、この識別手段でTCP/IPと判定した場合にNFSのコマンドであるか否かを判定する手段と、この判定手段でNFSと判定した場合にNFSファイルシステムの処理を実施してSCSIコマンドに変換して磁気ディスクへアクセスする手段と、前記識別手段でSCSIと判定した場合にSCSIコマンドを用いて磁気ディスクへアクセスする手段を使用する。   Also, means for identifying the protocol of TCP / IP and SCSI, means for determining whether or not the command is an NFS command when this identification means is determined to be TCP / IP, and a case where the determination means determines NFS Further, a means for accessing the magnetic disk by converting the NFS file system into a SCSI command is used, and a means for accessing the magnetic disk using the SCSI command when the identification means determines SCSI.

更に、前記TCP/IPとSCSIのプロトコルを識別する手段としてファイバチャネルのヘッダ情報のソースIDを参照する手段と、ソースIDから使用するプロトコルを判定するテーブルを備える手段を使用する。   Further, as means for identifying the TCP / IP and SCSI protocols, means for referring to the source ID of the Fiber Channel header information and means for providing a table for determining the protocol to be used from the source ID are used.

更に、前記NFSのコマンドであるか否かを判定する手段にてNFSでないと判定した場合にTelnetの処理を実施して磁気ディスクを制御するプロセッサにリモートログインする手段を使用する。   Further, when the means for determining whether or not the command is an NFS command, it is determined that the command is not NFS, and a means for executing a Telnet process and remotely logging in to a processor that controls the magnetic disk is used.

本発明によれば、同一のファイバチャネルに接続したクライアントから必要に応じてNFSとSCSIコマンドを使い分けて同一のファイルサーバへアクセスできるので、クライアント間でデータを共有する場合はNFSコマンドを使用し、データ
を共有せずに高速にアクセスしたい場合はSCSIコマンドを使用できる。
According to the present invention, a client connected to the same Fiber Channel can access the same file server by using the NFS and SCSI commands as needed, so when sharing data between clients, use the NFS command, You can use SCSI commands if you want fast access without sharing data.

以下、本発明の一実施例を図1と図2を使用して説明する。図1はファイルサーバ101と上位装置であるクライアント102,103とをファイバチャネルインターフェイス105を介して接続したシステム構成と処理手順を示す図である。また、図2はファイバチャネルで使用されるヘッダの構造図である。   An embodiment of the present invention will be described below with reference to FIGS. FIG. 1 is a diagram showing a system configuration and processing procedure in which a file server 101 and clients 102 and 103 which are host devices are connected via a fiber channel interface 105. FIG. 2 is a structural diagram of a header used in the fiber channel.

先ず、図1の構成を説明する。一般に、ホストたるクライアントとサーバのと接続にはSCSIやイーサネットを使用することが多いが、これらに代わり、最近ファイバチャネルが注目されている。ファイバチャネルは光ファイバか銅線を使用して100MB/sでデータを転送する規格であり、物理層と下位の論理層を規定して
いる。上位の論理層に関しては枠組みだけであり、ファイバチャネルの中にSCSI
-3やTCP/IPのプロトコルを通すことが可能であるため、例えばSCSI-3のプロトコルを使用することで従来のSCSIの磁気ディスクの様に制御することができる。このファイバチャネルの光ケーブル104を経由してファイルサーバ101はクライアント102とクライアント103に接続される。
First, the configuration of FIG. 1 will be described. In general, SCSI and Ethernet are often used for connection between a client and a server as a host, but recently, fiber channel has been attracting attention instead. Fiber Channel is a standard for transferring data at 100MB / s using optical fiber or copper wire, and defines the physical layer and the lower logical layer. For the upper logical layer, it is only a framework, and SCSI in Fiber Channel
-3 and TCP / IP protocols can be passed through, for example, the SCSI-3 protocol can be used to control like a conventional SCSI magnetic disk. The file server 101 is connected to the client 102 and the client 103 via the fiber channel optical cable 104.

コマンドインターフェイスであるファイバチャネルインタフェース105は光ケーブル104の光信号を電気信号に変換するとともにクライアントからのヘッダ情報からファイルサーバ101宛てのデータ(コマンド)を選別する。また、逆にクライアント102とクライアント103に対して相手先をヘッダ情報に入れ、電気信号を光信号に変換して光ケーブル104へ送り出す。プロトコル判定部106はヘッダ情報の内容から送られて来たデータ(コマンド)のプロトコル
がSCSIかTCP/IPかを識別する手段である。
The fiber channel interface 105, which is a command interface, converts the optical signal of the optical cable 104 into an electrical signal and selects data (command) addressed to the file server 101 from header information from the client. On the contrary, the other party is put into the header information for the client 102 and the client 103, and the electric signal is converted into an optical signal and sent out to the optical cable 104. The protocol determination unit 106 is means for identifying whether the protocol of data (command) sent from the contents of the header information is SCSI or TCP / IP.

処理判定部107はTCP/IPのプロトコルで送られて来たデータ(コマンド)がNFSのコマンドか、NFSコマンド以外かを判定する手段である。NFS処理部108
はNFSコマンドを受け取り、独自のファイルシステムに従ってSCSIコマンドへ変
換し、記録媒体である磁気ディスク110へデータを書き込む、あるいは磁気ディスク110に記録されているデータを読み出す。磁気ディスクインタフェース109はSCSIコマンドで磁気ディスク110にデータを書き込む、あるいはデータを読み出すためのインタフェースである。
The processing determination unit 107 is means for determining whether the data (command) sent by the TCP / IP protocol is an NFS command or other than an NFS command. NFS processing unit 108
Receives an NFS command, converts it into a SCSI command according to its own file system, writes data to the magnetic disk 110 as a recording medium, or reads data recorded on the magnetic disk 110. The magnetic disk interface 109 is an interface for writing data to or reading data from the magnetic disk 110 using a SCSI command.

クライアント102からSCSIコマンドでファイルサーバ101のデータを読み出す場合の処理を以下に示す。クライアント102はSCSIのREADコマンドを光ケーブル104経由でファイルサーバ101のファイバチャネルインタフェース105へ送る。ファイバチャネルインタフェース105では図2のデスティネーションID202の内容をチェックしてファイルサーバ101宛てのREADコマンドを選別し、プロトコル判定部106へREADコマンドを受け渡す。   Processing when data in the file server 101 is read from the client 102 with a SCSI command will be described below. The client 102 sends a SCSI READ command to the fiber channel interface 105 of the file server 101 via the optical cable 104. The fiber channel interface 105 checks the contents of the destination ID 202 in FIG. 2 to select a READ command addressed to the file server 101 and transfers the READ command to the protocol determination unit 106.

プロトコル判定部106では図2のプロトコル203がSCSIかTCP/IPかをチェックし、ここではSCSIのため磁気ディスクインタフェース109へREADコマンドを渡す。SCSIのREADコマンドではファイル名等の位置をクライアント102で管理しているので、READコマンドのパラメタとしては磁気ディスク上のブロック位置が単純に指定されるだけである。   The protocol determination unit 106 checks whether the protocol 203 in FIG. 2 is SCSI or TCP / IP. In this case, a READ command is passed to the magnetic disk interface 109 for SCSI. In the SCSI READ command, the position of the file name and the like is managed by the client 102. Therefore, the block position on the magnetic disk is simply specified as the parameter of the READ command.

磁気ディスクインタフェース109は磁気ディスク110へREADコマンドを発行してREADコマンドで指定されたブロックのデータを読み出す。読み出したデータは磁気ディスクインタフェース109からファイバチャネルインタフェース105へ送られ、ファイバチャネルインタフェース105にてソースID201がファイルサーバ101、デスティネーションID202がクライアント102、プロトコル203がSCSIのヘッダ情報を付加して光ケーブル104へ送り出される。クライアント102はデスティネーションID202がクライアント102宛てのデータを光ケーブル104から拾い上げて、READコマンドに対して読み出したデータを受け取る。   The magnetic disk interface 109 issues a READ command to the magnetic disk 110 and reads the data of the block specified by the READ command. The read data is sent from the magnetic disk interface 109 to the fiber channel interface 105. The fiber channel interface 105 adds the header information in which the source ID 201 is the file server 101, the destination ID 202 is the client 102, and the protocol 203 is SCSI. Sent out. The client 102 picks up the data whose destination ID 202 is addressed to the client 102 from the optical cable 104, and receives the data read in response to the READ command.

次にクライアント103からNFSコマンドでファイルサーバ101のデータを読み出す場合の処理を以下に示す。NFSでファイルサーバ上のデータを使用する
には、予めファイルサーバ101がクライアント103へ公開するファイルをエキスポートし、クライアント103がNFSマウントする必要があるが、ここでは
説明を省略する。クライアント103はTCP/IPを使用してNFSのREADコマンドを
発行し、光ケーブル104経由でファイルサーバ101のファイバチャネルインタフェース105へ送る。ファイバチャネルインタフェース105では図2のデスティネーションID202の内容をチェックしてファイルサーバ101宛てのREADコマンドを選別し、プロトコル判定部106へREADコマンドを渡す。
Next, processing when data in the file server 101 is read from the client 103 by using an NFS command is shown below. In order to use data on a file server with NFS, it is necessary to export a file that the file server 101 discloses to the client 103 in advance, and the client 103 needs to NFS mount, but the description is omitted here. The client 103 issues an NFS READ command using TCP / IP and sends it to the fiber channel interface 105 of the file server 101 via the optical cable 104. The fiber channel interface 105 checks the contents of the destination ID 202 in FIG. 2 to select a READ command addressed to the file server 101 and passes the READ command to the protocol determination unit 106.

プロトコル判定部106では図2のプロトコル203の内容をチェックし、ここではTCP/IPのため処理判定部107へREADコマンドを渡す。処理判定部107では渡されたコマンドがNFSコマンドか否かを判定する。この場合のREADコマン
ドはNFSコマンドの一つであるため、NFS処理部108へREADコマンドを更に渡す
。NFSのREADコマンドではファイル名等の位置をNFS処理部108が管理しているので、READコマンドのパラメタとしてはファイル名あるいはファイル名の代わりとなるファイルディスクリプタとファイルの先頭からのオフセットが指定される
。NFS処理部108はNFSのREADコマンドをSCSIのREADコマンドへ変換し、ファイル名とファイル先頭からのオフセットを使用して磁気ディスク上のブロック位置を算出して、磁気ディスクインタフェース109へSCSIのREADコマンドとブロック位置を渡す。
The protocol determination unit 106 checks the contents of the protocol 203 in FIG. 2 and passes a READ command to the processing determination unit 107 for TCP / IP here. The processing determination unit 107 determines whether the passed command is an NFS command. Since the READ command in this case is one of the NFS commands, the READ command is further passed to the NFS processing unit 108. Since the NFS processing unit 108 manages the position of the file name and the like in the NFS READ command, the file command or the file descriptor serving as a substitute for the file name and the offset from the beginning of the file are specified as the parameters of the READ command. . The NFS processing unit 108 converts the NFS READ command into a SCSI READ command, calculates the block position on the magnetic disk using the file name and the offset from the beginning of the file, and sends the SCSI READ command to the magnetic disk interface 109. And pass the block position.

磁気ディスクインタフェース109は磁気ディスク110へREADコマンドを発行してREADコマンドで指定されたブロックのデータを読み出す。読み出したデータは磁気ディスクインタフェース109からNFS処理部108へ送られ、NFS処理部108にてNFSのデータフォーマットに変換し、ファイバチャネルインタフェ
ース105へ送る。ファイバチャネルインタフェース105にてソースID201がファイルサーバ101、デスティネーションID202がクライアント103、プロトコル203がTCP/IPのヘッダ情報を付加して光ケーブル104へ送り出される。クライアント103はデスティネーションID202がクライアント103宛てのデータを光ケーブル104から拾い上げて、READコマンドに対して読み出したデータを受け取る。
The magnetic disk interface 109 issues a READ command to the magnetic disk 110 and reads the data of the block specified by the READ command. The read data is sent from the magnetic disk interface 109 to the NFS processing unit 108, converted into the NFS data format by the NFS processing unit 108, and sent to the fiber channel interface 105. In the fiber channel interface 105, the source ID 201 is added to the file server 101, the destination ID 202 is added to the client 103, and the protocol 203 is added to the TCP / IP header information and sent to the optical cable 104. The client 103 picks up the data whose destination ID 202 is addressed to the client 103 from the optical cable 104, and receives the data read in response to the READ command.

以上説明したように本実施例によれば、同一のファイバチャネルに接続したクライアントから必要に応じてNFSとSCSIコマンドを使い分けて同一のファイルサーバへアクセスできるので、クライアント間でデータを共有する場合はNFSコマ
ンドを使用し、データを共有せずに高速にアクセスしたい場合はSCSIコマンドを使用できる。尚、本実施例に於いてはクライアント102からSCSI、クライアント103からNFSでのデータのやり取りを説明したが、いずれのクライアントで
いずれのファイルシステム、若しくは双方のファイルシステムを使用してもよい
As described above, according to this embodiment, clients connected to the same Fiber Channel can access the same file server using NFS and SCSI commands as needed, so when sharing data between clients, If you use NFS commands and want to access them quickly without sharing data, you can use SCSI commands. In the present embodiment, the exchange of data from the client 102 to SCSI and from the client 103 to NFS has been described. However, any file system or both file systems may be used by any client.

次に図3を使用して本発明による異種ファイルシステムによるデータ破壊防止のためにクライアント(プロトコル)毎に使用する磁気ディスクの位置をパーティションにより仕切り、パーティション毎に識別子を設けた実施例を説明する。   Next, an embodiment in which the position of the magnetic disk used for each client (protocol) is partitioned by partition and an identifier is provided for each partition will be described with reference to FIG. .

図3は光ケーブル104に接続されたクライアントを管理するためのテーブルを示す。項目301は光ケーブル104に接続しているクライアントのID、項目302は各クライアントの使用しているプロトコルがTCP/IPすなわちNFSかSCSIかの情報、項目303は各クライアント(プロトコル)の使用する磁気ディスク110のパーティションの識別子を表している。TCP/IPは共用のファイルシステムであるので同一のパーティション識別子であり、SCSIは専用のファイルシステムであるので同じSCSI同士でも異なったパーティション識別子となる。   FIG. 3 shows a table for managing clients connected to the optical cable 104. Item 301 is an ID of a client connected to the optical cable 104, item 302 is information on whether the protocol used by each client is TCP / IP, that is, NFS or SCSI, and item 303 is a magnetic disk used by each client (protocol). 110 represents an identifier of a partition. Since TCP / IP is a shared file system, it has the same partition identifier, and since SCSI is a dedicated file system, the same SCSI also has different partition identifiers.

まず、プロトコル判定部106にて図2のプロトコル203とソースID201が図3のクライアントID301とプロトコル302に適合するかをチェックすることで、誤ったプロトコルによるアクセスを防止する。そして、NFSの場合はNFS処理部108にて磁気ディスク110上のブロック位置とプロトコル302がTCP/IPであるパーティション303のブロック位置をチェックすることにより、誤ったパーティションへのアクセスを防止する。また、SCSIの場合にはプロトコル判定部106にて磁気ディスク110上のブロック位置とプロトコル302がSCSIであるパーティション303のブロック位置をチェックすることにより、誤ったパーティションへのアクセスを防止する。   First, the protocol determination unit 106 checks whether the protocol 203 and the source ID 201 in FIG. 2 are compatible with the client ID 301 and the protocol 302 in FIG. In the case of NFS, the NFS processing unit 108 checks the block position on the magnetic disk 110 and the block position of the partition 303 whose protocol 302 is TCP / IP, thereby preventing access to an erroneous partition. In the case of SCSI, the protocol determination unit 106 checks the block position on the magnetic disk 110 and the block position of the partition 303 whose protocol 302 is SCSI, thereby preventing access to an erroneous partition.

この様にして、誤ったパーティションへのアクセスをチェックできるので、パーティションとプロトコルの不整合により発生するデータ破壊を防止することができる。   In this way, since access to an erroneous partition can be checked, data corruption caused by partition and protocol mismatch can be prevented.

尚、一つのクライアントが一つのプロトコルのみを使用する(例えばこの図に示すクライアント103)のであれば、ファイバチャネルインターフェイス105からのヘッダ情報が不十分でプロトコル情報が欠落しており、プロトコル判定部106で判定できない場合であっても、ソースID201から項目301のどのクライアントかを判定し、クライアント103であれば該当する項目302からプロトコルはTCP/IPであると判定できる。   If one client uses only one protocol (for example, the client 103 shown in this figure), the header information from the fiber channel interface 105 is insufficient and the protocol information is missing. Even if it is not possible to determine with this, it is determined which client of the item 301 is from the source ID 201, and if it is the client 103, the protocol can be determined from the corresponding item 302 to be TCP / IP.

以下、本発明の別の実施例を図4を使用して説明する。図4はファイルサーバの別の構成を示す図である。   Hereinafter, another embodiment of the present invention will be described with reference to FIG. FIG. 4 is a diagram showing another configuration of the file server.

ファイバチャネルアダプタ401は光ケーブル104とバス407を接続するアダプタであり、光ケーブル104のデータ(コマンド)をバス407経由でメモリ403へ書き込む、あるいはメモリ403のデータをバス407経由で光ケーブル104へ送り出す。CPU402は、ROM(Read Only Memory)404に書き込まれたプログラムに従ってファイルサーバ全体を制御するプロセッサである。メモリ403は光ケーブル104と磁気ディスク406の間でデータ交換する際の一時的なバッファに使用する他、CPU402の一時的なデータの記憶場所に使用する。   The fiber channel adapter 401 is an adapter that connects the optical cable 104 and the bus 407, and writes the data (command) of the optical cable 104 to the memory 403 via the bus 407 or sends the data of the memory 403 to the optical cable 104 via the bus 407. The CPU 402 is a processor that controls the entire file server according to a program written in a ROM (Read Only Memory) 404. The memory 403 is used not only as a temporary buffer when exchanging data between the optical cable 104 and the magnetic disk 406 but also as a temporary data storage location of the CPU 402.

ROM404はCPU402のプログラムを格納する。格納するプログラムはCPU402が様々なプログラムを実行する上で基本とするオペレーティングシステムと、プロトコル判定部106、処理判定部107、NFS処理部108に相
当する処理手順である。SCSIアダプタ405は磁気ディスク406とバス407を接続するアダプタであり、図1の磁気ディスクインターフェイス109に相当するものであり、磁気ディスク406のデータをバス407経由でメモリ403へ書き込む、あるいはメモリ403のデータをバス407経由で磁気ディスク406へ書き込む。
The ROM 404 stores a program for the CPU 402. The programs to be stored are an operating system that is fundamental for the CPU 402 to execute various programs, and a processing procedure corresponding to the protocol determination unit 106, the processing determination unit 107, and the NFS processing unit 108. The SCSI adapter 405 is an adapter that connects the magnetic disk 406 and the bus 407 and corresponds to the magnetic disk interface 109 in FIG. 1, and writes data on the magnetic disk 406 to the memory 403 via the bus 407 or Data is written to the magnetic disk 406 via the bus 407.

処理の手順自体は図1の構成と同じである。すなわち、クライアント102(
図1参照)からSCSIコマンドでファイルサーバ101のデータを読み出す場合の処理は以下の通りである。
The processing procedure itself is the same as the configuration of FIG. That is, client 102 (
The processing in the case of reading the data of the file server 101 with the SCSI command from (see FIG. 1) is as follows.

クライアント102はファイバチャネルのプロトコルに従いSCSIのREADコマンドを光ケーブル104経由でファイルサーバ101のファイバチャネルアダプタ401へ送る。図1に示した実施例のファイバチャネルインターフェイス105に相当するファイバチャネルアダプタ401では図2のデスティネーションID202の内容をチェックしてファイルサーバ101宛てのREADコマンドを選別し、メモリ403へ書き込む。   The client 102 sends a SCSI READ command to the fiber channel adapter 401 of the file server 101 via the optical cable 104 in accordance with the fiber channel protocol. The fiber channel adapter 401 corresponding to the fiber channel interface 105 of the embodiment shown in FIG. 1 checks the contents of the destination ID 202 in FIG. 2, selects the READ command addressed to the file server 101, and writes it in the memory 403.

ROM404内に書き込まれたプロトコル判定部106の処理内容を実現するプログラムに従ってCPU402は、メモリ403へ書き込まれたREADコマンドの図2のプロトコル203の内容をチェックする。ここではSCSIのためメモリ403からSCSIアダプタ405へREADコマンドを受け渡す。   The CPU 402 checks the content of the protocol 203 in FIG. 2 of the READ command written in the memory 403 according to the program that realizes the processing content of the protocol determination unit 106 written in the ROM 404. Here, a READ command is transferred from the memory 403 to the SCSI adapter 405 for SCSI.

図1に示した磁気ディスクインターフェイス109に相当するSCSIアダプタ405は磁気ディスク406へREADコマンドを発行してREADコマンドで指定されたブロックのデータを読み出す。読み出したデータはSCSIアダプタ405からメモリ403へ書き込む。更にメモリ403からファイバチャネルアダプタ401へ送り、ファイバチャネルアダプタ401にてソースID201がファイルサーバ101、デスティネーションID202がクライアント102、プロトコル203がSCSIのヘッダ情報を付加して光ケーブル104へ送り出される。クライアント102はデスティネーションID202がクライアント102宛てのデータを光ケーブル104から拾い上げて、READコマンドに対して読み出したデータを受け取る
The SCSI adapter 405 corresponding to the magnetic disk interface 109 shown in FIG. 1 issues a READ command to the magnetic disk 406 and reads the data in the block specified by the READ command. The read data is written from the SCSI adapter 405 to the memory 403. Further, the data is sent from the memory 403 to the fiber channel adapter 401, and the fiber channel adapter 401 sends the file ID to the file server 101, the destination ID 202 to the client 102, and the protocol 203 to the optical cable 104 with the SCSI header information added. The client 102 picks up the data whose destination ID 202 is addressed to the client 102 from the optical cable 104, and receives the data read in response to the READ command.

クライアント103からのNFSコマンドでのアクセスも同様であり、プロトコ
ル判定部106、処理判定部107、NFS処理部108に相当する処理の手順が
プログラムとしてROM404に書き込まれており、プロトコル判定部に相当する処理を行うプログラムでTCP/IPと識別された場合には、処理判定部に相当するプログラムがNFSコマンドかどうか判定し、NFSコマンドであればNFS処理部に相
当するプログラムによってSCSIコマンドに変換されSCSIアダプタに送られる。
The access by the NFS command from the client 103 is the same, and the processing procedure corresponding to the protocol determination unit 106, the processing determination unit 107, and the NFS processing unit 108 is written in the ROM 404 as a program and corresponds to the protocol determination unit. If the program to be processed is identified as TCP / IP, it is determined whether the program corresponding to the processing determination unit is an NFS command. If it is an NFS command, the program is converted to a SCSI command by the program corresponding to the NFS processing unit. Sent to the adapter.

クライアント103からTelnetを使用してファイルサーバ101へリモートログインするには、ファイバチャネルのプロトコルに従いTCP/IPを使用してTelnetコマンドを発行し、光ケーブル104経由でファイルサーバ101のファイバチャネルアダプタ401へ送る。ファイバチャネルアダプタ401では図2のデスティネーションID202の内容をチェックしてファイルサーバ101宛てのTelnetコマンドを選別し、メモリ403へ書き込む。   To remotely log in to the file server 101 from the client 103 using Telnet, a Telnet command is issued using TCP / IP according to the fiber channel protocol and sent to the fiber channel adapter 401 of the file server 101 via the optical cable 104. . The fiber channel adapter 401 checks the contents of the destination ID 202 in FIG. 2 to select the Telnet command addressed to the file server 101 and writes it to the memory 403.

ROM404内のプロトコル判定部106の処理内容を実現するプログラムに従いCPU402はメモリ403へ書き込まれたTelnetコマンドの図2のプロトコル203の内容をチェックする。ここではTCP/IPのため更にROM404内の処理判定部107の処理内容を実現するプログラムに従いCPU402はメモリ403へ書き込まれたTelnetコマンドをチェックする。NFSコマンドではないの
で、ROM404内のオペレーティングシステムの処理にコマンドを渡す。
The CPU 402 checks the contents of the protocol 203 in FIG. 2 of the Telnet command written in the memory 403 in accordance with a program that realizes the processing contents of the protocol determination unit 106 in the ROM 404. Here, for TCP / IP, the CPU 402 checks the Telnet command written in the memory 403 in accordance with a program for realizing the processing contents of the processing determination unit 107 in the ROM 404. Since it is not an NFS command, the command is passed to the operating system processing in the ROM 404.

UNIX(UNIXは登録商標)系のオペレーティングシステムでは標準でTelnetコマンドをサポートしているため、特別にプログラムをROM404へ組み込まなくともTelnetに対する処理が実現できる。   Since a UNIX (UNIX is a registered trademark) type operating system supports a Telnet command as a standard, processing for Telnet can be realized without specially incorporating a program into the ROM 404.

以上説明したように本実施例によれば、特殊なハードウェアを使用せず普及しているプロセッサを使用しても、同一のファイバチャネルに接続したクライアントから必要に応じてNFSとSCSIコマンドを使い分けて同一のファイルサーバへアクセスできるので、クライアント間でデータを共有する場合はNFSコマンドを使
用し、データを共有せずに高速にアクセスしたい場合はSCSIコマンドを使用できる。また、ファイバチャネル経由でTelnetによりリモートログインすることにより、データ経路とは別の回線を持たずにファイルサーバ101の様々な設定が可能になる。
As described above, according to the present embodiment, even when using a processor that does not use special hardware and uses a widespread processor, a client connected to the same Fiber Channel can properly use NFS and SCSI commands as necessary. You can use the NFS command to share data between clients, and you can use the SCSI command to access data at high speed without sharing data. Further, by remotely logging in via Telnet via fiber channel, various settings of the file server 101 can be made without having a line separate from the data path.

システム構成及び処理手順を示す図である。It is a figure which shows a system configuration | structure and a process sequence. ファイバチャネルのヘッダ構造図である。It is a header structure figure of a fiber channel. クライアント管理テーブルの構成図である。It is a block diagram of a client management table. システム構成図である。It is a system configuration diagram.

符号の説明Explanation of symbols

101…ファイルサーバ、102…クライアント、103…クライアント、104…光ケーブル、105…ファイバチャネルインタフェース、106…プロトコル判定部、107…処理判定部、108…NFS処理部、109…磁気ディスクイ
ンタフェース、110…磁気ディスク、201…ソースID、202…ディスティネーションID、203…プロトコル、301…クライアントID、302…プロトコル、303…パーティション、401…ファイバチャネルアダプタ、402…CPU、403…メモリ、404…ROM、405…SCSIアダプタ、406…磁気ディスク。
DESCRIPTION OF SYMBOLS 101 ... File server, 102 ... Client, 103 ... Client, 104 ... Optical cable, 105 ... Fiber channel interface, 106 ... Protocol judgment part, 107 ... Processing judgment part, 108 ... NFS processing part, 109 ... Magnetic disk interface, 110 ... Magnetic Disk 201 ... Source ID 202 ... Destination ID 203 ... Protocol 301 ... Client ID 302 ... Protocol 303 ... Partition 401 ... Fiber Channel Adapter 402 ... CPU 403 ... Memory 404 ... ROM 405 ... SCSI adapter, 406... Magnetic disk.

Claims (5)

データを格納する磁気ディスクと、
クライアントと接続され、前記クライアントからのコマンドを受け取るコマンドインターフェイスと、
前記クライアントからのコマンドに従い前記磁気ディスクに対してデータの書き込み或いは読み出しを行うディスクインターフェイスと、
前記コマンドインターフェイスからのデータがTCP/IPとSCSIとのいずれかのプロトコルかを識別する識別手段と、
前記識別手段でTCP/IPと判定した場合にNFSのコマンドであるか否かを判定する判定手段と、
前記判定手段でNFSと判定した場合にNFSファイルシステムの処理を実施してSCSIコマンドに変換して、書き込みを行うパーティションを決定し、前記磁気ディスクへアクセスする処理手段とを有し、
前記識別手段は、SCSIのプロトコルであることを識別した場合、前記データの書き込みを行うパーティションを決定することを特徴とする共有ディスク装置。
A magnetic disk for storing data;
A command interface connected to the client and receiving commands from the client;
A disk interface for writing or reading data to or from the magnetic disk in accordance with a command from the client;
An identification means for identifying whether the data from the command interface is a protocol of TCP / IP or SCSI;
A determination unit that determines whether the command is an NFS command when the identification unit determines TCP / IP,
When the determination means determines NFS, the NFS file system processing is performed and converted to a SCSI command, a partition to be written is determined, and processing means for accessing the magnetic disk,
2. The shared disk device according to claim 1, wherein the identification unit determines a partition to which the data is written when it is identified as a SCSI protocol.
クライアントと接続され、前記クライアントからのコマンドを受け取るコマンドインターフェイスと、A command interface connected to the client and receiving commands from the client;
前記コマンドインターフェイスと接続され、前記コマンドインターフェイスからのデータがTCP/IPとSCSIとのいずれかのプロトコルかを識別する識別手段と、  An identification means connected to the command interface and identifying whether the data from the command interface is a protocol of TCP / IP or SCSI;
前記識別手段と接続され、前記クライアントからのコマンドに従い書き込み或いは読み出しを行うディスクインターフェイスと、  A disk interface connected to the identification means and writing or reading in accordance with a command from the client;
前記ディスクインターフェイスと接続され、前記クライアントが使用するプロトコルの種類に対応してパーティションを有する磁気ディスクと、  A magnetic disk connected to the disk interface and having a partition corresponding to the type of protocol used by the client;
前記識別手段でTCP/IPと判定した場合にNFSのコマンドであるか否かを判定する判定手段と、  A determination unit that determines whether the command is an NFS command when the identification unit determines TCP / IP,
前記判定手段でNFSと判定した場合にNFSファイルシステムの処理を実施してSCSIコマンドに変換して前記磁気ディスクへアクセスする処理手段とを有し、  Processing means for performing NFS file system processing when converted to a SCSI command and accessing the magnetic disk when the determination means determines NFS;
前記識別手段及び前記処理手段は、前記クライアントが使用するプロトコルの種類毎に対応した前記磁気ディスク上のパーティションに対して付けられる第1の識別子と、前記クライアントに対して付けられる第2の識別子との対応関係を有し、前記プロトコル及び/または前記識別子により前記データが書き込まれるパーティションを決定することを特徴とする共有ディスク装置。  The identification unit and the processing unit include a first identifier attached to the partition on the magnetic disk corresponding to each type of protocol used by the client, and a second identifier attached to the client. The shared disk device is characterized in that a partition to which the data is written is determined by the protocol and / or the identifier.
データを格納する磁気ディスクと、A magnetic disk for storing data;
クライアントと接続され、前記クライアントからのコマンドを受け取るコマンドインターフェイスと、A command interface connected to the client and receiving commands from the client;
前記磁気ディスクと接続され、前記クライアントからのコマンドに従い前記磁気ディスクに対してデータの書き込み或いは読み出しを行うディスクインターフェイスと、  A disk interface connected to the magnetic disk and writing or reading data to or from the magnetic disk in accordance with a command from the client;
前記コマンドインターフェイスからのデータがTCP/IPとSCSIのプロトコルがいずれであるのかを識別する識別手段と、  Identification means for identifying whether the data from the command interface is a TCP / IP or SCSI protocol;
前記識別手段でTCP/IPと判定した場合、NFSのコマンドであるか否かを判定する判定手段と、  When it is determined that the identification unit is TCP / IP, a determination unit that determines whether the command is an NFS,
前記判定手段でNFSと判定した場合にNFSファイルシステムの処理を実施してSCSIコマンドに変換し、前記データの書き込みを行うパーティションを決定し、前記磁気ディスクへアクセスする処理手段とを有し、  When the determination means determines NFS, the NFS file system processing is performed and converted into a SCSI command, the partition for writing the data is determined, and the processing means for accessing the magnetic disk,
前記識別手段は、SCSIのプロトコルであることを識別した場合、前記データの書き込みを行うパーティションを決定することを特徴とする共有ディスク装置。  2. The shared disk device according to claim 1, wherein the identification unit determines a partition to which the data is written when it is identified as a SCSI protocol.
請求項2に記載された共有ディスク装置であって、The shared disk device according to claim 2,
前記識別手段は、前記第1の識別子と、前記第2の識別子と、前記第2の識別子が付された前記クライアントが使用するプロトコルとの関係を記述したテーブルを有することを特徴とする共有ディスク装置。  The identification unit includes a table describing a relationship between the first identifier, the second identifier, and a protocol used by the client to which the second identifier is attached. apparatus.
請求項1又は3に記載された共有ディスク装置であって、The shared disk device according to claim 1 or 3,
前記識別手段は、前記クライアントが使用するプロトコルの種類毎に対応したパーティションに対して付けられる第1の識別子と、前記クライアントに対して付けられる第2の識別子と、前記第2の識別子が付された前記クライアントが使用するプロトコルとの関係を記述したテーブルを有することを特徴とする共有ディスク装置。  The identification means includes a first identifier attached to a partition corresponding to each type of protocol used by the client, a second identifier attached to the client, and the second identifier. A shared disk device comprising a table describing a relationship with a protocol used by the client.
JP2006134689A 2006-05-15 2006-05-15 Shared disk device Expired - Fee Related JP4380658B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006134689A JP4380658B2 (en) 2006-05-15 2006-05-15 Shared disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006134689A JP4380658B2 (en) 2006-05-15 2006-05-15 Shared disk device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP10318698A Division JP2000148651A (en) 1998-11-10 1998-11-10 Shared disk device

Publications (2)

Publication Number Publication Date
JP2006221675A JP2006221675A (en) 2006-08-24
JP4380658B2 true JP4380658B2 (en) 2009-12-09

Family

ID=36983906

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006134689A Expired - Fee Related JP4380658B2 (en) 2006-05-15 2006-05-15 Shared disk device

Country Status (1)

Country Link
JP (1) JP4380658B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5203041B2 (en) * 2008-05-22 2013-06-05 エヌイーシーコンピュータテクノ株式会社 Network system, network connection method, connection device, connection card

Also Published As

Publication number Publication date
JP2006221675A (en) 2006-08-24

Similar Documents

Publication Publication Date Title
US7275050B2 (en) Storage system, a method of file data backup and method of copying of file data
US9208168B2 (en) Inter-protocol copy offload
JP4252301B2 (en) Storage system and data backup method thereof
US7827261B1 (en) System and method for device management
US6907457B2 (en) Architecture for access to embedded files using a SAN intermediate device
JP4704161B2 (en) How to build a file system
US7159024B2 (en) Storage system and method for controlling the same
JP2005535019A (en) Storage management bridge
US20070294491A1 (en) Methods and systems for storage architectures
US20080077752A1 (en) Storage system and audit log management method
JP4353208B2 (en) Storage subsystem, storage system, load balancing method, load balancing program
US7139871B2 (en) Method of managing storage system to be managed by multiple managers
US20080098321A1 (en) Method and apparatus for in-band discovery of capabilities of managed devices
US10523753B2 (en) Broadcast data operations in distributed file systems
US20090119452A1 (en) Method and system for a sharable storage device
US6810396B1 (en) Managed access of a backup storage system coupled to a network
JP2000148651A (en) Shared disk device
CN100454283C (en) Virtual universal serial bus equipment system and data transmission method thereof
US20080263222A1 (en) Computer system, root node, and log management method for access path conversion
US8112557B2 (en) Method and apparatus for tape drive data logging
JP4380658B2 (en) Shared disk device
KR101470857B1 (en) Network distributed file system and method using iSCSI storage system
JP4258768B2 (en) File placement system
CN106796572A (en) By the data storage of optical-fibre channel
US7721007B2 (en) Methods of transmitting non-SCSI commands involving loading opcode in command descriptor block (CDB) bytes and non-SCSI commands into remaining CDB bytes

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090303

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090415

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090914

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

Free format text: PAYMENT UNTIL: 20121002

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20121002

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20131002

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees