4
我剛剛測試了我設置的PostgreSQL 9.4集羣的故障轉移時偶然發現了這個錯誤。在這裏,我想推動的奴隸,成爲新的主:PostgreSQL數據中`pg_logical`目錄的用途是什麼?
$ repmgr -f /etc/repmgr/repmgr.conf --verbose standby promote
2014-09-22 10:46:37 UTC LOG: database system shutdown was interrupted; last known up at 2014-09-22 10:44:02 UTC
2014-09-22 10:46:37 UTC LOG: database system was not properly shut down; automatic recovery in progress
2014-09-22 10:46:37 UTC LOG: redo starts at 0/18000028
2014-09-22 10:46:37 UTC LOG: consistent recovery state reached at 0/19000600
2014-09-22 10:46:37 UTC LOG: record with zero length at 0/1A000090
2014-09-22 10:46:37 UTC LOG: redo done at 0/1A000028
2014-09-22 10:46:37 UTC LOG: last completed transaction was at log time 2014-09-22 10:36:22.679806+00
2014-09-22 10:46:37 UTC FATAL: could not open directory "pg_logical/snapshots": No such file or directory
2014-09-22 10:46:37 UTC LOG: startup process (PID 2595) exited with exit code 1
2014-09-22 10:46:37 UTC LOG: aborting startup due to startup process failure
pg_logical/snapshots
DIR其實主節點上存在,它是空的。
UPD:我剛剛手動創建了空目錄pg_logical/snapshots
和pg_logical/mappings
,服務器已經開始沒有抱怨。 repmgr standby clone
在同步時似乎忽略此目錄。但問題仍然存在,因爲我只是好奇這個目錄是什麼,也許我錯過了我的設置。只是谷歌搜索它沒有產生任何有意義的結果。
什麼是你的'repmgr'版本? – 2014-09-22 12:33:39
@CraigRinger'repmgr --version'給我'repmgr 2.0(PostgreSQL 9.3.5)'。我使用apt-get安裝它。軟件包版本是trusty-pgdg/main amd64的2.0-3.pgdg14.04 + 1。 – vlprans 2014-09-22 13:21:23
根據我更新的答案,這是一個repmgr錯誤。 – 2014-09-22 13:22:05