快取索引檔案故障修復
索引檔案修復
當 /usr/local/oredge-node/logs/error.log
錯誤日誌中出現以下訊息時,表明索引檔案已損壞:
"cache index unable to seek cursor: MDB_CORRUPTED: Located page was wrong type"
此時需要刪除索引檔案。請注意,刪除索引檔案會導致已快取檔案的 cache purge
功能失效。
這種問題通常由意外關機(如突然斷電)導致索引檔案資料未能同步到磁碟造成。
刪除索引檔案並重啟 OpenResty Edge Node
刪除舊的索引檔案:
sudo rm -fr /usr/local/oredge-node/data/cache_index.lmdb/*
重啟 OpenResty Edge Node:
systemctl start upgrade-oredge-node
透過以上步驟,您可以有效地擴容快取索引檔案並修復相關故障,確保 OpenResty Edge Node 的正常執行。