Zu den Hauptinhalten
  • Bestellungen schnell und einfach aufgeben
  • Bestellungen anzeigen und den Versandstatus verfolgen
  • Profitieren Sie von exklusiven Prämien und Rabatten für Mitglieder
  • Erstellen Sie eine Liste Ihrer Produkte, auf die Sie jederzeit zugreifen können.

NetWorker: nmc_config fails with "/opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!"

Zusammenfassung: The NetWorker NMC configuration script nmc_config fails with "/opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!"

Dieser Artikel gilt für   Dieser Artikel gilt nicht für 

Symptome

The following characterizes the issue:
  • You are installing the NMC server software on a Linux server
  • The post installation /opt/lgtonmc/bin/nmc_config fails with ERROR: Command /opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!

Full output:
# /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!

Ursache

This issue can appear when installing the NMC server software on a system with no existing NMC database ( /nsr/nmc/nmcdb ). The postgres user created during the nmc_config script fails to initialize the NMC database because of incorrect permissions set on the OS /tmp directory. This directory should have full read, write, execute permissions for all users. The postgres user creates a .lock file under /tmp, if it fails to do this, the nmcdb will fail to initialize.

Lösung

1. Log into the NetWorker server as root
2,a. Confirm that /tmp has full read, write, execute access for all users:
ls -la / | grep /tmp
 
Example:
# ls -la / | grep tmp
drwxrwxrwt.  51 root root 8192 Nov 14 09:41 tmp
 
NOTE: the above highlighted value indicates full read, write, execute permissions for all users. If you have any other permissions settings this will need to be changed.

2,b. If the permissions are incorrect, correct them by running:
chmod 777 /tmp

Example:
[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. Rename the existing /nsr/nmc/nmcdb:
mv /nsr/nmc/nmcdb /nsr/nmc/nmcdb.bak
 
NOTE: If the nmcdb is renamed you will not be able to pull NMC reports from prior to renaming. NMC Role configurations for external authentication will also have been removed. To recover the nmcdb see NetWorker: How to Recover the NMC database?. This can be done once the process in this KB has been completed.

4. rerun 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. Confirm that the GST service has started:
systemctl status gst
 
6. If the NMC service is not running start it with:
systemctl start gst
 
6. Monitor the /opt/lgtonmc/logs/gstd.raw for startup:

Weitere Informationen

Betroffene Produkte

NetWorker

Produkte

NetWorker, NetWorker Management Console
Artikeleigenschaften
Artikelnummer: 000049077
Artikeltyp: Solution
Zuletzt geändert: 06 Okt. 2023
Version:  3
Antworten auf Ihre Fragen erhalten Sie von anderen Dell NutzerInnen
Support Services
Prüfen Sie, ob Ihr Gerät durch Support Services abgedeckt ist.