タケユー・ウェブ日報

Ruby on Rails や Flutter といったWeb・モバイルアプリ技術を武器にお客様のビジネス立ち上げを支援する、タケユー・ウェブ株式会社の技術ブログです。

PostgreSQLのWALの不整合

こんなエラーが。

Sep 20 10:02:07 system postgres[3044]: [97-1] LOG: archive command failed with exit code 1 Sep 20 10:02:07 system postgres[3044]: [97-2] DETAIL: The failed archive command was: cp -i pg_xlog/000000010000004E000000AF Sep 20 10:02:07 system postgres[3044]: [97-3] /pg_backup/xlog_archives/000000010000004E000000AF Sep 20 10:02:08 system postgres[3044]: [98-1] LOG: archive command failed with exit code 1 Sep 20 10:02:08 system postgres[3044]: [98-2] DETAIL: The failed archive command was: cp -i pg_xlog/000000010000004E000000AF Sep 20 10:02:08 system postgres[3044]: [98-3] /pg_backup/xlog_archives/000000010000004E000000AF Sep 20 10:02:09 system postgres[3044]: [99-1] LOG: archive command failed with exit code 1 Sep 20 10:02:09 system postgres[3044]: [99-2] DETAIL: The failed archive command was: cp -i pg_xlog/000000010000004E000000AF Sep 20 10:02:09 system postgres[3044]: [99-3] /pg_backup/xlog_archives/000000010000004E000000AF Sep 20 10:02:09 system postgres[3044]: [100-1] WARNING: transaction log file "000000010000004E000000AF" could not be archived: too many failures

PostgreSQLのWALでのエラー・トラブル対応

archive_statusを実際のpg_xlogとあわせる・・・全部消すとか?

ポスグレのpg_xlogフォルダは消しても大丈夫?(archive_statusフォルダも含む)

フルバックアップ後、削除してからのコールドスタートなら問題なさそうかしら。