Data Protection Advisor:資料存放區伺服器上pgsql_tmp資料夾中的暫存檔案快速增加,並佔用檔案系統上所有可用的空間

Summary: 資料存放區伺服器上pgsql_tmp資料夾中的檔案快速增加並填入磁片。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

Postgres 所在的資料存放區伺服器上的檔案系統幾乎已滿。
應用程式服務啟動成功,但無法處理資料,且很快會當機。
在應用程式伺服器上的 server.log 中找到下列訊息:
2022-11-15 08:41:00,700 警告 [org.jboss.jca.core.connectionmanager.listener.TxConnectionListener] (ReportEngineMessageListener #1:Backup Report Card:22b4e14e-a7a9-4b49-a244-54336df9661f) IJ000305:發生連線錯誤:
org.postgresql.util.PSQLException:錯誤:無法建立臨時檔案「base/pgsql_tmp/pgsql_tmp921.5.sharedfileset/i165of8192.p0.0」:裝置

上沒有剩餘空間
在出現上述警告後發生錯誤:
2022-11-15 08:41:00,704 錯誤 [com.emc.apollo.jdbc.exec.SQLExecutor] (報告)EngineMessageListener #1:Backup Report Card:22b4e14e-a7a9-4b49-a244-54336df9661f) 錯誤執行查詢:錯誤。查詢為:
選取t0.f_agent_name為「t0f_agent_name」,t0.f_sub_name為「t0f_sub_name」,t0.f_group_name為「t0f_group_name」,t0.f_schedule_name為「t0f_schedule_name」,t0.f_client_name為「t0f_client_name」,t0.f_policy_name為「t0f_policy_name」,t0.f_workflow_name為「t0f_workflow_name」,t0.f_workflow_jobid為「t0f_workflow_jobid」。 t0.f_action_name為「t0f_action_name」 t0.f_job_name為「t0f_job_name」、t0.f_domain_name為「t0f_domain_name」、t0.f_backup_set為「t0f_backup_set」、t0.f_session為「t0f_session」、t0.f_proxy為「t0f_proxy」、t0.f_queuestart為「t0f_queuestart」、t0.f_status為「t0f_status」、t0.f_starttime為「t0f_starttime」、t0.f_endtime為「t0f_endtime」、 t0.f_ntries為「t0f_ntries」,t0.f_queuestart為f_reporterstarttime,t0.f_queuestart為f_reporterendtime,從 view_backupjob
t0 t0.f_id為f_id...


在資料存放區記錄中,會發現類似的訊息:
2022-11-15 07:29:49.001 GMT [7443] 錯誤: 無法寫入檔案「base/pgsql_tmp/pgsql_tmp4401.6.sharedfileset/i19081of32768.p1.0」:裝置

上沒有剩餘空間
在 /dpa/services/datastore/data/base/pgsql_tmp 目錄中檢查資料存放區伺服器時,有許多資料夾和檔案大小包含許多 GB。
pgsql_tmp目錄中第一個檔案上的日期可能對應于 DPA 軟體的最新升級。

Cause

在最近一次升級期間,DPA 資料存放區並未針對伺服器上可用的 RAM 數量正確調整。
執行下列命令時,會顯示下列內容:
# dpa.sh ds 調整
EMC Data Protection Advisor
[INFO] 目前資料存放區服務調校預期已成功完成 512 MB 的主機記憶體
命令。

512MB 值是 PostgreSQL 伺服器的一般預設設定。
此低記憶體設定導致 DPA 將查詢資訊寫入pgsql_tmp中的暫存檔案。
檔案系統已滿後,系統終止了最後填滿檔案系統上所有可用空間的 tmp 檔案背後的查詢。
這會導致 server.log 中與 SELECT 查詢相關的錯誤無法在pgsql_tmp目錄中建立臨時檔案。

Resolution

在資料存放區伺服器上執行調整命令,以瞭解伺服器上的 RAM 容量。
例如,如果伺服器配置了 64GB 的 RAM,請執行下列命令:
 # dpa.sh ds 將 64GB
EMC Data Protection Advisor
Set Datastore 服務記憶體使用量調整為 65536MB:確認 [Y|N]
y
資料存放區服務已成功調整。
在資料存放區服務重新開機之前,資料存放區的新記憶體使用將不會生效。
命令已成功完成。

重新開機資料存放區服務。
重新開機後,pgsql_tmp中的檔案會透過 postgresql 程式自動清除。
監控最新的資料存放區服務記錄,出現下列訊息時,即可啟動應用程式。
2022-11-15 09:19:10.003 GMT [10897] 記錄:  資料庫系統已準備好接受連線

隨著針對資料存放區服務調整了更多記憶體,將查詢資料寫入pgsql_tmp暫存的需求將有所降低。
如需詳細資訊,請聯絡 Dell 技術支援部門。

Affected Products

Data Protection Advisor
Article Properties
Article Number: 000205495
Article Type: Solution
Last Modified: 25 May 2023
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.