Interview Prep/Docker/Storage, volumes and disk space

Database corrupted after the host lost power: `PANIC: could not locate a valid checkpoint record`.

AdvancedTroubleshootingStorage, volumes and disk space
Answer

Likely causes → Unclean shutdown plus storage ignoring fsync (write cache without battery), or copied files from a running DB.

Diagnose → Check WAL files, disk write-cache settings, filesystem errors in dmesg.

Fix → Restore from backup/PITR; as a last resort pg_resetwal (data loss risk).

Prevent → Reliable storage, replication, tested backups, and don't snapshot running DB files without proper tooling.

All Docker questions Roadmap: Docker & containers

More on Storage, volumes and disk space