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.
More on Storage, volumes and disk space
`no space left on device` while pulling an image or starting a container.Beginner`df` shows free space but Docker says no space: inodes at 100%.Advanced`/var/lib/docker/containers/<id>/<id>-json.log` is 50 GB.Beginner`docker system prune` did not free much although `docker system df` shows large "Reclaimable".IntermediateVolume data disappeared after `docker compose down -v` or `docker volume prune`.IntermediateData is not persisted: after container recreate the database is empty.Intermediate