NetWorker: nmc_config с ошибкой «/opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!»

Summary: Сценарий конфигурации NetWorker NMC nmc_config с ошибкой «/opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!»

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

Эта проблема описана ниже.
  • Вы устанавливаете программное обеспечение сервера NMC на сервере Linux
  • После установки /opt/lgtonmc/bin/nmc_config с ошибкой : Сбой команды /opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb!

Полная выходная мощность:
# /opt/lgtonmc/bin/nmc_config
NetWorker services on this host are not running. Do you want to start them now [y]?

For optimum security, the NMC server must run the embedded PostgreSQL database server as a non root user. Specify a local user name that will start the database server.
If you specify a user that does not exist, the configuration process will provide you with
the option to create the user account.
Specify the user for the database server [postgres]:

Specify the directory to use for the LGTOnmc database [/nsr/nmc/nmcdb]:
Do you want to migrate the NMC server data from a previous LGTOnmc 8.x.x release [n]?
Specify the host name of the NetWorker Authentication Service host [nw_server_hostname]:
Start the NMC server daemons at end of the configuration [y]?

Creating the installation log in /opt/lgtonmc/logs/install.log.
Performing initialization. Please wait...

ERROR: Command /opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!

Cause

Эта проблема может появиться при установке программного обеспечения сервера NMC в системе без существующей базы данных NMC (/nsr/nmc/nmcdb). Пользователь postgres, созданный во время nmc_config, не может инициализировать базу данных NMC из-за неправильных разрешений, установленных в каталоге OS /tmp. Этот каталог должен иметь разрешения на полное чтение, запись и выполнение для всех пользователей. Пользователь postgres создает файл .lock в каталоге /tmp. Если это не удается сделать, nmcdb не инициализируется.

Resolution

1. Войдите на сервер NetWorker как root
2,a. Убедитесь, что у /tmp есть полный доступ для чтения, записи и выполнения для всех пользователей:
ls -la / | grep /tmp
 
Пример.
# ls -la / | grep tmp
drwxrwxrw t.  51 root 8192 14 ноября 09:41 tmp
 
ПРИМЕЧАНИЕ. Указанное выше значение указывает на разрешение на полное чтение, запись, выполнение для всех пользователей. Если у вас есть другие настройки разрешений, это необходимо изменить.

2, b. Если разрешения неверны, исправьте их, выполнив следующие действия:
chmod 777 /tmp

Пример.
[root@nmcserver linux_x86_64]# ls -la / | grep tmp
drwx------.  51 root root 8192 Nov 16 09:18 tmp

[root@nmcserver linux_x86_64]# chmod 777 /tmp

[root@nmcserver linux_x86_64]# ls -la / | grep tmp
drwxrwxrwx.  51 root root 8192 Nov 16 09:18 tmp
3. Переименуйте существующий /nsr/nmc/nmcdb:
mv /nsr/nmc/nmcdb /nsr/nmc/nmcdb.bak
 
ПРИМЕЧАНИЕ. Если nmcdb переименован, вы не сможете извлекать отчеты NMC из перед переименованием. Конфигурации ролей NMC для внешней аутентификации также будут удалены. Чтобы восстановить nmcdb, см. NetWorker: Как восстановить базу данных NMC?. Это можно сделать после завершения процесса, см. в этой статье базы знаний.

4. Повторно запустите nmc_config. 
[root@nmcserver linux_x86_64]# /opt/lgtonmc/bin/nmc_config

NOTE
====
Install has detected the configuration file of a previous lgtonmc
package. Install will attempt to read the configuration parameters
in this file and present them as default values where appropriate.
Please modify any value that is incorrect or needs to be changed.


For optimum security, the NMC server must run the embedded PostgreSQL database server
as a non root user. Specify a local user name that will start the database server.
If you specify a user that does not exist, the configuration process will provide you with
the option to create the user account.

Specify the user for the database server [postgres]:

Specify the directory to use for the LGTOnmc database [/nsr/nmc/nmcdb]:

Do you want to migrate the NMC server data from a previous LGTOnmc 8.x.x release [n]?

Specify the host name of the NetWorker Authentication Service host [nmcserver.lab.emc.com]:

Start the NMC server daemons at end of the configuration [y]?

Creating the installation log in /opt/lgtonmc/logs/install.log.

Performing initialization. Please wait...

done.
The installation completed successfully.
5. Убедитесь, что служба GST запущена:
systemctl status gst
 
6. Если служба NMC не запущена, запустите ее, выполнив следующие действия:
systemctl start gst
 
6. Следите за параметром /opt/lgtonmc/logs/gstd.raw для запуска:

Additional Information

Affected Products

NetWorker

Products

NetWorker, NetWorker Management Console
Article Properties
Article Number: 000049077
Article Type: Solution
Last Modified: 24 Jun 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.