The present invention relates to a storage system, a primary storage system, a secondary storage system and a data-copying method used therefore.
RAID (Redundant Arrays of Inexpensive Disks, or Redundant Arrays of Independent Disks) is known as one technology for improving reliability of data held in storage resources such as magnetic disks. Further, in order to avoid data loss which may occur due to disasters such as fires or earthquakes, data may be held in a duplicate manner among a plurality of storage apparatuses provided, for example, at remote locations. As a method for preventing data loss, there is known a method referred as “remote duplication”.
Remote duplication is a method for storing a data copy among a plurality of subsystems. A host computer (or an external computer) is connected to a storage system comprising a primary storage system and a secondary storage system. Respective servers of the primary storage system and the secondary storage system are mutually connected to each other and also connected to the host computer via a network such as, for example, a LAN (Local Area Network) or a WAN (Wide Area Network). Data of the primary storage system is copied to the secondary storage system via these servers and thus the network such as the LAN or WAN.
Specifically exemplifying, firstly, the host computer issues a write request to the primary storage system. The primary storage system stores the data received from the host computer in a storage apparatus within its own system. Then, the primary storage system transfers the stored data to the secondary storage system. The secondary storage system stores the data received from the primary storage system in a storage apparatus within its own system.
Accordingly, the data sent from the host computer to the primary storage system is stored in the storage apparatuses of both the primary storage system and the secondary storage system. Thus, in the whole storage system, data is multiplexed among both the primary storage system and the secondary storage system every time a write request is received from the host computer. Therefore, the storage system can restore the latest data from the secondary storage system as required.
However, upon copying the data of the primary storage system to the secondary storage system, copying is carried out via the respective servers of the primary storage system and the secondary storage system and also via a network such as a LAN or a WAN. Accordingly, a process in which each of the servers read out the data from the storage apparatuses becomes necessary; and thus, speeding up of the copying process cannot be realized. Additionally, since the copying process is carried out using the network, such as the LAN or WAN, to which the host computer is connected, if the server is performing any other process, the copying process may not be performed immediately, which may lead to delay in the copying process. Further, from the server's point of view, data transferring will increase the workload of the server.
The present invention has been contrived in view of the above and other problems, and one object is to provide a storage system, a primary storage system, a secondary storage system, and a data-copying method used therefor.
In order to achieve the above and other objects, one aspect of the present invention is a storage system comprising: a primary storage system comprising a primary storage apparatus and a primary control apparatus for controlling the primary storage apparatus; and a secondary storage system comprising a secondary storage apparatus and a secondary control apparatus for controlling the secondary storage apparatus. The primary storage apparatus and the secondary storage apparatus are connected to each other via a communication line. The primary storage apparatus of the primary storage system comprises primary remote-copying means, and the secondary storage apparatus of the secondary storage system comprises secondary remote-copying means, and the primary control apparatus of the primary storage system comprises remote-copy controlling means for controlling the primary remote-copying means. The remote-copy controlling means sends, to the primary remote-copying means of the primary storage apparatus, a data-transfer instruction instructing the primary remote-copying means to transfer predetermined data stored in the primary storage apparatus to the secondary storage system; the primary remote-copying means receives the data-transfer instruction, reads out the predetermined data from the primary storage apparatus, and sends the data to the secondary remote-copying means of the secondary storage system via the communication line; and the secondary remote-copying means receives the predetermined data and stores the received data in the secondary storage apparatus.
Features and objects of the present invention other than the above will become clear by reading the description of the present specification with reference to the accompanying drawings.
For a more complete understanding of the present invention and the advantages thereof, reference is now made to the following description taken in conjunction with the accompanying drawings wherein:
At least the following matters will be made clear by the explanation in the present specification and the description of the accompanying drawings.
According to one aspect of the present invention, a storage system comprises: at least two storage subsystems respectively comprising a storage apparatus and a control apparatus for controlling the storage apparatus. The storage apparatuses of each of the storage subsystems are connected to each other via a communication line. Each of the storage apparatuses of each of the storage subsystems respectively comprise copying means, and the control apparatus of at least one of the storage subsystems comprises a copy controlling means for controlling the copying means provided within the same storage subsystem as the copy controlling means. The copy controlling means sends, to the copying means of the storage apparatus within the same storage subsystem, a data-transfer instruction instructing the copying means to transfer predetermined data stored in the storage apparatus within the same storage subsystem to another the storage subsystem connected via the communication line; the copying means receives the data-transfer instruction, reads out the predetermined data from the storage apparatus within the same storage subsystem, and sends the data to another one of the copying means of the another storage subsystem via the communication line; and the another copying means receives the predetermined data and stores the received data in the storage apparatus of the another storage subsystem.
According to such an aspect of the present invention, for example, speed up of data transferring between the primary storage system and the secondary storage system can be realized.
Now, storage systems according to first through third embodiments of the present invention will be explained with reference to the drawings.
Firstly, a storage system of the first embodiment will be explained. As shown in the block diagram of
The file servers 110, 210 are connected to a network 300 such as a LAN or a WAN respectively via appropriate communication interfaces 111, 211 such as LAN interfaces. A client (i.e., host computer or external computer) 400 is also connected to the network 300. Data is sent from the client 400 to the file server 110 of the local-file server 100 via the network 300. The file server 110 hands over or transfers the received data to the storage device 120.
Further, the storage device 120 of the local-file server 20100 and the storage device 220 of the remote-file server 200 are mutually connected to each other by a private line (communication line) such as Fibre Channel 500.
The file server 110 of the local-file server 100 may be configured of, as a hardware configuration: a control processor for controlling the overall operations of the file server 110; a control memory for storing programs executed by the control processor and/or data; and a buffer for temporarily storing data. The file server 110 of the local-file server 100 comprises: a network-file-system section 112; a local-file-system section 30113; a remote-copy controller 114; and an interface 115. The network-file-system section 112 comprises a function of performing data-communication processes with the client 400. The local-file-system section 113 comprises a function of performing a process of transferring data sent from the client 400 to the storage device 120 via the interface 115.
The remote-file server 200 comprises substantially the same configuration and functions as the above-mentioned local-file server 100. That is, the file server 210 comprises: a network-file-system section 212; a local-file-system section 213; a remote-copy controller 214; and an interface 215. The network-file-system section 212 comprises a function of performing data-communication processes with the client 400. The local-file-system section 213 comprises a function of performing a process of transferring data sent from the client 400 to the storage device 220 via the interface 215.
The remote-copy controller 114 of the local-file server 100 controls remote-copying means 122 in the storage device 120. Specifically, the remote-copy controller 114 issues, to the storage device 120 via the interface 115, a data-transfer instruction requesting to copy the data stored in the storage device 120 to the remote-file server 200.
Each of the storage devices 120, 220 respectively comprises: an interface 121, 221; a remote-copying means 112, 222; and a magnetic disk device 123, 223.
Each of the remote-copying means 122, 222 of the storage devices 120, 220 may respectively be configured of, as a hardware configuration: a control processor for controlling the overall operations of the remote-copying means; a control memory for storing programs executed by the control processor and/or data; and a buffer for temporarily storing data. The remote-copying means 122 of the local-file server 100 receives the data-transfer instruction from the remote-copy controller 114 of the file server 110 via the interface 121. Having received the data-transfer instruction, the remote-copying means 122 reads out data from the magnetic disk device 123 and transfers the data to the storage device 220 of the remote-file server 200 via the private line 500.
The remote-copying means 222 of the storage device 220 of the remote-file server 200 receives the data transferred from the local-file server 100, and stores the data in the magnetic disk device 223.
The structure of a file system of the respective magnetic disk devices 123, 223 will be explained with reference to the data-structure diagram in
With reference to the data-structure diagram in
Next, with reference to
Upon a copying process for one file, the remote-copy controller 114 hands (or transfers) the differential information shown in
Specifically, when a plurality of commands having the same group number 701 is received, the remote-copying means 222 does not carry out write-in to the magnetic disk device 223 until all of the commands having the same group number 701 arrive. When all of the commands having the same group number 701 arrive to the remote-copying means 222, the means 222 carries out write-in to the magnetic disk device 223. The above-mentioned arrival of all commands can be determined by checking whether all commands, i.e., from the command having the smallest command number 702 to the command in which the end flag 703 is ON, have all arrived. Accordingly, it is possible to prevent writing-in, to the storage device 220 of the remote-file server 200, of a file in an incomplete state.
Next, explanation will be made of the remote-copying process carried out by the storage system according to the present embodiment. In the remote-copying process, firstly, an initial copying process is carried out. This initial copying process is such where data of files and/or directories already written in to the local-file server 100 is all copied to the remote-file server 200. Then, a differential copying process is subsequently carried out. In this differential copying process, data of files and/or directories, for which updating has been instructed by the client 400 to the local-file server 100, is copied to the remote-file server 200.
Firstly, explanation will be made of the initial copying process according to the present embodiment with reference to the 25 flowchart in
After starting of the process, the remote-copy controller 114 (see
Next, the remote-copy controller 114 instructs the remote-copying means 122 to copy the metadata 620 (S30). The remote-copying means 122 sends, to the remote-copying means 222 of the storage device 220 of the remote-file server 200, a command group shown for example in
Then, the remote-copy controller 114 instructs the remote-copying means 122 to copy the actual-data 640 (S40). The copy operation is done file by file. The remote-copy controller 114 gets the physical location of a file using the local-file-system section 113. The remote-copying means 122 sends, to the remote-copying means 222 of the remote-file server 200, a command group shown, for example, in
Then, the remote-copy controller 114 confirms whether copying to the magnetic disk device 223 of the storage device 220 of the remote-file server 200 has been performed or not for all of the data files in the magnetic disk device 123 (see
By executing the copy operation in each file instead of copying the entire data in the storage device 120, the workload of the remote-copying means 122 and 222 are reduced. Suppose the size of magnetic disk device 123 is 1 gigabytes and there is only one small file whose size is 1 kilobytes in the storage device 120. If the remote-copying means 122 has to copy the entire data of the magnetic disk device 123 in the initial copy, 1 gigabytes of data has to be transferred via private line 500. By executing the copy operation in each file, the remote-copying means 122 can only copy 1 kilobytes of data.
Next, explanation will be made of the above-mentioned differential copying process by the storage system with reference to the flowchart in
After starting of the process, the remote-copy controller 114 of the local-file server 100 (
Then, the remote-copy controller 114 notifies the combination of block numbers 802, 803 (see
Then, the remote-copying means 122 sends, to the remote-copying means 222 of the storage device 220 of the remote-file server 200, the created command group via the private line 500 (see
Next, explanation will be made of a storage system according to a second embodiment with reference to
The data in one local-file server 100 may be multiplexed and stored in an overlapping manner respectively in each of the remote-file servers 200; or the data in one local-file server 100 may be divided, and distributed data may respectively be sent to allocated ones of each of the remote-file servers 200. An example of this distributed copying is shown in a conceptual diagram of
Next, explanation will be made of a storage system according to a third embodiment with reference to
The storage device 220 of the remote-file server 200A 30 connected directly to the local-file server 100 comprises duplication means 224 therein. Further, the magnetic disk devices (storage means) 223A, 223B of the storage device 220 are paired (in a combination) for duplication. The remote-file server 200B is connected to the remote-file server 200A via the private line 500. The remote-file server 200B is substantially the same as the above-mentioned remote-file server 200 shown in
A method of a copying process according to the above-described storage system will be explained. A conceptual diagram of the method is shown in
At a certain timing during this duplication process, the duplication means 224 interrupts the duplication process. In this interrupted state, the remote-copying means 222 of the remote-file server 200A sends the data stored in the magnetic disk device 223B to the remote-file server 200B. In this way, a copying process substantially similar to the above-mentioned first embodiment is carried out between the remote-file server 200A and the remote-file server 200B. In this case, the remote-file server 200A will bear the functions of the local-file server 100 in the first embodiment.
Note that the copying process between the local-file server 100 and the magnetic disk device 223A of the remote-file server 200A may be continued even during the duplication-interrupted state. During the interrupted state, differential information of data between the magnetic disk device 223A and the magnetic disk device 223B will be managed and recorded by the remote-copying means 222. When the copying process between the remote-file server 200A and the remote-file server 200B is finished and the duplication-interrupted state is cleared, the duplication process from the magnetic disk device 223A to the magnetic disk device 223B is restarted based on the managed differential information.
Above, some aspects of the present invention have been specifically explained according to the first through third embodiments. However, the present invention is not to be limited to the specific embodiments, and various modifications which do not exceed the scope of the invention may be made.
According to the present embodiments, in carrying out a copying process of data in the local-file server (primary storage system) to the remote-file server (secondary storage system), the copying process is carried out directly between the respective storage devices (storage apparatuses) via the private line 500 (communication line), without involving each of the file servers 110, 210 (control apparatuses). Thus, the file servers 110, 210 do not have to carry out a process of reading out data from the storage devices, thereby reducing load of the servers and also realizing speed up of the copying process. Additionally, since the copying process is carried out without using the network such as a LAN or a WAN to which a client is connected, the copying process can be performed immediately without causing any delay even when the file servers 110, 210 are carrying out other processes.
Although the preferred embodiment of the present invention has been described in detail, it should be understood that various changes, substitutions and alterations can be made therein without departing from spirit and scope of the inventions as defined by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2002-049540 | Feb 2002 | JP | national |
The present application is a continuation of U.S. application Ser. No. 10/245,887, filed Sep. 16, 2002, entitled “Storage System and method of Copying Data,” (Attorney Docket No. 16869K-059700US), which claims benefit from Japanese Patent Application No. 2002-49540 filed on Feb. 26, 2002, the entire contents of which are herein incorporated by reference for all purposes.
Number | Date | Country | |
---|---|---|---|
Parent | 10245887 | Sep 2002 | US |
Child | 12166231 | US |