The present invention relates to a method of, and an apparatus for, reallocating logical disk devices to physical disk devices using a storage controller, and in particular, to a method of, and an apparatus for, reallocating logical disk devices to physical disk devices using a storage controller for improving data access performance.
A technology related to data arrangement on a disk array has been disclosed in pages 109 to 116 of an article “A Case For Redundant Arrays Of Inexpensive Disks (RAID)” reported by D. Patterson, G. Gibson, and Randy H. Katz in ACM SIGMOD conference held at the University of Illinois, Chicago in June 1988. In this article, the disk arrays are classified into five levels including RAID1 to RAID5.
In a disk array of RAID1, write data from a data processor unit is written in a main disk device and a copy thereof is stored in a sub-disk device called a mirror, thereby guaranteeing reliability of data in RAID1. In RAID1, since check information is a copy of the original data, only a small overhead is required to generate the check information and hence a desirable access performance can be obtained. However, the usage efficiency of physical storage devices is reduced to, for example, 50%.
Additionally, in the disk array of RAID5, check information called parity is produced for a plurality of write data items from the data processor unit. In RAID5, in a parity creation to generate a new parity item, it is necessary to read data and parity respectively generated before an update operation. Therefore, lengthy overhead is required for the generation of check information and hence the access performance is reduced. However, only one parity item is created for a plurality of data items, the usage efficiency of storage devices is higher when compared with that of storage devices of RAID1.
Furthermore, in JP-A-7-84732 (US Priority 109,137 (Aug. 19, 1993), there has been disclosed a method in which disk devices are subdivided into RAID1 and RAID5 areas such that data is moved between RAID1 and RAID5 according to a performance protocol.
Moreover, in a report “Performance Evaluation Of Hot Mirrored Disk Arrays On Disk Failure” written by K. Mogi and M. Kitsuregawa in pages 19 to 24 of the Technical Report of IEICE, CPSY95-82, DE95-68 (1995-12), Vol. 95-No. 407, there has been disclosed a technology in which a RAID level of data is dynamically changed according to an access frequency. Specifically, disk devices are subdivided into RAID1 and RAID5 areas such that data for which write access is requested is preferentially stored in the RAID1 area. With this provision, data having a high access frequency can be stored in the RAID1 area and data having a low access frequency can be stored in the RAID5 area.
As a result of, this technology, physical disk devices having mutually different values of storage capacity and physical disk devices having mutually different RAID levels can be installed in a mixed fashion in the storage subsystem. Furthermore, data in a logical disk device can be stored in arbitrary logical disk devices according to indices such as the access frequency and pattern thereof. In addition, when storing data having a high access frequency, it may also be possible to alter the storage position thereof so that the data is written in a physical disk device having a higher speed.
According to the above, the data storage position is varied in the unit of data to be accessed. Therefore, successive data items in a logical disk device which is directly accessed by the data processing unit are discontinuous in physical disk devices in which the data items are actually stored.
On the other hand, according to the report “DE95-68” above, each time a write request is issued, data regarded to have a low access frequency is moved from the RAID1 area the RAID5 area so as to write the data in an available area thus reserved in the RAID1. Consequently, when the access frequency is low for an access pattern in a random access operation, most of data items moved to the RAID1 area are returned again to the RAIDS area.
It is therefore a first object of the present invention to reallocate logical disk devices having a high access frequency to physical disk devices having a higher speed.
According to a first aspect of the present invention, each of a plurality of logical disk devices are consecutively arranged in the plural physical disk devices. Next, the access frequency is calculated for each logical disk device. Thereafter, according to results of the calculation, there ‘is selected a first logical disk device of which the access frequency exceeds a first predetermined value, the first logical disk device being allocated to a first physical disk device. There is further selected a second logical disk’ which is allocated to a second physical disk device which has an operation speed higher than that of the first physical disk device and which has the access frequency equal to or less than a second predetermined value. The first and second logical disk devices are allocated to the second and first physical disk devices, respectively.
Moreover, a second object of the present invention is to reallocate logical disk devices having a high sequential access ratio to physical disk devices having a higher performance of sequential access.
According to the second aspect of the present invention, each of the plural logical disk devices is successively arranged in the plural physical disk devices. Subsequently, the ratio of sequential access is calculated for each logical disk device. Thereafter, according to results of the calculation, there is selected a first logical disk of which the sequential access ratio exceeds a first predetermined value, the first logical disk device being allocated to a first physical disk device. Furthermore, there is selected a second logical disk device which is allocated to a second physical disk device capable of achieving a sequential access at a speed higher than that of the first physical disk device and which has a sequential access ratio equal to or less than a second predetermined value. The contents of the first physical disk device are then exchanged with those of the second physical disk device to thereby reallocate the first and second logical disk devices to the second and first physical disk devices, respectively.
These and other objects and advantages of the present invention will become apparent with reference to the following description and accompanying drawings wherein:
In the first embodiment, information of data accessing of each logical disk device is collected by the storage controller such that the information is notified via the service processor (SVP) to the serviceperson. According to the information, the serviceperson issues a reallocation indication, which causes the logical disk devices to be reallocated to the physical disk devices.
The data processor unit 100 includes a, central processing unit (CPU) 101, a main storage 102, and channels 103.
The storage controller 104 includes at least one director 106, a cache memory 107, a directory 108, a non-volatile memory 109, non-volatile memory control information 110, logical-physical device mapping information 300, logical disk device information 400, and information of data accessing 500.
The director 106 conducts transfers of data between the channels 103 of the data processor unit 100 and the physical disk devices 105, between the channels 103 of the data processor unit 100 and the cache memory 107, and the cache memory 107 and the physical disk devices 105.
Loaded in the cache memory 107 is data having a high access frequency in the physical disk devices 105. The load process is executed by the director 106. The data to be loaded therein specifically includes access objective data to be accessed by the CPU 101 of the data processor unit 100 and data in the neighborhood of the access objective data in the physical disk devices 105.
The directory 108 stores therein information for controlling the cache memory 107.
Like the cache memory 107, the non-volatile memory 109 stores therein data having a high access frequency in the physical disk devices 105.
The non-volatile memory control information 110 is used to store therein information for controlling the non-volatile memory 109.
The logical-physical device mapping information 300 is information indicating positions of the respective logical disks (200 in
The information of data accessing 500 stores information such as an access frequency and an access pattern for each logical disk device (200 in
The SVP 111 presents the information of data accessing 500 to the serviceperson and receives an input of indication for reallocation from the serviceperson. Moreover, the SVP 111 transmits an indication from the serviceperson to the information processing system 1 as well as notifies a state of defect or the like of the information processing system 1 to the serviceperson.
The logical disk devices 200 are virtual disk devices to be directly accessed by the CPU 101 and are associated with the physical disk devices 105 in which access objective data is actually stored. Data is consecutively arranged in the physical disk devices 105 in consideration of the sequential access. When the physical disk devices 105 to which the data of the data processor unit 100 is allocated are in a disk array configuration, the logical disk device 200 corresponds to a plurality of physical disk devices 105 as shown in
The mapping information 300 includes logical disk layout information 310 and physical disk layout information 320. The logical disk layout information 310 is information related to the area in the physical disk device 105 to which each logical disk device 200 is allocated. The information 310 is adopted to obtain, according to a logical disk device 200, a physical disk device 105 corresponding thereto. On the other hand the physical disk layout information 320 includes information related to the logical disk device 105 allocated to each physical disk device 200 and is used to obtain, according to a physical disk device 105, a logical disk device 200 corresponding thereto.
The logical disk layout information 310 includes, for each of the logical disk devices 200, a set of a physical disk device group 311, a RAID configuration 312, and a start position 313. The physical disk device group 311 is information denoting a physical disk device to which the pertinent logical disk device is allocated. The RAID configuration 312 designates a RAID level of the physical disk device group 311. The start position 313 indicates the start position in the physical disk device 105 of the pertinent logical disk device 200 allocated to the physical disk device 105.
The physical disk layout information 320 includes a logical disk device group 321 for each of the physical disk devices 105. The group 321 indicates the logical disk device 200 allocated to the pertinent physical disk device 105.
The information 400 includes for each of the logical disk devices 200 a logical disk state 401 and a reallocation pointer 402. The state 401 denotes the state of logical disk device 200 such as “normal” blockade”, “formatting in process”, or “reallocation in process”. The pointer 402 is information effective only when the logical disk state 401 is “reallocation in process” and designates a position next to the area of the logical disk device already reallocated, namely, the first position of the area thereof not yet reallocated. In a data access thereto by the CPY 101 during “reallocation in process”, when the access is issued to an area of which the address is smaller than that of the reallocation pointer 402, the access is made to the physical disk device 105 after the reallocation. On the other hand, when the access is issued to an area of which the address is larger than that of the reallocation pointer 402, the access is made to the physical disk device 105 before the reallocation. The access operation will be described in detail layer.
The information 500 includes access frequency information 501 and access pattern information 502 for each of the logical disk devices 200. This information can be referred to from the data processor unit 100 as well as the SVP 111. The access frequency information 501 keeps the number of accesses to the logical disk device 200 per unit of time. This information 501 is adopted as an index to attain any logical disk device 200 having a higher or lower access frequency among the logical disk devices 200. The access pattern information 502 keeps the ratio between the sequential accesses and the random accesses to the pertinent logical disk device 200. This information 502 is employed as an index to obtain one of the logical disk devices 200 desirably reallocated to the physical disk devices 105 for which sequential accesses are frequently conducted and which has a high sequential performance.
First, description will be given of operation in the read and write processes by the storage controller 400.
When executing a read or write process, the director 106 ordinarily receives an indication of CPU 600 from the CPU 101 via the channel 103. The CPU indication 600 includes specifying information 1 designating a logical disk device 200 in which a record to be read (or written) is stored and specifying information 2 designating a position (track, sector, record) in the logical disk device 200 in which the record to be read (or written) is stored.
In a calculation process of access position (610), the director 106 calculates an access position in the physical disk device 105 using the indication 600 from the CPU 101 and the logical-physical device mapping information 300. The calculation process (610) will be described in detail later by referring to
Thereafter, for example, in the read process, the data at the calculated data storage position 202 in the physical disk device 105 is read to be moved as data 201 in the cache memory 107. The obtained data 201 is transferred via the channel 103 to the main storage 102.
Subsequently, a process of collecting access information 500 will be described.
In the access for a read/write process by the CPU 101, the director 106 updates the access information 500 of the logical disk device 200 as the access object. The collection of access frequency information 501 is accomplished, for example, such that an internal counter increments its value for each access. After a lapse of a predetermined period of time or after a predetermined number of accesses are conducted, when an access is issued, the access frequency acquired from the internal counter is checked. The collection of access pattern information 502 is carried out, for example, such that an internal counter increments its value for each sequential accesses. After a lapse of a predetermined period of time or after a predetermined number of access are conducted, when an access is issued, the access pattern acquired from the internal counter is checked.
Next, the indication of reallocation 620 will be described. Referring to the information of data accessing 500 presented .via the SVP 111, the serviceperson determines the necessity of reallocation for each logical disk device. The contents of the decision made by the serviceperson are the same as those of a decision regarding the necessity, or lack thereof of reallocation for logical disk devices (910), which will be later described in conjunction with the third embodiment by referring to
The indication of reallocation 620 includes information of indication 1-2 specifying two logical disk devices 200 as objects of reallocation.
Subsequently, the process of reallocation of logical disk devices (630) will be described.
First, in step 700, the state of logical disk 401 of each of the specified logical disk devices 200 is set to “reallocation in process” in the logical disk information 400.
In step 701, the reallocation pointer 402 of each of the specified logical disk devices 200 is set to the first position of each associated logical disk device 200 in the logical disk information 400.
In step 702, the reallocation pointer 402 of each of the specified logical disk devices 200 is checked in the logical disk information 400. If the reallocation has not been completed for the entire region, control is passed to step 703. If the reallocation has been completed, control is transferred to step 707.
In step 703, data of one processing unit of reallocation is transferred from the physical disk device 105 to the cache memory 107 beginning at a data position designated by the reallocation pointer 402. In this operation, the data of one processing unit of reallocation is set to the least common multiple of the respective amounts of data respectively corresponding to check information items of two logical disk devices 200 as the objects of reallocation. For example, assume that the reallocation is accomplished between a logical disk device 200 of RAID5 and a logical disk device 200 of RAID1. Since the amount of data for one check information of the disk device 200 of RAID1 is “1”, the amount of data for one processing unit is equal to that of the amount of data corresponding to one check information item of the disk device 200 of RAID 5, namely, equal to that of one parity item.
In step 704, when the logical disk device 200 as the destination of reallocation is at the RAID level having parity, the parity is generated for the data 201 of one processing unit in the objective data of reallocation of the cache memory 107.
In step 705, the data 201 of one processing unit in the objective data of reallocation of the cache memory 107 and the parity produced in step 704 above are written in the physical disk device 105 as the destination of reallocation.
In step 706, the reallocation pointer 402 is advanced according to one processing unit, and then control is returned to step 702.
Incidentally, the data and parity are also transferred to the non-volatile memory 109 in steps 703 and 704 such that these items are retained even at occurrence of, a failure in the cache memory for the following reasons. Assume in the writing operation in step 705 in which, for example, data of the first and second logical disk devices 200 are to be processed. When data of the first logical disk device 200 is written in the logical disk device 105, if a failure occurs in the cache memory 107 and hence data thereof cannot be accessed, the data in the second logical disk device 200 for which the write operation is not completely achieved will be lost.
In step 707, the logical-physical mapping information 300 is updated. Namely, the logical disk layout information 310 and the physical disk layout information 321 are modified.
In step 708, the logical disk state 401 of logical disk information 400 is restored to the normal state and then the reallocation process (630) is terminated.
In step 800, a check is made to determine whether or not the logical disk state 401 of the logical disk device 200 as the object of access is “reallocation in process” in the logical disk information 400. If this is the case, control is passed to step 801; otherwise, control is transferred to step 803.
In step 801, the access data position is compared with the reallocation pointer 402 of the logical disk device 200 as the object of access in the logical disk information. When the access data position is larger than the position indicated by the pointer 402, control is passed to step 802; otherwise, control is transferred to step 803.
In step 802, the logical disk device 200 as the destination of reallocation of the pertinent logical disk device 200 is set as the object of access. Thereafter, control is passed to step 804.
In step 803, the pertinent logical disk device 200 is set as the object of access.
In step 804, according to the logical-physical mapping information 300, there is calculated an access position in the physical disk device 105 corresponding to the logical disk device 200 as the object of access.
According to the information processing system 1 and the storage controller 104 related to the first embodiment, logical disk device having a high access frequency can be reallocated to physical disk devices having a higher speed according to decision of the serviceperson based on the information of data accessing 500. Additionally, logical disk devices having a high ratio of sequential access can be reallocated to physical disk devices having a higher performance of sequential access. Consequently, the access performance can be improved.
The first embodiment may be modified such that the storage controller 104 notifies that the information of data accessing 500 is presented to the data processor unit 100, which then determines the necessity or lack thereof of reallocation to issue an indication of reallocation (equivalent to the indication of reallocation 620).
In the third embodiment, the indication of reallocation is not received from the SVP 111 and the data processor unit 100. Namely, the indication of reallocation is determined by the storage controller 104.
This differs from the first embodiment (
This process (910) is executed by the director 106 examining the information of data accessing 500 of each logical disk device 200 at a fixed interval of time.
In step 1000, referring to the access frequency information 501 of access information 500, a check is made to decide whether or not there exists any logical disk device 200 (to be referred to as a first candidate logical disk device herebelow) for which the access frequency exceeds a predetermined value and which is allocated to a physical disk device 105 having a relatively low speed. If there exists such a logical disk device 200, control is passed to step 1001; otherwise, control is transferred to step 1005.
In step 1001, referring to the access pattern information 502 of the first candidate logical disk device 200, a check is made to decide whether or not the sequential access ratio is equal to or more than a predetermined value. If this is the case, control is passed to step 1002; otherwise, control is transferred to step 1004.
In step 1002, referring to the access frequency information 501 of a logical disk device 200 allocated to a physical disk device 105 having a speed higher than that of the first candidate logical disk device 200, a check is conducted to determine whether or not there exists a logical disk device 200 (to be referred to as a second candidate logical disk device) of which the access frequency is equal to or less than the predetermined value. If there exists such a logical disk device, control is passed to step 1003; otherwise control is transferred to step 1005.
In step 1003, it is decided that the process of reallocation (630) is required to be conducted between the first and second candidate logical disk devices 200 and the indication of reallocation 620 is issued. The processing is then terminated.
In step 1004, referring to the access pattern information 502 of the logical disk device 200 allocated to a physical disk device 105 having sequential performance higher than that of the first candidate logical disk device 200, a check is made to decide whether or not there exists a logical disk device 200 (to be referred to as a second logical disk device herebelow) having a sequential access ratio equal to or less than the predetermined value. If this is the case, control is transferred to step 1003; otherwise, control is passed to step 1002.
In step 1005, it is determined that the process of reallocation (630) is unnecessary for the logical disk devices 200. The processing is then terminated. In accordance with the information processing system 1 and the storage controller 104 related to the third embodiment, logical disk device having a high access frequency can be automatically reallocated to physical disk devices having a higher speed according to the information of data accessing 500. Additionally, logical disk devices having a high ratio of sequential access can be reallocated to physical disk devices having a higher performance of sequential access. Therefore, the access performance can be improved.
The first to third embodiments may be modified such that reliability required for the logical disk devices 200 is employed, in addition to or in place of the information of data accessing 500, as the index for decision of necessariness or unnecessariness of reallocation. When reliability is employed as the index, it is possible to improve the data reliability in the logical disk devices 200.
While the present invention has been described with reference to the particular illustrative embodiments, it is not to be restricted by those embodiments but only by the appended claims. It is to be appreciated that those skilled in the art can change or modify the embodiments without departing from the scope and spirit of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
8-085370 | Apr 1996 | JP | national |
The present application is a continuation of U.S. application Ser. No. 11/405,544, filed Apr. 18, 2006 (now U.S. Pat. No. 7,577,815), which is a continuation of U.S. application Ser. No. 11/142,458, filed Jun. 2, 2005, now U.S. Pat. No. 7,069,383, which is a continuation of application Ser. No. 10/684,453, filed Oct. 15, 2003, now U.S. Pat. No. 6,915,382; which is a continuation of application Ser. No. 10/112,865, filed Apr. 2, 2002, now U.S. Pat. No. 6,708,252; which is a continuation of application Ser. No. 09/335,175, filed Jun. 17, 1999, now U.S. Pat. No. 6,446,161; which is a continuation of application Ser. No. 08/833,347, filed Apr. 4, 1997, now U.S. Pat. No. 5,956,750, the contents of which are incorporated herein by reference. This application relates to a U.S. patent application Ser. No. 08/824,308, filed Mar. 27, 1999, now abandoned, entitled “STORAGE SYSTEM” by Akira YAMAMOTO et al., and assigned to the present assignee, based on Japanese Patent Application No. 8-72934, disclosure of which is incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
4835678 | Kofuji | May 1989 | A |
5131087 | Warr | Jul 1992 | A |
5257352 | Yamamoto et al. | Oct 1993 | A |
5333315 | Saether et al. | Jul 1994 | A |
5392244 | Jacobson et al. | Feb 1995 | A |
5404500 | Legvold et al. | Apr 1995 | A |
5437022 | Beardsley et al. | Jul 1995 | A |
5511177 | Kagimasa et al. | Apr 1996 | A |
5537588 | Engelmann et al. | Jul 1996 | A |
5546557 | Allen et al. | Aug 1996 | A |
5579474 | Kakuta et al. | Nov 1996 | A |
5584018 | Kamiyama | Dec 1996 | A |
5600783 | Kakuta et al. | Feb 1997 | A |
5613088 | Achiwa et al. | Mar 1997 | A |
5617425 | Anderson | Apr 1997 | A |
5619690 | Matsumani et al. | Apr 1997 | A |
5729761 | Murata et al. | Mar 1998 | A |
5734812 | Yamamoto et al. | Mar 1998 | A |
5737743 | Ooe et al. | Apr 1998 | A |
5774642 | Flon et al. | Jun 1998 | A |
5790773 | DeKoning et al. | Aug 1998 | A |
5809224 | Schultz et al. | Sep 1998 | A |
5835954 | Duyanovich et al. | Nov 1998 | A |
5905995 | Tabuchi et al. | May 1999 | A |
5956750 | Yamamoto | Sep 1999 | A |
6108748 | Ofek et al. | Aug 2000 | A |
6230239 | Sakaki et al. | May 2001 | B1 |
6446161 | Yamamoto | Sep 2002 | B1 |
6708252 | Yamamoto | Mar 2004 | B2 |
6915382 | Yamamoto | Jul 2005 | B2 |
Number | Date | Country |
---|---|---|
07073090 | Mar 1995 | EP |
07084732 | Mar 1995 | EP |
639811 | Feb 1999 | EP |
683453 | Dec 2001 | EP |
55157053 | Dec 1980 | JP |
59135563 | Aug 1984 | JP |
60114947 | Jun 1985 | JP |
6267629 | Mar 1987 | JP |
237418 | Feb 1990 | JP |
337746 | Feb 1991 | JP |
3102418 | Apr 1991 | JP |
337746 | Sep 1991 | JP |
4302020 | Oct 1992 | JP |
546324 | Feb 1993 | JP |
5189314 | Jul 1993 | JP |
744326 | Feb 1995 | JP |
784732 | Mar 1995 | JP |
7141121 | Jun 1995 | JP |
7146757 | Jun 1995 | JP |
7230362 | Aug 1995 | JP |
07-306844 | Nov 1995 | JP |
863298 | Mar 1996 | JP |
Number | Date | Country | |
---|---|---|---|
20090276569 A1 | Nov 2009 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 11405544 | Apr 2006 | US |
Child | 12501694 | US | |
Parent | 11142458 | Jun 2005 | US |
Child | 11405544 | US | |
Parent | 10684453 | Oct 2003 | US |
Child | 11142458 | US | |
Parent | 10112865 | Apr 2002 | US |
Child | 10684453 | US | |
Parent | 09335175 | Jun 1999 | US |
Child | 10112865 | US | |
Parent | 08833347 | Apr 1997 | US |
Child | 09335175 | US |