Journaling

Warning

Biggest crash-recovery challenge is inconsistency

  • one logical operation requires multiple separate disk writes
  • If only some happen, could cause a lot of problems

Most of these problematic writes are to metadata

Idea

Use a write-ahead log to journal metadata

Group multiple operations into one log entry

Performance advantage

Details

Challenge

Find oldest relevant log entry