Controller fault recovery system for a distributed file system
AssigneeAdaptec, Inc.
InventorsAlexander H. Frey, Leonard Olson, William A. P. Graham
Life of this patent
Estimating the term…
Abstract
A controller fault recovery system recovers from faults that cause unscheduled stops for a distributed file system operating on an array storage system having multiple controllers. A proxy arrangement protects data integrity in the event of an unscheduled stop on just one controller in the array storage system. An atomic data/parity update arrangement protects data integrity in the event of an unscheduled stop of more than one controller.
Claims22
A controller fault recovery system for an array storage system for storing data objects including at least one parity group having a number N of data blocks and a parity block computed from the N data blocks comprising:
- an array of storage devices;
- at least N+1 controllers, each controller operably connected to a unique portion of the array of storage devices;
- and
- a distributed file system having at least one input/output manager (IOM) routine for each controller, each IOM routine including:
- means for controlling access to the unique portion of the array of storage devices associated with that controller;
- means for maintaining a journal reflecting a state of all requests and commands received and issued for that IOM routine;
- and
- means for reviewing the journal and the state of all requests and commands received and issued for that IOM routine in response to a notification that at least one of the IOM routines has experienced an unscheduled stop and publishing any unfinished request and commands for the at least one failed IOM routine.
A computer-implemented method of storing data objects in an array storage system, the data objects including at least one parity group having a number N of data blocks and a parity block computed from the N data blocks, wherein the data objects are stored in the array storage system under software control of a distributed file system having at least a number N+1 of input/output manager (IOM) routines, each IOM routine controlling access to a unique portion of the array storage system and having a plurality of buffers to temporarily store blocks to be transferred in/out of that portion of the array storage system, the method comprising:
- (a) receiving a write request at a first IOM to store a new data block and, in response:
- (a1) issuing a read command to read an old data block corresponding to the new data block if the old data block is not already in a first buffer in the first IOM, the old data block having a first location in a meta-data structure for the distributed file system that contains an old disk address for the old data block;
- (a2) allocating a new disk address for the new data block;
- (a3) transferring the new data block into a second buffer in the first IOM;
- (a4) issuing a write command to write the new data block from the second buffer at the new disk address;
- (a5) making a journal entry that the write command was issued;
- (a6) sending an update parity request to a second IOM associated with a parity block of the parity group that includes the old data block;
- (a7) determining changes between the old data block and the new data block;
- (a8) sending the changes between the old data block and the new data block to the second IOM in response to a request from the second IOM;
- (a9) releasing the first buffer in response to a confirmation from the second IOM that the changes between the old data block and the new data block have been received;
- (a10) receiving a response to the write command that the new data block has been written;
- (a11) changing the old disk address to the new disk address in the first location in the meta-data structure;
- (a12) releasing the second buffer;
- (a13) sending a message to the second IOM that the write command was completed;
- and
- (a14) deallocating space reserved for the old data block in the meta-data structure and making a journal entry that the write command was completed in response to receiving a message from the second IOM that the parity update was completed;
- and
- (b) receiving the update parity request at the second IOM and, in response:
- (b1) making a journal entry that the update parity request was received;
- (b2) sending a request to the first IOM for the changes between the old data block and the new data block;
- (b3) issuing a read command to read an old parity block corresponding to the parity block of the parity group that includes the old data block if the parity block is not already in a first buffer in the second IOM, the old parity block having a second location in the meta-data structure for the distributed file system that contains an old disk address for the old parity block;
- (b4) receiving in a second buffer in the second IOM the changes between the old data block and the new data block from the first IOM and sending the confirmation that the changes between the old data block and the new data block have been received;
- (b5) allocating a new disk address for a new parity block and a third buffer in the second IOM;
- (b6) generating the new parity block in the third buffer based on the changes between the old data block and the new data block and the old parity block;
- (b7) releasing the first buffer and the second buffer;
- (b8) issuing a write command to write the new parity block in the third buffer to the new disk address for the new parity block;
- (b9) receiving a response to the write command that the new parity block has been written;
- (b10) changing the old disk address for the old parity block to the new disk address for the new parity block in the second location in the meta-data structure;
- (b11) making a journal entry that the update parity request was completed;
- (b12) sending a message to the first IOM that the update parity request was completed;
- and
- (b13) deallocating space reserved for the old parity block in the meta-data structure in response to receiving a message from the first IOM that the write command was completed.
A computer-implemented method of storing data objects in an array storage system, the data objects including at least one parity group having a number N of data blocks and a parity block computed from the N data blocks, wherein the data objects are stored in the array storage system under software control of a distributed file system having at least a number N+1 of input/output manager (IOM) routines, each IOM routine controlling access to a unique portion of the array storage system, the method comprising:
- at a first IOM:
- receiving a write request to store a new block of data for a data object;
- issuing an update parity request to a second IOM associated with a parity block corresponding to the new block of data;
- issuing a write command to write the new block of data to the storage system;
- and
- receiving a write command complete from the storage system for the new block of data;
- at the second IOM:
- receiving the update parity request;
- computing a new block of parity for the parity group that includes the new block of data;
- and
- issuing a write command to write the new block of parity;
- and
- receiving a write command complete from the storage system for the new block of parity;
- for each of the first and second IOM, maintaining a journal of all requests and commands received and issued;
- and
- in the event of an unscheduled stop of the array storage system, recovering the data parity group of the data object by reviewing the journal entries for both the first and second IOM and reconstructing the data block or the parity block in response if necessary.
A computer-implemented method of storing data objects in an array storage system, the data objects including at least one parity group having a number N of data blocks and a parity block computed from the N data blocks, wherein the data objects are stored in the array storage system under software control of a distributed file system having at least a number N+1 of input/output manager (IOM) routines, each IOM routine controlling access to a unique portion of the storage system, the method comprising:
- at a first IOM:
- receiving a write request to store a new block of data for a data object;
- issuing an update parity request to a second IOM associated with a parity block corresponding to the new block of data;
- issuing a write command to write the new block of data to the storage system;
- and
- receiving a write command complete from the storage system for the new block of data;
- at the second IOM:
- receiving the update parity request;
- computing a new block of parity for the parity group that includes the new block of data;
- and
- issuing a write command to write the new block of parity;
- and
- receiving a write command complete from the storage system for the new block of parity;
- at a third IOM that is designated as a proxy for the first IOM:
- monitoring requests to the first IOM;
- and
- in the event that the first IOM does not respond to a request, assuming responsibility for responding to the request;
- for each of the first and second IOMs, maintaining a journal of all requests and commands received and issued;
- and
- in the event that the first IOM does not respond to a request, recovering the data parity group of the data object by reviewing the journal entries for both the first and second IOM and reconstructing the data block from the parity block.
An array storage system for storing data objects including at least one parity group having a number N of data blocks and a parity block computed from the N data blocks comprising:
- an array of storage devices;
- and
- a distributed file system having at least a number N+1 of input/output manager (IOM) routines, each IOM routine controlling access to a unique portion of the array of storage devices and maintaining a journal of all requests and commands received and issued for that IOM wherein
- a first IOM responds to a write request to store a new block of data for a data object and issues an update parity request to a second IOM associated with a parity block corresponding to the block of data;
- the second IOM computes a new block of parity for the parity group that includes the new block of data;
- and
- in the event of an unscheduled stop of a portion of the array of storage devices controlled by either the first IOM or second IOM, the distributed file system reviews the journal for both the first IOM and second IOM once the first and second IOM are both restarted and reconstructs the data block or the parity block in response so as to insure that any updates to the new block of data or new block of parity are atomic.
Dependencies are inferred from the claim text.