- File system startup
- Start the AMPs
- Start the PEs
- Voting for Transaction Recovery
- Transaction Rollback
A normal startup of the Teradata Database file system starts the WAL log prior to starting the normal file system. The key phases of Teradata file system startup include the following:
Read the snapshot MI from disk and examine it for structural consistency.
If it is consistent, it can be used, avoiding the necessity of reading CIs and constructing the MI, which takes longer.
- Build the WAL Master Index (WMI).
This is the index structure for the WAL log. The WAL log contains the Redo records and the Transient Journal (TJ) records.
- Perform Redo analysis and replay.
This scans the WAL log for Redo records and analyzes which records should be applied, and replays the necessary modifications, to bring the CI structures up-to-date.
Because the WAL protocol allows for the delayed writing of modified blocks to their home disk addresses, the blocks on disk are only completely valid after the Redo processing is complete. When the processing is finished, the CIs have been updated to reflect any cylinder migrates or other modifications that were performed.
If the MI snapshot read from disk was valid, redo processing updates the MI.
- If the snapshot or in-memory MI was inconsistent or corrupt, REDO processing ignores the MI and the system rebuilds the MI from an inspection of CIs on the AMP.
The specific File System startup sequence on each AMP is as follows:
- Get the list of cylinders for this AMP from Teradata Virtual Storage (VS).
- Validate Segment Zero (SEG0), the File Information Block (FIB), and MI.
- Get the FSYS Trace segment.
- Process the DEPOT blocks.
- Process the WAL log:
- Build the WMI.
- Perform Redo analysis.
- Perform Redo replay.
- Start the File System.
- Clean up cylinder index descriptors (CIDs) with special flags.
- Rebuild the free sector list.
- Clean up pending migrate flags.
- Validate cylinders in FSYS structures against Teradata VS list.
- Start File System background tasks.
When a system is corrupted, some or all of the above steps may be difficult to complete. The Filer diagnostic options allow trained personnel to start Filer even when errors are encountered during file system startup. The options also provide the ability to control which phases of the file system startup sequence are executed. This allows users to skip the startup phases which have errors and to use Filer to troubleshoot and repair the problems.
Errors encountered during WAL log startup or during Redo processing will generally abort the startup. You can use the Filer diagnostic options to analyze the problems and possibly recover from the errors.