METHODS AND APPARATUS FOR ASSIGNING SIGNATURES TO MEMBERS OF A SET OF MASS STORAGE DEVICES

Abstract: A method and apparatus for identifying members of a set of physical mass storage devices acting as one logical mass storage device are provided. Each physical mass storage device is assigned a membership signature identifying it as a valid member of the set. Whenever a member of a set undergoes a membership state-changing event, the membership signatures of all other devices in the set are changed, so that the member with the changed membership state no longer has a valid signature. When the member is reinstalled, it can be given a new valid signature after it is uptdated or regenerated.

Description: METHODS AND APPARATUS FOR ASSIGNING SIGNATURES TO MEMBERS OF A SET OF MASS STORAGE DEVICES Background of the Invention This invention relates to sets (or arrays) of physical mass storage devices that perform as a single logical mass storage device. More particularly, this invention relates to methods and apparatus for keeping track of when a particular member of the set (or array) is a valid member. As used herein, the terms "set" and "array" are synonymous. Mass storage devices — i.e., tape and disk drives, and more commonly disk drives — are the I primary storage devices for permanent data in electronic digital computer systems. It has been known to use a set of physical mass storage devices to function as one larger logical mass storage device. This might be done for several reasons. First, if one member of the set fails, the entire set need not be disabled, and a majority of the data on the logical device remains available, while new data can still be stored. Second, the access time for data may be reduced because any one read/write head — in the case of the disk drives — or tape reel — in the case of tape drives — need not move as far to find the particular data it is seeking if the physical devices are small compared to a single physical device of the same storage capacity as the set. This last factor has become more important recently in the case of disk drives in particular as the cost, speed and reliability of small disk drives have improved faster than those of larger drives. Therefore, although the present inven¬ tion is applicable to any mass storage technology — i.e., disk, tape or any other technology, the discussion below will refer only to disk drives, it being understood that the scope of the present invention is not limited to disk drives. When a set of physical disk drives is used as a single logical drive, care must be taken to maintain the integrity of data that is spread over several drives. For example, it has been known to use checksums and other error correction techniques with sets of drives to allow the reconstruction, from the active drives in a set, of data stored on a drive that is disabled or removed for other reasons. If a set of drives can operate with one or more drives removed, data may be written to the set while the drive is removed. Depending on how data is stored across the set, the data on the removed drive may not be valid when the drive is reinstalled until it is updated or regenerated. Therefore, it is important to know, when a drive is reinstalled, whether or not it is a valid member of the set. In one known system, the computer system maintains a table or list of physical serial numbers for the members of the set and can read the serial numbers of each member, determining from the list whether the drives are valid members. However, the table of physical serial numbers in such a system is maintained in volatile memory, and is not protected in the event of a power failure. If interrupted, the system would fail, and the membership set information would be lost. Moreover, in such a system, the table or list in the computer system must be created manually and must be updated to reflect the removal of a drive and its reconnection. While such updating of the table or list might be done automatically, it has generally been done manually, by an operator. Even when the update is automatic, it requires the involvement of the central processor. Also, if the membership information is not stored in the set of drives, the information may be lost if control over the set is transferred from the device in which the table or list has been maintained to another device (e.g., if the first device fails). It would be desirable to be able to provide a "signature" system for a set of physical disk drives functioning as one logical drive which would auto¬ matically reflect the current membership status of any drive in the set and which would automatically be updated and remain valid if an update was interrupted by a power failure. It would also be desirable to be able to provide such a system that did not require manual intervention by an operator and did not require the involvement of the central processor. It would also be desirable to be able to provide such a system that stored membership information on the drive or drives. Summary of the Invention It is an object of this invention to provide a signature system for a set of physical disk drives functioning as one logical drive which automatically reflects the current membership status of any drive in the set and which is automatically updated. It is also an object of this invention to provide such a system which automatically reflects the current membership status of any drive in the set even if interrupted by a power failure. It is another object of this invention to provide such a system that does not require manual intervention by an operator and does not require the involvement of the central processor. It is still another object of this invention to provide a system that stores membership information on the set of drives. In accordance with this invention, there is provided a method for identifying members of a set of physical mass storage devices, which set forms a single logical mass storage device. The method comprises assigning a "membership signature" to each of the physical mass storage devices in the set. The membership signature identifies the physical mass storage device as a member of the set. When the membership of the set undergoes a membership state change (e.g., removal of a physical mass storage device) , a new membership signature is assigned to each remaining physical mass storage device in the set. Brief Description of the Drawings The above and other objects and advantages of the invention will be apparent upon consideration of the following detailed description, taken in conjunction with the accompanying drawings, in which like reference characters refer to like parts throughout, and in which: FIG. 1 is a block diagram of a computer system in which the present invention can be used; FIG. 2 is a block diagram of a disk drive set with which the present invention can be used; and FIG. 3 is a block diagram of the disk drive set of FIG. 2 with one drive removed; FIG. 4 is a block diagram of an exemplary array signature data structure of a preferred embodiment of the present invention; FIG. 5 is a block diagram of a preferred embodiment of a pair of disk drive arrays and corresponding array signature data structures stored in the non-volatile memory of the controllers for the respective arrays; FIG. 6 is a flowchart of an illustrative process for checking array signatures; FIG. 7 is a flowchart of an illustrative process for removing a failed drive from an array; and FIG. 8 is a flowchart of an illustrative process for replacing a failed drive of an array. Detailed Description of the Invention In a set of physical disk drives or sections of drives being used as one logical drive in accordance with the present invention, each physical member drive is assigned a signature, or membership signature, reflecting its status as an active member of the set. The signatures for all members are identical, or at least substantially identical (e.g., the signature may include a member number that differs from drive to drive) . In accordance with the present invention, whenever any event occurs to change the membership of any of the drives in the set, the signatures of the remaining drives are changed. In the preferred embodiment of the invention, a membership state- changing event occurs whenever a drive is removed or added and the membership of the remaining members in the array is updated. Removal of a drive usually is the result of a malfunction of the drive, causing it to go off-line and necessitating its removal and repair. A drive may also be removed for other purposes. For example, a technician intending to remove a malfunctioning drive may accidentally remove a functioning drive, or a drive may be removed for preventive maintenance. If the computer system or the design of the disk drive set allows, it may be possible to continue operating the set even after one or more drives have been removed. Therefore, once a drive has been removed, its data may no longer be current, so that when it is reinstalled, it should not be used by the system until it has been updated or regenerated. If the membership signatures of the other drives changed as soon as the one drive was removed, then the signature of the one drive will not have been changed and will not match the other signatures. The system will be able to see that the signature of the one drive does not match when it is reinstalled, and will avoid using the drive until the drive has been updated or regenerated. At that time, its signature will be updated along with the signatures of all of the other member drives in the set, and the drive will then be ready for use. FIG. 1 shows a block diagram of a computer system 10 in which the present invention can be used. The system includes a central processing unit 11 and at least one disk drive set 12 operating as a single logical disk drive unit. Of course, system 10 will probably include other elements (not shown) which are not relevant to the present invention. A preferred embodiment of disk drive set 12 is shown in more detail in the block diagram of FIG. 2. As seen in FIG. 2, disk drive set 12 includes six physical drives 20-25 and control logic 26, which may include a microprocessor, which controls how data is written and validated across the six drives and which also controls the assignment of membership signatures to each of drives 20-25 and the update or regeneration of reinstalled drives (these functions could be carried out by the system processor 11, but it is preferable to relieve processor 11 of that burden, allowing distributed intelligence provided in drive set 12 to handle them). In this preferred embodiment, drives 24, 25 are so-called "check drives" which are used to store redundant data such that, when drives are removed, as in the case of FIG. 3 in which drive 22 has been removed, the removed drive can be updated or regenerated when it is reinstalled. Drives 20-25, all of which share the same set of check drives 24 and 25, comprise what is referred to hereafter as a redundancy group. Membership signatures according to the present invention are constructed from various physical or logical parameters of the drive itself. The most significant parameter is the "member sequence number," discussed in greater detail below. The membership signature can include information regarding the physical or logical mounting position of the drive, its size or other geometric properties, or other properties of the drive, as well as the identification of the drive set and the date and time when the signature is generated. In the preferred embodiment, membership signatures are stored as part of an array signature data structure on each mass storage device of the array. FIG. 4 shows an exemplary array signature data structure 30 in accordance with the present invention. Array signature data structure 30 includes information, designated generally by reference numeral 32 and referred to herein as an array integrity record, which is common to the entire array of devices. Array signature data structure 30 also includes a list of membership signature records 34, each of which store information about a particular member mass storage device of the array. A similar array signature data structure is stored in non-volatile memory associated with the controller for the array (e.g., control logic circuitry 26 of FIG. 2) . As explained in greater detail hereafter, the array signature data structure is stored in the array controller for purposes of checking the membership signatures on the drives of the array and for updating or regenerating a device whose member sequence number is determined to be different than that of the global member sequence number (as later discussed) . Non-volatile memory is preferred to protect the stored array signature data structure from being lost if the array controller is interrupted (e.g., by a power failure) while updating the signature. The array signature structure stored in non¬ volatile memory of the array controller includes the same array integrity record 32 as is stored on each mass storage device of the array. It has been found, however, that it is not necessary to store all of the membership signature records 34 for the array, but only those membership signature records corresponding to devices that have been determined to be different than the rest of the array (up to the number of devices that can be reconstructed from the redundancy group) . In other words, and as later discussed, the non-volatile memory preferably retains membership signature data for the drives with member sequence numbers which do not agree with a "global member sequence number" for the array. As a result of not storing all membership signature records for the array in the non-volatile memory of the array controller (although given sufficient non-volatile memory space in the array controller this also could be done if desired) , the amount of memory required is reduced. The array signatures stored in non-volatile memory are thus referred to hereafter as "reduced" array signatures, it being understood that they may be of equal size to (or larger than) the array signature data structures stored on the mass storage devices. The non-volatile memory of a particular array controller may include more than one reduced array signature data structure. For example, it may be desired that an array controller act as a back-up controller for a second array, taking control of the second array if the primary controller for that second array fails. In this case, it would be desirable to maintain a copy of the reduced array signature data structure for the second array in the back-up controller. FIG. 5 illustrates exemplary data structures 36 and 38 for storing one or more reduced array signatures in the non-volatile memory of an array controller. Two adjacent arrays "A" and "B" are shown. Each array is controlled by a corresponding array controller (not shown) that is capable of operating as. a back-up controller for the other array should the . primary controller for that other array fail. Data structure 36 represents what is stored in the non¬ volatile memory of the primary controller for array A. Data structure 38 represents what is stored in the non¬ volatile memory of the primary controller for array B. Each of data structures 36 and 38 includes a controller identification record 40 and a reduced array signature record 42 for its respective "resident" array A or B. Data structures 36 and 38 also each include a copy 44 of the reduced array signature record 42 for a "remote" array of drives (e.g., drives which are linked to an adjacent and connected array controller) . Controller identification record 40 includes further information concerning the controllers and the arrays controlled by a given controller. Controller identification record 40 may include, for example, the serial numbers of the controller and alternate controllers, and the number of reduced array signature records in the controller non-volatile memory. It may also include information such as the software and hardware release numbers for the controller and array. Referring again to the array signature data structure 30 of FIG. 4, the information in array integrity record 32 common to the entire array includes information about the signature itself (e.g., the non¬ volatile memory address of the array signature, flags, and the "signature state") , and information about the array of devices (including the "array state," name, controller ("PAC") serial number, and a global member sequence number) . These common elements are discussed in detail below. It also includes the consistency group size (CGS) , which represents the number of member devices in the array at the last time the global member sequence number was incremented. The global member sequence number is the key element of the array signature. It is a reference number against which all of the members of the array are compared. Each membership signature includes a unique "member sequence number" which is incremented by one each time the array undergoes a membership state change. All of the member sequence numbers must match the global member sequence number. A discrepancy between a member sequence number and the global member sequence number indicates that the data on the member drive corresponding to that member sequence number must either be regenerated or reconstructed (as discussed below) . The global member sequence number and the member sequence numbers are 32-bit numbers which are set to zero when the array of drives is initialized. They are incremented by one each time the array undergoes a membership state change. The "signature state" of array integrity record 32 indicates the state of the array that the array signature 30 is describing. The signature state can be one of four alternatives: "Resident," "Remote," "Unknown," or "Free." When the signature state is "Resident," array signature 30 describes an array that was controlled at the last membership state change by the controller associated with the non-volatile memory in which the signature is stored. When the signature state is "Remote," the signature describes an array that, at the last membership state change, was controlled by an adjacent and connected controller (other than the controller associated with the non¬ volatile memory in which the signature is stored) . When the signature state is "Free," an array can be installed. When the signature state is "Unknown," the array is neither "Resident" nor "Remote," but it is installed (e.g., it is installed but has not yet been "Online" to the knowledge of the controller) . The "array state" refers to the status of the array relative to the controller. The array state can be "Online" (available) ; "Consistent" (a sufficient number of sequence numbers match the global member sequence number to allow the array to go "Online") ; "Inconsistent" (a sufficient number of known member sequence numbers do not match the global member sequence number such that it is known that the array will not be consistent without recovery action) ; or "Incomplete" (insufficient information to determine whether to allow the array to go "Online") . Each membership signature record 34 may include, for example, the address of the signature record in non-volatile memory, the member sequence number, the "member state" and number, and member and signature flags. The "member state" describes the state of individual members in an array. The member state can be one of four conditions: "Mounted" (indicates a consistent member that can be used by the array) ; "Regeneration" (no physical drive is presently mounted in the logical drive position; the drive data must be regenerated from redundant data stored in the array) ; "Reconstruction" (a drive is disposed in the drive position, but only some of the data is good — the data is being reconstructed); or "Synchronization." The Synchronization member state is used to block I/O operations to the logical member during membership state changes involving that member, until the membership state change is "committed" (i.e., permanent in the non-volatile memory associated with the controller) . The state change is committed when the operation has progressed to a point beyond which permanent recording of the membership state change in the reduced array signature record stored in non¬ volatile memory is ensured. Exemplary applications of the membership signature system of the present invention will now be described, with reference to FIGS. 6-8. FIG. 6 illustrates a method for checking membership signatures before placing an array "online" to a system (e.g., a central processing unit such that as shown in FIG. 1) following the return of power after a controller power failure. The controller (e.g., control logic 26 of FIG. 2) first determines whether a state change was in progress. If it was not, and a sufficient number of member drives in the array are in the "Mounted" state, the array is set online. If a state change was in progress, the controller associated with the array searches for any non- recoverable drives (i.e., drives with data that must be regenerated from redundant data) , updates the membership signatures on the recovered drives, and sets the ' non-recoverable drives to the "Regeneration" state. The array is then set online if a sufficient number of member drives in the array are in the "Mounted" state (i.e., if enough drives are "Mounted" to perform I/O operations) . FIG. 7 illustrates the process by which failed drives are temporarily removed from an array to be regenerated. The failed drive is first set to the "Synchronization" state. This blocks all I/O operations to the drive. The membership state change is then recorded in the controller (off-drive) non¬ volatile memory. The failed member is then set to the "Regeneration" state, to allow regenerative I/O operations to take place. The membership signatures are updated on the mass storage device, and the process is complete. The process for replacing a failed member of an array is illustrated in FIG. 8. Once the failed member is set to the "Regeneration" state, the failed physical drive is removed from the member slot and replaced with a new drive. The new member is set to the "Reconstruction" state, and the data is reconstructed from data stored on other members of the array. The member sequence number corresponding to the newly reconstructed member is set equal to the global member sequence number, and the new member is set to the "Mounted" state. The process of updating the new signature at all memory locations then begins. After the update is committed, the new member is available to the array. Thus it is seen that this invention provides a signature system for a set of physical disk drives functioning as one logical drive which automatically reflects the current membership status of any drive in the set and which is automatically updated. The inven¬ tion also provides such a system that does not require manual intervention by an operator and does not require the involvement of the central processor. One skilled in the art will appreciate that the present invention can be practiced by other than the described embodiments, which are presented for purposes of illustration and not of limitation, and the present invention is limited only by the claims which follow.

Claims: WHAT IS CLAIMED IS: 1. A method for identifying members of a set of physical mass storage devices, which set forms a single logical mass storage device, said method comprising: assigning a membership signature to each of said physical mass storage devices in said set, said membership signature identifying said physical mass storage device as a member of said set; and when a member of said set undergoes a membership state-changing event, assigning a new membership signature to each remaining physical mass storage device in said set. 2. The method of claim l wherein said membership state-changing event is removal of said member from said set. 3. The method of claim 2 wherein said removal is physical. 4. The method of claim 2 wherein said removal is logical. 5. The method of claim 1 wherein said membership state-changing event is removal of said member from said set and a writing of data onto said remaining physical mass storage devices while said member is physically removed. 6. The method of claim 5 wherein said removal is physical. 7. The method of claim 5 wherein said removal is logical. 8. The method of claim 1 further comprising storing said signature on each member of said set to which said signature is assigned. 9. The method of claim 1 wherein each said assigning step comprises deriving a signature from characteristics of said set. 10. The method of claim 9 wherein said characteristics include at least one of the date and time when said signature is derived. 11. The method of claim 9 wherein said characteristics include a name of said set. 12. The method of claim 9 wherein said characteristics include physical parameters of said set. 13. The method of claim 9 wherein said characteristics include logical parameters of said set. 14. The method of claim 9 wherein, for each member of said set, said characteristics include physical parameters of said member. 15. The method of claim 9 wherein, for each member of said set, said characteristics include logical parameters of said member. 16. Apparatus for identifying members of a set of physical mass storage devices, which set forms a single logical mass storage device, said apparatus comprising: means for assigning a membership signature to each of said physical mass storage devices in said set, said membership signature identifying said physical mass storage device as a member of said set; and means for, when a member of said set undergoes a membership state-changing event, assigning a new membership signature to each remaining physical mass storage device in said set. 17. The apparatus of claim 16 wherein said membership state-changing event is removal of said member from said set. 18. The apparatus of claim 17 wherein said removal is physical. 19. The apparatus of claim 17 wherein said removal is logical. 20. The apparatus of claim 16 wherein said membership state-changing event is removal of said member from said set and a writing of data onto said remaining physical mass storage devices while said member is physically removed. 21. The apparatus of claim 20 wherein said removal is physical. 22. The apparatus of claim 20 wherein said removal is logical. 23. The apparatus of claim 16 further comprising means for storing said signature on each member of said set to which said signature is assigned. 24. The apparatus of claim 16 wherein each said assigning means comprises means for deriving a signature from characteristics of said set. 25. The apparatus of claim 24 wherein said characteristics include at least one of the date and time when said signature is derived. 26. The apparatus of claim 24 wherein said characteristics include a name of said set. 27. The apparatus of claim 24 wherein said characteristics include physical parameters of said set. 28. The apparatus of claim 24 wherein said characteristics include logical parameters of said set. 29. The apparatus of claim 24 wherein, for each member of said set, said characteristics include physical parameters of said member. 30. The apparatus of claim 24 wherein, for each member of said set, said characteristics include logical parameters of said member.

Inventors: GLIDER JOSEPH S, IDLEMAN THOMAS E, JAFFE DAVID H, POWERS DAVID T, GLIDER, JOSEPH, S., IDLEMAN, THOMAS, E., JAFFE, DAVID, H., POWERS, DAVID, T.
Applicants: SF2 CORP, SF2 CORPORATION
Application year: 1991
Main classification: G06F11
IPC codes: G06F3, G06F11, G11B20