錯(cuò)誤記錄:
(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.
目前使用的方法(在群里面詢問(wèn)德哥使用的方法)
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)
--這里面有個(gè)疑惑: P參數(shù):disable system index O參數(shù):allow system table structure changes.為啥仍然會(huì)報(bào)could not open critical system index
走到這一步,似乎已經(jīng)山窮水盡了,請(qǐng)教大牛們,可遇到這種情況,或者說(shuō)有相應(yīng)的文檔可以參考的?謝謝.作者: nozjz 時(shí)間: 2012-04-14 20:06
-O你這里應(yīng)該用不到。
-P表示查詢系統(tǒng)表時(shí)不使用索引,但是如果修改了系統(tǒng)表中的數(shù)據(jù)的話,還是會(huì)更新系統(tǒng)索引。
你這里的問(wèn)題應(yīng)該是讀取pg_class表中的oid為2662(pg_class_oid_index)的記錄時(shí)失敗,估計(jì)是pg_class表本身的數(shù)據(jù)有損壞。作者: osdba 時(shí)間: 2012-04-17 14:03
psql: FATAL: could not access status of transaction 3832760714
DETAIL: Could not open file "pg_clog/0391": No such file or directory.
我維護(hù)GP中也發(fā)生過(guò)"could not access status of transaction 3832760714",但不象你這樣,連文件都沒(méi)有了?茨愕拿枋,象是你的數(shù)據(jù)數(shù)據(jù)丟失很多,估計(jì)即使數(shù)據(jù)庫(kù)啟來(lái),估計(jì)還會(huì)有很多不正常的地方。