NZ241740A - Cellular data file storage and management - Google Patents
Cellular data file storage and managementInfo
- Publication number
- NZ241740A NZ241740A NZ241740A NZ24174089A NZ241740A NZ 241740 A NZ241740 A NZ 241740A NZ 241740 A NZ241740 A NZ 241740A NZ 24174089 A NZ24174089 A NZ 24174089A NZ 241740 A NZ241740 A NZ 241740A
- Authority
- NZ
- New Zealand
- Prior art keywords
- data
- storage
- cell
- local
- processing system
- Prior art date
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
•t
241740
9
Priority Date(s):...ffi.
Complete Specification Filed; J?/.: Class:(6) .
Publication Date: .2.1^. DEC 1995.
P.O. Journal No:.
Untter the provisions of taton 23 (1) tha
.......
8pec#lcs&on hag bean anS»~<iahMl t*x £.LJ&£Qk-«..... 1» SS3.
tnmsBv
No.: Date:
NEW ZEALAND
PATENTS ACT, 1953
COMPLETE SPECIFICATION
divided out of Appln. No.228 861 filed 21 April 1989
V
FILE SYSTEM FOR A PLURALITY OF STORAGE CLASSES
JHlg^jTOFFiCE ~] 26 FEB 1002
RECEIVED
AMDAHL CORPORATION, a corporation of the State of Delaware, United States of America, having a principal place of business at 1250 East Arques Avenue, Sunnyvale, California 94088, United States of America hereby declare the invention for which^W we pray that a patent may be granted to rp^fus, and the method by which it is to be performed, to be particularly described in and by the following statement: -
(followed by page la)
241740
\o
Background of the Invention
Limited Copyright Waiver
A portion of the disclosure of this patent document contains material to which the claim of copyright protection is made. The copyright owner has no objection to the facsimile reproduction by any person of the patent document or the patent disclosure, as it appears in the U.S. Patent and Trademark Office patent file or records, but reserves all other rights whatsoever.
Field of the Invention
The present invention relates to systems providing an interface and establishing access paths between users of data in a data processing system and facilities storing such data. In particular, the present invention provides a file system adaptable to optimize use of a plurality of access paths and available storage hardware to meet operational requirements of the system.
Description of Related Art
Computer systems are being developed in which the amount of data to be manipulated by the system is immense. For instance, data storage systems have been proposed that are capable of handling amounts of data on the order of exabytes, spread across hundreds of direct access storage devices (DASDs). Individual files for such systems have been proposed to be as high as ten gigabytes (10^ bytes). Such large storage systems should be very reliable, since
O*.
AMDH-6238DEL/MAH -1-
/SJW40 042288
• ~2~ 24 1 740
restoring an entire storage system after a crash could take many hours or days. In addition, these storage systems should sustain very high data transfer rates to allow for efficient use of the data. Further, it 5 is desirable that there be no single point of failure which could cause such a large data system to go out of service. The requirements for size, speed and reliability of such data systems will continue to keep pace with increases in capacity of supercomputers at 10 the high end, and with increasing numbers of large data storage systems being used by slower computers.
Prior art file systems which provide an interface between users of data, buffers in the computer system and external storage to the computer system, have 15 operated by establishing a single access path for any individual request by a user to a file. This is absolutely reasonable as long as there are very few devices storing the data. But, in configurations with many storage devices and many independent access paths 20 through which the data may be transferred in parallel in response to each individual request, the one access path per request limitation of system control programs greatly restricts the response time for a given task requiring transfer of data between external to 25 internal storage.
Prior art file systems can be characterized with reference to the diagram shown in Fig. 1. The computer system in which the prior art file system runs would include a plurality of application programs 30 A, corresponding to users of data. Some of the., application programs will be part of processing subsystems (SS) , such as database drivers and the like. These application programs A, or subsystems, will generate access requests through a user interface
AMDH-6 2 3 8DEL/MAH
/SJW40 042288
t
I
I
241740
I, to the buffer space in the computer. If data required by a given transaction is not located in the buffer space, then the system control program SCP establishes an access path through device drivers by 5 which the required data can be retrieved from non-volatile storage.
Management of the buffer space is a major operational bottleneck for data processing systems with multiple users and large numbers of data files. 10 In UNIX, the buffer space is managed in a least recently used manner, such that when the buffer space is full, a page is released from the buffer according to a simple algorithm to make space for the current transaction. However, there is no guarantee that the 15 space being released is not critical data for another program running in the system, because all users share the same buffer pool. Also, when very large migration of data takes place, the buffer pool can be quickly depleted for use by the migration transaction, 20 effectively locking out other users of the system during the migration.
In other operating systems, such as MVS, the buffer space is allocated to a group of buffer pools. Each buffer pool is managed essentially independently 25 by the users or subsystems accessing the buffer space. By dividing up the buffer space among users, better control over availability of pages of data can be exercised, such as required in transaction control systems that perform a journal function for each 30 transaction. However, by statically allocating buffer space among a plurality of users, inefficiencies arise that influence the overall performance of the data processing system. For instance, a given subsystem may be active during a particular time of day and
AMDH-6 2 3 8DEL/MAH
107SJW40 042288
241 74
inactive during another time. However, without action on the part of the subsystem, its buffer space will remain allocated throughout the day leaving a large amount of buffer space unavailable for use.
The problem of efficiently allocating buffer space among users in MVS-based systems is a major operational problem that consumes a great deal of resources and renders operation of the data processing system extremely complex to users.
Accordingly, a file system is needed that is capable of exploiting large numbers of access paths, and providing efficient access to files which range in size from a few bytes to hundreds of gigabytes and beyond. The file system must be extended to allow for efficient journaling of transactions and database processing. Also, it is desirable that operation of the file system be convenient and automated and that it be adaptable to emerging storage device technology. Further, it is desirable to provide a file system that will allow continuous access to data concurrently with maintenance, migration and error correction on files being used.
Summary of the Invention
The present specification describes an apparatus for managing data files for access by a plurality of users of a data processing system that includes internal storage for buffering, external storage, and a file user interface by which the plurality of users request access to data files. The apparatus comprises a first level, coupled to the file user interface and the internal storage for allocating the internal storage for temporary storage of data to be accessed by the
AMDH-6 23 8DEL/MAH
/SJW40 042288
24 1
plurality of users, and generating requests for transactions with external storage in support of such allocations. A second level is coupled to the first level and the external storage and responds to the request for transactions with the external storage for managing the transactions for storage of data to, and retrieval of data from, the external storage. This invention is claimed in New Zealand specification No. 228861 from which the present specification has been divided.
The system may include large numbers or storage devices and access paths through which data can -be transferred between the internal storage and the storage devices. In such a system, the second level defines a plurality of physical storage classes which are characterized by pre-specified parameters that allocate data files subject of transactions to locations in external memory. In response to requests for transactions, the second level identifies one of the plurality of storage classes assigned to the data file subject of the transaction and carries out the transaction with the appropriate locations in external memory.
At least one of the plurality of storage classes provides for utilization of a plurality of access paths in parallel for transactions involving data files assigned to such storage class. Further, at least one pre-specified parameter for storage classes identifies a level of reliability desired for the subject data files. The second level in response to that parameter, generates error correction codes, or performs duplication for mirroring-type reliability systems, and allocates the mirrored data or generated error correction codes to locations in external memory. For transactions retrieving data from allocated data files, the second level includes means for detecting and correcting errors.
AMDH-6 2 38DEL/MAH 10/SJW40 042288
#
m m
241740
The first level includes a means such as dependency graphs for specifying dependencies for locations in the internal storage allocated among the plurality of users. In response to the dependencies, 5 the first level provides for locating, journaling and releasing locations in a manner transparent to the plurality of users. By specifying dependencies in an appropriate manner, global balancing of the internal storage can be achieved.
By providing for dynamic allocation of storage classes, along with error correction that is transparent to users, the file system will exhibit a high degree of fault tolerance while assuring continuous operation during error correction 15 transactions and transactions that may require re-allocation of data from one storage device to another.
In a preferred system, one of the storage classes will provide for record level striping. Thus, 20 as claimed in the present specification, the present invention provides an efficient method of performing data input-output within a computer system consisting of parametric record-level striping, to achieve high data transfer rates, which in combination with error 25 correction codes and recovery methods, also achieves improved data availability and reliability for very large file systems. According to this aspect, the present invention can be characterized as an apparatus foif storing a data file which includes a sequence of 30 local cells LC^ for i equal to one through X. Each local cell in the file includes at least one basic unit of transfer (block) by users of the data file. The apparatus comprises a plurality of storage units for storing data, such as magnetic tapes, magnetic
241740
disks, or any other non-volatile storage device. A ^ plurality of input-output (I/O) paths, P^, for n equal to 1 through N, is included. Each path in the plurality is coupled with a subset of the plurality of 5 storage units, so that blocks of data can be transmitted in parallel through the plurality of paths to and from the plurality of storage units. A control unit is coupled to the plurality of paths, for allocating the sequence of local cells LC^, to at 10 least a subset of the plurality of storage units, so that local cell LC^ is stored in a storage unit coupled to path P , and local cell LC^+^ is stored in a storage unit coupled to path P^, where k is not equal to n.
According to one embodiment of the present invention, the path on which local cell LC^ is stored, is equal to (((j-1)modN)+1); an N local cell define a cell that can be accessed through the N access paths in parallel. Alternatively, parametric selection of 20 different methods of assignment of local cells across the paths, can be made on the same set of storage units, so that the speed of individual devices, size of cells and local cells for given files and the amount of data manipulation by programs using the 25 files can be matched.
According to another aspect of the present W invention, for every N-l local cells in the file, a correction block is generated, consisting of correction codes for the N-l local cells. By 30 providing an additional path across which correction blocks can be allocated within a data file, corrections of previously uncorrectable errors detected during accesses through a given path, can be made. To increase performance for some file systems,
AMDH-62 38DEL/MAH -7-
/SJW40 042288
24 1740
the allocation of error correction blocks can be rotated across the N paths for file systems that will require multiple accesses to the correction blocks. Further, the error correction scheme can be expanded 5 to provide for multiple error correction, using additional paths for correction blocks.
A file system according to the present invention is adaptable to a wide variety of operational requirements. For instance, one storage class can be 10 defined that reflects a standard UNIX file system structure. Of course, a storage class can be defined to meet other existing file system structures as well.
Many applications require high speed sequential processing. One storage class could be defined 15 according to the present invention, that reflects device geometry like tracks and cylinders, in order to take advantage of the highest speed transfer rates of individual devices. Further, by providing a number of access paths in parallel, each path providing maximum 20 transfer speed for devices to which the path attaches, extremely high sequential processing speeds can be achieved.
Operational databases, on the other hand, typically require efficient random access to small 25 objects which are contained within blocks as well as high sequential access speeds for batch processing, copying images and database recovery. By using proper storage class definition, the sequential access can be executed as fast as required. The reliability 30 requirements can be satisfied through proper, reliability parameters. Finally, a high random update rate may best use a reliability feature such as mirroring, while a low random update may best use parity-based reliability systems.
AMDH-6 23 8DEL/MAH -8-
/SJW40 042288
24 1 740
Non-operational databases such . as CAD/CAM databases are often characterized by large objects comprising several megabytes of data. Using a storage class that could contain an average object in a few 5 cells, would be very beneficial to the performance of such a system.
Brief Description of the Drawings
Fig. 1 is a block diagram of a file system 10 according to the prior art.
Fig. 2 is a block diagram of a file system encompassing the present invention.
Fig. 3 is a block diagram illustrating data flow through levels of a file system according to the 15 present invention.
Fig. 4 is a diagram illustrating a structure of the levels of the file system according to the present invention.
Fig. 5 is a block diagram of a computer system 20 with a data storage subsystem having a plurality of input-output paths and a large number of physical storage devices.
Fig. 6 is a schematic diagram of a data file according to the present invention.
Fig. 7 is a diagram illustrating the logical disk and available path concepts.
Fig. 8 illustrates the logical organization of a data file according to the present invention, without error correction.
Fig. 9 illustrates IDAW lists implementing record level striping of the file in Fig. 5.
, AMDH-6 238DEL/MAH -9-
/SJW40 042288
24174 0
Fig. 10 illustrates the logical organization of a data file according to the present invention, with single error correction.
Fig. 11 illustrates IDAW lists implementing
record level striping of the file in Fig. 7.
Fig. 12 is a diagram of the logical organization of a data file with single error correction, rotating the path on which the error correction block is stored.
Fig. 13 illustrates IDAW lists implementing record level striping of the file in Fig. 9.
Fig. 14 is a diagram of the logical organization of a data file incorporating double error correction according to the present invention.
Fig. 15 illustrates IDAW lists implementing record level striping of the file in Fig. 11.
Fig. 16 is a flowchart of a strategy routine for the striping driver according to the present invention.
Fig. 17 is a routine called in the striping driver on completion of input/output operations.
Fig. 18 is a diagram of the recovery routine which operates to recover any lost data reported by the input/output process.
Fig. 19 is a routine for correcting errors for double ECC implementations of the present invention.
Fig. 20 is an I/O control routine for the striping driver used to configure the system.
Fig. 21 is the routine for setting up the raw
input/output for a striped device.
Fig. 22 is a routine for generating the error correction blocks according to user-specified parameters of the level of error correction desired.
AMDH-62 3 8DEL/MAH -10-
/SJW40 042288
"lift
B
241740
Fig. 23 is a routine for generating parity data for single error correction.
Fig. 24 is the routine for performing exclusive OR from one data area to another.
Fig. 25 is the routine for generating double error correction blocks according to the present invention.
Fig. 26 is the routine for generating the IDAW lists for striped input/output according to the 10 present invention.
Description of the Preferred Embodiment
With reference to the figures, a detailed description of the present invention is provided. The organization of the file system is described with 15 reference to Figs. 2-4. With reference to Fig. 5, a hardware system overview is provided. With reference to Figs. €-15, the implementation of the parametric record striping according to the present invention, is described. With reference to Figs. 16-26, a detailed 20 implementation of one software embodiment of the parametric striping is described. An appendix accompanies the disclosure and is available on request, providing a source code example of key portions of the embodiment described with reference to Figs. 16-26.
I. File System Structure
Fig. 2 is a block diagram of a file system according to the present invention. The file system shown in Fig. 2 provides a buffer pool manager 40 between the user interface I and the buffer space 30 which comprises the internal storage 41 of the computer system. The buffer pool manager 40 allocates
AMDH-6 23 8DEL/MAH
/SJW40 042288
24 1740
m the internal storage 41 for temporary storage of data to be accessed by the plurality of users of the system and generates requests for transactions to the external storage 44 in support of the allocating of 5 the buffer pool. The storage control program 42 in combination with device drivers 43 responds to the requests for transactions generated by the buffer pool manager 40 and manages the transaction with external storage 44 for storage of data to, and retrieval of 10 data from, the external storage. Management of the buffer space 40 in response to particular file parameters has been taken off the shoulders of the program's users and placed below the file user interface I. Further, the generation of requests for 15 transactions with external storage has been placed below the buffer pool manager 40, further insulating that operation from users.
Fig. 3 is a more detailed block diagram of a preferred embodiment of the file system according to 20 the present invention. The buffer space is not shown in Fig. 3 to simplify the figure.
The file system shown in Fig. 3 includes a file server 30 which is coupled to the file user interface I. The file user interface I in the preferred 25 embodiment is the UNIX V R3 interface as run by the Amdahl UTS operating system, but can be any other interface specified by the user. Therefore, any program written against the file user interface I, in the preferred embodiment, will work with the file 30 system, while allocation of buffer space and control of transactions with external storage are transparent to the user.
Below the file user interface I, the file system includes a file server 30 which provides buffer
AMDH-6238DEL/MAH
/SJW40 042288
241740
management. Below the file server 30 is a logical storage class 31 which presents an immense linear address space to the file server 30. A logical storage class server 35 controls allocation of the logical storage class 31. Below the logical storage class 31 is a physical storage class server 32 which performs the actual management of transactions with external storage. Coupled to the physical storage class server 32 is a plurality of device drivers 33 which creates channel programs, performs error recovery algorithms and provides other services such as filtering.
Associated with each server 30, 35, 32, 33 in the file system is a demon program, providing a user interface for control of functionality of the respective servers. Accordingly, there is a file server demon 34, a logical storage class demon 35, a physical storage class demon 36 and a device driver demon 37. The demons 34, 35, 36, 37 communicate through the file user interface I with the file system in one embodiment. Alternatively, they can be adapted to meet the needs of a particular system if desired.
Fig. 4, illustrates the structure of the preferred system with isolation and layering. Fig. 4 is a schematic diagram of the file system with multiple independent file servers FS1, FS2, FS3, FS4 and FS5. Each of these file servers will be coupled to a plurality of users. Many of them may in fact serve a pool of users which is identical or pools of users which overlap in order to provide multiple paths ♦
from the users to the file system in support of continuous operation of the data processing system. Also shown in Fig. 4 are redundant logical storage classes LSC1 and LSC2. LSC1 is coupled to file
AMDH-6 23 8DEL/MAH
/SJW40 042288
2417*0
servers FS1-FS4, while LSC2 is coupled to file servers FS2-FS5. This provides the multiple paths through the file system needed for continuous operation.
Likewise, there is a plurality of physical 5 storage class servers PSC1-PSC3 and a plurality of device drivers D1-D5 which are cross-coupled among the physical storage class drivers. As can be seen, a user coupled to file server 3 and file server 4 can be assured of continuous operation of the file system 10 given any single point of failure. Each server in one level can be used by multiple servers of the next higher level. Additionally, each server can involve the services of several servers of the next lower level. This allows replication of functions on each 15 level.
The servers on each level are responsible for execution of normal operations for the level and recognition of exceptions occurring. Any exception will be handled by an associated demon. This demon 20 will execute as a transaction process which will be created whenever there is an exception. Fault tolerance and continuous operations require the existence of permanent data related to servers. These data can be maintained by the associated demon, and 25 accessed by the server for use. Although the preferred system consists of four levels, a more complex structure is certainly possible.
At the file server level, support for a different file structure as used by users of the system, could 30 be provided. In a system with only the UNIX V R3 file interface, the files are treated as linear byte-oriented address space as seen by the users. Other well-known structures such as index structures could be supported.
AMDH-6 2 3 8DEL/MAH < -14-
/SJW40 042288
(
241740
At the logical storage class level, a linear adciress space is presented to the file servers. The file servers can obtain, modify and release the linear address space. For the linear address, space can be 5 foreseen on the order of exabytes.
In the physical storage class level, logical devices are presented to the logical storage class. The logical devices are created from real devices based on parametric mapping of the logical storage 10 class to a physical storage class. Characteristics of the physical storage class are described in more detail below.
At the device server level, storage devices are presented to the physical storage class. These 15 devices closely match physical devices; however, they present a view of linear address space, allow a multiple of concurrent requests, and can be adapted to handle advanced functions such as data filters.
The functions of individual levels and their 20 relationship to each other are described below. Each server and its associated demon are coupled. The server executes normal operations and runs as a permanent process in the file system. The permanent process uses temporary data derived from permanent 25 data that is maintained by the demon. The demon processes exceptions reported by its associated server. The demon also can associate a process structure with user and system applications and transactions, while running as a temporary process. 30 The file server functions include the following:
1) Determine the location of data within the file;
2) Synchronize updates to permanent storage with associated journaling using dependency graphs;
AMDH-6238DEL/MAH -15-
/SJW40 042288
241740
3) Allow multiple concurrent requests.
The file server demon functions include the following:
1) Keep and update permanent information on the
status of programs and information about files;
2) Communicate with the logical storage class demon.
The logical storage class server functions as follows:
1) Allocates space for multiple files;
2) Informs demon about exceptions;
3) Executes utility functions according to the directives of demons;
4) Allows multiple concurrent requests.
The logical storage class server demon provides the following functions;
1) Maintains information about the mapping of files to the linear storage space of the logical storage class;
2) Communicates to the file server and the physical storage class demon;
3) Supervises replication and relocation of data.
The physical storage class server provides the
following functions:
1) Assigns storage class to files;
2) Accomplishes striping as discussed below, including creating multiple paths, adding error correction to files, and rotating files;
3) Does device replication functions;
4) Chooses the best devices for reads of data;
) Chooses strategy for updates to files;
6) Creates requests to the device server for transactions with external storage;
AMDH-6238DEL/MAH
/SJW40 042288
241740
7) Informs the associated demon about exceptions;
^ 8) Allows multiple requests in parallel;
9) Rebuilds data from error correction 5 information.
The physical storage class demon provides the following functions;
1) Maintains information on mapping strategy, error conditions and repairs in progress to data
files;
2) Communicates with the logical storage class and device driver demon;
3) Replicates and relocates data.
The device server functions include the 15 following:
1) Builds channel programs;
2) Supervises device interrupts;
3) Reports exceptions to the demon;
4) Allows multiple requests in parallel; 20 5) Allows prioritized requests;
6) Allows requests to be preemptive;
7) Allows extended functions such as filters.
The device server demon provides the following information:
1) Maintains information on device geometry,
device connections or topology, device and connection speed, device and connection usage, error histories, organization of devices into pools;
2) Communicates with the physical storage class 3 0 demon;
3) Does device replication.
AMDH-6 2 38DEL/MAH
/SJW40 042288
241740
II. File Structure Overview
The file structure according to the present invention can be with reference to five layers:
User — this is the application program file 5 specification.
File — this is the linear address space as seen by the user.
Logical storage class — this is the named linear address space into which files are mapped by the file 10 server. At this level only the size of the space allocated by the file server is of interest to the file structure.
Physical storage class — this is the mapping for performance and reliability of a logical storage class 15 into a set of physical devices. This can be thought of as logical storage media constructed from physical media showing characteristics defined by storage class parameters as described below.
Physical storage — a representation of the 20 physical media as linear address space through the device drivers. The physical media may be any storage considered external to the computer system and is typically non-volatile. For this specification, a layer that is earlier on the list in the file 25 structure, is a higher level layer.
According to this file system, the following conditions are true:
1) Each layer is logically independent from the other layer.
2) The internal structures of the layers are.
independent from each other.
3) The layers may communicate between each other via either message protocols, or shared storage.
AMDH-6 238DEL/MAH -18-
/SJW40 042288
241740
Different layers can be adapted to different manners of communication.
4) Utilities dealing with movement or relocation of data are not executed in the user mode, but are integrated into the layers of the file structure.
) Structural information about the individual layers of the file structure is kept in databases and can be modified by transactions internal to the file structure.
6) The user can issue multiple requests for transactions at a time.
7) Multiple processes can be used to handle requests.
The file system works with current user interfaces and optimizes access strategies according to observed access characteristics or through operational hints provided through the associated demons or otherwise. Additionally, the file system can provide enhanced interfaces that allow applications to give information about current and planned access patterns to the file system.
Ill. Access and Buffering
The access of data is controlled by LOCATE, RELEASE and JOURNAL requests for use of the internal buffer space at the file server level. The LOCATE function can be a read, update or write type request. The read request locates existing data areas while /
allowing concurrent buffer writes of the data areas to
/
external storage due to changes to the data from other requesters. The update request locates an existing
/
data area while preventing concurrent buffer writes to external storage. The write function writes data
/
AMDH-6 2 3 8DEL/MAH -19-
/SJW40 042288
f
24 1740
without previous access to eventually existing data, and prevents concurrent buffer writes to external storage. The following parameters are available for the LOCATE function:
1) SEQ — current access is sequential. Data should be retrieved ahead of the request and data that have been used should be discarded.
2) RAND — the current access is random. Only the requested data should be retrieved. 10 3) STRx — the size of data which should be retrieved on the average with one access. x is the number of bytes, STR is the abbreviation for string. Note that this parameter should be used when a file is opened since it indicates a preferred buffer size. 15 4) TOKEN — a token is returned by a locate request and identifies the data area or the buffer being utilized. This parameter is optional, because the process identification can always be allocated as an implicit token.
Application requests for special buffering will be subject to the restrictions that a string has to be smaller than a cell as defined by the striping driver; if multiple string lengths are defined, for any pair, one string should be a multiple of the other; and, a 25 single request cannot include both an SEQ and a RAND parameter.
Integrity between data in different buffer pools is maintained by the file system, and conflicts between string sizes are solved by the system giving 30 preference to some specification, or using a number that represents a compromise. The exact nature of the integrity algorithm can be worked out to meet the needs of a particular application.
AMDH-6238DEL/MAH -20-
/SJW40 042288
*
#
I ' —■ r—
241740
A buffer that has been blocked against externalization has to be freed by a RELEASE request. The RELEASE request is represented by a TOKEN that can be obtained by a locate request. This parameter defines which data areas do not need to be protected against externalization after the release request.
If a process terminates, all data areas associated with that process will be implicitly released by using the process identification as a token.
A modification can be journaled by the JOURNAL request. The process can specify the following parameters:
1) TYPE — type specifies the journal record type. Specific types of journals can be selected for particular applications.
2) TOKEN — one or more tokens obtained by locate requests may be specified for the journal request. This parameter defines which data areas cannot be externalized until the current journal record has been written.
3) DATA -— this is the location of the data that has been placed into the journal.
4) RELEASE — one or more tokens obtained by the locate request may be specified. This parameter defines which data areas do not need to be protected against externalization after the journal is completed.
Buffer manipulation is controlled by the following rules:
1) A buffer request will not be externalized between any LOCATE with update or write, and a RELEASE function.
AMDH-6 2 3 8DEL/MAH -21-
/SJW40 042288
241740
2) If a JOURNAL request is related to a buffer, the buffer will not be externalized until the journal information has been externalized.
3) The LOCATE, RELEASE and JOURNAL functions 5 are also available to the file system user layer.
4) The file system does not maintain data integrity between processes through a locking protocol. This must be done by the processes outside of the file system.
IV. Storage Class Description
In the file system, files are located in storage classes by the physical storage class server. Each storage class is identified by:
NAME
Any valid name in UNIX.
SIZE
Any number between 1 byte and 16 EB (exabytes), the number will be rounded to the next higher multiple of depth and width. The size determines only the size of the data area that contains user data. The actual space requirement on storage media may be increased due to reliability requirements.
DEPTH A number between 1 and D representing the number of bytes stored contiguously on one 25 path. Such a contiguous storage area will be called a Local Cell. D is a multiple of the basic unit of transfer called a Block which is normally 4k. The maximum possible D is determined by the file system 30 implementation and the available hardware.
AMDH-6 23 8DEL/MAH
/SJW40 042288
#
241740
WIDTH A number between 1 and W representing the number of parallel access paths to a storage class. The maximum possible W is determined by the file system implementation and the available hardware. Each access path has the same number of local cells. The storage that is represented by the local cell in the same relative position in each access path is called a Cell.
ft
RELIABILITY - The following specifications are possible:
None:
SPAR: PARx:
DUAL:
REx:
Media reliability is sufficient. None is the default.
Single parity should be used.
x parity paths should be added: x is a number between 1 and N. The maximum possible N is determined by the file system implementation and the available hardware. PARI is identical to SPAR. The data of each path are written on two independent disks.
The data should be written (replicated) to x independent disks. x is a number between 1 and N. The maximum possible N is determined by the file system implementation and the available hardware. REl is identical to DUAL.
Error correction codes other than parity-based codes, can be used, such as by use of add logical 30 functions that subtract from zero to generate the code, then add back to detect errors .
AMDH-6238DEL/MAH
/SJW40 042288
24 1740
The parameters size, depth, and width have to be specified exactly once; the reliability parameter may be omitted or there may be at most one parameter of each of the pairs SPAR, PARx, AND DUAL, REx. If Reliability other than None has been specified, we say that the storage class has Enhanced Reliability.
The reliability parameter allows the user to specify as much protection against media error as desired. For a desired mean time between failure MTBF, there is a definition that will exceed this MTBF. The system will help the user choose the proper balance between desired MTBF and storage and access costs, which is highly dependent on the access pattern, especially the read-to-update ratio for updates covering less than a cell.
Increased reliability is achieved through the addition of data using either simple parity information or Hamming code. Increased reliability requires additional space on media. The system will increase the width and add the necessary amount of local cells to hold the parity information. The increase of the width will be done automatically. The user can ignore the additional space requirements; however, operations must be aware of it.
Files will be mapped into storage classes. Two files will never share a cell.
V. Availability
Availability has two major components, continuous operations and fault tolerance. The file system is. able to handle both aspects according to the state of the art.
AMDH-6238DEL/MAH
/SJW40 042288
24 1 740
A. Continuous Operations:
Continuous operation is the ability to change the elements and the usage of the file system, including association of files to storage classes, the storage 5 class definition, and the underlying storage media: regardless of whether data are currently used,
without any loss of data integrity, and with the guarantee that the change is 10 permanent.
This is achieved by:
building the logic for continuous operations into each level,
having a data buffer on each level, 15 • adhering to the flow of control requirements between levels,
keeping structure and status information in databases,
maintaining isolation and independence of 20 multiple servers of each level.
B. Fault Tolerance:
The file system is able to handle all the possible media errors, as long as they are within the limitation of the defined reliability. 25 1. Soft Errors:
Soft errors in the storage are recognized by the file system. The users can, while using the system, allocate new DASD storage to the part(s) of the. storage class that show errors. The file system 30 relocates the data even while they are used. Relocation is optimized regardless of the depth number.
AMDH-6 238DEL/MAH
/SJW4 0 042288
I
I
i
241740
2. Hard Errors (tracks):
If a track becomes unusable and enhanced reliability has been specified, ' the system re-allocates the track and reconstruct the data as 5 soon as the error has been discovered. This process is transparent to the user of the file system and to operations and does not lead to any noticeable degradation of the system.
3. Hard Errors (media):
If a DASD device becomes unusable and enhanced reliability has been specified, the system asks for a new device or choose a new device if one or more have been pre-allocated for emergency use and move the data to the new device. This is done as soon as the error 15 has been discovered. This process is transparent to the user of the file system. Operations may be involved. Some degradation of the system for certain storage areas may be experienced, since the physical mapping may not be as optimal as it was under "normal" 20 operation. In such a case, the data is remapped as soon as the failing device has been repaired. This process is automated and therefore transparent to operations.
Prior art file systems are designed to use one 25 access path for any request to a file. This is absolutely reasonable as long as there are very few elements (DASDs) to store the data. However, a system with many storage devices and many independent access paths allows the exploitation of parallelism to 30 enhance dramatically the response time for a given., task and as a by-product to enhance potentially the throughput of a system.
AMDH-6 23 8DEL/MAH
/SJW40 042288
® 25
24 1740
VI. Migration:
It is possible to move a file from one storage class to another storage class just by using the copy command in the file system according to the present invention. The file system includes a utility coupled to the device drivers and physical storage class driver to carry out migration without substantial interruptions to users accessing the data A local cell can be transferred between devices or a cell can be transferred to a new storage class. The system control program locks the subject local cell or cell during the transfer, using any of several well known locking techniques. If an access to the locked cell or local cell is requested, the user will experience only a short delay until the transfer completes. The copy command can apply to storage classes as well. To transfer a file into the file system, the file must be closed and copied to a storage class. From that point, the file can be used with all the facilities offered by the described file system.
VII. Simplified Hardware Overview
Fig. 5 is a simplified block diagram of a computer system with a large number of data storage devices which could implement the present invention. The computer system includes a basic computer which includes one or more central processing units 10. The central processing units 10 communicate through channel interfaces 11 to a plurality of channels 12. The channels are coupled to control units Pl-Pn which define input/output paths from the CPUs 10 to data storage devices Dll-Dnm. Coupled to path Pi is a string of data storage devices Dll, D12 . . . Dla, where a is an integer. Data can be written or read
AMDH-6238DEL/MAH
/SJW40 042288
241740
from any of the devices coupled to path PI across line 1. Line 1 may include a plurality of actual paths for accessing the data stored in the devices Dll-Dla as known in the art. Likewise, the plurality of devices D21-D2b is coupled across line 2 to path P2; a plurality of devices D31-D3c is coupled across line 3 to path P3; a plurality of devices D41-D4d is coupled across line 4 to path P4; . . . and a plurality of devices Dnl-Dnm is coupled across line n to path Pn to support input-output under control of the CPUs 10.
The data to storage devices, Dll-Dnm, illustrated in Fig. 5 may include any type of physical device, such as tape drives, high end hard disk drives such as the IBM 3380 class disk drives, smaller disk drives (SCSI), optical media or any other type of storage device. There may be only one device in a given path; there may be varying numbers of devices on different paths; and there may be very large numbers of devices on given paths. The file storage system according to the present invention, is able to allocate storage logically across a number of paths having a wide variety of different characteristics as is more fully described below.
Although not illustrated in Fig. 5, the preferred data processing system includes a large number of redundant paths to any given location in the physical media. Accordingly, control unit Pi also provides a path to the string of devices coupled to path 2, and control unit P2 will provide an access path for the string of devices coupled to path 1. Likewise, each control unit may provide two or more paths to each device to which it is coupled. In this manner, a failure in the hardware can be recovered through an alternate functioning path, and a system can provide
AMDH-6238DEL/MAH
/SJW40 042288
24 1740
for continuous operation by dynamically reconfiguring the access path in response to the failure. A failure occurring in the external storage system will be reported to a device driver which will perform the error recovery techniques or recalculate an access path to the affected local cell of data. The level of redundancy in the access paths can be adapted to meet a given mean time to failure requirement for the data processing system, or for individual files stored in the external storage system.
VIII. Logical Organization of Data Files
Figs. 6-11, illustrate the logical organization of the data files which have been "striped" according to the present invention. In Fig. 6, a data file is illustrated schematically as an array of local cells LC1-LC20. The array includes columns which correspond to logical paths P1-P5 in Fig. 6 and rows which correspond to cells. As can be seen, sequential local cells are allocated to different logical paths in the system. For highest performance, a logical path will equal a physical path. However, two logical paths can share a physical path, or a single logical path can involve two physical paths.
Fig. 7 illustrates the available path and logical device concept. For an available physical path Pl-Pn, storage may be allocated along logical rather than physical boundaries if desired. Thus, physical path PI may include five actual devices which are treated as five logical disks. Physical path P2 may include a single high capacity disk that would be treated by the file system as three logical disks. Physical path P3 may include a number of high capacity devices that are configured as eight logical disks. Likewise, the
AMDH-6238DEL/MAH
/SJW40 042288
241740
physical path PN may be configured as two logical disks. As the file system allocates a data file to the storage system, it can identify available paths within the system, i.e., paths that have logical disks 5 available for use, and allocate the data file across those available paths to make optimal usage of the stprage devices. The process of identifying available paths may be a dynamic one, happening as the files are allocated, or a prespecified one set up in advance by 10 programmers who configure the storage system.
As illustrated in Fig. 6, the preferred embodiment of the striping algorithm according to the present invention, allocates local cell LC^ to path P(((i-1)modN)+1) , where N is the number of available 15 logical paths; and i goes from one to X, where X is the number of local cells in the file. In this manner, sequential local cells are allocated to sequential paths, and no two sequential local cells are located on the same path. Also, a cell of N local 20 cells may be transferred in a single parallel I/O transaction, if a logical path equals a physical path.
IX. Examples of Striped Data Files
Figs. 8-15 illustrate examples of striped data files using various types of error correction 25 according to the present invention. Fig. 8 is a data file including blocks B0-B199, where each block B is an addressable unit for channel operation. The blocks are sectioned into local cells of ten blocks each, B0-B9, B10-B19, . . ., B190-B199. The data file will 30 be striped so that there are five paths utilized for this data file, four cells deep S0-S3. The file system will generate an IDAW list (where a logical path equals a physical path) as illustrated in Fig. 9
AMDH-62 3 8DEL/MAH -30-
/SJW40 042288
• -31- 24 1 74 0
where path 0 includes the local cells B0-B9, B50-B59, B100-B109, and B150-B159. Path 1 will have local cells B10-B19, B60-B69, B110-B119, and B160-B169. Path P4 will include local cells B40-B49, B90-B99, 5 B140-B149 and B190-B199. As mentioned above, with reference to the logical disks and available path concept, the path P0-P4 illustrated in Fig. 8 could be any available paths to the identified local cells in a data storage system that may include a large number of 10 physical paths. As can be seen, in Figs. 8 and 9 there is no additional error correction capability provided. The control unit for each physical path will have its own error correction capability using parity or error correction codes incorporated in the 15 data as is well known in the art. In the event that an uncorrectable error occurs in any path, that data will be lost, the loss reported to the device driver, and the file system will be required to take recovery steps.
In systems where high reliability is required, an error correction capability can be provided according to the present invention as illustrated in Figs. 10-18. The level of error correction capability can be selected to meet the need of a particular data 25 file. For instance, single error correction can be provided in a variety of formats such as shown in Figs. 10-13, double error correction can be provided as shown in Figs. 14 and 15. Finally, mirrored, or multiple redundant striped data files could be 30 provided if higher reliability is needed. The level of error correction desired can be specified in the preferred system as a parameter for the storage class.
Figs. 10 and 11 illustrate the logical organization and the IDAW list generated for a file
AMDH-6238DEL/MAH -31-
/SJW40 042288
24 1 74
system using single error correction. As can be seen, the data file is organized as discussed with reference to Fig. 8 except that in the kernel space, error correction blocks X0-X9, X10-X19, X20-X29, and X30-X39 5 in respective local cells are generated by the file system. The file system then generates the IDAW list as illustrated in Fig. 8 assigning all of the error correction blocks to path P5 as illustrated. The error correction blocks in the preferred system are 10 bitwise XOR across corresponding blocks in each cell. Thus XO is the bitwise XOR of BO, BIO, B20, B30, B40. Therefore, if block BIO is lost, it can be replaced by calculating the XOR of BO, B20, B30, B40 and XO.
For file systems in which updates to individual 15 blocks are expected to be frequent, a system in which the correction blocks are stored in a single path may have excessive traffic on the path assigned to the correction blocks. Therefore, an algorithm for distributing the correction blocks among the paths 20 available is desired to prevent contention for one path.
Figs. 12 and 13 illustrate a single error correction capability with rotating paths for the correction blocks. As can be seen in Fig. 12, the 25 file system generates the correction blocks in the same manner as for single error correction illustrated in Fig. 10. The IDAW lists are generated such that path P0 includes error correction blocks X0-X9 in cell CO, data blocks B50-B59 in cell CI, data record 30 B100-B109 in cell C2 and data blocks B150-B159 in cell C3. In cell CI, the error correction blocks are allocated to path PI. In cell C2, the error correction block is allocated to path P2, and in cell C3, the error correction block is allocated to path
AMDH-6 2 38DEL/MAH
/SJW40 04228 8
24 1740
P3. In this manner, accesses to the error correction blocks will be spread across the available paths in the system to prevent overuse of a single path for error correction purposes.
Even greater reliability can be provided accord ing to the present invention using double error correction. According to this scheme, two simultaneous errors in separate paths can be corrected. As illustrated in Figs. 14, the data file includes blocks 10 B0-B9 through B150-B159 arranged in cells SO through S3. The file system generates a three-bit Hamming code for the local cells of the data file, such that correction blocks X0-X9, X10-X19, through X110-X119 are created. The file system then generates the IDAW 15 list as illustrated in Fig. 15 such that path P0 receives correction blocks X0-X9, X10-X19, X20-X29, X30-X39. Path PI receives the correction blocks X40-X49, X50-X59, X60-X69, and X70-X79. Path P2 receives data blocks B0-B9, B40-B49, B80-B89 and 20 B120-B129. Path P3 receives correction blocks X80-X89, X90-X99, X100-X109, and X110-X119. Paths P4-P6 receive the balance of the data blocks as illustrated in the figure.
Fig. 15 illustrates a layout of the data files 25 with double ECC that facilitates generation of the correction blocks. These correction blocks could also be distributed among the paths in order to prevent concentration of access to particular paths in the data file.
Although not illustrated in the figures, even,
more reliability could be provided by a greater level of error correction (i.e., larger error correction codes), or by redundant file storage. The redundant files could be striped as well so that a first copy of
AMDH-6238DEL/MAH
/SJW40 042288
24 1740
a given file would be stored on a first set of available paths in the system, while a second copy of the data file will be stored in a mirrored fashion on a second set of available paths. The file system 5 would automatically generate the mirrored data I/O
requests to the physical system in the same manner that it generates the error correction codes as discussed above.
For Figs. 8-15, the size of local cells is shown 10 as having ten blocks. Obviously other data files can be configured so that the extent of data in each local cell is adapted to match a variety of parameters of the system. For instance, for a data storage system that includes disk drives, a parameter indicating the 15 optimum size of I/O transfer for those disk drives, might be used to determine the local cell size. For instance, if a given disk drive is able to transfer information at the highest rate in sizes equal to the track size of a given disk, the local cell size for 20 the striped data file may be set equal to a track. If a number of tracks in a given disk system make up a cylinder of data and I/O transfers take place on a cylinder level at a higher rate, the local cell size could be made equal to the size of a cylinder within 25 the disk. In addition, other parameters may affect the size in which a local cell is allocated according to • the present invention. For instance, an application program may manipulate very large units of data, such as digital images used in sophisticated 30 medical imaging technology. Thus a local cell may be. allocated having a size equal to the amount of data required for each of these physical images independent of the physical disk characteristics.
AMDH-6 238DEL/MAH
/SJW4 0 042288
241740
In addition to local cell size, the width, that is the number of paths used, for a given cell of a data file may be a parameter that can be manipulated according to the needs of a particular system. As the 5 number of available paths changes over time with a given computer system, such as when paths are physically added to the system or when data is transferred out of the system, freeing up existing paths, to increase or decrease the number of paths 10 used.
X. A Striping Driver Implementation
Figs. 16-26 are flowcharts illustrating an implementation of a demonstration version of a file system in the UNIX-based operating system UTS. This 15 demonstration version was prepared for a system on which all storage devices are IBM-class 3380 disk drives, and all I/O operations access entire cells including sequences of local cells. These assumptions were made in order to simplify implementation of this 20 demonstration version. In a preferred system, these assumptions will be removed.
Fig. 16 illustrates a striping strategy routine called in block 1301 by a request for a transaction with external storage. The request will include a 25 buffer header generated by physical I/O requests or by the buffer manager, identifying the file, its logical position and an number of bytes for the transaction. The strategy routine checks the parameters of the I/O operation received from the file system. In response. 30 to those parameters, an I/O header for this operation plus additional headers required, if error correction blocks are to be added, are retrieved (block 1302). Next, the number of physical I/O operations into which
AMDH-6 2 3 8DEL/MAH
/SJW40 042288
24 1740
the subject logical I/O must be split is calculated (block 1303). A routine called useriolock locks a buffer in core for the physical I/O's and generates a page list for real pages in memory. Buffered I/O's 5 have page lists already (block 1304). The routine make_idaws is called to generate an IDAW list for the operation, and a buffer header is then acquired from an allocated pool of buffer headers for each physical I/O (block 1305). The buffer headers are chained 10 together to generate a request chain (block 1306). Each physical I/O is set up and proper values of buffer header variables are set including the correct IDAW pointer and a BSTRIPE flag (used by disk driver to identify striped I/O) (block 1307) . Page table 15 entries are saved if the transaction is unbuffered I/O in order to map the user's buffer into the kernel address space (block 1308). If a write is being carried out, the gen_ecc routine is called to generate any error correction required by the user (block 20 1309). Device strategy routine is called with the chain of physical I/O requests (block 1310) . If the input to str-strat() is a chain, then the routine processes next request in that chain (block 1311). Otherwise the routine is finished (block 1312). 25 Fig. 17 is the str__iodone routine which is called by a modified UTS iodone routine if BSTRIPE is set, to signal the completion of the I/O for a striped buffer header. The UTS iodone routine is called from a disk interrupt routine to signal completion of an I/O 30 transaction. After completion of an I/O, the str_iodone routine begins in block 1400 by finding the I/O header that this buffer header belongs to, and decrementing its count of outstanding I/O's. Next, if the I/O has an error, the error mask is saved in the
AMDH-62 3 8DEL/MAH
/SJW40 042288
-3 6-
24 1740
I/O header (block 1401). If there are more I/O's for this header, the buffer header is put on the free list and the routine returns (block 1402). If there are no more I/O's, this must be the last component of a 5 logical I/O. Thus, the xc_recover routine is called to do any necessary error recovery and to set up return values (block 1403). Next, the useriounlock routine is called to unlock the user buffer and to call iodone to signal completion of the logical I/O 10 operation (block 1404). Finally, the I/O header is put back on the free list and the routine returns (block 1405).
Fig. 18 is the xc_recover routine which is called to attempt to do any necessary error recovery, and set 15 up return values in the buffer. This routine begins in block 1500, where an error history map is maintained for failed I/Os. If a read is done, any error in the read must be corrected from this map. If a write is done, the map is updated so that erroneous 20 data is identified. If no errors are listed in map in block 1500, the routine returns (block 1501). If no error correction is implemented on this data file, any errors are printed and marked in the return mask of the buffer (block 1502). If single error correction 25 or rotating error correction is implemented for this striped file, then any correctable errors are corrected by copying data from the XOR buffer, and then XORing the rest of the cell to regenerate the lost data, any uncorrectable errors are marked in the 30 return mask (block 1503). If double error correction,, then the correct() routine is called to attempt to correct any errors (block 1504). Finally, the routine returns with a return mask and the error flag
AMDH-6 2 3 8DEL/MAH
/SJW40 042288
24 1740
appropriately set in the original request buffer (block 1505).
Fig. 19 is the correct() routine. This routine begins by determining whether the number of errors 5 detected is one (block 1600) . If there is one error and the error is detected in a block of data that has been just written, the routine returns (block 1601) . If the error is detected in a path during a read operation, then a parity path reflecting the bad data 10 is found (block 1602). If the bad data is in a parity path, it is not corrected. Otherwise, the parity data is used to correct the error (block 1603) . Finally, the successfully corrected error indication is returned (block 1604) . If the number of outstanding 15 errors is more than one in block 1600, the algorithm checks each outstanding error to see if it can be corrected, given that no other error is corrected (block 1605). If no error can be corrected, then the routine returns an uncorrectable error signal (block 20 1606). If an error is found that can be corrected, it " is corrected using appropriate parity paths and the correct() routine is recursively called to try to correct the remaining errors (block 1607).
Fig. 20 is a routine entitled str_ioctl which 25 does control for the administrative functions necessary. This routine currently only provides the ability to set and get configuration data. This routine begins in block 1700 where it determines whether the command calls for set configuration. If 30 it does, the algorithm attempts to configure a striped device (a cell) from parts of physical devices using the prototype parameters supplied by the user. Next, if the striped device is not being used and the user has proper permission, then prototype configuration is
AMDH-6 23 8DEL/MAH
/SJW40 042288
24 174 0
#
#
#
copied (block 1701). Next, the str_check routine is called to check the validity of the configuration, and if valid, the new configuration is copied into the striped device. Otherwise, the old configuration is 5 unchanged (block 1702). If the command was get configuration, then the configuration data is copied out (block 1703). Finally the routine returns (block 1704) .
Fig. 21 is the str_physio routine which sets up 10 raw I/O's for a striped device. This operates by getting a physio buffer header and filling it with values for an I/O request (block 1800). Next, the str_strat routine is called and the routine waits for the I/O to finish. Then the buffer is freed and the 15 routine returns (block 1801).
Fig. 22 is the gen_ecc routine which generates any ECC data necessary for a striped file as parametrically designated by a user. If no ECC is designated by the user, the routine returns (block 20 1900). If single or rotating single ECC is parametrically assigned by the user, the routine calls gen_xcl to generate the correction blocks (block 1901) . If double ECC is assigned by the user, the routine calls gen_ecc2 to generate the correction 25 blocks (block 1902) .
Fig. 23 illustrates the gen_xcl routine which is used to generate parity data for single error correction on one or more cells. The routine begins in block 2000 while the number of cells is greater 30 than zero. The routine copies data from the first path into an xcbuffer area (block 2001). While the number of local cells (paths) remaining in the cell is greater than zero (block 2002), the routine ex_or() is called to do exclusive-OR from data to the xcbuffer
AMDH-62 38DEL/MAH
/SJW40 042288
241740
§
i
(block 2003). The data address is incremented (block
2004). If there are more local cells (paths) (block
2005) , the routine loops to block 2002. If there are no more paths, a window for interrupts is opened
(block 2006) and the algorithm determines whether more cells are necessary (block 2007) and loops to block 2000 if there are more. If there are no more cells, the algorithm returns (block 2008).
Fig. 24 illustrates the ex_or routine which does 10 an exclusive OR from one data area to another. In block 2100, while the number of blocks left for the XOR routine is greater than zero, the routine branches to XOR a 4 Kilobyte block of data into the xcbuffer (block 2101) . The addresses are incremented and the 15 number of blocks are decremented (block 2102), and the routine loops to block 2100.
Fig. 25 illustrates the gen_ecc2 routine which generates parity values for double error correction. This begins in block 2200 by clearing an xorbuffer 20 area. The necessary local cells are XORed according to the Hamming code pattern utilized. Next, the algorithm repeats for each parity path (block 2202).
Fig. 26 is the routine entitled makeidaws which constructs IDAW lists for striped I/O from a page list 25 generated by the file system. The algorithm begins in block 2300 by setting up the offset and page list pointer. Based on the appropriate type of error correction, the algorithm loops through each path, sets up IDAWS for each block in the path to map the 30 data and parity values from virtual memory to the. disks (block 2301).
Source code of key portions of the routine described with reference to Figs. 16-26 has been provided in Appendices 1, 2 and 3 to the present
AMDH-6238DEL/MAH
/SJW40 042288
application, where Appendix 1 includes the routine stripeasm.s (4 pages), Appendix 2 includes the routine stripe.h (4 pages), and Appendix 3 includes the routine stripe.c (83 pages). These appendices are available on request.
Conclusion
A file system according to the present invention, can provide for global optimization of internal storage, usage of a plurality of access paths in parallel for single I/O transaction, and highly 10 efficient allocation of physical storage facilities. Further, the file system can be optimized for continuous operation for users of the data processing system and to a high degree of fault tolerance.
The file system of the present invention exploits 15 the possible parallelism. Additionally it allows adaptation of the file structure to available hardware and operational requirements and adaptation of the access strategy to currently executing tasks.
a single file system. Further, the storage space allocated by the single file system can be immense.
Storage classes can be defined to match a variety of structures. For instance, a storage class can 25 match the UNIX file structure by limiting the size of thd storage class to a physical medium, and setting the depth and width parameters equal to one. This reflects the current UNIX file system structure. This is an important case because it indicates that the. 30 described method can be used in such a way that it will perform at least as fast as, and use no more space than the current UNIX file system.
In addition, by utilization of the storage class 20 concept, a wide variety of data files can be served by
AMDH-6238DEL/MAH
/SJW40 042288
24 1740
»
There are many applications that require high speed sequential processing. By defining the depth to reflect device geometries such as track and cylinder size, the speed of individual devices can be adapted 5 to the special needs of the application. Using the
Amdahl 6380 class disk system, and setting the depth parameter D to 60 blocks (1 cylinder), a data rate for access of 2 megabytes per second can be achieved with a width equal to one. By setting the width parameter 10 equal to 31, data rates of about 70 megabytes per second have been measured using the system described with reference to Figs. 16-26.
Operational databases typically require efficient random access to small objects which are contained in 15 blocks, and high sequential speeds for batch processing, image copying and recovery. By using proper storage class definition, the sequential access can be executed as fast as required. The reliability requirements can be satisfied through proper 20 parameters. For instance, a high random update rate may require DUAL or REx, a random update rate may allow SPAR, or PARx.
Non-operational databases, such as CAD/CAM, are often characterized through large objects; for 25 instance, covering several megabytes. Using a storage class that could contain an average object in a few cells would be beneficial to the performance of data access.
According to one preferred storage class, digital 30 data for each file to be manipulated is logically organized into a sequence of W local cells (LI, L2, . . . LW) within cells which are mapped to X paths (PI, P2, . . . PX). Various methods of mapping local cells to the cells are defined. Well known buffering
AMDH-623 8DEL/MAH
/SJW40 042288
I
i
24 m®
techniques are employed for each such file (large buffers, multiple buffering, buffers matching track/cylinder size, etc.), so as to maximize bandwidth relative to each path. Error correction 5 blocks allow for immediate and automatic recovery of lost data to a spare path or device in the event of a total device failure, or to a spare location on the same device in the event of a localized failure. Therefore, the method improves very greatly the 10 collective reliability and availability of data in a manner inversely proportional to the probability of a second failure being encountered before recovery of a first is complete for single error correction embodiments.
The foregoing description of the preferred embodiments of the present invention have been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. 20 Obviously, many modifications and variations will be apparent to practitioners skilled in this art. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling others skilled 25 in the art to understand the invention for various embodiments and with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents.
AMDH-6 2 38 DEL/MAH
/SJW40 042288
•
1
2
3
4
6
7
8
9
11
12
13
14
16
17
18
19
21
22
23
241740
Claims (1)
- WHAT WE CLAIM IS: 1. An apparatus in communication with a data processing system for storing a data file for sequential transfers to the data processing system, the data file including a plurality of local cells, each local cell including at least one block of data, wherein a block is a basic unit of transfer between the data processing system and the apparatus, the apparatus comprising: a plurality of storage means for storing data; a plurality of logical input/output paths Pn, for n equal to 1 through N, each path coupled to a subset of the plurality of storage means and to the data processing system, so that local cells of data may be transmitted in parallel through the N paths between the data processing system and the plurality of storage means; and wherein the local cells in the data file are stored in the plurality of storage means in a sequence of local cells LCj, for i equal to 1 to X, and wherein local cell LCi is stored in a storage means coupled to path Pn; and local cell LC^+1 is stored in a storage means coupled to path Pn+]c/ where k is not equal to zero. > 1 2 3 4 5 6 7 8 1 2 3 4 1 2 3 4 1 2 3 4 2. The apparatus of claim 2 data -45- * 241740;file includes S cells of data, each cells including W local cells, where W is less than or equal to N and S equals X/W rounded to the next higher integer, each cell including at least one local cell storing an error correction code for the cell, and all local cells in a given cell are stored in storage means coupled to different paths.;3. The apparatus of claim 2, wherein the error correction code for a given cell comprises a bitwise exclusive-OR of all local cells in the cell, except the error correction code.;4. The apparatus of claim 3, wherein the local cells in the data file containing the error correction codes are stored in storage means coupled to a single path.;5. The apparatus of claim 3, wherein the local cell in the data field containing the error correction code for cell j, is stored in a storage means coupled to path P( ((j-l)modW)+1) .;6. The apparatus of claim 2, wherein each local cell includes L bits, and the error correction code comprises a L x M bit code, where M is an integer greater than one.;•;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;2 0;21;22;23;7. Ail apparatus in communic;-46-;41740;processing system for storing a data file for sequential transfers to the data processing system, the data file including a plurality of local cells, each local cell including at least one block of data that can be manipulated by the data processing system as a unit for access to the data file, the apparatus comprising:;a plurality of storage means for storing data;;a number W of logical input/output paths, path 1 through path W, each path coupled to a subset of the plurality of storage means and to the data processing system, so that blocks of data may be transmitted in parallel through the W paths between the data processing system and the plurality of storage means; and wherein the data file is stored in the plurality of storage means in a sequence of X local cells, and local cell 1 in the sequence is stored in a storage means coupled to path 1, local cell 2 is stored in a storage means coupled to path 2, local cell W is stored in a storage means coupled to Path W, local cell W+l is stored in a storage means coupled to path 1, local cell W+2 is stored in a storage means coupled to path 2, local cell 2W is coupled to a storage means coupled to path W, and local cell X is stored in a storage means coupled to path (((X-l)modW)+1).;1;2;3;4;5;6;1;2;3;4;1;2;3;4;1;2;3;4;1;2;3;£ 1 241740;~47_ W ''S!/ '33s/;8. The apparatus of claim the data file includes S cells of data, each cell including up to W local cells, where S equals X/W rounded to the next higher integer, each cell including at least one local cell storing an error correction code for the cell.;9. The apparatus of claim 8, wherein the error correction code for a given cell comprises a bitwise exclusive-OR of all local cells in the cell, except,;for the local cell storing the error correction code.;10. The apparatus of claim 9, wherein the local cells in the data file containing the error correction codes are stored in storage means coupled to a single path.;11. The apparatus of claim 9, wherein the local cell in the data file containing the error correction code for cell j, is stored in a storage means coupled to path P(((j-l)modW) +2).;12. The apparatus of claim 8, wherein each local cell includes L bits, and the error correction code comprises a L x M bit code, where M is an integer greater than one.;•;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;sequential transfers to the data processing system, the data file including a sequence of local cells LC} for i equal to 1 through X, each local cell including at least one block of data that can be manipulated as a unit by the data processing system for access to the data file, the apparatus comprising:;a plurality of storage means for storing data; a plurality of logical input/output paths Pn, n equal to 1 through W, each path coupled to a subset of the plurality of storage means and to the data processing system, so that blocks of data may be transmitted in parallel through the plurality of paths between the data processing system and the plurality of storage means; and means, coupled to the plurality of paths, for allocating the sequence of local cells LQ, for i equal to 1 to X, to at least a subset of the plurality of storage means, so that local cell LC^ is stored in a storage means coupled to path P„, local cell is stored in a storage means coupled to path Pn+k Pk# where k is not equal to zero.;14. The apparatus of claim 13, wherein local cell LC^ is stored in a storage means coupled to path P , and n is equal to (((i-l)modW)+1), for i equal to 1 to X.;•;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25;26;27;28;241740;-49-;15. An apparatus in communic^fe^inf ^±€h a data processing system for storing a data file for sequential transfers to the data processing system, the data file including a sequence of local cells LCif for i equal to 1 through X, each local cell including at least one block of data that can be manipulated as a unit through the data processing system by users of the data file, the apparatus comprising:;a plurality of storage means for storing data; a plurality of logical input/output paths Pn, for n equal to 1 through W, each path coupled to a subset of the plurality of storage means and to the data processing system, so that blocks of data may be transmitted in parallel through the plurality of paths between the data processing system and the plurality of storage means;;means, coupled to the plurality and paths to receive the blocks of data, for generating an error correction code ECC, for each set s of E local cells, where s goes from 1 to S, and S is equal to X/E rounded to the next larger integer; and means, coupled to the plurality of paths and to the means for generating an error correction code ECC,, for mapping the sequence of local cells LC;, for i equal to 1 to X, and error correction codes ECC,, for s equal to 1 to S, to at least a subset of the plurality of storage means, so that all local cells in the set s, and error correction code ECC,, define a;1;2;3;4;1;2;3;1;2;3;1;2;1;2;3;1;2;3;4;5;-50-;5)241 7 AO;cell, and local cells in the cell and each are stored in storage means coupled to different paths.;16. The apparatus of claim 15, wherein the error correction codes ECC, are generated by taking the bitwise exclusive-OR of all local cells of data in the cell.;17. The apparatus of claim 14, wherein the means for mapping maps all error correction codes to storage means coupled to a single path.;18. The apparatus of claim 16, wherein the means for mapping maps error correction code ECC, to a storage means coupled to path p(((s.modw)+1);19. The apparatus of claim 15, wherein the error correction codes are multiple bit Hamming codes.;20. The apparatus of claim 15, wherein the error correction code ECC, has a size equal to M local cells, and E is equal to W minus M.;21. An apparatus in communication with a data processing system for storing a plurality of data files for sequential transfers to the data processing system, each data file including a sequence of local cells LC;, for i equal to 1 through X, where X is a;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25;f \ 241740;-51- lp ^0j 1 Yo, o J;parameter associated with each daoa^f^V^each local cell including at least one block of data that can be manipulated as a unit through the data processing system by users of the data file, the apparatus comprising:;a plurality of storage means for storing data;;a plurality of logical input/output paths Pn, n equal to 1 through N, each path coupled to a subset of the plurality of storage means and to the data processing system, so that data may be transmitted in parallel through the plurality of paths between the data processing system and the plurality of storage means; and means, coupled to the plurality of paths and to the data processing system, and responsive to parameters associated with each data file by the data processing system, for mapping the sequence of local cells LCj, for i equal to 1 to X, for each data file to at least a subset of the plurality of storage means,;so that local cell LQ of a given data file is stored in a storage means coupled to path Pn, and local cell LCi+l of t^le Sfiven data file is stored in a storage means coupled to path Pk, where k is not equal to n.;1;2;3;4;5;1;2;3;4;1;2;3;4;1;2;3;4;5;6;7;8;9;/f \2417 40;22. The apparatus of claim^2S]£,| ^e^ein the number of blocks per local cell is an additional parameter associated with each data file by the data processing system, and to which the means for mapping is responsive.;23. The apparatus of claim 21, wherein a number W of local cells equal a cell, and the number W is an additional parameter associated with each data file by the data processing system.;24. The apparatus of claim 23, wherein local cell LC^ is stored in a storage means coupled to P ,;and n is equal to (((i-l)modW)+1) , for i equal to 1 to X.;25. An apparatus in communication with a data processing system for storing a plurality of data files for sequential transfers to the data processing system, each data file including a sequence of local cells LCj, for i equal to 1 through X, where X is a parameter associated with each data file, N local cells equal a cell, and each local cell includes at least one block of data that can be manipulated as a unit through the data processing system by users of the data file, the apparatus comprising:;a plurality of storage means for storing data;;a plurality of logical input/output paths Pn, n;13;14;15;16;17;18;19;20;21;22;23;24;25;26;27;28;29;30;31;32;33;34;35;36;37;equal to 1 through N, each path coi;-53-;41740;the plurality of storage means and to the data processing system, so that data may be transmitted in parallel through the plurality of paths between the data processing system and the plurality of storage means;;means, coupled to the plurality of paths and the data processing system to receive the blocks of data, for generating an error correction code ECC,, for storage in Z local cells, for a set s of E local cells of data, where s goes from 1 to S, and S equal to X/E rounded to the next larger integer, and N is equal to Z+E; and means, coupled to the plurality of paths and to the data processing system, and responsive to the parameters associated with each data file by the data processing system, for mapping the sequence of local cells LCj, for i equal to 1 to X, and the error correction codes ECC,, for s equal to 1 to S, for each data file to a subset of the plurality of storage means, so that all local cells of data in a given set and the local cells or error correction codes for the given set equal a cell of W local cells and each local cell in a cell is stored in storage means coupled to different paths.;1;2;3;4;5;1;2;3;1;2;3;4;5;1;2;3;4;1;2;3;26. The apparatus of cl;-54-;241740;number of blocks per local cell is an additional parameter associated with each data file by the data processing system, and to which the means for mapping is responsive.;27. The apparatus of claim 25, wherein W is a parameter associated with each data file by the data processing system.;28. The apparatus of claim 25, wherein there is a plurality of types or error correction codes, and the type of error correction code is a parameter associated with each data file by the data processing system.;29. The apparatus of claim 28, wherein a first type of error correction code is generated by taking the bitwise exclusive-OR of all local cells in the set.;30. The apparatus of claim 28, wherein a first type of error correction code is generated by taking the bitwise exclusive-OR of all local cells in the set, and the means for mapping maps all error correction codes to storage means coupled to a single path.;I;1;2;3;4;5;6;1;2;3;4;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;31. The apparatus of claim;-55-;a second;241740;type of error correction code is generated by taking the bitwise exclusive-OR or all local cells in the set, and the means for mapping maps error correction code ECC, to a storage means coupled to path;P( ((s-l)modW) +1) * 32. The apparatus of claim 28, wherein one type of the error correction codes is a multiple bit Hamming code generated over all local cells in the set. 33. An apparatus for controlling access to data in data files by a plurality of users of a data processing system, the data processing system including internal storage, external storage, a plurality of access paths between internal storage and external storage, and a file user interface by which the plurality of users requests access to data files, wherein there is a plurality of physical storage classes characterized by prespecified parameters that map a data file subject of an access to locations in external memory, the apparatus comprising: first means, coupled to the file user interface and the internal storage, for allocating the internal storage for temporary storage of current data in the data files to be accessed by the plurality of users, for deallocating internal storage from old data stored • 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 2 3 in the internal storage, and fc -56- p ^ 241740 i 1' Kse "I ^gsna^afcong requests for accesses with external storage for transfer of current data to allocated internal storage, and of updated old data from deallocated internal storage; and means, coupled to the first means, for specifying dependencies by users on locations in the internal storage allocated to the plurality of users, wherein the first means is responsive to the specified dependencies in allocating and deallocating the internal storage; logical mapping means, responsive to the requests for accesses with external storage, for assigning a logical address to data subject of each access; external mapping means, responsive to the logical address, for identifying one of the plurality of storage classes; and means, responsive to the identified storage class, for carrying out the access with the appropriate locations in external memory through a subset of the plurality of access paths. 34. The apparatus of claim 33, wherein the first means includes: means, responsive to the dependencies, for locating, journaling and releasing locations to allocate and deallocate the locations in internal storage for the plurality of users. I 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 6 7 8 9 35. The apparatus of cle -57- dependencies specified by the means for specifying are programmable through the data processing system for global balancing of the allocation and deallocation of internal storage for the plurality of users. 36. The apparatus of claim 33, wherein the means for carrying out the access is responsive to a single request for access with external storage to transfer data across a subset of the plurality of access paths in parallel. 37. The apparatus of claim 36, wherein storage classes in a subset of the plurality of storage classes are characterized by parameters specifying a cell of data, the cell including a plurality of local cells that may be accessed across a plurality of access paths in parallel, a cell of data being specified by a first parameter W defining a number of access paths to corresponding local cells of data for parallel access to a cell, wherein W local cells define a cell, and a second parameter D defining a number of blocks of data in the data files in the storage class within each local cell. 1 2 3 4 5 1 2 3 4 5 6 7 8 9 10 11 1 2 3 4 5 6 7 8 9 10 path between external storage and internal storage, and there is at least one block of data in each local cell. 39. The apparatus of claim 33, wherein the means for carrying out accesses with external storage further includes: means, responsive to the identified storage class, for generating error codes for data subject of an access for transfer of data from internal storage to external storage; and means, responsive to the identified storage class, for detecting and correcting errors in data subject of an access for transfer of data from external storage to internal storage. 40. The apparatus of claim 37, wherein a block of data is a basic unit of transfer across an access path between external storage and internal storage, and storage classes in a subset of the plurality of storage classes are each further characterized by a reliability parameter that specifies an error recovery algorithm, and the means for carrying out accesses with external storage further includes: means, responsive to the reliability parameter, for generating error codes for data subject of an 11 12 13 14 15 16 1 2 3 4 5 6 7 8 9 10 11 1 2 3 4 .... N'i C /,'X /v v \V%%i241740 -s9- access for transfer of data from intemi 3torage to external storage; and means, responsive to the reliability parameter, for detecting and correcting errors in data subject of an access for transfer of data from external storage to internal storage. 41. The apparatus of claim 37, wherein a block of data is a basic unit of transfer across an access path between external storage and internal storage, and storage classes in a subset of the plurality of storage classes are each further characterized by a reliability parameter that specifies one of a plurality of error recovery algorithms, and the means for carrying out accesses with external storage further includes: means, responsive to the reliability parameter, for implementing the error recovery algorithm. 42. The apparatus of claim 41, wherein one of the plurality of error recovery algorithms provides for replication of local cells of data subject of an access for transfer of data from internal storage to external storage, and for storage of replicated local cells in external storage across independent access paths in parallel, and for selection of a best one of replicated local cells of data subject of an access for transfer of data from external storage to internal 1 2 3 4 5 6 7 8 9 10 1 2 3 1 2 3 4 storage. -60- 43. The apparatus of claim 41, wherein one of the plurality of error recovery algorithms provides for generation of an error code for each cell, and storage of the error code to a local cell within the cell in external storage in parallel with storage of the data subject of an access for transfer of data from internal storage to external storage; and for detection and correction of errors in data subject of an access for transfer of data from external storage to internal storage. 44. The apparatus of claim 41, wherein the error code comprises bitwise parity over the local cells of data within the cell. 45. The apparatus of claim 41, wherein for a local cell including N bits, the error code comprises a N x M bit code, where M is a number greater than one, stored in M local cells within the cell. 46. Apparatus for storing a data file as claimed in any one of the claims 1 to 32 and substantially as herein described with reference to the accompanying figures 2 to 25. 7 40 A. J. PARK & SON S FOR THE APPLICANTS
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US07/185,179 US4993030A (en) | 1988-04-22 | 1988-04-22 | File system for a plurality of storage classes |
NZ228861A NZ228861A (en) | 1988-04-22 | 1989-04-21 | Multi-user data file access via multiple access paths |
Publications (1)
Publication Number | Publication Date |
---|---|
NZ241740A true NZ241740A (en) | 1995-12-21 |
Family
ID=26650849
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
NZ241740A NZ241740A (en) | 1988-04-22 | 1989-04-21 | Cellular data file storage and management |
Country Status (1)
Country | Link |
---|---|
NZ (1) | NZ241740A (en) |
-
1989
- 1989-04-21 NZ NZ241740A patent/NZ241740A/en unknown
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4993030A (en) | File system for a plurality of storage classes | |
US6880102B1 (en) | Method and system for managing storage systems containing multiple data storage devices | |
US6985995B2 (en) | Data file migration from a mirrored RAID to a non-mirrored XOR-based RAID without rewriting the data | |
US5403639A (en) | File server having snapshot application data groups | |
US6405284B1 (en) | Distributing data across multiple data storage devices in a data storage system | |
US6041423A (en) | Method and apparatus for using undo/redo logging to perform asynchronous updates of parity and data pages in a redundant array data storage environment | |
US6799258B1 (en) | Methods and apparatus for point-in-time volumes | |
US5210866A (en) | Incremental disk backup system for a dynamically mapped data storage subsystem | |
US5379412A (en) | Method and system for dynamic allocation of buffer storage space during backup copying | |
US7644308B2 (en) | Hierarchical timestamps | |
US9104342B2 (en) | Two stage checksummed raid storage model | |
US20080126842A1 (en) | Redundancy recovery within a distributed data-storage system | |
US20050120267A1 (en) | Apparatus, system, and method for maintaining data in a storage array | |
GB2369206A (en) | Excluding last written segments while rebuilding meta-data in a data storage system | |
EP0570516A1 (en) | Disk drive array memory system using nonuniform disk drives | |
EP1019830A1 (en) | Expansion of the number of drives in a raid set while maintaining integrity of migrated data | |
US6629203B1 (en) | Alternating shadow directories in pairs of storage spaces for data storage | |
EP0303856B1 (en) | Method and apparatus for maintaining duplex-paired devices by means of a dual copy function | |
AU614611C (en) | A file system for a plurality of storage classes | |
US7281188B1 (en) | Method and system for detecting and correcting data errors using data permutations | |
JP2002366445A (en) | System for performing backward error recovery by computer | |
NZ241740A (en) | Cellular data file storage and management | |
US7254752B1 (en) | Protecting database records against a failed write operation | |
RU2777270C1 (en) | Method and system for distributed storage of recovered data which ensures integrity and confidentiality of information |