WO2000007105A1 - Computer system - Google Patents
Computer system Download PDFInfo
- Publication number
- WO2000007105A1 WO2000007105A1 PCT/JP1998/003335 JP9803335W WO0007105A1 WO 2000007105 A1 WO2000007105 A1 WO 2000007105A1 JP 9803335 W JP9803335 W JP 9803335W WO 0007105 A1 WO0007105 A1 WO 0007105A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- length
- fixed
- data
- format
- logical volume
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
- G06F3/0607—Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0674—Disk device
Definitions
- the present invention relates to a computer system, and more particularly to a computer system including a plurality of computers and a storage device shared by the computers.
- RAID Redundant Array of Inexpensive Disks
- a storage system to which RAID technology is applied uses an FBA (Fixed Block Architecture) format.
- a magnetic disk device having a fixed-length data format called a mat is used, and a SCSI interface (or a SCSI interface) is used as an interface to access the disk device. SCSI protocol) is used. Therefore, the host computer accesses variable-length data via the CKD interface. .
- a format conversion mechanism is provided for converting a fixed-length format into a variable-length format.
- Japanese Patent Application Laid-Open No. H6-155057 is known.
- variable-length and fixed-length access interfaces such as those found in Mainframe '98, Nikkei BP, pl45 or pl51 Storage systems with both interfaces have been developed.
- a host computer with a built-in disk device that has an SCS I interface has emerged. For example, in the server described in “Mainframe '98”, Nikkei Business Publications, p. 53-54, an FBA-formatted disk device is built in the housing of the host computer.
- SAP interprets variable-length data access commands (CCW: Channel Command Word chain) generated by the OS, and issues fixed-length data access commands. (SCSI command) and execute input / output processing to the internal disk.
- CCW Channel Command Word chain
- SCSI command fixed-length data access commands
- variable-length data is embedded in a fixed-length format, and format conversion is performed by SAP.
- the advantage of converting the CCW generated by the OS into the CSSI command by the SAP is that it is not necessary to change the OS or the application program.
- the server relates to a built-in disk, but by applying the conventional technology, it becomes possible to connect an external storage system having a fixed-length access interface to the host computer. Since such external storage devices are provided by many vendors, the user has a wide range of choices according to price, performance, and reliability, and the advantages are very large.
- the external storage device is assumed to be shared by multiple host computers. This also means that the storage device is provided outside the host computer housing. However, since the above-mentioned conventional technology is originally related to a built-in disk, it does not consider sharing data.
- An object of the present invention is to allow data stored in an external storage device to be shared between a host computer having a fixed-length access interface and a host computer having a variable-length access interface. It is to be. Disclosure of the invention
- a computer system has an access interface to a first logical volume formatted by a variable-length format.
- a first computer an interface for accessing a second logical volume formatted by the fixed-length format, and the second logical volume
- Variable-length data is extracted from the fixed-length data read out from the fixed-length data according to a predetermined logic, and the variable-length data is converted into fixed-length data to be written into the second logical volume according to the predetermined logic.
- a second computer having a means, a physical volume formatted by a fixed-length format, connected to the first and second computers, 1 logical volume to the predetermined logic Strange off O over Ma Tsu door to a fixed-length off O over Ma Tsu by Ri off O over Ma in Settsu door has been the physical volume I
- a control device that matches the address of the second logical volume with the address of the physical volume.
- the controller writes the data written by the first computer in the variable-length format to the physical volume in a fixed-length format with a predetermined logic. Further, the second computer reads out the data of the fixed-length format from the physical volume and extracts the variable-length data by the predetermined logic. As a result, the data written by the first computer can be used by the second computer.
- control unit writes the data that the second computer converts the variable-length data into fixed-length data according to a predetermined logic and writes the converted data to the physical volume unit in a fixed-length format.
- control device reads the data of the fixed-length format from the physical volume according to a request of the first computer, converts the data into variable-length data by the predetermined logic, and converts the data into variable-length data. Pass this variable length data to the calculator. This allows the data written by the second computer to be used by the first computer.
- FIG. 1 is a configuration diagram of a computer system in the first embodiment.
- FIG. 2 is a schematic explanatory diagram of the first embodiment.
- FIG. 3 is a configuration diagram of the storage device.
- Figure 4 shows the track format of variable-length data.
- Figure 5 shows the fixed-length data track format.
- FIG. 6 is an explanatory diagram of a format conversion method between variable-length data and fixed-length data.
- FIG. 7 is a flowchart of a format conversion mechanism included in the control device and the host computer.
- FIG. 8 is a flowchart of the write processing in the format conversion mechanism of the host computer.
- FIG. 9 is a flowchart of a fixed-length data access mechanism included in the control device.
- FIG. 1 shows a configuration diagram of a computer system according to the present invention.
- one or more host computers 110 having a variable-length access interface and one or more host computers 110 having a fixed-length access interface are provided. It is composed of one or more storage systems 150.
- the host computer 100 Upon receiving an input / output request from the application program, the host computer 100 generates a command group (CCW chain) for accessing the storage device of the variable-length format.
- Seth mechanism 104 exists.
- the host computer 110 receives a request for input / output from the application program and generates a file access request for generating a CCW chain for accessing a storage device of a variable-length format.
- the CCW chain converts the format between variable-length data and fixed-length data, and generates SCSI commands to access fixed-length storage devices.
- the storage system 150 includes a physical volume 128 for storing data, and a control device 12 for controlling input / output processing between the physical volume 128 and the host computer 100 or 110. Consists of 0.
- the physical volume 128 is a fixed-length format storage device, and is connected to the control device 120 by a storage device path 127.
- the control device 120 executes input / output processing for the physical volume 128 using the storage device access mechanism 126.
- An example of a physical volume 128 is an FBA disk with a SCS I interface or a fiber interface.
- the controller 120 and the host computer 100 are connected by the host path 130, and the CCW chain issued from the host computer 100 is acceptable. It is interpreted by the variable length data access mechanism 122 and the input / output processing of the variable length volume is executed.
- an actual example of the host path 130 is ESC0N or a fiber channel, and the variable length volume is assumed to be a CKD disk.
- the controller 120 and the host computer 110 are connected by the host path 140, and the SCSI command issued from the host computer 110 has a fixed-length data access mechanism.
- the input / output processing to the fixed-length volume is executed.
- the actual example of the host path 130 assumes an SSI bus or a fiber channel
- the fixed-length volume assumes an FBA disk.
- the cache memory 123 is a memory for temporarily storing data on the physical volume 128.
- variable-length data access mechanism 122 executes format conversion between the fixed-length format and the variable-length format. There is a need. This processing is executed by the format conversion mechanism 124.
- the host computer 100 recognizes the variable length volume to be accessed as a logical volume 200a, and the host computer 110 recognizes the fixed length volume to be accessed.
- the resume is recognized as logical volume 200b.
- the logical volume 200a recognized by the host computer 100 is a storage device that is formatted by a variable-length format, and is used to access target data.
- the host computer 100 uses the variable-length data access mechanism 104 to determine the number of the logical volume 200a and the address of the data to be accessed on the logical volume 200a. Specify according to the access interface of the variable-length volume.
- the control device 120 converts the variable-length data of the logical volume 200a into a physical volume 128 having a fixed-length data format by the format conversion mechanism 124. Perform format conversion. That is, when there is an access request from the host computer 100, the number of the specified logical volume 200a and the access address are converted to the corresponding address on the physical volume 128. I do.
- the format conversion method between variable-length data and fixed-length data and the correspondence between addresses realized by the format conversion mechanism 124 will be described later.
- the logical volume 200b recognized by the host computer 110 is a storage device that is formatted in a fixed-length format, and is used to access target data.
- the host computer 110 uses the fixed-length data access mechanism 114 to determine the number of the logical volume 200b, the address on the logical volume 200b, and the like. Specify according to the fixed-length volume access interface.
- this logical volume 200b is the physical volume 128 itself. That is, the address on the logical volume 200b and the address on the physical volume 128 match.
- the fixed-length data access mechanism 114 reads fixed-length data from the logical volume 200b, that is, the physical volume 128, and reads the data.
- variable-length data is extracted by the mat conversion mechanism 112.
- variable format data is converted into fixed length data by the format conversion mechanism 112, and fixed length data is converted by the fixed length data access mechanism 114.
- the format conversion mechanisms 124 and 112 perform the format conversion by the same method. In this way, the fixed-length data converted by one format conversion mechanism can be restored to a variable length by the other format conversion mechanism. You.
- one physical volume 128 can be configured from a partial area of a plurality of storage devices. In this case, it is necessary to map the address on the physical volume 128 to the storage device that constitutes the RAID. Note that the logical volumes 200a and 200b and the physical volume 128 are uniquely numbered, and the logical volume 200a or If a logical volume 20b number is specified, the corresponding physical volume 1 2 8 is decided.
- Storage device 400 is a rotating storage medium and a plurality of storage devices. It is composed of a disk 410 and a number of heads 413 equal to the number of disks 410. When the disk 4 10 rotates, the area of the disk 4 10 that one head 4 13 can access is referred to as the track 4 11 and the area of all the heads 4 13
- the cylindrical set of tracks 411 passing below is called cylinder 412.
- the cylinders 4 12 are numbered in ascending order from 0 from the outermost circumference to the inner circumference, and the heads 4 13 are also numbered in ascending order from 0 from top to bottom. Therefore, the track 411 can be identified by the combination of the cylinder number and the head number.
- a special mark, called index 504 has been added to track 411 to identify the beginning of track 211.
- the logical volume 200 and the physical volume 128 have the same basic configuration as described above, but depending on whether the format is variable-length format or fixed-length format. However, the address expression on the storage device 400 and the storage format of the data are different. First, the data storage format in the case of a logical volume 200a, which is a variable-length volume, will be described with reference to FIG.
- the track 4111 is composed of one home address (hereinafter abbreviated as HA) 5110 and one or more records 500.
- HA 510 is the first field located at the beginning of each track 411.
- Each record 500 is composed of one or more fields: a count section 501, a data section 502, and, in some cases, a key section before the data section. (Not shown).
- the count section 501 is a fixed-length field.
- the address of the record 500 is followed by the length of the following fields (the data section 502 and the key section described above). And so on. It is allowed that each record 500 has a variable length, that is, the length of the data section 502 may be different for each record 500.
- the count section 501 has the record key
- the length of the record and data sections 502 is stored, and if you look at the count section 501, you can see the length of each field of the record 500. Is in use.
- the address of record 500 is indicated by a combination of a cylinder number, a head number, and a record number, that is, a sequential number assigned from the beginning of the track.
- each track 411 is composed of a predetermined fixed-length area (hereinafter referred to as a block 600).
- Block 600 is uniquely numbered in storage device 400. Therefore, when accessing a certain area of the storage device 128, it is sufficient to specify the number of the first block 600 and the number of subsequent blocks 600 in the area.
- each track 411 represented by a variable-length format is divided into areas equal to the size of fixed-length block 600. Then, to the first block 600 represented by the number 0, the first area of the first track 411 represented by the cylinder number 0 and the head number 0 is allocated. Thereafter, the subsequent area on track 411 is allocated to the following block 600, and when the entire area of the first track 411 is allocated, the subsequent block is allocated. The next track, that is, the leading area of the track 41 1 of the cylinder number 0 and the head number 1 is assigned to the lock 600. In the same manner, the entire area of each track 411 is associated with each block 600.
- each track is fixedly determined by the type of the logical volume 200a, the following equation is used to derive the track 411 from the track address.
- the number of the first block 600 stored and the number of blocks 600 per track can be obtained.
- Block number at the beginning of the track (Cylinder number X head Number of heads + number of heads) X Number of subblocks per track where X> is the smallest integer greater than or equal to X.
- the capacity of sub-block 340 is 5 12 bytes
- the capacity of track 211 is 47 KB
- the number of heads is 15, the track hits
- the number of sub-blocks is 94
- the first sub-block of cylinder number 0 and head number 1 track 41 1 is 94, cylinder number 100 and head number 41.
- the first sub-blocks of the track 411 of the node number 5 are 141 and 470.
- all areas of the logical volume 200a are allocated to the physical volume 128, but the format conversion shown here is only an example. It is. In general, various format conversion methods are conceivable, but what is important in the present invention is that a certain format conversion is performed by a format that all the host computers 110 have. This is to be recognized and used by the format conversion mechanism 124 of the control unit 120 and the control unit 120 of the control device 120.
- the controller 120 receives an I / O request from the host computer 100, it obtains the number of the physical volume 128 corresponding to the specified logical volume 200a (Step 8 8 0).
- step 800 using (Equation 1) and (Equation 2), the block number and the block number on the physical volume 128 in which the track to be accessed is stored are stored. Find the number of clicks.
- step 810 it is checked whether or not the target track 411 is present in the cache 213, and if not, the relevant track 411 is checked. Is loaded from the physical volume 128 to the cache 123 (step 820).
- step 830 the count section 501 of the first record 500 of the track 4111 is accessed, and the record 50 0 to be accessed is accessed in step 840.
- step 840 is realized by the following method. That is, the control device 120 sets the address to be accessed designated by the host computer 100, that is, the cylinder number, head number, and record number as initial values, and then sets It holds the address to be accessed and compares it with the address read from the count section 501. If the result of the comparison is a match, the record to be accessed is 500, and the address to be accessed next is set.
- the specified field is accessed from the host computer 100 in step 850.
- the designated field is transferred from the cache 123 to the host computer 100 using the variable-length data access mechanism 121, and if the write access is used, Writes the specified field from the host computer 100 to the cache 123.
- Step 860 When the access to the specified field is completed, it is determined by the CCW chain whether or not the host computer 100 requests access to the following record 500 ( Step 860). If so, read the count section 501 of the next record 500. Similarly, if the record 500 is not an access target at step 840, the record 500 is skipped, and the next record 500 is counted at step 870. Read out the port section 501. Thereafter, the process returns to step 840 again to check whether or not the record 500 is to be accessed.
- step 840 to step 870 The processing from step 840 to step 870 is repeated until the access request from the host computer 100 ends.
- the write data is stored on the cache 123. For this reason, the data must be written from the cache 123 to the physical volume 128, but this is easy to realize. That is, as obtained in step 800, the address of the track 41 1 is changed to the address on the physical volume 128 by using (Equation 1) and (Equation 2). That is, the first block number and the number of blocks are calculated. It is sufficient to write to the physical volume 128 using the storage device access mechanism 126 according to the address.
- the method of accessing the logical volume 200a from the host computer 100 has been described above.
- a method for sharing the storage device 400 between the host computers 100 and 110 will be described.
- the host computer 110 converts the physical volume 128 to the logical volume 200 b Therefore, the address on the logical volume 200b and the address on the physical volume 128 match.
- the host computer 110 accesses the physical volume 128 to read fixed-length data, and the format conversion mechanism 112 reads the fixed-length data from the read fixed-length data.
- the target variable-length record 500 is extracted.
- the format conversion mechanism 112 in the host computer 110 is composed of a variable length format and a fixed length format realized by the format conversion mechanism 124 of the controller 120. Since it knows how to embed the data in the data, it performs the same processing as the format conversion mechanism 124 to access the target variable-length record from the fixed-length data. can do. The details of this realization method will be described below with reference to FIGS. 7 and 8.
- the format conversion mechanism 112 When the format conversion mechanism 112 receives the CCW chain created by the file access mechanism 113, the format conversion mechanism 112 interprets the CCW chain and determines whether it is a read access or a write access. to decide. First, the processing in the case of read access will be described with reference to FIG. Since the control unit 120 executes the association between the logical volume 200b and the physical volume 128, in the case of an access request to the logical volume 200b, step 880 is performed. It becomes unnecessary. Next, in step 800, the address to be accessed, that is, a cylinder number, a head number, and a record number, are obtained from the CCW chain. Using 2), obtain the block number and the number of blocks in which the track 4 11 1 to be accessed is stored.
- step 810 it is determined whether or not the target track 411 is stored in a cache (not shown) on the host computer 110.
- the cache is a memory residing on the host computer 110, and may be, for example, a buffer defined only for this purpose, or a cache. This may be achieved using a unit. If the desired track 411 is not on the cache, the storage system 150 is accessed in step 820 to cache the track 411. Read to When reading track 4111 from the storage system 150, a read SCSI command is generated based on the block number and block number obtained in step 800. The fixed-length data access mechanism 1 1 4 Is executed. Thereafter, the format conversion mechanism 112 executes steps 830 to 870 in accordance with the content of the CCW chain, but this is the same as that described above, and a description thereof will be omitted.
- the format conversion mechanism 112 analyzes the CCW chain created by the file access mechanism 113, and as a result, describes the processing in the case of write access, with reference to FIG. I do.
- the processing of steps 900, 930, 940, 950, 960, and 970 is the same as the processing of steps 800, 830, and 8 in FIG.
- the processing is completely the same as the processing of 40, 850, 860, and 870, so the description will be omitted, and the remaining steps will be described.
- step 920 the area specified by the block number and the number of blocks obtained at step 900 is stored in the storage device system 1 via the fixed-length data access mechanism 114. Read from 0.
- step 930 to step 970 the CCW chain is analyzed, and when all of the requested record 300 updates have been completed in the cache, step 930 is executed.
- step 930 is executed.
- the relevant track 4111 is written to the storage system 150 again via the fixed-length data access mechanism 114.
- the point of processing by the control unit 120 is to access the data stored in the physical volume 128 by using the SCSI command as it is without performing format conversion. It is to make it.
- the host computer 110 extracts variable-length data from the fixed-length data read from the storage system 150 by the format conversion mechanism 112, and converts the variable-length data to fixed-length data. Convert to data and write to storage system 150.
- step 1000 the host computer 110 obtains a physical volume 128 corresponding to the specified logical volume 200b. Then, the access address, that is, the block number and the number of blocks, from the host computer 110 to the specified logical volume 200 b are converted to the physical volume 128. Access address.
- step 1010 it is determined whether or not the access is a read access, and if so, at step 102, whether the desired data is present in the cache 123 is determined. Check if it exists For example, at step 1303, the target data is loaded to the cache 123 using the storage device access mechanism 126. Then, in step 104, the read data is transferred to the host computer 110, and the processing is completed.
- write data is received from the host computer 110 and stored in the cache 123 to complete the processing. After that, it is necessary to write the data from the cache 123 to the physical volume 128, but in this case, the write address specified by the host computer 110 is used to write the data. Since the address is still on the physical volume 128, the number of the logical volume 200b is converted to the number of the physical volume 128, and then to that address. Just write it.
- variable-length data written from the host computer 100 is converted into fixed-length data by the format conversion mechanism 124, and the physical volume 1 Written to 28.
- the host computer 110 specifies the address on the physical volume 128 that stores the data, and the fixed-length data Read it out. Then, the target variable length data is extracted by the format conversion mechanism 112.
- the format conversion mechanism 112 converts the variable-length data into fixed-length data and converts the physical volume 1 into the fixed-length data. 2 Write to 8.
- the control device 120 specifies the address. Converts the address to the address on physical volume 128 and reads fixed-length data. Then, the format conversion mechanism 124 extracts the variable-length data and transfers the data to the host computer.
- the storage device between the host computer 100 having a variable-length access interface and the host computer 110 having a fixed-length access interface is stored.
- Data stored in the system 150 can be shared.
- Industrial applicability As described above, the method of sharing data in a plurality of host computers according to the present invention is useful as a method of sharing data between a plurality of host computers having different access interfaces, and is fixed.
- the data of the storage device formatted in the fixed-length format is shared between the host computer having the long-term access interface and the host computer having the variable-length access interface. It is suitable for building computer systems that perform
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
明 細 書 計算機システム 技術分野 Description Computer system Technical field
本発明は、 計算機システムに係 り 、 特に、 複数の計算機と これらの計 算機によ り共有される記憶装置とを含む計算機システムに関する。 背景技術 The present invention relates to a computer system, and more particularly to a computer system including a plurality of computers and a storage device shared by the computers. Background art
ホス ト計算機の一部 (特に大型計算機) は、 可変長のデータ フ ォ ーマ ッ トを持つ磁気ディ スク装置を有する。 これらのホス ト計算機は、 磁気 ディ スク装置にアクセスするために、 C K Dィ ンタ フ エースと呼ばれる 可変長データのアクセスィ ンタ フ ェースを有する。 従来は可変長の レコ — ドフ ォ ーマ ツ トがそのまま物理記憶装置上で実現されてきたが、 近年 では、 安価で比較的信頼性の低い複数の記憶装置にデータを分散配置 し 、 データ転送の並列性を向上する こ とによ って性能を向上し、 かつデ一 夕に冗長度を持たせる こ とによって高い信頼性を得る R A I Dと呼ばれ る手法が一般的にな りつつある。 こ の手法は米国, バーク レイ, カ リ フ オルニァ大学のパター ソ ン ( p a t t e r s o n ) 等が、 米国計算機学 会データ管理専門グループ技術報告 ( P r o c . A C M S I G M O D ) 1 9 8 8年 6月号において、 「安価なディ スクの冗長ア レイ ( R A I D ) のケース ( A C a s e f o r R e d u n d a n t A r r a y o f I n e x p e n s i v e D i s k s ) 」 を発表して以来、 急速に広ま りつつある。 Some of the host computers (especially large computers) have magnetic disk units with variable-format data formats. These host computers have a variable-length data access interface called CKD interface to access the magnetic disk device. Conventionally, variable-length record formats have been realized as they are on physical storage devices. A technique called RAID, which achieves high reliability by improving the parallelism of data and improving the performance by adding redundancy to the data, is becoming common. This approach the United States, Burke Rei, mosquito Li off Orunia University of the putter source emissions (p a tterson), etc., the United States computer Society data management expert group Technical Report (P roc. ACMSIGMOD) 1 9 8 8 years June It has been spreading rapidly since the announcement of the “Case of Redundant Array of Inexpensive Disks (RAID)”.
文献 : 「メ イ ンフ レーム ' 9 8」 , 日経 BP 社, p l 2 6— 1 3 0 に 記述されるよ う に、 R A I D技術を適用 した記憶装置システムでは、 F B A (Fixed Block Architecture)フ ォ ーマ ツ ト と呼ばれる固定長のデー タフ ォ ーマ ツ トを持つ磁気ディ スク装置が用いられていて、 このディ ス ク装置にアクセスするイ ンタ フ ェースと して、 S C S I イ ンタ フ ェース (あるいは S C S I プロ ト コル) が用いられる。 したがって、 ホス ト計 算機からは C K Dイ ンタ フ ェースによ って可変長データへアクセスする 。 そ して、 内部に F B A形式の磁気ディ スクを用いた記憶装置システム では、 データの書き込みの場合には可変長フ ォ ーマツ トから固定長フ ォ 一マ ツ トへ、 また、 データの読み出 しの場合には固定長フ ォ ーマ ツ トか ら可変長フ ォ ーマ ツ トへ変換する フ ォ ーマ ツ ト変換機構を備えている。 このようなフ ォ ーマ ツ ト変換機構の一例と して、 例えば特開平 6 - 1 5 0 5 5 7が知られている。 Literature: As described in “Mainframe '98”, Nikkei BP, pl 26-130, a storage system to which RAID technology is applied uses an FBA (Fixed Block Architecture) format. A magnetic disk device having a fixed-length data format called a mat is used, and a SCSI interface (or a SCSI interface) is used as an interface to access the disk device. SCSI protocol) is used. Therefore, the host computer accesses variable-length data via the CKD interface. . In a storage system using an FBA-type magnetic disk internally, when data is written, the format is changed from variable-length format to fixed-length format, and data is read. In such a case, a format conversion mechanism is provided for converting a fixed-length format into a variable-length format. As an example of such a format conversion mechanism, for example, Japanese Patent Application Laid-Open No. H6-155057 is known.
近年の計算セ ンタでは、 ホス ト計算機と U N I Xサーバ、 P Cサーバ 等のオープンホス ト とが混在してシステム構築される こ とが多い。 この よ う な構成においては、 記憶装置システムの管理を容易に して トータル ス ト レージコス トを低減する要求が高い。 これに応えるために、 例えば 「メ イ ンフ レーム ' 9 8」 、 日経 B P社、 p l 4 5あるいは p l 5 1 に 見られるよ う な、 可変長のアクセスィ ンタ フ ースと固定長のアク セス イ ンタフ ェースの双方を備える記憶装置システムが開発されている。 一方、 最近では、 ホス ト計算機の内蔵ディ スク装置に、 S C S I イ ン タ フ エースを持つものが出現してきている。 例えば、 「メ イ ンフ レーム ' 9 8」 、 日経 B P社、 p 5 3— 5 4 に記載されているサーバでは、 F B Aフ ォーマ ツ トのディ スク装置をホス ト計算機の筐体に内蔵し、 O S が生成 した可変長デー タ ア ク セ ス の コ マ ン ド群 ( C C W : Channel Command Word チ ヱイ ン) を S A P と呼ばれるプロセ ッ サが解釈して 、 固定長データアク セスの コマ ン ド群 ( S C S I コマ ン ド) に変換して 、 内蔵ディ スクへの入出力処理を実行する。 この内蔵ディ スクでは可変 長のデータを固定長のフ ォ ーマ ツ トへ埋め込んでおり 、 S A Pでフ ォ ー マツ ト変換を行っている。 このよ う に O Sが生成した C C Wを S A Pで S C S I コマン ドに変換するメ リ ッ トは、 O Sあるいはアプリ ケ一シ ョ ンプログラムの変更が不要な点である。 In recent years, many computing centers have a system configuration in which host computers and open hosts such as UNIX servers and PC servers are mixed. In such a configuration, there is a high demand for facilitating the management of the storage system and reducing the total storage cost. To address this, variable-length and fixed-length access interfaces, such as those found in Mainframe '98, Nikkei BP, pl45 or pl51 Storage systems with both interfaces have been developed. On the other hand, recently, a host computer with a built-in disk device that has an SCS I interface has emerged. For example, in the server described in “Mainframe '98”, Nikkei Business Publications, p. 53-54, an FBA-formatted disk device is built in the housing of the host computer. A processor called SAP interprets variable-length data access commands (CCW: Channel Command Word chain) generated by the OS, and issues fixed-length data access commands. (SCSI command) and execute input / output processing to the internal disk. In this built-in disk, variable-length data is embedded in a fixed-length format, and format conversion is performed by SAP. The advantage of converting the CCW generated by the OS into the CSSI command by the SAP is that it is not necessary to change the OS or the application program.
前記サーバでは、 内蔵ディ スク に関する ものだが、 本従来技術を適用 すれば、 ホス ト計算機に固定長のアク セスイ ンタ フ ェ ースを有する外部 記憶装置システムを接続する こ と も可能になる。 このよ う な外部記憶装 置は多数のベンダから提供されているので、 ユーザは価格、 性能、 信頼 性に応じて幅広い選択が可能にな り 、 その利点は非常に大きい。 The server relates to a built-in disk, but by applying the conventional technology, it becomes possible to connect an external storage system having a fixed-length access interface to the host computer. Since such external storage devices are provided by many vendors, the user has a wide range of choices according to price, performance, and reliability, and the advantages are very large.
外部記憶装置は複数のホス ト計算機から共有される こ とが前提であ り 、 かつそのこ とが記憶装置をホス ト計算機の筐体外に持つこ との意義で もある。 しかしながら、 上記従来技術はもと もと内蔵ディ スク に関する ものなので、 データを共有する こ とを考慮していない。 The external storage device is assumed to be shared by multiple host computers. This also means that the storage device is provided outside the host computer housing. However, since the above-mentioned conventional technology is originally related to a built-in disk, it does not consider sharing data.
こ こで、 データを共有する場合の課題を以下に説明する。 The issues in sharing data are described below.
「メ イ ンフ レ一ム ' 9 8 」 、 日経 B P社、 p l 4 5 あるいは p l 5 1 に記載されているよ う な固定長のアクセスイ ンタ フ ヱースと可変長のァ クセスィ ンタ フ ェースの両方を備える記憶装置システムに、 固定長のァ クセスィ ンタ フ エースを有するホス ト計算機と、 可変長のアクセスィ ン タ フ エースを有するホス ト計算機とを接続しても、 固定長のアクセスィ ンタ フ エ ースを有するホス ト計算機と記憶装置システム間で、 データ の フ ォ ーマ ツ ト、 つま り 可変長フ ォ ーマ ツ ト と固定長フ ォ ーマ ツ トの変換 方法、 が共通でなければ、 データを共有できない。 つま り 、 可変長ァク セスイ ンタ フ ェースを持つホス ト計算機から記憶装置にライ ト されたデ 一夕を、 固定長アクセスィ ンタ フ エースを持つメ ィ ンフ レームから読出 す、 あるいはその逆はできないという課題がある。 Both fixed-length and variable-length access interfaces as described in “Mainframe '98”, Nikkei BP, pl45 or pl51. Even if a host computer with a fixed-length access interface and a host computer with a variable-length access interface are connected to a storage system with The format of the data, that is, the method of converting between the variable format and the fixed format, is common between the host computer with the ace and the storage system. Without it, data cannot be shared. That is, the data written to the storage device from the host computer having the variable-length access interface is read from the main frame having the fixed-length access interface, or vice versa. There is a problem that cannot be done.
本発明の目的は、 固定長のアクセスイ ンタ フ ェースを有するホス ト計 算機と可変長のアクセスイ ンタ フ ェースを有するホス ト計算機間で、 外 部記憶装置に格納されたデータを共有可能とする こ とである。 発明の開示 An object of the present invention is to allow data stored in an external storage device to be shared between a host computer having a fixed-length access interface and a host computer having a variable-length access interface. It is to be. Disclosure of the invention
上記目的を達成するために、 本発明の計算機システムは、 可変長フ ォ 一マ ツ トによ り フ ォーマ ツ ト された第 1 の論理ボ リ ュームへのアクセス イ ンタ フ ェ ースを有する第 1 の計算機と、 固定長フ ォ ーマ ツ トによ り フ ォ一マ ツ ト された第 2 の論理ボリ ユ ームへのアクセスィ ンタ フ エースと 、 前記第 2 の論理ボ リ ュームから読み出 した固定長データから所定の論 理に従って可変長データを抽出する とと もに、 可変長データを前記所定 の論理に従って前記第 2 の論理ボ リ ュームに書き込む固定長データ に変 換する手段とを有する第 2 の計算機と、 固定長フ ォ ーマ ツ トによ り フ ォ 一マ ツ ト された物理ボ リ ュームと、 前記第 1 及び第 2 の計算機に接続さ れ、 前記第 1 の論理ボ リ ュームを前記所定の論理に従って固定長フ ォ ー マ ツ トによ り フ ォ ーマ ツ ト された前記物理ボリ ュームにフ ォ ーマ ツ ト変 換し、 前記第 2 の論理ボリ ユ ームと前記物理ボリ ュ一ムのァ ドレスを一 致させて対応付ける制御装置とを有する。 In order to achieve the above object, a computer system according to the present invention has an access interface to a first logical volume formatted by a variable-length format. A first computer, an interface for accessing a second logical volume formatted by the fixed-length format, and the second logical volume Variable-length data is extracted from the fixed-length data read out from the fixed-length data according to a predetermined logic, and the variable-length data is converted into fixed-length data to be written into the second logical volume according to the predetermined logic. A second computer having a means, a physical volume formatted by a fixed-length format, connected to the first and second computers, 1 logical volume to the predetermined logic Strange off O over Ma Tsu door to a fixed-length off O over Ma Tsu by Ri off O over Ma in Settsu door has been the physical volume I In other words, there is provided a control device that matches the address of the second logical volume with the address of the physical volume.
第 1 の計算機が可変長フ ォーマ ツ 卜で書き出 したデータを制御装置は 所定の論理で固定長フ ォーマ ツ トで物理ボ リ ユ ームに書き出す。 また、 第 2 の計算機で物理ボリ ユ ームから この固定長フ ォ一マ ツ トのデータを 読み出 し、 前記所定の論理で可変長データを抽出する。 これによ り 、 第 1 の計算機が書き出 したデータを、 第 2 の計算機において使用可能とな る。 The controller writes the data written by the first computer in the variable-length format to the physical volume in a fixed-length format with a predetermined logic. Further, the second computer reads out the data of the fixed-length format from the physical volume and extracts the variable-length data by the predetermined logic. As a result, the data written by the first computer can be used by the second computer.
また、 第 2 の計算機が所定の論理に従って可変長データを固定長デー 夕 に変換して書き出 したデータを、 制御装置は固定長フ ォーマ ツ トで物 理ボ リ ユ ームに書き出す。 また、 制御装置は、 第 1 の計算機の要求に従 つて物理ボ リ ユ ームからこの固定長フ ォーマ ツ トのデータを読み出 し、 前記所定の論理で可変長データに変換して第 1 の計算機にこの可変長デ 一夕を渡す。 これによ り、 第 2 の計算機が書き出 したデータを、 第 1 の 計算機において使用可能となる。 図面の簡単な説明 In addition, the control unit writes the data that the second computer converts the variable-length data into fixed-length data according to a predetermined logic and writes the converted data to the physical volume unit in a fixed-length format. Further, the control device reads the data of the fixed-length format from the physical volume according to a request of the first computer, converts the data into variable-length data by the predetermined logic, and converts the data into variable-length data. Pass this variable length data to the calculator. This allows the data written by the second computer to be used by the first computer. BRIEF DESCRIPTION OF THE FIGURES
第 1 図は、 第一の実施例における計算機システムの構成図である。 第 2 図は、 第一の実施例の概要説明図である。 FIG. 1 is a configuration diagram of a computer system in the first embodiment. FIG. 2 is a schematic explanatory diagram of the first embodiment.
第 3 図は、 記憶装置の構成図である。 FIG. 3 is a configuration diagram of the storage device.
第 4 図は、 可変長データの トラ ッ ク フ ォーマ ツ トである。 Figure 4 shows the track format of variable-length data.
第 5 図は、 固定長デ一夕の ト ラ ッ ク フ ォーマ ツ トである。 Figure 5 shows the fixed-length data track format.
第 6 図は、 可変長データ と固定長データのフ ォーマ ツ ト変換方法の説 明図である。 FIG. 6 is an explanatory diagram of a format conversion method between variable-length data and fixed-length data.
第 7 図は、 制御装置およびホス ト計算機が有するフ ォーマ ツ ト変換機 構のフローチヤ一 トである。 FIG. 7 is a flowchart of a format conversion mechanism included in the control device and the host computer.
第 8 図は、 ホス ト計算機が有するフ ォーマ ツ ト変換機構におけるライ ト処理のフロ一チ ヤ一 トである。 FIG. 8 is a flowchart of the write processing in the format conversion mechanism of the host computer.
第 9 図は、 制御装置が有する固定長データアクセス機構のフローチ ヤ ー トである。 発明を実施するため最良の形態 FIG. 9 is a flowchart of a fixed-length data access mechanism included in the control device. BEST MODE FOR CARRYING OUT THE INVENTION
以下、 本発明の第一の実施例を図を用いて説明する。 Hereinafter, a first embodiment of the present invention will be described with reference to the drawings.
第 1 図は本発明における計算機システムの構成図を示す。 本発明では 、 可変長のアクセスイ ンタ フ —スを有する一台以上のホス ト計算機 1 0 0 と、 固定長のアクセスィ ンタ フ ヱースを有する一台以上のホス ト計 算機 1 1 0 と、 一台以上の記憶装置システム 1 5 0から構成される。 ホス ト計算機 1 0 0 には、 アプリ ケーシ ョ ンプログラムからの入出力 要求を受けて、 可変長フ ォ ーマ ツ トの記憶装置にアクセスするためのコ マン ド群 ( C C Wチヱイ ン) を生成するフ ァ イ ルアクセス機構 1 0 3 と 、 フ ァ イルアクセス機構 1 0 3が生成した C C Wチヱイ ンを実行し、 記 憶装置システム 1 5 0 との間で入出力処理を行う 可変長データアク セス 機構 1 0 4が存在する。 FIG. 1 shows a configuration diagram of a computer system according to the present invention. In the present invention, one or more host computers 110 having a variable-length access interface and one or more host computers 110 having a fixed-length access interface are provided. It is composed of one or more storage systems 150. Upon receiving an input / output request from the application program, the host computer 100 generates a command group (CCW chain) for accessing the storage device of the variable-length format. File access mechanism 103 and the CCW chain generated by the file access mechanism 103 to execute input / output processing with the storage system 150. Seth mechanism 104 exists.
一方、 ホス ト計算機 1 1 0 は、 アプリ ケーシ ョ ンプログラムからの入 出力要求を受けて、 可変長フ ォ ーマ ツ トの記憶装置にアクセスするため の C C Wチヱイ ンを生成するフ ァ イ ルアク セス機構 1 1 3 と、 C C Wチ エイ ンを解釈して、 可変長データ と固定長データ間のフ ォ ーマ ツ ト変換 を行い、 固定長の記憶装置へアクセスするための S C S I コマン ドを生 成する フ ォ ーマ ツ ト変換機構 1 1 2 と、 フ ォ ーマ ツ ト変換機構 1 1 2が 生成した S C S I コマン ドを実行し、 入出力処理を行う 固定長デ一夕ァ ク セス機構 1 1 4を有する。 On the other hand, the host computer 110 receives a request for input / output from the application program and generates a file access request for generating a CCW chain for accessing a storage device of a variable-length format. Interprets the CCW chain, converts the format between variable-length data and fixed-length data, and generates SCSI commands to access fixed-length storage devices. A format conversion mechanism 111 and a fixed-length data access mechanism for executing I / O processing by executing SCSI commands generated by the format conversion mechanism 112. It has 1 1 4
記憶装置システム 1 5 0は、 データを格納する物理ボ リ ューム 1 2 8 と、 物理ボリ ューム 1 2 8 とホス ト計算機 1 0 0 または 1 1 0間で入出 力処理を制御する制御装置 1 2 0から構成される。 The storage system 150 includes a physical volume 128 for storing data, and a control device 12 for controlling input / output processing between the physical volume 128 and the host computer 100 or 110. Consists of 0.
物理ボリ ューム 1 2 8は固定長フ ォ ーマ ツ 卜の記憶装置であ り 、 記憶 装置パス 1 2 7によ り制御装置 1 2 0に接続されている。 制御装置 1 2 0は記憶装置アクセス機構 1 2 6を用いて物理ボ リ ューム 1 2 8への入 出力処理を実行する。 物理ボリ ューム 1 2 8の実例は、 S C S I イ ンタ フ ヱ一ス、 あるいはフ ァ イバチ ャネルィ ンタ フ ヱースを有する F B Aデ ィ スクである。 The physical volume 128 is a fixed-length format storage device, and is connected to the control device 120 by a storage device path 127. The control device 120 executes input / output processing for the physical volume 128 using the storage device access mechanism 126. An example of a physical volume 128 is an FBA disk with a SCS I interface or a fiber interface.
制御装置 1 2 0 とホス ト計算機 1 0 0 はホス トパス 1 3 0 によ り接続 されていて、 ホス ト計算機 1 0 0から発行された C C Wチヱイ ンは、 可 変長データアクセス機構 1 2 1 によ り解釈され、 可変長ボリ ュームの入 出力処理が実行される。 本発明では、 ホス トパス 1 3 0 の実例は E S C 0 Nあるいはフ ァ イバチャネルであ り 、 可変長ボ リ ユ ームは C K Dディ スクを想定している。 The controller 120 and the host computer 100 are connected by the host path 130, and the CCW chain issued from the host computer 100 is acceptable. It is interpreted by the variable length data access mechanism 122 and the input / output processing of the variable length volume is executed. In the present invention, an actual example of the host path 130 is ESC0N or a fiber channel, and the variable length volume is assumed to be a CKD disk.
一方、 制御装置 1 2 0 とホス ト計算機 1 1 0 とはホス トパス 1 4 0 に よ り接続されていて、 ホス ト計算機 1 1 0 から発行された S C S I コマ ン ドは、 固定長データアクセス機構 1 2 2 によ り解釈され、 固定長ボ リ ユ ームへの入出力処理が実行される。 本発明では、 ホス トパス 1 3 0 の 実例は S C S I バスやフ ァ イバチャネルを想定していて、 固定長ボ リ ュ —ムは F B Aディ スクを想定している。 On the other hand, the controller 120 and the host computer 110 are connected by the host path 140, and the SCSI command issued from the host computer 110 has a fixed-length data access mechanism. The input / output processing to the fixed-length volume is executed. In the present invention, the actual example of the host path 130 assumes an SSI bus or a fiber channel, and the fixed-length volume assumes an FBA disk.
キャ ッ シュメ モ リ 1 2 3 は、 物理ボリ ューム 1 2 8上のデータを一時的 に格納するためのメ モ リ である。 The cache memory 123 is a memory for temporarily storing data on the physical volume 128.
物理ボ リ ューム 1 2 8 は固定長フ ォーマ ツ トなので、 可変長データァ クセス機構 1 2 1 では、 固定長フ ォーマ ツ ト と可変長フ ォーマ ツ トの間 でフ ォーマ ツ ト変換を実行する必要がある。 この処理はフ ォーマ ツ ト変 換機構 1 2 4 にて実行される。 Since the physical volume 128 is a fixed-length format, the variable-length data access mechanism 122 executes format conversion between the fixed-length format and the variable-length format. There is a need. This processing is executed by the format conversion mechanism 124.
ホス ト計算機 1 0 0 はアクセス対象の可変長ボリ ユ ームを論理ボ リ ュ ーム 2 0 0 a と して認識しており 、 ホス ト計算機 1 1 0 は、 アクセス対 象の固定長ボ リ ユ ームを論理ボリ ユ ーム 2 0 0 b と して認識している。 第 2 図を用いてこれらの様子を説明する。 The host computer 100 recognizes the variable length volume to be accessed as a logical volume 200a, and the host computer 110 recognizes the fixed length volume to be accessed. The resume is recognized as logical volume 200b. These situations will be described with reference to FIG.
ホス ト計算機 1 0 0 が認識する論理ボ リ ユ ーム 2 0 0 a は、 可変長フ ォーマ ツ ト によ り フ ォーマ ツ ト された記憶装置であ り 、 目的のデータ に アクセスする場合には、 ホス ト計算機 1 0 0 は、 可変長データアクセス 機構 1 0 4 を用いて、 論理ボリ ューム 2 0 0 a の番号と、 アクセスする データの論理ボリ ューム 2 0 0 a上のア ドレス等を、 可変長ボリ ューム のアクセスイ ンタ フ ェースに したがって指定する。 制御装置 1 2 0 は、 フ ォーマ ツ ト変換機構 1 2 4 によ って、 論理ボリ ューム 2 0 0 a の可変 長データを固定長のデータ フ ォーマ ツ トを有する物理ボリ ューム 1 2 8 にフ ォーマッ ト変換する。 すなわち、 ホス ト計算機 1 0 0 からアクセス 要求がある と、 指定された論理ボリ ューム 2 0 0 a の番号と、 アクセス ァ ドレスを、 対応する物理ボリ ユ ーム 1 2 8上のァ ドレスに変換する。 なお、 フ ォ ーマ ツ ト変換機構 1 2 4 によ って実現される、 可変長データ と固定長データ間のフ ォ ーマ ツ ト変換方法とァ ドレスの対応付けについ ては後述する。 The logical volume 200a recognized by the host computer 100 is a storage device that is formatted by a variable-length format, and is used to access target data. The host computer 100 uses the variable-length data access mechanism 104 to determine the number of the logical volume 200a and the address of the data to be accessed on the logical volume 200a. Specify according to the access interface of the variable-length volume. The control device 120 converts the variable-length data of the logical volume 200a into a physical volume 128 having a fixed-length data format by the format conversion mechanism 124. Perform format conversion. That is, when there is an access request from the host computer 100, the number of the specified logical volume 200a and the access address are converted to the corresponding address on the physical volume 128. I do. The format conversion method between variable-length data and fixed-length data and the correspondence between addresses realized by the format conversion mechanism 124 will be described later.
一方、 ホス ト計算機 1 1 0 が認識する論理ボリ ューム 2 0 0 b は、 固 定長フ ォーマ ッ トでフ ォ ーマ ッ ト された記憶装置であ り 、 目的のデータ にアクセスする場合には、 ホス ト計算機 1 1 0 は、 固定長データァクセ ス機構 1 1 4 を用いて論理ボリ ユ ーム 2 0 0 b の番号と、 論理ボ リ ユ ー ム 2 0 O b上のア ドレス等を、 固定長ボリ ュームのアクセスイ ンタ フ エ ースに したがって指定する。 実はこの論理ボ リ ユ ーム 2 0 0 b は物理ボ リ ューム 1 2 8 そのものである。 つま り 、 論理ボリ ューム 2 0 0 b上の ァ ドレスと物理ボリ ユ ーム 1 2 8上のァ ドレスは一致している。 ホス ト 計算機 1 1 0 がデータを読出す場合は、 固定長データア ク セス機構 1 1 4 は論理ボ リ ューム 2 0 0 b 、 すなわち物理ボリ ューム 1 2 8 から固定 長データを読出 し、 フ ォ ーマ ツ ト変換機構 1 1 2 によ り、 可変長データ を抽出する。 またデータを書込む場合には、 フ ォ ーマ ツ ト変換機構 1 1 2 によ り可変長データを固定長データへ変換し、 固定長データアクセス 機構 1 1 4 によ り 、 固定長データを論理ボリ ューム 2 0 0 b 、 すなわち 物理ボリ ユ ーム 1 2 8 へ書込む。 On the other hand, the logical volume 200b recognized by the host computer 110 is a storage device that is formatted in a fixed-length format, and is used to access target data. The host computer 110 uses the fixed-length data access mechanism 114 to determine the number of the logical volume 200b, the address on the logical volume 200b, and the like. Specify according to the fixed-length volume access interface. Actually, this logical volume 200b is the physical volume 128 itself. That is, the address on the logical volume 200b and the address on the physical volume 128 match. When the host computer 110 reads data, the fixed-length data access mechanism 114 reads fixed-length data from the logical volume 200b, that is, the physical volume 128, and reads the data. The variable-length data is extracted by the mat conversion mechanism 112. When writing data, variable format data is converted into fixed length data by the format conversion mechanism 112, and fixed length data is converted by the fixed length data access mechanism 114. Write to logical volume 200b, ie, physical volume 128.
こ こでのポイ ン トは、 フ ォーマ ツ ト変換機構 1 2 4 と 1 1 2 が、 同一 方法によ ってフ ォ ーマ ツ ト変換を行う こ とである。 こ うする こ とで、 一 方のフ ォ ーマ ツ ト変換機構によ って変換された固定長データを、 他方の フ ォーマ ッ ト変換機構によ り 可変長に復元する こ とができ る。 The point here is that the format conversion mechanisms 124 and 112 perform the format conversion by the same method. In this way, the fixed-length data converted by one format conversion mechanism can be restored to a variable length by the other format conversion mechanism. You.
また、 本発明で扱う記憶装置システム 1 5 0 に R A I D技術を適用 し て、 複数の記憶装置の一部領域から、 一台の物理ボリ ューム 1 2 8 を構 成する こ と もできる。 この場合には物理ボ リ ューム 1 2 8上のア ドレス を R A I Dを構成する記憶装置にマ ッ ピングする必要があるが、 これに は、 例えば特開平 5 — 1 9 7 4 9 8 に記載された方法を適用すればよい なお、 論理ボリ ューム 2 0 0 a および 2 0 0 b、 物理ボ リ ューム 1 2 8 には一意に番号が付けられていて、 論理ボリ ユ ーム 2 0 0 a あるいは 論理ボリ ユ ーム 2 0 b の番号が指定される と、 対応する物理ボ リ ユ ーム 1 2 8がーつ定まる。 Also, by applying the RAID technology to the storage system 150 handled by the present invention, one physical volume 128 can be configured from a partial area of a plurality of storage devices. In this case, it is necessary to map the address on the physical volume 128 to the storage device that constitutes the RAID. Note that the logical volumes 200a and 200b and the physical volume 128 are uniquely numbered, and the logical volume 200a or If a logical volume 20b number is specified, the corresponding physical volume 1 2 8 is decided.
次に、 第 3 図を用いて論理ボリ ューム 2 0 0 、 物理ボリ ューム 1 2 8 の一構成例について、 説明する。 各ボ リ ュームと も基本的な構成は同 じ であ り、 次の説明では、 これらのボ リ ュームを総称して記憶装置と呼ぶ 記憶装置 4 0 0 は回転する記憶媒体と、 複数のディ スク 4 1 0 と、 デ イ スク 4 1 0 の枚数に等しい数のへッ ド 4 1 3 から構成される。 デイ ス ク 4 1 0 がー回転した時に、 一つのへッ ド 4 1 3 がアクセスできるディ スク 4 1 0 の領域を ト ラ ッ ク 4 1 1 と呼び、 全てのへッ ド 4 1 3 の下を 通過する ト ラ ッ ク 4 1 1 の円筒状の集合をシ リ ンダ 4 1 2 と呼ぶ。 シ リ ンダ 4 1 2 は最外周から内周に向かって 0 から昇順に番号が付けられて いて、 へッ ド 4 1 3 にも上から下へ 0 から昇順に番号が付けられている 。 したがって、 シ リ ンダ番号とヘッ ド番号の組みで、 トラ ッ ク 4 1 1 を 特定できる。 ト ラ ッ ク 4 1 1 上にはイ ンデッ ク ス 5 0 4 と呼ばれる特別 なマークが付与されていて、 これによ り ト ラ ッ ク 2 1 1 の先頭を認識す る。 Next, an example of the configuration of the logical volume 200 and the physical volume 128 will be described with reference to FIG. Each volume has the same basic configuration, and in the following description, these volumes are collectively referred to as storage devices. Storage device 400 is a rotating storage medium and a plurality of storage devices. It is composed of a disk 410 and a number of heads 413 equal to the number of disks 410. When the disk 4 10 rotates, the area of the disk 4 10 that one head 4 13 can access is referred to as the track 4 11 and the area of all the heads 4 13 The cylindrical set of tracks 411 passing below is called cylinder 412. The cylinders 4 12 are numbered in ascending order from 0 from the outermost circumference to the inner circumference, and the heads 4 13 are also numbered in ascending order from 0 from top to bottom. Therefore, the track 411 can be identified by the combination of the cylinder number and the head number. A special mark, called index 504, has been added to track 411 to identify the beginning of track 211.
論理ボ リ ューム 2 0 0 と、 物理ボ リ ューム 1 2 8 は、 上述した基本構 成は同 じだが、 可変長フ ォ ーマ ツ トか固定長フ ォ ーマ ツ トかによ つ て、 記憶装置 4 0 0上のア ド レス表現およびデータの格納フ ォ ーマ ツ トが異 なる。 まず第 4 図を用いて可変長ボ リ ュ一ムである論理ボ リ ユーム 2 0 0 a の場合のデータ格納フ ォ ーマ ツ トを説明する。 The logical volume 200 and the physical volume 128 have the same basic configuration as described above, but depending on whether the format is variable-length format or fixed-length format. However, the address expression on the storage device 400 and the storage format of the data are different. First, the data storage format in the case of a logical volume 200a, which is a variable-length volume, will be described with reference to FIG.
ト ラ ッ ク 4 1 1 は一個のホームア ド レス (以下、 H Aと略す) 5 1 0 と一個以上の レ コー ド 5 0 0 から構成される。 H A 5 1 0 は各 トラ ッ ク 4 1 1 の先頭に位置する最初のフ ィ ール ドである。 各レコー ド 5 0 0 は 一個以上のフ ィ ール ド、 すなわちカ ウ ン ト部 5 0 1 、 データ部 5 0 2、 さ らに場合によ っては、 データ部の前にキー部 (図示せず) が存在しう る。 カウ ン ト部 5 0 1 は固定長のフ ィ ール ドで、 その レコー ド 5 0 0 の ア ド レス、 後続するフ ィ ール ド (上記のデータ部 5 0 2 とキー部) の長 さなどを格納している。 各レコー ド 5 0 0 は可変長である こ と、 つま り データ部 5 0 2 の長さがレ コ一 ド 5 0 0毎に異な っていても良いこ と、 が許されている。 このために、 カウ ン ト部 5 0 1 にその レコー ドのキー 部およびデータ部 5 0 2 の長さが格納されていて、 カウ ン ト部 5 0 1 を 見れば、 その レコ一 ド 5 0 0 の各フ ィ ール ドの長さが分かるよ う にな つ ている。 レコー ド 5 0 0 のア ドレスは、 シ リ ンダ番号、 ヘッ ド番号、 レ コー ド番号、 すなわち ト ラ ッ ク先頭から付与されたシーケ ン シ ャ ルな番 号の組みで示す。 The track 4111 is composed of one home address (hereinafter abbreviated as HA) 5110 and one or more records 500. HA 510 is the first field located at the beginning of each track 411. Each record 500 is composed of one or more fields: a count section 501, a data section 502, and, in some cases, a key section before the data section. (Not shown). The count section 501 is a fixed-length field. The address of the record 500 is followed by the length of the following fields (the data section 502 and the key section described above). And so on. It is allowed that each record 500 has a variable length, that is, the length of the data section 502 may be different for each record 500. For this purpose, the count section 501 has the record key The length of the record and data sections 502 is stored, and if you look at the count section 501, you can see the length of each field of the record 500. Is in use. The address of record 500 is indicated by a combination of a cylinder number, a head number, and a record number, that is, a sequential number assigned from the beginning of the track.
次に第 5 図を用いて固定長ボ リ ュ一ムである論理ボ リ ュ一ム 2 0 0 b 、 物理ボ リ ューム 1 2 8 のア ド レス表現について説明する。 固定長の記 憶装置 4 0 0 では、 各 ト ラ ッ ク 4 1 1 はあ らかじめ定められた固定長の 領域 (以降、 ブロ ッ ク 6 0 0 と呼ぶ) から構成されていて、 各ブロ ッ ク 6 0 0 は記憶装置 4 0 0 内で一意に番号付けされている。 従って記憶装 置 1 2 8 のある領域にアクセスする際には、 その領域の先頭のブロ ッ ク 6 0 0 の番号と、 それに後続するブロ ッ ク 6 0 0 の個数を指定すれば良 い Next, the address expression of the logical volume 200b and the physical volume 128, which are fixed-length volumes, will be described with reference to FIG. In the fixed-length storage device 400, each track 411 is composed of a predetermined fixed-length area (hereinafter referred to as a block 600). Block 600 is uniquely numbered in storage device 400. Therefore, when accessing a certain area of the storage device 128, it is sufficient to specify the number of the first block 600 and the number of subsequent blocks 600 in the area.
続いて、 可変長の論理ボ リ ユ ーム 2 0 0 a を固定長の物理ボ リ ユ ーム にフ ォ ーマ ツ ト変換する方法を第 6 図を用いて説明する。 Next, a method of format-converting a variable-length logical volume 200a into a fixed-length physical volume will be described with reference to FIG.
フ ォ ーマ ツ ト変換に当 って、 可変長フ ォ ーマ ツ トで表現された各 ト ラ ッ ク 4 1 1 を固定長のブロ ッ ク 6 0 0 の大き さ と等しい領域に分割 し、 番号 0 で示される先頭のブロ ッ ク 6 0 0 に、 シ リ ンダ番号 0 、 ヘッ ド番 号 0 で示される先頭 ト ラ ッ ク 4 1 1 の先頭領域を割り 当てる。 以降、 後 続するブロ ッ ク 6 0 0 に トラ ッ ク 4 1 1 上の後続する領域を割り 当てて いき、 先頭の ト ラ ッ ク 4 1 1 の全領域が割り 当て られる と、 後続するブ ロ ッ ク 6 0 0 には次 ト ラ ッ ク、 すなわちシ リ ンダ番号 0 、 へッ ド番号 1 の ト ラ ッ ク 4 1 1 の先頭領域を割 り 当てる。 以下同様に して、 各 ト ラ ッ ク 4 1 1 の全領域を各ブロ ッ ク 6 0 0 に対応付ける。 For format conversion, each track 411 represented by a variable-length format is divided into areas equal to the size of fixed-length block 600. Then, to the first block 600 represented by the number 0, the first area of the first track 411 represented by the cylinder number 0 and the head number 0 is allocated. Thereafter, the subsequent area on track 411 is allocated to the following block 600, and when the entire area of the first track 411 is allocated, the subsequent block is allocated. The next track, that is, the leading area of the track 41 1 of the cylinder number 0 and the head number 1 is assigned to the lock 600. In the same manner, the entire area of each track 411 is associated with each block 600.
各 ト ラ ッ クの長さは論理ボリ ューム 2 0 0 a のタイプによって固定的 に定められているので、 以下の数式を用いれば、 ト ラ ッ クア ドレスから その ト ラ ッ ク 4 1 1 を格納している先頭のブロ ッ ク 6 0 0 の番号と、 ト ラ ッ ク 当 り のブロ ッ ク 6 0 0 の個数を求める こ とができる。 Since the length of each track is fixedly determined by the type of the logical volume 200a, the following equation is used to derive the track 411 from the track address. The number of the first block 600 stored and the number of blocks 600 per track can be obtained.
(数 1 ) ト ラ ッ ク当た り のプロ ッ ク数 = < ト ラ ッ ク容量 ÷プロ ッ ク容量 > (Equation 1) Number of blocks per track = <track capacity ÷ block capacity>
(数 2 ) ト ラ ッ ク先頭のブロ ッ ク番号 = (シ リ ンダ番号 Xへッ ド数 +へッ ド番号) X トラ ッ ク 当た り のサブブロ ッ ク数 こ こでく X 〉は、 X以上の最小の整数である。 (Equation 2) Block number at the beginning of the track = (Cylinder number X head Number of heads + number of heads) X Number of subblocks per track where X> is the smallest integer greater than or equal to X.
例えば、 サブブロ ッ ク 3 4 0 の容量が 5 1 2バイ ト、 ト ラ ッ ク 2 1 1 の容量が 4 7 キロバイ ト、 へッ ド数は 1 5 とする と、 ト ラ ッ ク当た り の サブブロ ッ ク数は 9 4 であ り 、 シ リ ンダ番号 0 、 へッ ド番号 1 の ト ラ ッ ク 4 1 1 の先頭サブブロ ッ クは 9 4 、 シ リ ンダ番号 1 0 0 、 へッ ド番号 5 の ト ラ ッ ク 4 1 1 の先頭サブブロ ッ ク は 1 4 1 、 4 7 0 となる。 For example, if the capacity of sub-block 340 is 5 12 bytes, the capacity of track 211 is 47 KB, and the number of heads is 15, the track hits The number of sub-blocks is 94, and the first sub-block of cylinder number 0 and head number 1 track 41 1 is 94, cylinder number 100 and head number 41. The first sub-blocks of the track 411 of the node number 5 are 141 and 470.
上記の方法によ って、 論理ボ リ ューム 2 0 0 a の全ての領域を、 物理 ボ リ ューム 1 2 8 に割り 当てるが、 こ こで示したフ ォーマ ツ ト変換はあ く までも一例である。 一般的にはさ ま ざまなフ ォーマ ツ ト変換方法が考 えられるが、 本発明で重要なこ とは、 ある一つのフ ォーマ ツ ト変換を、 全てのホス ト計算機 1 1 0 が有する フ ォーマ ツ ト変換機構 1 1 2 、 およ び制御装置 1 2 0 が有するフ ォーマ ツ ト変換機構 1 2 4 が認識し、 共通 に使用する こ とである。 According to the above method, all areas of the logical volume 200a are allocated to the physical volume 128, but the format conversion shown here is only an example. It is. In general, various format conversion methods are conceivable, but what is important in the present invention is that a certain format conversion is performed by a format that all the host computers 110 have. This is to be recognized and used by the format conversion mechanism 124 of the control unit 120 and the control unit 120 of the control device 120.
次に第 7 図を用いて、 ホス ト計算機 1 0 0 からの入出力要求に対する 制御装置 1 2 0 の処理を説明する。 制御装置 1 2 0 がホス ト計算機 1 0 0 から入出力要求を受領する と、 指定された論理ボリ ューム 2 0 0 a に 対応する物理ボ リ ューム 1 2 8 の番号を求める (ステッ プ 8 8 0 ) 。 次 にステッ プ 8 0 0 で、 (数 1 ) および (数 2 ) を使って、 アクセス対象 トラ ッ クが格納されている物理ボ リ ユ ーム 1 2 8上のブロ ッ ク番号とブ ロ ッ ク数を求める。 次にステ ッ プ 8 1 0 で、 キャ ッ シュ 1 2 3 に目的と する ト ラ ッ ク 4 1 1 が存在するかどうかを調べ、 も し存在していなけれ ば、 当該 トラ ッ ク 4 1 1 を物理ボリ ューム 1 2 8からキャ ッ シュ 1 2 3 へロー ドする (ステップ 8 2 0 ) 。 Next, the processing of the control device 120 in response to an input / output request from the host computer 100 will be described with reference to FIG. When the controller 120 receives an I / O request from the host computer 100, it obtains the number of the physical volume 128 corresponding to the specified logical volume 200a (Step 8 8 0). Next, in step 800, using (Equation 1) and (Equation 2), the block number and the block number on the physical volume 128 in which the track to be accessed is stored are stored. Find the number of clicks. Next, in step 810, it is checked whether or not the target track 411 is present in the cache 213, and if not, the relevant track 411 is checked. Is loaded from the physical volume 128 to the cache 123 (step 820).
も しキャ ッ シュ 1 2 3上に目的とする ト ラ ッ ク 4 1 1 が存在していた ら、.ステッ プ 8 2 0 はスキッ プされる。 続いてステ ッ プ 8 3 0 で、 当該 ト ラ ッ ク 4 1 1 の先頭レコー ド 5 0 0 のカウ ン ト部 5 0 1 へアクセス し 、 ステッ プ 8 4 0 でアクセス対象の レコー ド 5 0 0 かどう かを調べる。 こ こでステッ プ 8 4 0 は次の方法によ り実現する。 すなわち制御装置 1 2 0 はホス ト計算機 1 0 0 から指示されたアクセス対象のァ ドレス、 つ ま り シ リ ンダ番号、 へッ ド番号、 レコー ド番号を初期値と して、 次にァ クセスすべきア ドレスを保持していて、 カウ ン ト部 5 0 1 から読出 した ァ ド レスと比較する。 比較の結果も し一致していればアクセス対象の レ コー ド 5 0 0 であ り 、 次アクセス対象のァ ドレスに設定する。 If the target track 4 11 1 exists on the cache 12 3, the step 8 20 is skipped. Subsequently, in step 8330, the count section 501 of the first record 500 of the track 4111 is accessed, and the record 50 0 to be accessed is accessed in step 840. Check for 0. Here, step 840 is realized by the following method. That is, the control device 120 sets the address to be accessed designated by the host computer 100, that is, the cylinder number, head number, and record number as initial values, and then sets It holds the address to be accessed and compares it with the address read from the count section 501. If the result of the comparison is a match, the record to be accessed is 500, and the address to be accessed next is set.
も し当該レコ一 ド 5 0 0 がアクセス対象な ら、 ステ ッ プ 8 5 0 でホス ト計算機 1 0 0 から指定されたフ ィ ール ドへアクセスする。 すなわち も し リ ー ドアクセスな ら可変長データアクセス機構 1 2 1 を使用 してキヤ ッ シュ 1 2 3 からホス ト計算機 1 0 0へ指定フ ィ ール ドを転送し、 ライ トアクセスな らホス ト計算機 1 0 0 からキャ ッ シュ 1 2 3 へ指定フ ィ 一 ル ドへの書込みを行う。 If the record 500 is to be accessed, the specified field is accessed from the host computer 100 in step 850. In other words, if the read access is used, the designated field is transferred from the cache 123 to the host computer 100 using the variable-length data access mechanism 121, and if the write access is used, Writes the specified field from the host computer 100 to the cache 123.
指定フ ィ ール ドへのアクセスが完了する と、 ホス ト計算機 1 0 0 が後 続する レコー ド 5 0 0へのアクセスを要求しているかどう かを、 C C W チェイ ンによ り 判定する (ステ ッ プ 8 6 0 ) 。 も しそう な ら、 次レコ一 ド 5 0 0 のカウ ン ト部 5 0 1 を読出す。 同様に、 ステ ッ プ 8 4 0 で当該 レコー ド 5 0 0 がアクセス対象でなければ、 当該レコ一 ド 5 0 0 を読み 飛ばし、 ステッ プ 8 7 0 で次 レコー ド 5 0 0 のカ ウ ン ト部 5 0 1 を読出 す。 その後、 再びステッ プ 8 4 0 に戻り 、 当該レコー ド 5 0 0 がァクセ ス対象かどう かを調べる。 When the access to the specified field is completed, it is determined by the CCW chain whether or not the host computer 100 requests access to the following record 500 ( Step 860). If so, read the count section 501 of the next record 500. Similarly, if the record 500 is not an access target at step 840, the record 500 is skipped, and the next record 500 is counted at step 870. Read out the port section 501. Thereafter, the process returns to step 840 again to check whether or not the record 500 is to be accessed.
ステ ッ プ 8 4 0 からステッ プ 8 7 0 までの処理をホス ト計算機 1 0 0 からのアクセス要求が終了するまで繰り返す。 The processing from step 840 to step 870 is repeated until the access request from the host computer 100 ends.
ホス ト計算機 1 0 0 からのアクセス要求がライ トだっ た場合は、 キヤ ッ シュ 1 2 3上にライ トデータが格納されている。 このため、 当該デ一 夕をキャ ッ シュ 1 2 3 から物理ボ リ ューム 1 2 8 にライ ト しな く てはな らないが、 この実現も容易である。 すなわち、 ステ ッ プ 8 0 0 で求めた よ う に、 (数 1 ) および (数 2 ) を使用 して ト ラ ッ ク 4 1 1 のア ドレス を物理ボリ ューム 1 2 8上のア ドレス、 つま り先頭ブロ ッ ク番号とプロ ッ ク数を算出する。 そのァ ドレスに したがって記憶装置アクセス機構 1 2 6 を使用 して、 物理ボリ ューム 1 2 8へ書込めばよい。 When the access request from the host computer 100 is a write request, the write data is stored on the cache 123. For this reason, the data must be written from the cache 123 to the physical volume 128, but this is easy to realize. That is, as obtained in step 800, the address of the track 41 1 is changed to the address on the physical volume 128 by using (Equation 1) and (Equation 2). That is, the first block number and the number of blocks are calculated. It is sufficient to write to the physical volume 128 using the storage device access mechanism 126 according to the address.
以上、 ホス ト計算機 1 0 0 から論理ボリ ューム 2 0 0 aへのアクセス 方法について説明 した。 以降では、 ホス ト計算機 1 0 0 と 1 1 0 と間で 記憶装置 4 0 0 を共有するための方法について説明する。 このために、 ホス ト計算機 1 1 0 は物理ボ リ ューム 1 2 8 を論理ボ リ ューム 2 0 0 b と して認識しているため、 論理ボリ ューム 2 0 0 b上のア ドレスと物理 ボ リ ューム 1 2 8上のア ドレスは一致している。 ホス ト計算機 1 1 0 は 、 この物理ボ リ ューム 1 2 8 にアクセス して固定長のデータを読出 し、 フ ォーマ ツ ト変換機構 1 1 2 によ って、 読出 した固定長のデータから 目 的とする可変長の レコー ド 5 0 0 を抽出する。 ホス ト計算機 1 1 0 内の フ ォーマ ツ ト変換機構 1 1 2 は、 制御装置 1 2 0 のフ ォーマ ツ ト変換機 構 1 2 4 が実現する可変長フ ォーマ ツ トから固定長フ ォーマ ツ トへの埋 め込み方法を知っているため、 フ ォーマ ツ ト変換機構 1 2 4 と同様の処 理を実行する こ とによ って、 固定長データから 目的の可変長レコ一 ドへ アクセスする こ とができる。 以下、 第 7 図、 第 8 図を用いてこの実現方 法の詳細について説明する。 The method of accessing the logical volume 200a from the host computer 100 has been described above. Hereinafter, a method for sharing the storage device 400 between the host computers 100 and 110 will be described. For this purpose, the host computer 110 converts the physical volume 128 to the logical volume 200 b Therefore, the address on the logical volume 200b and the address on the physical volume 128 match. The host computer 110 accesses the physical volume 128 to read fixed-length data, and the format conversion mechanism 112 reads the fixed-length data from the read fixed-length data. The target variable-length record 500 is extracted. The format conversion mechanism 112 in the host computer 110 is composed of a variable length format and a fixed length format realized by the format conversion mechanism 124 of the controller 120. Since it knows how to embed the data in the data, it performs the same processing as the format conversion mechanism 124 to access the target variable-length record from the fixed-length data. can do. The details of this realization method will be described below with reference to FIGS. 7 and 8.
フ ォーマ ツ ト変換機構 1 1 2 は、 フ ァイルアクセス機構 1 1 3 で作成 された C C Wチ イ ンを受け取る と、 その C CW チヱイ ンを解釈して リ — ドアクセスか、 ライ トアクセスかを判断する。 まず、 第 7 図を用いて リ ー ドアクセスだった場合の処理について説明する。 論理ボリ ューム 2 0 0 b と物理ボリ ユ ーム 1 2 8 の対応付けは制御装置 1 2 0 が実行する ので、 論理ボリ ューム 2 0 0 b に対するアクセス要求の場合、 ステ ッ プ 8 8 0 は不要になる。 次にステ ッ プ 8 0 0 では C C Wチヱイ ンから、 ァ クセス対象のア ド レス、 すなわちシ リ ンダ番号、 へッ ド番号、 レコー ド 番号を求めて、 これらよ り (数 1 ) と (数 2 ) を使って、 アクセス対象 の ト ラ ッ ク 4 1 1 が格納されているブロ ッ ク番号とブロ ッ ク数を求める 。 次にステッ プ 8 1 0 で、 目的とする ト ラ ッ ク 4 1 1 がホス ト計算機 1 1 0上のキャ ッ シュ (図示せず) 上に格納されているかどう かを判定す る。 こ こでキャ ッ シュ とは、 ホス ト計算機 1 1 0上に存在しているメ モ リ であ り、 例えばこの目的のためだけに定義されたバッ フ ァでも良い し 、 あるいは主記憶の一部を使用 してこれを実現してもよい。 も し目的の トラ ッ ク 4 1 1 がキャ ッ シュ上に存在しない場合は、 ステッ プ 8 2 0 で 記憶装置システム 1 5 0 にアクセス して、 当該 ト ラ ッ ク 4 1 1 をキヤ ッ シュへ読出す。 ト ラ ッ ク 4 1 1 を記憶装置システム 1 5 0 から読出す際 には、 ステッ プ 8 0 0 で求めたブロ ッ ク番号とブロ ッ ク数を基に読出 し の S C S I コマン ドを生成し、 固定長データアクセス機構 1 1 4 にこれ を実行させる。 以降、 フ ォ ーマ ツ ト変換機構 1 1 2 は、 C C Wチヱイ ン の内容に従い、 ステッ プ 8 3 0 から 8 7 0 までを実行するが、 これは前 記の説明と同様なので省略する。 When the format conversion mechanism 112 receives the CCW chain created by the file access mechanism 113, the format conversion mechanism 112 interprets the CCW chain and determines whether it is a read access or a write access. to decide. First, the processing in the case of read access will be described with reference to FIG. Since the control unit 120 executes the association between the logical volume 200b and the physical volume 128, in the case of an access request to the logical volume 200b, step 880 is performed. It becomes unnecessary. Next, in step 800, the address to be accessed, that is, a cylinder number, a head number, and a record number, are obtained from the CCW chain. Using 2), obtain the block number and the number of blocks in which the track 4 11 1 to be accessed is stored. Next, in step 810, it is determined whether or not the target track 411 is stored in a cache (not shown) on the host computer 110. Here, the cache is a memory residing on the host computer 110, and may be, for example, a buffer defined only for this purpose, or a cache. This may be achieved using a unit. If the desired track 411 is not on the cache, the storage system 150 is accessed in step 820 to cache the track 411. Read to When reading track 4111 from the storage system 150, a read SCSI command is generated based on the block number and block number obtained in step 800. The fixed-length data access mechanism 1 1 4 Is executed. Thereafter, the format conversion mechanism 112 executes steps 830 to 870 in accordance with the content of the CCW chain, but this is the same as that described above, and a description thereof will be omitted.
次にフ ォーマ ツ ト変換機構 1 1 2 がフ ァ イルアクセス機構 1 1 3 が作 成した C C Wチヱイ ンを解析した結果、 ライ トアクセスだった場合の処 理を、 第 8 図を用いて説明する。 第 8 図において、 ステッ プ 9 0 0 、 9 3 0 、 9 4 0 、 9 5 0 、 9 6 0 、 9 7 0 の処理は、 第 7 図におけるステ ップ 8 0 0 、 8 3 0 、 8 4 0 、 8 5 0 、 8 6 0 、 8 7 0 の処理と全 く 同 じなので省略し、 残り のステ ッ プについて説明する。 Next, the format conversion mechanism 112 analyzes the CCW chain created by the file access mechanism 113, and as a result, describes the processing in the case of write access, with reference to FIG. I do. In FIG. 8, the processing of steps 900, 930, 940, 950, 960, and 970 is the same as the processing of steps 800, 830, and 8 in FIG. The processing is completely the same as the processing of 40, 850, 860, and 870, so the description will be omitted, and the remaining steps will be described.
ステッ プ 9 2 0 では、 ステ ッ プ 9 0 0 で求めたブロ ッ ク番号とブロ ッ ク数によ り特定される領域を、 固定長データアクセス機構 1 1 4 を介し て、 記憶装置システム 1 5 0 から読出す。 次にステッ プ 9 3 0 からステ ッ プ 9 7 0 で、 C C Wチヱイ ンを解析して、 要求された全ての レコー ド 3 0 0 の更新がキャ ッ シュ上で完了する と、 ステ ッ プ 9 8 0 で、 固定長 データアクセス機構 1 1 4 を介して再び記憶装置システム 1 5 0 へ当該 ト ラ ッ ク 4 1 1 を書込む。 At step 920, the area specified by the block number and the number of blocks obtained at step 900 is stored in the storage device system 1 via the fixed-length data access mechanism 114. Read from 0. Next, at step 930 to step 970, the CCW chain is analyzed, and when all of the requested record 300 updates have been completed in the cache, step 930 is executed. At 80, the relevant track 4111 is written to the storage system 150 again via the fixed-length data access mechanism 114.
次に、 ホス ト計算機 1 1 0 からアクセスがあっ た際の制御装置 1 2 0 の処理を第 9 図を用いて説明する。 制御装置 1 2 0 の処理のポイ ン ト は 、 物理ボ リ ューム 1 2 8 に格納されているデータを、 フ ォ ーマ ツ ト変換 を行う こ とな く 、 そのまま S C S I コマン ドによ り アクセスさせる こ と である。 ホス ト計算機 1 1 0 はフ ォ ーマ ツ ト変換機構 1 1 2 によ っ て、 記憶装置システム 1 5 0 から読出 した固定長データから可変長データを 抽出 し、 また可変長データを固定長データへ変換して、 記憶装置システ ム 1 5 0へ書込む。 Next, the processing of the control device 120 when there is access from the host computer 110 will be described with reference to FIG. The point of processing by the control unit 120 is to access the data stored in the physical volume 128 by using the SCSI command as it is without performing format conversion. It is to make it. The host computer 110 extracts variable-length data from the fixed-length data read from the storage system 150 by the format conversion mechanism 112, and converts the variable-length data to fixed-length data. Convert to data and write to storage system 150.
まずステ ッ プ 1 0 0 0 で、 ホス ト計算機 1 1 0 から指定された論理ボ リ ューム 2 0 0 b に対応する物理ボ リ ューム 1 2 8 を求める。 そ して、 ホス ト計算機 1 1 0 から指定された論理ボ リ ユ ーム 2 0 0 b に対するァ ク セスア ド レス、 つま り ブロ ッ ク番号とブロ ッ ク数を、 物理ボリ ューム 1 2 8 のアクセスア ドレスとする。 次にステ ッ プ 1 0 1 0 で リ ー ドァク セスかどう かを判定し、 も しそう であればステ ッ プ 1 0 2 0 で、 目的の データがキャ ッ シュ 1 2 3 上に存在するかどう かを調べ、 存在しなけれ ばステ ッ プ 1 0 3 0 で記憶装置アクセス機構 1 2 6 を使用 して目的とす るデータをキャ ッ シュ 1 2 3へロー ドする。 その後、 ステッ プ 1 0 4 0 で、 リ ー ドデータをホス ト計算機 1 1 0へ転送し、 処理を完了する。 も しステッ プ 1 0 1 0 でライ トアクセスと判定された場合は、 ホス ト計算 機 1 1 0 からライ トデータを受領し、 キャ ッ シュ 1 2 3 へ格納して処理 を完了する。 その後、 キャ ッ シュ 1 2 3 から物理ボ リ ューム 1 2 8へデ 一夕を書込む必要があるが、 こ の際にはホス ト計算機 1 1 0 から指定さ れた書込みァ ド レスがそのま ま物理ボリ ュ一ム 1 2 8上のァ ドレスであ るため、 論理ボリ ューム 2 0 0 b の番号を物理ボ リ ューム 1 2 8 の番号 に番号に変換したのち、 そのァ ド レスへ書込めば良い。 First, in step 1000, the host computer 110 obtains a physical volume 128 corresponding to the specified logical volume 200b. Then, the access address, that is, the block number and the number of blocks, from the host computer 110 to the specified logical volume 200 b are converted to the physical volume 128. Access address. Next, at step 1010, it is determined whether or not the access is a read access, and if so, at step 102, whether the desired data is present in the cache 123 is determined. Check if it exists For example, at step 1303, the target data is loaded to the cache 123 using the storage device access mechanism 126. Then, in step 104, the read data is transferred to the host computer 110, and the processing is completed. If write access is determined in step 110, write data is received from the host computer 110 and stored in the cache 123 to complete the processing. After that, it is necessary to write the data from the cache 123 to the physical volume 128, but in this case, the write address specified by the host computer 110 is used to write the data. Since the address is still on the physical volume 128, the number of the logical volume 200b is converted to the number of the physical volume 128, and then to that address. Just write it.
以上の処理によれば、 ホス ト計算機 1 0 0 からライ ト された可変長の データは、 フ ォ ーマ ツ ト変換機構 1 2 4 によ り 固定長データ に変換され て、 物理ボリ ューム 1 2 8へ書込まれる。 そのデータをホス ト計算機 1 1 0 から読出す場合には、 当該データが格納されている物理ボ リ ューム 1 2 8上のア ド レスをホス ト計算機 1 1 0 が指定し、 固定長データのま ま読出す。 そ してフ ォ ーマ ツ ト変換機構 1 1 2 によ って、 目的とする可 変長のデータを抽出する。 According to the above processing, the variable-length data written from the host computer 100 is converted into fixed-length data by the format conversion mechanism 124, and the physical volume 1 Written to 28. When reading that data from the host computer 110, the host computer 110 specifies the address on the physical volume 128 that stores the data, and the fixed-length data Read it out. Then, the target variable length data is extracted by the format conversion mechanism 112.
一方、 ホス ト計算機 1 1 0 がデータを書込む際には、 フ ォ ーマ ツ ト変 換機構 1 1 2 によ り 、 可変長データを固定長データへ変換して、 物理ボ リ ューム 1 2 8へ書込む。 そのデータをホス ト計算機 1 0 0 が読出す際 には、 当該データが格納されている論理ボ リ ューム 2 0 0 a上のア ド レ スを指定し、 制御装置 1 2 0 は指定されたア ド レスを物理ボ リ ューム 1 2 8上のア ド レスに変換して、 固定長データを読出す。 そ してフ ォ ーマ ッ ト変換機構 1 2 4 によ り 、 可変長データを抽出 して、 ホス ト計算機へ 当該データを転送する。 On the other hand, when the host computer 110 writes data, the format conversion mechanism 112 converts the variable-length data into fixed-length data and converts the physical volume 1 into the fixed-length data. 2 Write to 8. When the host computer 100 reads the data, the address on the logical volume 200 a where the data is stored is specified, and the control device 120 specifies the address. Converts the address to the address on physical volume 128 and reads fixed-length data. Then, the format conversion mechanism 124 extracts the variable-length data and transfers the data to the host computer.
これらの処理によ って、 可変長のアクセスィ ンタ フ ヱ 一スを持つホス ト計算機 1 0 0 と、 固定長のアクセスイ ンタ フ ェースを持つホス ト計算 機 1 1 0 間で、 記憶装置システム 1 5 0 に格納されたデータを共有する こ とが可能になる。 産業上の利用可能性 以上のよ う に、 本発明にかかる複数のホス ト計算機におけるデータ共 有方法は、 アクセスイ ンタ フ ヱ 一スが異なる複数のホス ト計算機による データの共有方法と して有用であ り 、 固定長のアクセスィ ンタ フ ユース を有するホス ト計算機と可変長のアクセスィ ンタ フ エースを有するホス ト計算機との間で、 固定長フ ォーマ ツ 卜でフ ォーマ ツ 卜 された記憶装置 のデータを共有する計算機システムを構築するのに適している。 By these processes, the storage device between the host computer 100 having a variable-length access interface and the host computer 110 having a fixed-length access interface is stored. Data stored in the system 150 can be shared. Industrial applicability As described above, the method of sharing data in a plurality of host computers according to the present invention is useful as a method of sharing data between a plurality of host computers having different access interfaces, and is fixed. The data of the storage device formatted in the fixed-length format is shared between the host computer having the long-term access interface and the host computer having the variable-length access interface. It is suitable for building computer systems that perform
Claims
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/JP1998/003335 WO2000007105A1 (en) | 1998-07-27 | 1998-07-27 | Computer system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/JP1998/003335 WO2000007105A1 (en) | 1998-07-27 | 1998-07-27 | Computer system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2000007105A1 true WO2000007105A1 (en) | 2000-02-10 |
Family
ID=14208687
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/JP1998/003335 Ceased WO2000007105A1 (en) | 1998-07-27 | 1998-07-27 | Computer system |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2000007105A1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7076687B2 (en) | 2002-10-16 | 2006-07-11 | Hitachi, Ltd. | System and method for bi-directional failure detection of a site in a clustering system |
| US7275100B2 (en) | 2001-01-12 | 2007-09-25 | Hitachi, Ltd. | Failure notification method and system using remote mirroring for clustering systems |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0612786A (en) * | 1992-06-29 | 1994-01-21 | Hitachi Ltd | Magnetic disk unit |
| JPH07168675A (en) * | 1992-11-23 | 1995-07-04 | Internatl Business Mach Corp <Ibm> | Data storage system and method of operating the same |
| JPH08241174A (en) * | 1995-03-03 | 1996-09-17 | Fujitsu Ltd | Control method of disk controller |
| JPH09258908A (en) * | 1996-01-19 | 1997-10-03 | Hitachi Ltd | Computer system |
| JPH1011223A (en) * | 1996-06-26 | 1998-01-16 | Nec Ibaraki Ltd | Magnetic disk controller |
| JPH10112136A (en) * | 1996-10-03 | 1998-04-28 | Nec Ibaraki Ltd | Fba-ckd conversion system |
-
1998
- 1998-07-27 WO PCT/JP1998/003335 patent/WO2000007105A1/en not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0612786A (en) * | 1992-06-29 | 1994-01-21 | Hitachi Ltd | Magnetic disk unit |
| JPH07168675A (en) * | 1992-11-23 | 1995-07-04 | Internatl Business Mach Corp <Ibm> | Data storage system and method of operating the same |
| JPH08241174A (en) * | 1995-03-03 | 1996-09-17 | Fujitsu Ltd | Control method of disk controller |
| JPH09258908A (en) * | 1996-01-19 | 1997-10-03 | Hitachi Ltd | Computer system |
| JPH1011223A (en) * | 1996-06-26 | 1998-01-16 | Nec Ibaraki Ltd | Magnetic disk controller |
| JPH10112136A (en) * | 1996-10-03 | 1998-04-28 | Nec Ibaraki Ltd | Fba-ckd conversion system |
Non-Patent Citations (1)
| Title |
|---|
| NORIMITSU FURUKATSU ET AL: "Background of Development of Parallel ACOS Series and its Outline (in Japanese)", NEC TECHNICAL JOURNAL, vol. 48(9), 25 September 1995 (1995-09-25), pages 4 - 10, XP002927437 * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7275100B2 (en) | 2001-01-12 | 2007-09-25 | Hitachi, Ltd. | Failure notification method and system using remote mirroring for clustering systems |
| US7076687B2 (en) | 2002-10-16 | 2006-07-11 | Hitachi, Ltd. | System and method for bi-directional failure detection of a site in a clustering system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8275970B2 (en) | Optimizing write traffic to a disk | |
| US5535372A (en) | Method and apparatus for efficient updating of CKD data stored on fixed block architecture devices | |
| US6748486B2 (en) | Method, system, and data structures for superimposing data records in a first data format to memory in a second data format | |
| US6041386A (en) | Data sharing between system using different data storage formats | |
| JP5302886B2 (en) | System and method for reading block fingerprint and eliminating data duplication using block fingerprint | |
| US7117309B2 (en) | Method of detecting sequential workloads to increase host read throughput | |
| US8209693B2 (en) | System and method for processing series of processes in given order having processing status generation with tables storing status including beginning, end and existence segment | |
| JP4843604B2 (en) | Method and system for obtaining data storage device specific information from data storage device | |
| JP3180096B2 (en) | Method, signal bearing medium and apparatus for dynamically mapping data and commands between systems | |
| US7716445B2 (en) | Method and system for storing a sparse file using fill counts | |
| JP3407628B2 (en) | Computer system | |
| US20030177130A1 (en) | Method, system, program, and data structures for maintaining metadata in a storage system | |
| CN1122926A (en) | Keyed count data to fixed block structure mapping for best performance and space utilization | |
| US7584229B2 (en) | Method and system for priority-based allocation in a storage pool | |
| US7058692B2 (en) | Computer, computer system, and data transfer method | |
| JP2020112972A (en) | Storage control device and storage control program | |
| US8799580B2 (en) | Storage apparatus and data processing method | |
| JP2851982B2 (en) | Information processing device | |
| US7899989B2 (en) | Method and system for using a block allocation policy | |
| US20070106868A1 (en) | Method and system for latency-directed block allocation | |
| US20020007437A1 (en) | Advanced technology attachment compatible disc drive write protection scheme | |
| US8566558B2 (en) | Storage apparatus and data management method | |
| US7627710B1 (en) | Converting an object identifier to a block I/O address to identify a storage location on a server | |
| WO2000007105A1 (en) | Computer system | |
| US6950905B2 (en) | Write posting memory interface with block-based read-ahead mechanism |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| AK | Designated states |
Kind code of ref document: A1 Designated state(s): CN JP KR US |
|
| AL | Designated countries for regional patents |
Kind code of ref document: A1 Designated state(s): AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE |
|
| DFPE | Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101) | ||
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application | ||
| 122 | Ep: pct application non-entry in european phase |