In my PostgreSQL logs, I find this message:
LOG: invalid magic number 0000 in log file 0, segment 1, offset 16121856
Which file is log file 0? Here is my pg_xlog directory:
-bash-4.1$ ll pg_xlog/
total 49160
-rw------- 1 postgres postgres 16777216 Dec 6 06:27 000000010000000000000001
-rw------- 1 postgres postgres 16777216 Jan 21 09:10 000000020000000000000001
-rw------- 1 postgres postgres 16777216 Dec 21 05:29 000000020000000000000002
-rw------- 1 postgres postgres 56 Dec 6 06:30 00000002.history
drwx------ 2 postgres postgres 4096 Dec 6 06:30 archive_status
-bash-4.1$ ll pg_xlog/archive_status/
total 0
-rw------- 1 postgres postgres 0 Dec 6 06:30 00000002.history.ready