NetWorker:當 postgres 精靈未執行時,NMC 登入提示會顯示錯誤「無法連線至資料庫」

Summary: NetWorker:當 postgres 精靈未執行時,NMC 登入提示會顯示錯誤「無法連線至資料庫」

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

存取 NetWorker Management Console (NMC) 會傳回:「無法連線至資料庫」

NMC GST 服務未列出 postgres 守護程式:

Linux: ps -ef | grep "gst\|lgtogst"
Windows (PowerShell): Get-WmiObject Win32_Process | Where-Object {$_.Name -match "gstd.exe|postgres.exe"} | Select-Object Name, ProcessID, CommandLine 

gstd.raw檔案註釋的呈現

gstd NSR warning: failed to get db connection to fetch server configuration
 

NetWorker:如何使用nsr_render_log呈現.raw紀錄檔

Linux:/opt/lgtonmc/logs/gstd.raw
Windows:<INSTALL_DRIVE>:\Program Files\EMC NetWorker\Management\GST\logs.gstd.raw

Cause

postgres 資料庫處於不一致狀態。

Resolution

  1. 以下命令停止 NMC 精靈:

Linux: /etc/init.d/gst stopsystemctl stop gst
Windows: net stop gstd

  1. 確保精靈停止:

Linux: ps -ef | grep "gst\|lgtogst"
Windows (PowerShell): Get-WmiObject Win32_Process | Where-Object {$_.Name -match "gstd.exe|postgres.exe"} | Select-Object Name, ProcessID, CommandLine

注意:如果 NMC 伺服器也是 NetWorker Web 使用者介面 (NWUI) 伺服器,則 NWUI 資料庫也會列出 postgres 程序。為這些進程顯示的路徑包括「nwui」。
  1. 終止所有未關閉的 NMC 程序:

Linux: kill -9 PID
Windows: taskkill /F /PID PID

  1. 以下列方式啟動 NMC 精靈:

Linux: /etc/init.d/gst startsystemctl start gst
Windows: net start gstd

  1. 確保所有守護程式都以以下內容開頭:

Linux: ps -ef | grep "gst\|lgtogst"
Windows (PowerShell): Get-WmiObject Win32_Process | Where-Object {$_.Name -match "gstd.exe|postgres.exe"} | Select-Object Name, ProcessID, CommandLine

 

監控 NMC gstd.raw和 postgres 記錄是否有任何錯誤:

NetWorker:如何使用nsr_render_log呈現.raw紀錄檔

Linux: 

    • /opt/lgtonmc/logs/gstd.raw
    • /nsr/nmc/nmcdb/pgdata/pg_log/postgresql-DAY.log

Windows:

    • <INSTALL_DRIVE>:\Program Files\EMC NetWorker\Management\GST\logs.gstd.raw
    • <INSTALL_DRIVE>:\Program Files\EMC NetWorker\Management\nmcdb\pgdata\pg_log\postgresql-DAY.log

Additional Information

Affected Products

NetWorker
Article Properties
Article Number: 000031351
Article Type: Solution
Last Modified: 16 May 2025
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.