- 論壇徽章:
- 0
|
環(huán)境: SUSE Linux + Greenplum3.3.7(Base on PG8.3.2)
問題來源:機房連續(xù)二次斷電.
癥狀: gpstart報出大量的錯,日志顯示有幾個結點不正常
分析過程:
使用gprecoverseg -F對結點進行修復.修復完成后,通過gpstate查看,發(fā)現(xiàn)仍然有二個結點啟動不正常.以下,就進入結點里面,折騰PG了.
錯誤記錄:
(1)
gpadmin@sdw1:~> PGOPTIONS='-c gp_session_role=utility' psql template1 -p 60001
psql: FATAL: could not access status of transaction 3832760714
DETAIL: Could not open file "pg_clog/0391": No such file or directory.
目前使用的方法(在群里面詢問德哥使用的方法)
dd if=/dev/zero of=/data/m/gp4/pg_clog/xxxx bs=1 count=1048576
fix it.
* In a crash-and-restart situation, it's possible for us to receive
* commands to set the commit status of transactions whose bits are in
* already-truncated segments of the commit log (see notes in
* SlruPhysicalWritePage). Hence, if we are InRecovery, allow the case
* where the file doesn't exist, and return zeroes instead.
(2)
gpadmin@sdw1:/data/m/gp4> PGOPTIONS='-c gp_session_role=utility' pg_ctl start -D /data/m/gp4/
gpadmin@sdw1:~> PGOPTIONS='-c gp_session_role=utility' psql jtsjzx -p 60001
psql: FATAL: invalid page header in block 4 of relation "pg_attribute"
gpadmin@sdw1:~> PGOPTIONS='-c gp_session_role=utility' psql template1 -p 60001
psql: PANIC: could not open critical system index 2662 (relcache.c:2490)
gpadmin@sdw1:/data/m/gp4> postgres -P -O -D /data/m/gp4 -p 60001
錯誤同上.
--這里面有個疑惑: P參數(shù):disable system index O參數(shù):allow system table structure changes.為啥仍然會報could not open critical system index
走到這一步,似乎已經(jīng)山窮水盡了,請教大牛們,可遇到這種情況,或者說有相應的文檔可以參考的?謝謝. |
|