Embodiments of the invention relate to disk arrays, and to methods, devices, systems, and computer readable media for storing data and managing disk arrays.
Many applications, including video surveillance applications, generate significant amounts of data which may be stored on hard disk drives in computer systems. For larger scale installations, hardware fault tolerance may be built into the system so that recording will not be interrupted on hardware failure.
To protect against disk drive failures, one conventional method is to keep a copy of the data on two separate disk drives. In the event of a failure of one disk drive, the data may be recovered from the other drive. In another conventional method, it may be more cost effective to keep parity information of data distributed among a group of disk drives. Parity information generally refers to a smaller amount of data representing a larger data set. In the event of a failure of one disk drive, the parity data from the remaining drives may be used to reconstruct the lost data. Similarly, to protect against whole enclosure of drives failing, in another conventional method it may be more cost effective to distribute parity information amongst drives grouped in multiple enclosures rather than restricting parity information to a group of drives housed in a single enclosure.
Traditional redundant data storage schemes or architectures built on commodity hardware, such as Redundant Array of Independent Disks or RAID, implement non-distributed RAID; that is each node can apply RAID only to the physical disks it directly owns. Distributed RAID may be used; where each node participates in RAID so as to distribute parity information across the disks of many nodes. Unfortunately, in a distributed RAID system all RAID operation becomes subject to network traffic and therefore may undesirably affect the performance of the system. For example, a disk failure is handled by rebuilding over the network, which may require on the order of 10*2 TB of data movement. Moving this much data over a network may be time consuming and may adversely affect system performance.
To protect against disk access system component system failures, one conventional method is to split the compute and storage components of the system into separate physical machines, and provide redundant data-paths to connect the compute nodes to the storage nodes. This method utilizes dual-port disk drives and dual disk controllers in the storage enclosure. Accordingly, the disk drives have redundant lanes and interconnects, and multiple controllers are provided. Unfortunately, redundant data-path systems may not be cost effective for applications such as video surveillance.
Certain details are set forth below to provide a sufficient understanding of embodiments of the invention. However, it will be clear to one skilled in the art that embodiments of the invention may be practiced without various of these particular details. In some instances, well-known circuits, control signals, timing protocols, electronic components, and software operations have not been shown for simplicity.
Embodiments of the invention may provide low cost, fault tolerant and scalable computer systems suitable for video surveillance applications to record and store video data. Mechanisms to provide fault tolerance may advantageously be cost effective to keep the surveillance system cost low. Other types of applications may be implemented and other types of data may be stored using systems and techniques described herein.
Generally, applications and systems described below refer to the availability of redundant data. As generally described above, the actual data may not be duplicated in some embodiments, but parity data representative of the data may be used.
Embodiments of the present invention generally provide for multi-dimensional disk arrays and methods for managing same. By multi-dimensional, it is meant that multiple levels of disk arrays may be created at each level of a system where failure is to be protected against. For example, as will be described below, a set of physical disk drives may be arranged into a first level disk array. A failure of a drive in the physical disk drives may be protected against using data stored on the remaining disk drives. The collection of physical disk drives, along with processing unit(s), memory, and a network connection, may be referred to as a node. Accordingly, the first level disk array may protect against failure within the node. Communication between nodes may then not be necessary to restore the system after a disk failure. A second level disk array may be generated using portions of the physical disk drives located at multiple nodes. In this manner, the effects of failure of a node may be protected against using data stored at other nodes and managed through the second level disk array. Additional levels may also be implemented, for example a third level disk array may be generated using portions of physical disk drives located at multiple geographical sites. Each site may include any number of serves having a plurality of disk drives. Failure of a site may be protected against using data stored at other sites and managed through the third level disk array.
Embodiments of the invention accordingly allow disk failures to be handled as close to the disks as possible, using no or limited network resources. Handling reliable storage scalability, however, may require distributed RAID. Accordingly, embodiments of the invention provide RAID at multiple and different levels, called here multi-dimensional RAID.
Recall, as described in the Background section above, that some existing systems may separate compute and storage nodes and require multiple data-paths between the nodes. Embodiments of the present invention may utilize single-port disk drives in the compute node, with system component failure handling moved to the node level. The resulting system may have lower failure-mode performance, but may significantly reduce the cost of the storage component of the system. Embodiments may provide adequate performance for surveillance or other systems while keeping system cost low. While multi-port drives may be used in some examples, they may be redundant in some embodiments.
A variety of difficulties may be encountered in building a multi-dimensional disk array system using integrated server-storage nodes. Embodiments of the present invention may overcome some or all of the below-described difficulties. The difficulties are presented to facilitate understanding of described embodiments. Not all, or even any, of the listed difficulties may be overcome or addressed by every embodiment of the present invention. Difficulties described below include difficulties involved in system expansion, hierarchical viewing, and array rebuild time.
When a new disk is added to a system, the new disk may not be able to immediately contribute to the disk array. The data on the existing disk array may be rearranged to spread across the existing disks and new disk. For a multi-dimensional disk array, this data rearrangement process may compound for every dimension. The process may be very time consuming. Alternatively, a new array may be created to match the desired disk array configuration, and the data from the old array may be copied to the new array. This may require at least doubling the storage space, which may not be practical for a large multi-dimensional disk array.
In each level of a multi-dimensional disk array, storage objects are sub-divided.
The storage objects may then be interleaved and rearranged at the next level, to create different fault boundaries to provide fault tolerance. When a failure occurs to one particular storage object in a specific level of the multi-dimensional array, it may be difficult to assess the impact to objects in all the other levels. Also, given a particular storage object, it may be difficult to identify other objects in the array with similar fault tolerance and performance characteristics.
In a multi-dimensional disk array, if any level of the array encounters a failure in one of its elements, all the elements at the same level in the array may need to be accessed to rebuild data for the failed element. This may lead to I/O load on all the storage objects in all the levels below it. If the whole level of the array is to be rebuilt indiscriminately, the performance impact and rebuild time may be intolerable. Also, for multi-dimensional arrays, transient failure where the array element returns to good working condition after brief interruption may be more common than permanent failure. Indiscriminately rebuilding the whole level of any array may often be unnecessary.
Embodiments of the present invention may provide software and hardware structures used to build cost-effective, scalable and fault-tolerant multi-dimensional disk arrays. One or more of the following mechanisms may be used to make such a product deployable and manageable:
1) Online copying of selective disks in the existing disk array may be used to achieve rapid migration of existing data to newly available disks. This may allow the system to create new arrays with layouts that incorporate the new disks, resulting in arrays with optimized performance and fault-tolerance characteristics.
2) A table-based storage object display construct may be provided for quick identification of parent-child object relationship from the top to the bottom levels, and peer-to-peer object relationship across the whole system.
3) During the time an array element is missing, a data modification tracking mechanism may be activated. When the array element returns, the extent of the array rebuilding is determined according to the amount of data modification has happened.
Again, not all embodiments of the present invention will utilize each, or any, of these mechanisms. Embodiments of the present invention will now be described further below with reference to the Figures.
For example, the node 102 includes a node manager 106 and a cross-node manager 108. The node manager 106 may include one or more processing units and memory encoding computer readable instructions that when executed, cause the node manager 106 to provide the functions described below. The cross-node manager 108 may include one or more processing units, which may be shared with the node manager 106, and memory encoding computer readable instructions, which may be shared with the node manager 106, that when executed, cause the cross-node manager 108 to provide the functions described below. The node 104 includes a node manager 110 and a cross-node manager 112. The node manager 110 may include one or more processing units and memory encoding computer readable instructions that when executed, cause the node manager 110 to provide the functions described below. The cross-node manager 112 may include one or more processing units, which may be shared with the node manager 110, and memory encoding computer readable instructions, which may be shared with the node manager 110, that when executed, cause the cross-node manager 112 to provide the functions described below. Although not shown explicitly in
Each node may also have direct access to a number of single-port disk drives, where video or other data may be stored. The node 102 includes disk drives 114, 115, and any number of disk drives may be provided. The node 104 includes disk drives 117, 118, and any number of disk drives may be provided. The disk drives in a node may be arranged into one or more disk arrays, as will be described further below.
Each node, including the nodes 102 and 104, may include a first level disk array.
The node 102 includes the first level disk array 120. The node 104 includes the first level disk array 122. The first level disk arrays 120, 122 are specific to the respective node 102, 104, and may group multiple physical disk drives of the node into an array having redundant data storage, such as RAID. That is, the first level disk arrays 120, 122 represent an arrangement of redundant data storage on the physical disk drives of the node. The first level disk arrays may be created and managed by the respective node manager. For example, the node manager 106 of the node 102 may arrange the disk drives of the node 102, including the drives 114 and 115, into the first level disk array 120. The first level disk array 120 is a representation of redundant storage on the disk drives, such that if one disk drive were to fail, the node manager 106 may recover data stored on the failed drive using data stored on others of the drives within the first level disk array. Similarly, the node manager 110 of the node 104 may arrange the disk drives of the node 104, including the drives 117 and 118, into the first level disk array 122. The first level disk array 122 is a representation of redundant storage on the disk drives, such that if one disk drive were to fail, the node manager 110 may recover data stored on the failed drive using data stored on others of the drives within the first level disk array. The node managers 106, 110, may provide protection of disk drive failures in a first level disk array using distributed parity redundancy mechanism, for example RAID5 or RAID6. If disk drive fault-tolerance is not needed, the node managers 106, 110 may stripe the data across the disk drives of the respective first level disk array, for example RAID0. That is, a data layout across the disk drives of the respective first level disk array may be in accordance with a RAID0 architecture.
The node managers 106, 110 may also subdivide the combined storage capacity of the respective first level disk array 120, 122 into storage objects, referred to herein as level-2 disks. That is, the node managers 106,110 may make portions of the physical disk drives of the node, for example disk drives 114, 115 or 117, 118, available to a next level in groupings referred to as ‘level-2 disks’. For example, the node manager 110 may make a portion 130 of the disk drive 117 available as a portion of a level-2 disk 132. Other portions of other disks in the disk array 122, e.g. Disk 118, may also be used to form the level-2 disk 132. Other portions of the disks of the disk drives of the node 104 may be used by the node manager 110 to provide other level-2 disks, including the level-2 disk 134. In an analogous manner, the node manager 106 may provide level-2 disks 136, 138 using portions of the physical disks of the node 102, such as the disks 114, 115. Although two level-2 disks are explicitly shown in each node of
In embodiments of the present invention, multiple nodes may be connected over an interconnect. The nodes 102 and 104 of
Each node, including the nodes 102, 104, as mentioned above, also includes a respective cross-node manager 108, 112. The cross-node managers 108, 112 may combine level-2 disks from different nodes into another array. For example, the cross-node manager 112 may create a level-2 disk array 142 using the level-2 disk 132 from the node 104 and the level-2 disk 136 from the node 102. The cross-node manager 112 may store data in the level-2 disk array 142 using a redundancy mechanism such as a distributed parity redundancy mechanism, for example RAID5 or RAID6. Similarly, the cross-node manager 108 may create a level-2 disk array 144 using the level-2 disk 138 and the level-2 disk 134. The cross-node managers 112 and 108 may then reconstruct data following the failure of a node, using data stored on level-2 disks in other nodes. Generally, the cross-node managers are configured to create a level-2 disk array using a level-2 disk from each of the nodes in the system. The cross-node managers 108, 112 may also subdivide the combined storage capacity of the level-2 disk arrays 142, 144 into storage objects for a next level (not shown in
As mentioned above, a third level of disk array may also be provided in some examples to provide redundancy across another level. For example, the nodes 202-205 may be arranged in groups, for example the nodes may be at different sites. The nodes 202-203 may belong to a first group 230, while the nodes 204-205 may belong to a second group 232. This may represent different geographic locations in some embodiments. Another level node manager may be provided at each group to subdivide the level-2 array into level-3 disks. For example, a cross-site manager may be provided at the node 202 to subdivide the array 225 into level-3 disks 240-242. The cross-site manager may generate a level-3 array 245 using the level-3 disk 240 of the node 202 and a level-3 disk 244 of the node 204. In this manner, redundancy across groups may be provided. In an analogous manner, a fourth level of manager may be provided to sub-divide the level-3 array 245 into level-4 disks 250-252. This fourth level manager may generate a level-4 array (not shown in
During operation, the described managers may generate the multi-dimensional disk arrays described above. Following a failure, the appropriate level manager may recover the data previously stored at the failed component using data stored at the remaining operational components.
In step 310, the node manager may subdivide the first level disk array into level-2 disks. Node managers at each of multiple nodes may perform step 310. In this manner, portions of the physical disks are made available as level-2 disks. In step 315, a cross-node manager may generate a second level disk array from level-2 disks of multiple nodes. The cross-node manager of multiple nodes may generate respective second level disk arrays in step 315. The steps 310 and 315 may then be repeated for higher levels of disk arrays, as has been described above, as generally indicated by the dotted line in
Failure of a component may occur at step 320. The failure of a component may be a permanent failure, such as destruction through a natural disaster, theft, or other permanently disabling occurrence, or a temporary failure, such as a temporary loss of connectivity with the component. The component may be a single disk drive, a node, a site, or another general grouping. In step 325, if a physical disk drive failed, a node manager may reconstruct the lost data using a first level disk array. The node manager may reconstruct the data of the disk array from the distributed parity among the drives of that node. In step 330, if a node failed, a cross-node manager may reconstruct the lost data using a second level disk array. The cross-node manager may reconstruct the data of the second level disk array from the distributed parity among the nodes. Other steps may also be provided for higher level managers to reconstruct lost data using higher level disk arrays. In this manner, data availability may be achieved on all kinds of single faults, without necessarily having full copies of disk data or dual data-path access to the disks.
While a two level disk array has generally been shown and described above, more levels may be used. Each level may include another manager performing analogous work of the node manager and the cross-node manager. For ease of implementation and better software failure boundaries, each manager may be implemented as an independent virtual machine in node running a hypervisor. In such a software only implementation, each level may be turned on or off to achieve desired combination of performance, cost effectiveness and fault-tolerance. In some examples, a single system may have storage objects with different levels of dimensions coexisting. This may be useful to provide greater fault-tolerance for some objects, while sharing the same hardware with other storage objects having lower fault-tolerance.
Structure and functionalities will now be described that may be used in embodiments of the present invention to address the difficulties described above. While headings are used for ease of reading, it is to be understood that the headings are not intended to limiting, and are not intended to refer to the only place in this document where information regarding the heading may be found.
In a parity protected disk array with N elements, adding a new disk to form an N+1 element disk array may require reading all the data off the original disk array and rewriting them onto a new disk array. It may be a very time consuming process. A straightforward implementation would require twice the amount of disk drives to provide space for of the new array during the copying. In embodiments of the present invention, adding a node to the system may not provide enough additional disk space to perform the copying. For example, referring back to
Accordingly, in embodiments of the present invention, rather than changing the N-elements disk array to an N+1 element disk array, the storage space from the disks of the newly available node may be distributed among all the nodes. After the space redistribution, new disk arrays may be created that are N+1 element wide.
In step 506, existing nodes may scan their level-2 disks to identify disks that may be migrated to the new node, while keeping a same array width. The scanning may be performed by the cross-node managers in the nodes, which have been described above. Recall the cross-node managers may have created level-2 disk arrays having a particular width. The cross-node managers may now identify, based on the data stored on individual level-2 disks, particular level-2 disks which may be migrated to the new node without disrupting the width of the array.
The cross-node managers may then migrate the identified disks. To transfer the targeted level-2 disks' data on existing nodes to the new level-2 disk on the new node, the standard RAID arrangement may be augmented with a new construct, called a mirrored array element. User access to the original level-2 disk may first be suspended by the cross-node manager. Then, in an atomic operation, a mirrored level-2 disk may be created, by the cooperation of the original node's cross-node manager and the new node's cross-node manager, with the original level-2 disk and the new level-2 disk. User access may then be resumed. Synchronization between the two level-2 disks in the mirror may be performed in the background, while new user write access may be updated on both members of the mirrored level-2 disk. When the synchronization operations completes, user access may be suspended by the cross-node manager, and in an atomic operation, the mirrored level-2 disk may be replaced with the new level-2 disk. Using this approach, the data may be generated on the new level-2 disk in a series of one-read one-write operations, instead of a series of N-read one-write operations, which may significantly reduce the disk load of the system during the process.
Referring again to
As was described above, at every level of a multi-dimensional array, the total storage capacity managed in a node at one level may be sub-divided. The next level may take storage objects from the different nodes and reassemble them to create a next level array. One advantage of doing this may be that the next level array will have better fault-tolerance characteristics than the original array.
At each level in the multi-dimensional disk array, there is a one-to-many mapping between the n-th level disk array and the n+1-th level disk, and a many-to-one mapping between the n+1-th level disk and the n+1-th level disk array. As a result, given a particular object in a level, the relation of all the objects between adjacent levels can be displayed in a table format.
An area 604 adjacent the region 602 is provided to illustrate which array is the next lower level array, accordingly, a first level disk array is shown, labeled simply ‘disk array’ in
The area 610 displays a label for the disk array to which the selected disk in the area 602 belongs, a level-2 disk array in the example of
Graphical user interfaces described herein, including the interface 600 shown in
Cross-node managers or other processing unit(s) at the nodes may receive an indication of the selected disk, and may gather the remaining information shown in
Area 710 provides a graphical indication of disks in a second level disk array that are associated with the selected disk shown in 702. The associated disks are listed in areas 712 and 714. As shown in areas 702, 712, and 714, disk1 of the level-2 disk array at node1 and disk1 of the level-2 disk array at node2 combine with the selected disk to form the level-2 disk array at node0.
Using these graphical interfaces, a user may readily identify the association between disks and arrays. In this manner, in the event of a disk failure or performance problem, corrective action may be taken, such as but not limited to, replacing a disk or adjusting system load, based in part on the information conveyed by one or more of the above-described graphical user interfaces.
In a multi-dimensional disk array, the array elements may have different failure characteristics than a single level disk array where the elements are physical disk drives. Physical disk drive failures may be usually mechanical and usually permanent; the disk drive data may then need to be regenerated and rebuilt for the whole disk drive. For the higher level disk array elements, failures may be of a more loss-of-access type, due to software failure or connectivity problems. Loss-of-access failures may be transient and the element may be totally functional after a recovery action or reboot. During the loss-of-access, if there are no write access to a particular portion of the disk array, rebuilding that portion may be a wasteful operation. Rebuild operations in a higher level disk array may also put more strain on the system because the operation has to perform globally across multiple nodes over the interconnect.
When the unavailable disk becomes available, the cross-node manager may now access the bitmap 802 to determine which portions of the newly available disk need to be rewritten. The cross-node manager may scan the bitmap 802 from the beginning. If the bitmap entry value is zero, the cross-node manager may skip the represented portion of the disk array and not perform a rebuild of data from parity information. For example, the bitmap entry 805 is 0 and the portion of the disk array 806 may accordingly not be rebuilt. If the bitmap entry value is one, the cross-node manager will perform a rebuild of the represented portion of the disk array. For example, the bitmap entry 807 is one, and the cross-node manager may accordingly rebuild the portion 808 of the array. In this way, for write access that are bunched together, the total extent of the disk array rebuild may be small and may complete within reasonable time and put less strain on the overall system resources. The bitmap may be stored on the disk drives along with metadata describing the disk array.
In some examples, the video recorders, for example 920, 921, may be implemented within one or more of the nodes, and the storage network 925 may not be required. The storage system 902 may be managed as described above, with multiple levels of disk arrays providing redundancy at the node level and at a cross-node level. Additional levels may also be provided. In this manner, failure of a disk or failure of a node may be protected against during real-time video surveillance data capture.
From the foregoing it will be appreciated that, although specific embodiments of the invention have been described herein for purposes of illustration, various modifications may be made without deviating from the spirit and scope of the invention.
This application is a continuation of U.S. application Ser. No. 15/715,404 entitled “STORAGE SYSTEM HAVING CROSS NODE DATA REDUNDANCY AND METHOD AND COMPUTER READABLE MEDIUM FOR SAME”, filed Sep. 26, 2017, issued as U.S. Pat. No. 10,095,409 on Oct. 9, 2018, which is a continuation of U.S. application Ser. No. 15/471,020 entitled “STORAGE SYSTEM HAVING CROSS NODE DATA REDUNDANCY AND METHOD AND COMPUTER READABLE MEDIUM FOR SAME”, filed Mar. 28, 2017, issued as U.S. Pat. No. 9,772,774 on Sep. 26, 2017, which is a continuation of U.S. application Ser. No. 15/266,083 entitled “STORAGE SYSTEM HAVING CROSS NODE DATA REDUNDANCY AND METHOD AND COMPUTER READABLE MEDIUM FOR SAME”, filed Sep. 15, 2016, issued as U.S. Pat. No. 9,606,883 on Mar. 28, 2017, which is a continuation of U.S. application Ser. No. 15/013,622 entitled “STORAGE SYSTEM HAVING CROSS NODE DATA REDUNDANCY AND METHOD AND COMPUTER READABLE MEDIUM FOR SAME”, filed Feb. 2, 2016, issued as U.S. Pat. No. 9,448,734 on Sep. 20, 2016, which is a continuation of U.S. application Ser. No. 14/686,579 entitled “STORAGE SYSTEM HAVING CROSS NODE DATA REDUNDANCY AND METHOD AND COMPUTER READABLE MEDIUM FOR SAME”, filed Apr. 14, 2015, issued as U.S. Pat. No. 9,250,807 on Feb. 2, 2016, which is a continuation of U.S. application Ser. No. 14/329,398 entitled “STORAGE SYSTEM HAVING CROSS NODE DATA REDUNDANCY AND METHOD AND COMPUTER READABLE MEDIUM FOR SAME”, filed Jul. 11, 2014, issued as U.S. Pat. No. 9,032,149 on May 12, 2015, which is a continuation of U.S. application Ser. No. 13/270,030 entitled “STORAGE SYSTEM HAVING CROSS NODE DATA REDUNDANCY AND METHOD AND COMPUTER READABLE MEDIUM FOR SAME”, filed Oct. 10, 2011, issued as U.S. Pat. No. 8,782,339 on Jul. 15, 2014, which in turn claims the benefit of the earlier filing date of U.S. Provisional Application Ser. No. 61/391,962 entitled “MULTI-DIMENSIONAL DISK ARRAYS AND METHODS FOR MANAGING SAME,” filed Oct. 11, 2010, each of which are incorporated herein by reference in its entirety for any purpose.
Number | Name | Date | Kind |
---|---|---|---|
8495417 | Jernigan, IV | Jul 2013 | B2 |
20040177218 | Meehan | Sep 2004 | A1 |
20100106907 | Noguchi | Apr 2010 | A1 |
20100169688 | Suzuki | Jul 2010 | A1 |
Number | Date | Country | |
---|---|---|---|
61391962 | Oct 2010 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 15715404 | Sep 2017 | US |
Child | 16154967 | US | |
Parent | 15471020 | Mar 2017 | US |
Child | 15715404 | US | |
Parent | 15266083 | Sep 2016 | US |
Child | 15471020 | US | |
Parent | 15013622 | Feb 2016 | US |
Child | 15266083 | US | |
Parent | 14686579 | Apr 2015 | US |
Child | 15013622 | US | |
Parent | 14329398 | Jul 2014 | US |
Child | 14686579 | US | |
Parent | 13270030 | Oct 2011 | US |
Child | 14329398 | US |