Crash consistency, journaling and recovery
Follow a write to stable storage, see why a mid-update crash breaks a filesystem, and trace a journal that replays or discards each transaction. Filesystems and storage · Operating systems.
A save call returns and the power fails two seconds later. A bare write can lose its block, a file fsync can leave the new name unsaved, and a data journal can recover a five-event update as a unit. What did the returned write promise, and what does recovery do at each crash point?
What you will learn
- Say what a returned write, an fsync, a directory fsync and a device flush each guarantee
- Trace a journaled update through every crash point and name the recovery action
- Compare ordered and writeback metadata journaling after the same crash
Lesson outline
- A returned write
- A crash mid-update
- The journal
- Ordered against writeback
- What a journal leaves open
17 minutes · 5 scenes · 0 predict checks · 10 quiz questions
The full lesson is available with Premium.