Method and apparatus for detecting and preemptively ameliorating potential logic unit thrashing in a storage system having multiple requestors

Abstract
A method and apparatus for detecting and preemptively ameliorating potential logic unit thrashing in a storage system having multiple I/O requesters is disclosed. In response to detecting that each of two requesters has usable access to both of the active-passive pair of controllers, one of the active-passive pair of controllers is selected to be designated as an active resource controller. In response to detecting that one of the two requesters has usable access to only one of the active-passive pair of controllers, only one of the active-passive pair of controllers is selected to be designated as an active resource controller. In response to detecting that each of the two requesters has usable access only to different ones of the active-passive pair of controllers, one of the active-passive pair of controllers is selected to be designated as an active resource controller.
Description


RELATED PATENT APPLICATION

[0001] The present patent application claims priority to co-pending Great Britain Application No. 0227873.7, filed on Nov. 29, 2002.



BACKGROUND OF THE INVENTION

[0002] 1. Technical Field


[0003] The present invention relates to multi-requester storage systems in general, and in particular to multi-requester storage systems having Active/Passive paired storage controllers. Still more particularly, the present invention provides a method for detecting and preemptively applying ameliorative measures to potential logic unit thrashing in a multi-requester storage system having an Active/Passive paired storage controller.


[0004] 2. Description of the Related Art


[0005] It is well-known in the field of computing to have controllers for controlling resources. In many computer systems, controllers are provided in pairs that can be switched, either to balance processing load or to provide some level of redundancy in the event of a controller failure. Also, resources are presented to host applications and system software in a logical rather than a physical representation. For example, storage controllers may control storage disks to position data representing what a user sees as a “real” disk drive in some scattered form on the surfaces of several disks, perhaps to optimize the use of the disk surfaces or to optimize the time taken to seek the data. To the user, such scattering is invisible, as the representation to user programs is as a logical unit having a disk, such as a “C-drive” on a typical personal computer. One example of such a resource controller system is a system comprising a pair of storage controllers that present disk storage to input/output (I/O) requesters in the form of logical units (LUNs).


[0006] Most Redundant Array of Independent Disk (RAID) controllers operate in pairs, each presenting an image of the same set of RAID arrays (or partitions of RAID arrays) made out of storage shared by both RAID controllers. If one of the RAID controllers fails, the RAID arrays are still accessible to requesters via the other controller and thus there is no single point of failure. The implementations of such RAID controllers can be split into two categories. Some RAID controllers are classed as Active-Active and allow simultaneous access to the same RAID array via either controller in the pair with no or virtually no degradation in performance. Other RAID controllers are classified as Active-Passive and allow only one controller to access a particular RAID array (or sometimes a partition of the RAID array) at a time. Some Active-Passive controllers require a particular sequence of commands to be issued to change which controller is active, while other controllers will automatically attempt to swap which controller is active depending on which controller receives I/O requests.


[0007] Allowing a single requester system to access storage presented by an Active-Passive pair of controllers is relatively straightforward. There are many implementations of software that can be used in the requester system for detecting the presence of an active controller and a passive controller, both presenting the same storage and present these controllers as a single storage device, or LUN, to the requester. Such software is also responsible for detecting when there is a problem in completing I/O requests via the active controller and performing the necessary tasks to make the other controller active-automatically failing over to use the other controller without actually failing an I/O request back up to higher levels of software executing on the requester system.


[0008] However, there is a problem when multiple requester systems share storage that is presented by an Active-Passive pair of controllers, namely, that all the requesters must agree which controller is active and must coordinate when to change the active controller. Otherwise, a condition known as “LUN thrashing” occurs. In such a condition, different requesters attempt to make a different controller the active controller of the pair. The result is that the role of active controller repeatedly swaps and as the time to swap the active controller is usually orders of magnitude longer than the time to process an I/O request, the result is a dramatic drop in the rate at which the controllers can process I/O. This result of LUN thrashing can present a serious performance problem, especially in large and complex, enterprise-level, storage systems, such as storage-area networks (SANs).


[0009] Until recently, it has not been necessary for multiple requesters to directly access the same storage and thus the problem has not been previously addressed. However, as new direct access shared file systems (such as the IBM® Storage Tank), clustered storage appliances (such as IBM® 2145 Total Storage Virtualization Engine) and other SAN-based virtualization solutions become more common, the requirement for multi-requester access to storage has come into existence.


[0010] One solution to avoid the problem of LUN thrashing altogether is to use Active-Active RAID controllers. However, Active-Active controllers are more expensive and do not allow SAN-based virtualization solutions to work with existing Active-Passive RAID controllers.


[0011] A second solution to avoid the problem of LUN thrashing in storage systems having multiple requesters is to allow only one requester to have direct access to a particular LUN or RAID array and all I/O requests from other requesters are forwarded to that requester. This is effectively what network file systems such as NFS do. However, there is a significant performance penalty in forwarding all I/O requests from other requesters to a single requester. Again, this solution does not help in SAN-based virtualization systems.


[0012] A third solution is to allow RAID controllers themselves to control which controller will be active and which controller will be passive. The disadvantage of this solution is that if both RAID controllers are functional but not all requesters can communicate with both RAID controllers because of a problem at the SAN level, the controllers may make the wrong decision as to which controller should be active and thus introducing a single point of failure.


[0013] Consequently, it would be desirable to provide an improved method for detecting potential LUN thrashing in a multi-requester storage system having Active/Passive paired storage controllers, and preemptively applying ameliorative measures.



SUMMARY OF THE INVENTION

[0014] In accordance with a preferred embodiment of the present invention, in response to detecting that each of two requesters has usable access to both of the active-passive pair of controllers, one of the active-passive pair of controllers is selected to be designated as an active resource controller. In response to detecting that one of the two requesters has usable access to only one of the active-passive pair of controllers, only one of the active-passive pair of controllers is selected to be designated as an active resource controller. In response to detecting that each of the two requesters has usable access only to different ones of the active-passive pair of controllers, one of the active-passive pair of controllers is selected to be designated as an active resource controller, and I/O requests from only that one of the two I/O requesters that has usable access to the one of the active-passive pair of controllers designated as an active resource controller is enabled or I/O requests to swap a passive to an active one of the active-passive pair of controllers from only that one of the two I/O requesters that has usable access to the one of the active-passive pair of controllers designated as an active resource controller is enabled.


[0015] All objects, features, and advantages of the present invention will become apparent in the following detailed written description.







BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The invention itself, as well as a preferred mode of use, further objects, and advantages thereof, will best be understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, wherein:


[0017]
FIG. 1 is a block diagram of a multi-requester storage system, in accordance with a preferred embodiment of the present invention; and


[0018]
FIG. 2 is a high-level logic flow diagram of a method for detecting and preemptively ameliorating potential logic unit thrashing in a storage system having at least two I/O requesters, in accordance with a preferred embodiment of the present invention.







DETAILED DESCRIPTION OF A PREFERRED EMBODIMENT

[0019] Referring now to the drawings and in particular to FIG. 1, there is illustrated a block diagram of a multi-requester storage system, in accordance with a preferred embodiment of the present invention. As shown, a pair of requesters 102, 104 is connected to software 106 that is operable to present logic units (LUNs) 108, 110 representing the same storage across access paths 118. It should be noted that LUNs 108, 110 have no independent existence but are merely representations of storage, in this case, the same storage, presented by controllers 112, 114 to requesters 102, 104. All the available access paths are shown such that requesters 102 and 104 are able to access either one of LUNs 108, 110. This is not always the case, as will be described below.


[0020] LUNs 108, 110 are presented to software 106 for onward presentation to requesters 102, 104 by controllers 112, 114, which form an Active-Passive pair to control a resource 116. Resource 116 is preferably a Redundant Array of Independent Disk (RAID) or a partition of a RAID.


[0021] In accordance with a preferred embodiment of the present invention, requesters 102, 104, which may be hosts or other systems capable of initiating input/output (I/O), are able to communicate with each other using any conventional network or clustering technology. When either one of requesters 102, 104 initializes, it must determine whether it can communicate with both controllers 112, 114 and then communicate such information with other requester systems that are using controllers 112, 114. Requesters 102, 104 can then make a collective decision based on the information gathered from requesters 102, 104, as follows.


[0022] If both requesters 102, 104 can communicate with both controllers 112, 114, requesters 102, 104 can collectively decide which one of controllers 112, 114 will be the active controller and all requesters can issue I/O requests to that controller. If a pair of RAID controllers presents multiple RAIDs or LUNs, the requesters can collectively decide to make one controller active for some of the LUNs and the other controller active for the other LUNs in order to balance the I/O workload between controllers 112 and 114.


[0023] If one or both of requesters 102, 104 cannot communicate with one of controllers 112, 114, or either one or both of controllers 112, 114 is unable to service I/O requests for some other reason, requesters 102, 104 can collectively make the decision not to attempt to use that controller.


[0024] If one of requesters 102, 104 cannot communicate with one of controllers 112, 114 and the other requester cannot communicate with the other controller, requesters 102, 104 cannot use a particular RAID or LUN without causing LUN thrashing. In such a case, the simplest solution is to deny access to one requester, although an alternative can be implemented that would allow both requesters to use the storage while keeping LUN thrashing to an acceptable minimum. For example, one requester can be permitted to access the storage, but not to influence the decision as to which controller is active.


[0025] If during operation, one of controllers 112, 114 fails or for some other reason one of requesters 102, 104 is unable to issue I/O requests to a particular controller, the requester can request that the requesters reevaluate which controller to use. It is important that if, as a result of the reevaluation, the decision is made to swap which controller is active, all I/O requests to that controller are quiesced prior to making the swap. The quiesce ensures that when the active controller is changed that no further I/O request will be issued to the controller that has become passive in order to avoid LUN thrashing occurring during the change over period.


[0026] Similarly, if a requester that can not communicate with both controllers 112, 114 subsequently (probably because of some service action) determines that it can now communicate with a controller, this should be communicated so that the requesters can reevaluate which controller to use as the active controller.


[0027] If a requester 102, 104 cannot communicate with the other requester or, in a system comprising more than two requesters, with a majority of the other requesters which are sharing a pair of controllers, it cannot know which controller has been chosen as the active controller. Again, the simplest solution is to deny access to the storage by that requester. However, in an alternative implementation, it may also be possible to permit the requester to use the storage but not to influence which controller is active.


[0028] With reference now to FIG. 2, there is depicted a high-level logic flow diagram of a method for detecting and preemptively ameliorating potential LUN thrashing in a storage system having at least two I/O requesters, in accordance with a preferred embodiment of the present invention. The process begins at step 200, which is either at system initialization or at a reinitialization caused by, for example, a change in the status of a requester or a controller. At step 202, controllers (such as controllers 112, 114 from FIG. 1) present resources as logical units to I/O requesters (such as requesters 102, 104 from FIG. 1). At step 204, each of the I/O requesters detects whether it has usable access to one or more of the controllers. At step 206, each of the I/O requesters communicates its access state to the other I/O requester. At step 208, each of the I/O requesters participates in arbitration to determine which of the Active-Passive pair of resource controllers is to be designated as the active controller. The outcome of the arbitration is determined at testing steps 210, 214, 218.


[0029] If, at step 210, each of the I/O requesters has usable access to both of the Active-Passive pair of the controllers, the I/O requesters select one of the Active-Passive pair of the controllers to be designated as an active controller, at step 212.


[0030] If, at step 214, one or both of the I/Q requesters has usable access to only one of the Active-Passive pair of the controllers, the I/O requesters select the only one of the Active-Passive pair of the controllers to be designated as the active resource controller, at step 216.


[0031] If, at step 218, each of the I/O requesters has usable access only to different ones of the Active-Passive pair of the controllers, the I/O requesters select one of the Active-Passive pair of the controllers to be designated as an active resource controller, at step 220, and also perform at least one of the following:


[0032] At step 222, enabling I/O requests from only that I/O requester that has usable access to that resource controller designated as an active resource controller; and


[0033] At step 224, enabling requests to swap a passive to an active resource controller from only the I/O requester that has usable access to the resource controller designated as an active resource controller.


[0034] Processing continues at step 228, which may be continued normal processing after the arbitration and selection steps described above, or may be error processing if the arbitration and selection steps produced no usable outcome. Such error processing is well-known in the art.


[0035] The message passing between requesters that is necessary to the preferred embodiment of the present invention is implemented using one of the known networking or clustering techniques of the art to allow I/O the requesters to communicate with each other.


[0036] As has been described, the present invention provides an improved method and apparatus for detecting potential LUN thrashing in a multi-requester storage system having Active-Passive pair storage controllers, and preemptively applying ameliorative measures.


[0037] It is also important to note that although the present invention has been described in the context of a fully functional computer system, those skilled in the art will appreciate that the mechanisms of the present invention are capable of being distributed as a program product in a variety of forms, and that the present invention applies equally regardless of the particular type of signal bearing media utilized to actually carry out the distribution. Examples of signal bearing media include, without limitation, recordable type media such as floppy disks or CD ROMs and transmission type media such as analog or digital communications links.


[0038] While the invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.


Claims
  • 1. A method for detecting and preemptively ameliorating potential logic unit thrashing in a storage system having an active-passive pair of controllers, said method comprising: in response to detecting that each of at least two requesters has usable access to both of said active-passive pair of controllers, selecting one of said active-passive pair of controllers to be designated as an active resource controller; in response to detecting that one of said at least two requesters has usable access to only one of said active-passive pair of controllers, selecting said only one of said active-passive pair of controllers to be designated as an active resource controller; and in response to detecting that each of said at least two requesters has usable access only to different ones of said active-passive pair of controllers, selecting one of said active-passive pair of controllers to be designated as an active resource controller.
  • 2. The method of claim 1, wherein said in response to detecting that each of said at least two requesters has usable access only to different ones of said active-passive pair of controllers further includes performing enabling I/O requests from only that one of said at least two I/O requesters that has usable access to said one of said active-passive pair of controllers designated as an active resource controller; or enabling I/O requests to swap a passive to an active one of said active-passive pair of controllers from only that one of said at least two I/O requesters that has usable access to said one of said active-passive pair of controllers designated as an active resource controller.
  • 3. A computer program product residing on a computer usable medium for detecting and preemptively ameliorating potential logic unit thrashing in a storage system having an active-passive pair of controllers, said computer program product comprising: program code means for selecting one of said active-passive pair of controllers to be designated as an active resource controller, in response to detecting that each of at least two requesters has usable access to both of said active-passive pair of controllers; program code means for selecting said only one of said active-passive pair of controllers to be designated as an active resource controller, in response to detecting that one of said at least two requesters has usable access to only one of said active-passive pair of controllers; and program code means for selecting one of said active-passive pair of controllers to be designated as an active resource controller, in response to detecting that each of said at least two requesters has usable access only to different ones of said active-passive pair of controllers.
  • 4. The computer program product of claim 3, wherein said in response to detecting that each of said at least two requesters has usable access only to different ones of said active-passive pair of controllers further includes program code means for performing enabling I/O requests from only that one of said at least two I/O requesters that has usable access to said one of said active-passive pair of controllers designated as an active resource controller; or enabling I/O requests to swap a passive to an active one of said active-passive pair of controllers from only that one of said at least two I/O requesters that has usable access to said one of said active-passive pair of controllers designated as an active resource controller.
  • 5. An apparatus for detecting and preemptively ameliorating potential logic unit thrashing in a storage system having an active-passive pair of controllers, said apparatus comprising: means for selecting one of said active-passive pair of controllers to be designated as an active resource controller, in response to detecting that each of at least two requesters has usable access to both of said active-passive pair of controllers; means for selecting said only one of said active-passive pair of controllers to be designated as an active resource controller, in response to detecting that one of said at least two requesters has usable access to only one of said active-passive pair of controllers; and means for selecting one of said active-passive pair of controllers to be designated as an active resource controller, in response to detecting that each of said at least two requesters has usable access only to different ones of said active-passive pair of controllers.
  • 6. The apparatus of claim 5, wherein said in response to detecting that each of said at least two requesters has usable access only to different ones of said active-passive pair of controllers further includes means for performing enabling I/O requests from only that one of said at least two I/O requesters that has usable access to said one of said active-passive pair of controllers designated as an active resource controller; or enabling I/O requests to swap a passive to an active one of said active-passive pair of controllers from only that one of said at least two I/O requesters that has usable access to said one of said active-passive pair of controllers designated as an active resource controller.
Priority Claims (1)
Number Date Country Kind
0227873.7 Nov 2002 GB