Memory systems with data storage redundancy management

Abstract: A disk array (10) has a plurality of disks (12), a disk array controller (14) for coordinating data transfer to and from the disks, and a RAID management system (16) for mapping two different RAID areas (42,44) onto the disks. The RAID management system (16) stores data in one of the RAID areas according to mirror redundancy, and stores data in the other RAID area according to parity redundancy. The RAID management system (16) then shifts or migrates data between the mirror and parity RAID areas on the disks in accordance with a predefined performance protocol, such as data access recency or access frequency. A method for managing data on a disk array is also disclosed.

Description: FIELD OF THE INVENTION This invention relates to non-volatile memory systems with the capability of detecting failures, such as computer disk arrays, having data storage redundancy management. BACKGROUND OF THE INVENTION Computer systems are constantly improving in terms of speed, reliability, and processing capability. As a result, computers are able to handle more complex and sophisticated applications. However, as computers improve, performance demands placed on mass storage and input/output (I/O) devices increase. In general, I/O performance has had difficulty keeping pace with the growing capabilities of the computers. The mass storage industry faces two primary challenges: (1) to improve I/O performance so that data access does not become a limiting factor for an application, and (2) to provide access to on-line data at levels of reliability well in excess of the expected lifetimes of the computer systems that process it. See, The RAIDBook: A Source Book for RAID Technology, published June 9, 1993, by the RAID Advisory Board, Lino Lakes, Minnesota It is desirable that storage devices meet these goals in a cost-effective manner. The performance of present disk I/O systems is limited because data stored thereon is located by comparatively slow processes of seeking and disk rotation. Additionally, the data is transferred to and from the disk media in a serial bit stream which also inhibits speed. Manufacturers, therefore, attempt to design systems which rearrange data on the disks in such a manner that the more frequently accessed data is evenly distributed across the I/O resources. There are three primary design criteria for mass storage systems: cost, performance, and availability. It is most desirable to produce memory devices that have a low cost per megabit, a high input/output performance, and high data availability. "Availability" is the ability to recover data stored in the storage system even though some of the data has become inaccessible due to failure or some other reason and the ability to insure continued operation in the event of such failure. Typically, data availability is provided through the use of redundancy wherein data, or relationships among data, are stored in multiple locations. There are two common methods of storing redundant data. According to the first or "mirror" method, data is duplicated and stored in two separate areas of the storage system. For example, in a disk array, the identical data is provided on two separate disks in the disk array. The mirror method has the advantages of high performance and high data availability due to the duplex storing technique. However, the mirror method is also relatively expensive as it effectively doubles the cost of storing data. In the second or "parity" method, a portion of the storage area is used to store redundant data, but the size of the redundant storage area is less than the remaining storage space used to store the original data. For example, in a disk array having five disks, four disks might be used to store data with the fifth disk being dedicated to storing redundant data. The parity method is advantageous because it is less costly than the mirror method, but it also has lower performance and availability characteristics in comparison to the mirror method. IBM Technical Disclosure Bulletin, Volume 33, No. 8, January 1991 describes using dual actuator shared data direct access storage devices drives in a redundant array. The system comprises disk drives which are mirrored pairs and disk drives which are drives in a parallel array implementing either stripped checksum, parity or some other form of array technology. This system analyses data usage and moves the data between the various sub-regions, i.e. from a mirrored to a parallel area, thus optimizing performance and redundancy. The mirrored drives are used for the most write operations. EP 0 485 110 A2 describes the logical partitioning of a redundant array storage system for implementing a flexible RAID-architecture which can be altered for each user or as a user needs change. It is the object underlying the present invention to provide an improved memory system and an improved method for managing data in such a system allowing for a improved performance, data availability and low costs. This object is achieved by a disk array according to claim 1 and by a method according to claim 4. According to this invention, which is defined by the claims, a memory system comprises a non-volatile memory device having a first memory location which stores data according to a first redundancy level (such as mirror redundancy), and a second memory location that stores data according to a second redundancy level (such as parity redundancy). The memory system further includes manager means for transferring data between the first and second memory locations based upon a defined performance protocol for a particular data (such as a migration policy which employs data access recency or data access frequency). This invention also concerns a method for managing data on a disk array which includes the following steps: (1) providing physical storage space on a plurality of disks; (2) mapping the physical storage space into a virtual storage space having multiple first and second areas; (3) storing data in the first areas according to a first redundancy level; (4) storing data in the second areas according to a second redundancy level; and (5) migrating data from a first area of the virtual storage space to a second area of the virtual storage space. DESCRIPTION OF THE DRAWINGS Preferred embodiments of the invention are described below with reference to the following accompanying drawings depicting examples embodying the best mode for practicing the invention. Fig. 1 is a diagrammatic block diagram of a memory system according to this invention. Fig. 2 is a diagrammatic illustration showing a RAID Level 1 data storage. Fig. 3 is a diagrammatic illustration showing a RAID Level 5 data storage. Fig. 4 is a diagrammatic illustration of a memory mapping arrangement of this invention. DETAILED DESCRIPTION OF THE INVENTION Fig. 1 shows a memory system 10 constructed according to this invention. Preferably, memory system 10 is a disk array having a plurality of disks 12, a disk array controller 14 which coordinates data transfer to and from the disks, and a RAID management system 16. For purposes of this disclosure, a "disk" is any non-volatile, randomly accessible, rewritable mass storage device which has the ability of detecting its own storage failures. It includes both rotating magnetic and optical disks and solid-state disks, or non-volatile electronic storage elements (such as PROMs, EPROMs, and EEPROMs). The term "disk array" is a collection of disks, the hardware (such as a controller) required to connect them to one or more host computers, and management software used to control the operation of the physical disks and present them as one or more virtual disks to the host operating environment. A "virtual disk" is an abstract entity realized in the disk array by the management software. The term "RAID" (Redundant Array of Independent Disks) means a disk array in which part of the physical storage capacity is used to store redundant information about user data stored on the remainder of the storage capacity. The redundant information enables regeneration of user data in the event that one of the array's member disks or the access path to it fails. A more detailed discussion of RAID systems is found in a book entitled, The RAIDBook: A Source Book for RAID Technology, published June 9, 1993, by the RAID Advisory Board, Lino Lakes, Minnesota. Disk array controller 14 is coupled to disks 12 via one or more interface buses 13, such as a small computer system interface (SCSI). RAID management system 16 is operatively coupled to disk array controller 14 via an interface protocol 15. Memory system 10 is coupled to a host computer (not shown) via an I/O interface bus 17. RAID management system 16 can be embodied as a separate component or configured within disk array controller 14 or within the host computer to provide a manager means for controlling disk storage and reliability levels, and for transferring data among various reliability storage levels. These reliability storage levels are preferably mirror or parity redundancy levels as described below, but can also include a reliability storage level with no redundancy at all. Fig. 1 shows disks 12 arranged in a mirror group 18 of multiple disks 20 and a parity group 22 of multiple disks 24. Mirror group 18 represents a first memory location or RAID area of the disk array which stores data according to a first or mirror redundancy level. This mirror redundancy level is also considered a RAID Level 1. RAID Level 1, or disk mirroring, offers the highest data reliability by providing one-to-one protection in that every bit of data is duplicated and stored within the memory system. The mirror redundancy is diagrammatically represented by the three pairs of disks 20 in Fig. 1. Original data can be stored on a first set of disks 26 while duplicative, redundant data is stored on the paired second set of disks 28. Fig. 2 illustrates the storage of data according to RAID Level 1 in more detail. The vertical columns represent individual disks, of which disks 0, 1, 2, and 3 are illustrated. Horizontal rows represent "stripes" in which data is distributed across the disks in the array. A stripe is comprised of numerous segments, with one segment being associated with each disk. In this example, data stored on disk 0 in segment 0 of stripe 0 is duplicated and stored on disk 1 in segment 0' of stripe 0. Similarly, data stored on disk 2 in segment 5 of stripe 2 is mirrored into segment 5' of stripe 2 on disk 3. In this manner, each piece of data is duplicated and stored on the disks. The redundancy layout of Fig. 2 is provided for explanation purposes. However, the redundant data need not be placed neatly in the same stripe as is shown. For example, data stored on disk 0 in segment 2 of stripe 1 could be duplicated and placed on disk 3 in segment T' of stripe S. In Fig. 1, the parity group 22 of disks 24 represent a second memory location or RAID area in which data is stored according to a second redundancy level, such as RAID Level 5. In this explanatory illustration, original data is stored on the five disks 30 and redundant "parity" data is stored on the sixth disk 32. Fig. 3 shows a parity RAID area layout in more detail. The RAID area comprises multiple disks and a number of equal sized stripes. The portion of a stripe that resides on a single disk is a segment. In this example, data is stored according to RAID Level 5 and the redundant data stored in the segments is referenced by letter P. The redundant P segments store the parity of the other segments in the stripe. For example, in stripe 0, the redundant P segment on disk 3 stores the parity of disks 0, 1, and 2. The parity for each stripe is computed with an exclusive OR function, which is represented by the symbol "⊕". The parities for the first four stripes (with the subscript numeral representing the corresponding stripe) are as follows: P 0 = Segment 0 ⊕ Segment 1 ⊕ Segment 2 = Disk 0 ⊕ Disk 1 ⊕ Disk 2 P 1 = Segment 3 ⊕ Segment 4 ⊕ Segment 5 = Disk 0 ⊕ Disk 1 ⊕ Disk 3 P 2 = Segment 6 ⊕ Segment 7 ⊕ Segment 8 = Disk 0 ⊕ Disk 2 ⊕ Disk 3 P 3 = Segment 9 ⊕ Segment 10 ⊕ Segment 11 = Disk 1 ⊕ Disk 2 ⊕ Disk 3 Parity redundancy allows regeneration of data which becomes unavailable on one of the disks. For example, if the data in segment 5 becomes unavailable, its contents can be ascertained from segments 3 and 4 and the parity data in segment P. Parity storage is less expensive than mirror storage, but is also less reliable and has a lower performance. The disk arrangement of Fig. 1 is provided for conceptual purposes. In practice, disk array 10 would simply have a plurality of disks 12 which are capable of storing data according to mirror and parity redundancy. Among the available storage space provided by all disks 12, a portion of that storage space would be allocated for mirror redundancy and another portion would be allocated for parity redundancy. Preferably, disks 12 are configured to contain plural, equal sized storage regions (referenced as numeral 35 in Fig. 4), wherein individual regions have multiple segments. This feature is discussed below in more detail with reference to Fig. 4. The memory system 10 of this invention is unique because it manages the "migration" of data between mirror and parity storage schemes. The management of both types of redundancy is coordinated by RAID management system 16 (Fig. 1). RAID management system 16 manages the two different types of RAID areas as a memory hierarchy with the mirror RAID areas acting similar to a cache for the parity RAID areas. Once data is moved from a parity RAID area to a mirror RAID area, the space it once occupied in the parity RAID area is available for storage of other data. The RAID management system 16 shifts, organizes, and otherwise manages the data between the mirror and parity RAID areas in accordance with a defined performance protocol. The process of moving data between the mirror and parity RAID areas is referred to as "migration". Memory system 10 places the more critical data in the mirror RAID areas since this affords the highest performance and reliability. The performance protocols implemented by RAID management system 16 includes one of two preferred migration policies. According to the first migration policy, the most frequently accessed data is maintained in the mirror RAID area 18. Less frequently accessed data is maintained in the parity RAID area 22. According to a second migration policy, known as "access recency", the most recently retrieved data is maintained in the mirror RAID area 18 while the remaining data is stored in parity RAID area 22. Other performance protocols may be employed. Ideally, such protocols are defined based upon the specific computer application. In this manner, the RAID management system 16 effectively "tunes" the storage resources of a memory system according to the application or user requirements. For instance, in an application requiring high performance and reliability, the RAID management system may create and define a proportionally larger mirror RAID area, thereby dedicating a larger amount of physical storage capacity to mirror redundancy, in comparison to the parity RAID area. Conversely, in an application where cost is premium and less importance is placed on performance or reliability, the RAID management system may establish a proportionally larger parity RAID area in comparison to the mirror RAID area. Accordingly, the memory system of this invention affords maximum flexibility and adaptation. Fig. 4 illustrates a memory mapping of the available storage space of memory system 10 as multiple tiers of mapped virtual storage space. Each rectangle in the diagram represents a view of physical storage space. In this diagram, physical storage space 34 is referenced by two virtual storage views 40 and 50. Physical storage space 34 is represented by four disks (such as disks 12 in Fig. 1) referenced by numerals 0, 1, 2, and 3. The four rectangles associated with the disks represent a view of the physical storage space wherein disks 1, 2, and 3 have approximately equal storage capacity, and disk 0 has slightly less storage capacity. The storage space 34 is partitioned into areas 0, 1, 2, etc. Individual areas contain multiple regions 35, which are preferably equal in size across the entire disk array. The storage space of the disks can be mapped into a first or intermediate virtual view 40 of the physical storage space 34. This first virtual view is conceptually a set of RAID areas which, when viewed by the user or application program, represents one large storage space indicative of the total storage space on the disks 0, 1, 2, and 3. Accordingly, the height of the rectangle in the RAID areas is shown as higher than those of the disks. The RAID area storage space 40 is the view of storage that identifies mirror and parity storage space. For instance, a RAID area 42 may represent a mirror RAID area of M blocks 43 while RAID area 44 represents a parity RAID area of N blocks 45. These RAID areas relate to corresponding areas 0, 1, 2, etc., on the physical storage space 34. The mirror and parity RAID areas may or may not consume the entire storage space 34 of the disk array. Accordingly, during certain applications, there may be unused and undesignated storage space that does not correspond to a particular RAID level area. However, such storage space can be converted into a mirror or parity RAID area as is described below in more detail. The storage space available in the RAID areas can also be mapped into a second or front and virtual view 50 which is a view of storage presented to the user or application program. When viewed by the user or application program, second virtual view 50 also represents a single large storage capacity indicative of the available storage space on disk 12. Virtual storage space 50 presents a view of a linear set of equal sized storage blocks 52 and 53, referenced individually as 0, 1, 2, ... J-1, J, J+1, ..., etc. The virtual block storage space 50 is represented by a table of references or pointers to storage blocks in the view presented by RAID areas 40 (as represented by arrows 54). There are at least two RAID areas that can be referenced from the virtual block table so that both mirror and parity storage areas are available. Preferably, the storage capacity of RAID areas 40 is divided into blocks of the same size as those of the virtual block view of storage space so that the virtual blocks table can reference a particular RAID area and RAID area relative block number. For purposes of continuing explanation, virtual blocks 53 of the second virtual storage space 50 reference associated blocks 45 in parity RAID area 44 stored in area 1 of physical storage space 34. Similarly, virtual blocks 52 reference associated blocks 43 in mirror RAID area 42 stored in area 0 of physical storage space 34. Such virtual blocks 52 are referred to herein as "mirror virtual blocks". The operation of memory system 10 will now be described with reference to Figs. 1 and 4. In general, to migrate data from one RAID area to another, a first virtual block 52 representing a first RAID level (such as mirror or Level 1) is selected. Then, a second virtual block 53 representing a second RAID level (such as parity or Levels 3, 4, or 5) is located. This second virtual block is preferably unused, but if an unused block cannot be located, one is created. Data is next transferred from the first virtual block to the second virtual block which causes the data to undergo a redundancy level change. For example, data once stored according to mirror redundancy would now be stored according to parity redundancy. As a final step, the second virtual storage space 50 is modified and updated to reflect the shift of data. The continuing discussion provides a more detailed explanation of migrating data between mirror and parity storage areas according to preferred methods and sequences of this invention. To migrate data from a virtual block 53 indicative of a parity RAID area 44 to a virtual block 52 indicative of a mirror RAID area 42, the following sequence is employed: 1. A request is made for a virtual block 53 that is currently stored in a parity RAID area 44. 2. The RAID management system locates an unused virtual block 52 in a mirror RAID area 42. 3. If none can be found, the RAID management system creates a mirror virtual block (discussed below). 4. The RAID management system suspends new storage requests to the virtual block to be migrated. 5. The RAID management system waits until all active data storage requests to the virtual block are completed. 6. The data from the parity virtual block 53 is read into a temporary memory buffer. 7. The data is then written to the mirror virtual block 52 chosen in step 2. 8. The virtual block table is modified to reference the new virtual block location. 9. The suspended storage requests are resumed. According to the above procedure, data has moved in the second virtual view from parity virtual block(s) 53 to mirror virtual block(s) 52. Relative to the intermediate virtual view, data has moved from parity RAID area 44 to mirror RAID area 42. In physical storage space, data has migrated from area 1 to area 0. The RAID management system 16 reserves a few RAID areas for the purpose of migration. The reserved areas are not available for the storage of client application, but serve as temporary storage locations for data being moved between the mirror and parity storage areas. These reserved RAID areas are useful during the creation of new RAID storage areas or the conversion between mirror and parity RAID areas during the migration process. If an unused mirror virtual block cannot be located (Step 3 above), the RAID management system will attempt to create one according to the following preferred sequence of techniques. First, the RAID management system will attempt to locate an unused and undesignated RAID area that can be converted to a mirror RAID area. Second, if this proves unsuccessful, the RAID management system will next attempt to locate an unused parity virtual block and migrate a mirror virtual block to parity. This frees up the mirror virtual block to receive the new data. If this second step fails, the RAID management system will then attempt to create an unused RAID area by migrating a number of mirror virtual blocks to parity using the reserved RAID areas. Since mirror virtual blocks occupy more physical storage space than parity virtual blocks, migration of mirror virtual blocks to parity RAID areas will result in a net increase in the amount of unused storage even if it requires conversion of a reserved RAID area to a parity RAID area. Migration of mirror blocks to parity will eventually result in an additional unused RAID area that can be converted to a mirror RAID area. The creation/conversion protocol used to locate and establish mirror virtual blocks is advantageous because it permits the RAID management system to selectively adjust the memory allocation between parity and mirror areas according to the computer application. As applications vary, the RAID management system employs one or more of the above three techniques to define the ideal amount of mirror storage area for specific performance and reliability requirements of the various applications. The RAID management system attempts to avoid the situation in which a storage request must wait for the space-making sequence to yield a mirror virtual block by creating unused RAID areas during idle time. However, in some situations, storage requests may be suspended during the space-making sequence. The RAID management system configures the virtual block storage space in such a way that the virtual space will be the same size or smaller than the available physical space 34. In this manner, the sequence of techniques will always yield an unused mirror block. To migrate a mirror virtual block to a parity RAID area, the following sequence is employed: 1. The RAID management system chooses a mirror virtual block 52 to migrate according to a migration policy such as access recency or access frequency. 2. The RAID management system locates an unused virtual block 52 in a parity RAID area 44. 3. If such a block cannot be found, a reserved RAID area is converted to a parity RAID area according to the above described creation techniques. 4. New storage requests to the virtual block to be migrated are suspended. 5. The RAID management system waits until all active storage requests to the virtual block are completed. 6. Data is read from the mirror virtual block 52 into a temporary memory buffer. 7. The data is written to the chosen parity virtual block 53. 8. The virtual block table is modified to reference a new virtual block location. 9. Data requests are resumed. The above two sequences are provided to give examples of how the memory system of this invention can operate. Other various procedures and alternatives are possible and would be recognized by one skilled in the art. The memory system of this invention is advantageous because it affords high performance and high data availability (i.e., reliability), while providing a relatively low storage cost. This is accomplished by extracting the benefits associated with mirror storage and parity storage.

Claims: A disk array comprising: a plurality of disks (12); a disk array controller (14) for coordinating data transfer to and from the disks (12); and RAID management system (16) operatively coupled to the disk array controller (14) for managing data on the disk array, the RAID management system having means for providing physical storage space (34) on the disk array of plural disks (12); mapping the physical storage space (34) into a first virtual storage (40) space having first and second areas (42,44), the first area holding data according to a first RAID level and the second area holding data according to a second RAID level; mapping the first virtual storage space (40) into a second virtual storage space (50) having multiple blocks (52,53), the blocks representing the first and second RAID level areas; selecting a first block representing a first RAID level area; creating a second block representing a second RAID level area according to at least one of the following techniques: (a) converting an unused and undesignated RAID area into a second block representing the second RAID level area; b) locating an unused block representing the first RAID level area and migrating data from a used block representing the second RAID level area to the unused block to make the used block available as the second block; and (c) establishing an unused and undesignated RAID area by migrating at least one block representing the first RAID area to another block representing the second RAID area, the unused and undesignated RAID area then being converted to the second block according to step (a); transferring selected data from the first block to the second block so that the selected data experiences a change in storage performance and reliability from the first RAID level area to the second RAID level area; and modifying the second virtual storage space (50) to reflect the transfer to a new storage area. The disk array according to claim 1 wherein the first redundancy level is RAID Level 1 and the second redundancy level is RAID Level 5. The disk array according to claim 1 or 2 wherein converting (a) is first conducted in an attempt to create the second block before one of the locating (b) and the establishing (c) are conducted. A method for managing data on a disk array, comprising the following steps: providing physical storage space (34) on a disk array of plural disks (12); mapping the physical storage space (34) into a first virtual storage (40) space having first and second areas (42,44), the first area holding data according to a first RAID level and the second area holding data according to a second RAID level; mapping the first virtual storage space (40) into a second virtual storage space (50) having multiple blocks (52,53), the blocks representing the first and second RAID level areas; selecting a first block representing a first RAID level area; creating a second block representing a second RAID level area according to at least one of the following techniques: (a) converting an unused and undesignated RAID area into a second block representing the second RAID level area; (b) locating an unused block representing the first RAID level area and migrating data from a used block representing the second RAID level area to the unused block to make the used block available as the second block; and (c) establishing an unused and undesignated RAID area by migrating at least one block representing the first RAID area to another block representing the second RAID area, the unused and undesignated RAID area then being converted to the second block according to step (a); transferring selected data from the first block to the second block so that the selected data experiences a change in storage performance and reliability from the first RAID level area to the second RAID level area; and modifying the second virtual storage space (50) to reflect the transfer to a new storage area. A method for managing data on a disk array according to claim 4 wherein the first redundancy level is RAID Level 1 and the second redundancy level is RAID Level 5. A method for managing data on a disk array according to claim 4 or 5 wherein the conversion step (a) is first conducted in an attempt to create the second block before one of the locating step (b) and the establishing step (c) are conducted.

Inventors: BAIRD ROBERT, FORDEMWALT JOHN W, JACOBSON MICHAEL B, NELSON MARVIN D, VAZIRE HAMID, VOIGT DOUGLAS L, BAIRD, ROBERT, FORDEMWALT, JOHN W., JACOBSON, MICHAEL B., NELSON, MARVIN D., VAZIRE, HAMID, VOIGT, DOUGLAS L.
Applicants: HEWLETT PACKARD CO, HEWLETT-PACKARD COMPANY
Application year: 1994
Main classification: G06F11
IPC codes: G06F3, G11C29, G11B20, G06F11