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.