The present invention relates generally to storage systems and, more particularly, to methods and apparatuses that utilize large capacity disk drives.
The capacity of a single HDD (Hard Disk Drive) unit provided by HDD vendors is increasing at a rapid rate in the HDD market. The capacity of a SSD (Solid State Disk) unit is also increasing. In order to avoid loss of data due to the failure of a disk unit, most storage systems adopt data protection with redundancy such as mirroring and RAID technology. As disclosed in “A Case for Redundant Arrays of Inexpensive Disks (RAID)” by D. A. Patterson, G. Gibson and R. H. Kats, published in Proc. ACM SIGMOD, pp. 109-116, June 1988, RAID configurations are classified in accordance with so-called RAID levels. RAID4, RAID5 and RAID6 configurations use parity code generated from stored data as redundant information. By using the parity code, data stored in multiple disks in a distributed manner can be reconstructed for an occurrence of a disk failure. In this manner, high data availability is accomplished. In the article, having the same data in multiple disks, so called mirroring, is introduced as one method to protect data and is categorized as RAID1.
U.S. Pat. No. 7,386,758 discloses an Object-based Storage Device (OSD) that uses RAID technology and perform reconstruction of data according to the OSD's information indicating where each object is stored in the OSD.
Because the recovery of data is achieved by copying and/or generating the same data as the data stored in the failed disk, the recovery process needs considerable time. This disk failure causes the following influences from occasion of the disk failure to completion of the recovery: the reduction of possibility to avoid unavailability and data loss due to the reduction of redundancy, and the deterioration of performance due to the load of copying data.
Applying large capacity disk drives causes the lengthening of the above duration because the amount of data to be recovered becomes large in comparison with using traditional small capacity disk drives. Therefore, a disk failure recovery method that aligns to the users' applications and usage is required at present.
Exemplary embodiments of the invention provide a storage system which has the capability to prioritize the location of data to be recovered at the occurrence of a disk failure. In one embodiment, the prioritization is achieved by monitoring the access characteristics such as access frequency. The storage system monitors the access characteristics as usage of data and determines the priority regarding the recovery process according to the statistics. In another embodiment, the priority is specified by the host computer or management computer based on the usage and/or importance of data stored in the storage system. The priority is registered to the storage system by the host computer or management computer. The storage system performs recovery from a disk failure according to the specified priority. In yet another embodiment, the priority is determined by the storage system based on the area assignment/release (i.e., usage) of thin provisioned volumes. Using the above approaches, the area to store data in one disk drive can be classified into multiple priorities and recovery from the failure of the disk can be performed according to the priority. The invention is particularly advantageous when applied to the recovery of data stored in a large capacity disk drive.
In accordance with an aspect of the present invention, a method of utilizing storage in a storage system comprises prioritizing a plurality of storage areas in the storage system for data recovery with different priorities; and performing data recovery of the storage system at an occurrence of a failure involving one or more of the storage areas in the storage system based on the priorities. Data recovery for one storage area having a higher priority is to occur before data recovery for another storage area having a lower priority in the storage system.
In some embodiments, the prioritizing comprises monitoring access characteristics of the storage areas in the storage system; and prioritizing the storage areas in the storage system for data recovery with different priorities based on the monitored access characteristics. The access characteristics comprise at least one of access frequency, access rate, or access interval.
In specific embodiments, the prioritizing comprises assigning the different priorities for the storage areas in the storage system. The different priorities are assigned based on at least one of usage or importance of data in the storage areas. The method further comprises, if the different priorities are assigned based on the usage of data in the storage areas, analyzing the usage of data stored in each of the storage areas to determine the priorities and updating the different priorities for the storage areas in the storage system based on the analyzed usage; and if the different priorities are assigned based on the importance of data in the storage areas, analyzing the importance of data stored in each of the storage areas to determine the priorities and updating the different priorities for the storage areas in the storage system based on the analyzed importance.
In some embodiments, for a storage volume which is a thin provisioned volume, the prioritizing comprises determining the different priorities based on area assignment and release of the thin provisioned volume using information regarding assignation process and information regarding release process for the thin provisioned volume.
In accordance with another aspect of the invention, a storage system comprises a data processor and a memory; a plurality of storage areas which have different priorities for data recovery; and a storage controller which performs data recovery of the storage system at an occurrence of a failure involving one or more of the storage areas in the storage system based on the priorities. Data recovery for one storage area having a higher priority is to occur before data recovery for another storage area having a lower priority in the storage system.
Another aspect of the invention is directed to a computer-readable storage medium storing a plurality of instructions for controlling a data processor to utilize storage in a storage system. The plurality of instructions comprise instructions that cause the data processor to prioritize a plurality of storage areas in the storage system for data recovery with different priorities; and instructions that cause the data processor to perform data recovery of the storage system at an occurrence of a failure involving one or more of the storage areas in the storage system based on the priorities. Data recovery for one storage area having a higher priority is to occur before data recovery for another storage area having a lower priority in the storage system.
These and other features and advantages of the present invention will become apparent to those of ordinary skill in the art in view of the following detailed description of the specific embodiments.
In the following detailed description of the invention, reference is made to the accompanying drawings which form a part of the disclosure, and in which are shown by way of illustration, and not of limitation, exemplary embodiments by which the invention may be practiced. In the drawings, like numerals describe substantially similar components throughout the several views. Further, it should be noted that while the detailed description provides various exemplary embodiments, as described below and as illustrated in the drawings, the present invention is not limited to the embodiments described and illustrated herein, but can extend to other embodiments, as would be known or as would become known to those skilled in the art. Reference in the specification to “one embodiment,” “this embodiment,” or “these embodiments” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the invention, and the appearances of these phrases in various places in the specification are not necessarily all referring to the same embodiment. Additionally, in the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be apparent to one of ordinary skill in the art that these specific details may not all be needed to practice the present invention. In other circumstances, well-known structures, materials, circuits, processes and interfaces have not been described in detail, and/or may be illustrated in block diagram form, so as to not unnecessarily obscure the present invention.
Furthermore, some portions of the detailed description that follow are presented in terms of algorithms and symbolic representations of operations within a computer. These algorithmic descriptions and symbolic representations are the means used by those skilled in the data processing arts to most effectively convey the essence of their innovations to others skilled in the art. An algorithm is a series of defined steps leading to a desired end state or result. In the present invention, the steps carried out require physical manipulations of tangible quantities for achieving a tangible result. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals or instructions capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, instructions, or the like. It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise, as apparent from the following discussion, it is appreciated that throughout the description, discussions utilizing terms such as “processing,” “computing,” “calculating,” “determining,” “displaying,” or the like, can include the actions and processes of a computer system or other information processing device that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system's memories or registers or other information storage, transmission or display devices.
The present invention also relates to an apparatus for performing the operations herein. This apparatus may be specially constructed for the required purposes, or it may include one or more general-purpose computers selectively activated or reconfigured by one or more computer programs. Such computer programs may be stored in a computer-readable storage medium, such as, but not limited to optical disks, magnetic disks, read-only memories, random access memories, solid state devices and drives, or any other types of media suitable for storing electronic information. The algorithms and displays presented herein are not inherently related to any particular computer or other apparatus. Various general-purpose systems may be used with programs and modules in accordance with the teachings herein, or it may prove convenient to construct a more specialized apparatus to perform desired method steps. In addition, the present invention is not described with reference to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the invention as described herein. The instructions of the programming language(s) may be executed by one or more processing devices, e.g., central processing units (CPUs), processors, or controllers.
Exemplary embodiments of the invention, as will be described in greater detail below, provide apparatuses, methods and computer programs for prioritizing the location of data to be recovered during failure which are particularly advantageous in large capacity disk drives.
According to exemplary embodiments, a method of the invention
A. System Configuration
The main processor 111 performs various processes regarding the storage controller 110. The main processor 111 and other components use the following information stored in the memory 200 as shown in
The main processor 111 performs the processes by executing the following programs stored in memory 200 as shown in
The host 500 and management computer 520 are connected to the host interface 113 via the SAN 900 (e.g., Fibre Channel, Fibre Channel over Ethernet, and iSCSI(IP)). The host 500 and management computer 520 and storage controller 110 are connected with each other via the LAN 902 (e.g., IP network).
The host 500 has a file system 501, an operating system OS 502, and an application program 503. To run these programs, the host 500 also has resources such as processor, memory, storage devices not shown in
The management computer 520 has a file system 501, an OS 502, and a management program 523. To run these programs, the management computer 520 also has resources such as processor, memory, storage devices not shown in
B. Overview of Method for Providing Volumes
In one embodiment, the storage system 100 provides thin provisioned volumes (TPVs) 610 and conventional (not thin provisioned) volumes 630. Regarding these types of volumes, U.S. Pat. No. 7,162,600 to Kano discloses a storage system that provides conventional volumes and thin provisioned volumes.
To achieve this, the storage controller 110 uses the mapping information 201 and pool information 202.
The storage system 100 also provides conventional volumes 630. The storage controller 110 allocates storage areas to the whole area of the conventional volume 630 at the creation of the volume as shown in
The volume information 203 is also used to supply the TPVs 610 as data storage volumes provided by the storage system 100 to the host 500, by referring to the TPV ID. In other words, the volume information 203 maintains the relation (mapping) between the public volume ID and the TPV ID. The volume information 203 also includes information regarding the segment size of each volume of not only the TPV 610 but the conventional volume 630. That is, both the TPV and conventional volume have a fixed-length segment. The segment size may be selectable and registered by the user via the host 500, the management computer 520, and/or the management terminal of the storage system 100.
C. Parity Groups and Data Protection
To maintain the above relationship between the data stored in the physical disks and the parity, the parity must be changed when the stored data is changed.
Because the above relationship between the data and the parity is always maintained, one data stripe can be reconstructed from the other data stripe and the parity value. That is, if a portion of the stored data is lost due to a failure of a disk in a parity group, the lost data stripe can be recovered.
Moreover, data stored in disks 600 may be protected also by mirroring of the data (i.e., RAID1). With mirroring, in the recovery of data stored in a failed disk 600, data stored in disk 600 that forms a mirroring pair with the failed disk 600 is copied to another disk 600.
To manage the above relationship among the disks 600, parity groups 603, and volumes, the storage controller 110 maintains the internal volume information 206 and parity group information 207.
D. Overview of Write Process
E. Overview of Read Process
F. Write Process for TPV
At step 1203 (a chunk has not been assigned), the storage controller 110 assigns a new chunk to store the write data. To do this, the storage controller 110 updates the mapping information 201 and pool information 202. By using the pool information 202, the storage controller 110 finds the new chunk from internal storage. At step 1204, the storage controller 110 stores the write data to the new chunk, and then the process proceeds to step 1206.
At step 1205 (a chunk has been assigned), the storage controller 110 stores the write data to the existing chunk.
At step 1206, the storage controller 110 updates the access information 204. This information records the access characteristics regarding the segment (i.e., page). At step 1207, if the storage controller 110 has checked all segments of the target area, the process ends. If not, the storage controller 110 advances the check to the next segment (step 1208).
G. Read Process for TPV
At step 1303 (a chunk has been assigned), the storage controller 110 transfers data stored in the chunk to the host 500. At step 1304, the storage controller 110 updates the access information 204. At step 1305 (a chunk has not been assigned), the storage controller 110 sends data of zero (0) to the host 500. Finally, at step 1306, if the storage controller 110 has checked all segments of the target area, the process ends. If not, the storage controller 110 advances the check to the next segment (step 1307).
H. Write Process for Conventional Volume
According to embodiments of this invention, the access information 204 is recorded (i.e., access characteristics is monitored) also for the conventional volumes 630.
I. Read Process for Conventional Volume
J. Release Request Process for TPV
The host 500 can inform of no longer used areas (i.e., segments) to the storage system 100 and require reclaiming the chunks 690 from the segments.
K. Process of Releasing Chunks of TPV
L. Recovery Priority Determination Process
M. Recovery Priority Registration Process for Performance Requirement
As another method to obtain the priority or classification for recovery from a disk failure, registration of the priority from host 500 or management computer 520 can be performed.
At step 1901, the management computer 520 analyzes the performance requirement for data stored on area in volumes. At step 1902, the management computer 520 obtains the location of the data and classifies the area into several (e.g., three) priorities such as high, middle, and low according to the analyzed difference of the performance requirement. At step 1903, the management computer 520 records the obtained priority in the recovery priority information 529. An example of the recovery priority information 209 as shown in
N. Recovery Priority Registration Process Based on Importance of Data
Another factor to consider is the importance of data. In other words, the priority may be evaluated based on the necessity to avoid loss of the data.
At step 2001, the management computer 520 analyzes the importance mentioned above for the data stored on area in volumes. At step 2002, the management computer 520 obtains the location of the data and classifies the area into several (e.g., three) priorities such as high, middle, and low according to the analyzed difference of importance or necessity to avoid loss of the data. At step 2003, the management computer 520 records the obtained priority in the recovery priority information 529. An example of the recovery priority information 209 as shown in
O. Recovery Priority Determination Based on Processes for TPV
As described above, processes to provide TPVs 610 include the assignation and release request of the chunk 910. The information regarding the assignation process and the release process can be used to generate the recovery priority information 209.
At step 2101, the storage controller 110 detects a failure of a disk 600. At step 2102, the storage controller 110 finds the affected area of the TPVs 610 regarding the failure. The storage controller 110 can obtain the affected area by referring mapping information 201, internal volume information 206, and parity group information 207 in regard to the failed disk 600. At step 2103, the storage controller 110 resets the recovery priority information 209 to “Low” as the initial value. At step 2104, the storage controller 110 checks the mapping information 201 for a segment in the affected area. If a chunk has already been assigned to the segment, the process proceeds to step 2105. If not, the process proceeds to step 2108. At step 2105, the storage controller 110 checks the releasability information 208 for the segment. If the segment is marked as releasable, the process proceeds to step 2108. If not, the process proceeds to step 2106. At step 2106, the storage controller 110 classifies the area of the segment as high priority for recovery. At step 2107, the storage controller 110 records the obtained priority in the recovery priority information 209. At step 2108, if the storage controller 110 has checked all segments of the affected area, the process ends. If not, the storage controller 110 advances the check to the next segment (step 2109).
P. Recovery Process
To achieve the recovery based on the priority, the storage controller 110 can allocate computing resource (e.g., processing time of main processor 111 and disk controller 400, memory 200, and bandwidth of backend paths 601) to each of the concurrent recovery processes for multiple locations according to the priority of each location. The storage controller 110 can also control execution order of recovery processes according to the priority. With the methods and processes described above, disk failure recovery methods that align to the users' applications and usage can be achieved.
Of course, the system configuration illustrated in
In the description, numerous details are set forth for purposes of explanation in order to provide a thorough understanding of the present invention. However, it will be apparent to one skilled in the art that not all of these specific details are required in order to practice the present invention. It is also noted that the invention may be described as a process, which is usually depicted as a flowchart, a flow diagram, a structure diagram, or a block diagram. Although a flowchart may describe the operations as a sequential process, many of the operations can be performed in parallel or concurrently. In addition, the order of the operations may be re-arranged.
As is known in the art, the operations described above can be performed by hardware, software, or some combination of software and hardware. Various aspects of embodiments of the invention may be implemented using circuits and logic devices (hardware), while other aspects may be implemented using instructions stored on a machine-readable medium (software), which if executed by a processor, would cause the processor to perform a method to carry out embodiments of the invention. Furthermore, some embodiments of the invention may be performed solely in hardware, whereas other embodiments may be performed solely in software. Moreover, the various functions described can be performed in a single unit, or can be spread across a number of components in any number of ways. When performed by software, the methods may be executed by a processor, such as a general purpose computer, based on instructions stored on a computer-readable medium. If desired, the instructions can be stored on the medium in a compressed and/or encrypted format.
From the foregoing, it will be apparent that the invention provides methods, apparatuses and programs stored on computer readable media for prioritizing the location of data to be recovered during failure which are particularly advantageous in large capacity disk drives. Additionally, while specific embodiments have been illustrated and described in this specification, those of ordinary skill in the art appreciate that any arrangement that is calculated to achieve the same purpose may be substituted for the specific embodiments disclosed. This disclosure is intended to cover any and all adaptations or variations of the present invention, and it is to be understood that the terms used in the following claims should not be construed to limit the invention to the specific embodiments disclosed in the specification. Rather, the scope of the invention is to be determined entirely by the following claims, which are to be construed in accordance with the established doctrines of claim interpretation, along with the full range of equivalents to which such claims are entitled.
Number | Name | Date | Kind |
---|---|---|---|
7386758 | Kitamura | Jun 2008 | B2 |
20030131206 | Atkinson et al. | Jul 2003 | A1 |
20080091741 | Zohar et al. | Apr 2008 | A1 |
Number | Date | Country | |
---|---|---|---|
20110066803 A1 | Mar 2011 | US |