NetWorker: nmc_config epäonnistuu virheilmoitus "/opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!"
Summary: NetWorker NMC -määrityskomentosarja nmc_config epäonnistuu virheilmoitus "/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
Ongelman tunnusomaisia ominaisuuksia:
Täysi lähtö:
- Asennat NMC-palvelinohjelmiston Linux-palvelimeen
- Asennuksen jälkeen /opt/lgtonmc/bin/nmc_config epäonnistuu virheen vuoksi : Komento /opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb epäonnistui!
Täysi lähtö:
# /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
Ongelma voi ilmetä, kun NMC-palvelinohjelmisto asennetaan järjestelmään, jossa ei ole aiemmin luotua NMC-tietokantaa (/nsr/nmc/nmcdb). nmc_config-komentosarjan aikana luotu Postgres-käyttäjä ei pysty alustamaan NMC-tietokantaa, koska käyttöjärjestelmän /tmp-hakemistossa on väärät käyttöoikeudet. Hakemistossa on oltava täydet luku-, kirjoitus- ja suoritusoikeudet kaikille käyttäjille. Postgres-käyttäjä luo /tmp-kansioon .lock-tiedoston. Jos se ei onnistu, nmcdb ei käynnisty.
Resolution
1. Kirjaudu NetWorker-palvelimeen pääkäyttäjänä
2,a. Varmista, että /tmp:llä on täysi luku-, kirjoitus- ja suoritusoikeus kaikille käyttäjille:
2,b. Jos käyttöoikeudet ovat virheelliset, korjaa ne suorittamalla seuraavat komennot:
Esimerkki:
4. Tee nmc_config uudelleen:
2,a. Varmista, että /tmp:llä on täysi luku-, kirjoitus- ja suoritusoikeus kaikille käyttäjille:
ls -la / | grep /tmp
Esimerkki:
# ls -la / | grep tmp
drwxrwxrwt. 51 root root 8192 Nov 14 09.41 tmp
drwxrwxrwt. 51 root root 8192 Nov 14 09.41 tmp
HUOMAUTUS: yllä oleva korostettu arvo ilmaisee kaikkien käyttäjien täydet luku-, kirjoitus- ja suoritusoikeudet. Jos sinulla on muita käyttöoikeusasetuksia, asetusta on muutettava.
2,b. Jos käyttöoikeudet ovat virheelliset, korjaa ne suorittamalla seuraavat komennot:
chmod 777 /tmp
Esimerkki:
[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. Nimeä olemassa oleva /nsr/nmc/nmcdb uudelleen:
mv /nsr/nmc/nmcdb /nsr/nmc/nmcdb.bak
HUOMAUTUS: Jos nmcdb nimetään uudelleen, NMC-raportteja ei voi hakea ennen uudelleennimeämistä. Myös ulkoisen todennuksen NMC-roolimääritykset on poistettu. Lisätietoja nmcdb-tietokannan palauttamisesta on kohdassa NetWorker: NMC-tietokannan palauttaminen. Se voidaan tehdä, kun tietämyskannan prosessi on valmis.
4. Tee nmc_config uudelleen:
[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. Varmista, että GST-palvelu on käynnistynyt:
systemctl-tila gst
6. Jos NMC-palvelu ei ole käynnissä, käynnistä se seuraavasti:
systemctl start gst (järjestelmän käynnistys gst)
6. Tarkkaile käynnistyksen varalta /opt/lgtonmc/logs/gstd.raw:
Additional Information
Affected Products
NetWorkerProducts
NetWorker, NetWorker Management ConsoleArticle 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.